%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/front-page/
Upload File :
Create Path :
Current File : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/front-page/section-title.php

<?php
if (($alhambra_slider_sc = alhambra_get_theme_option('front_page_title_shortcode')) != '' && strpos($alhambra_slider_sc, '[')!==false && strpos($alhambra_slider_sc, ']')!==false) {

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

} else {

	?><div class="front_page_section front_page_section_title<?php
				$alhambra_scheme = alhambra_get_theme_option('front_page_title_scheme');
				if (!alhambra_is_inherit($alhambra_scheme)) echo ' scheme_'.esc_attr($alhambra_scheme);
				echo ' front_page_section_paddings_'.esc_attr(alhambra_get_theme_option('front_page_title_paddings'));
			?>"<?php
			$alhambra_css = '';
			$alhambra_bg_image = alhambra_get_theme_option('front_page_title_bg_image');
			if (!empty($alhambra_bg_image)) 
				$alhambra_css .= 'background-image: url('.esc_url(alhambra_get_attachment_url($alhambra_bg_image)).');';
			if (!empty($alhambra_css))
				echo " style=\"{$alhambra_css}\"";
	?>><?php
		// Add anchor
		$alhambra_anchor_icon = alhambra_get_theme_option('front_page_title_anchor_icon');	
		$alhambra_anchor_text = alhambra_get_theme_option('front_page_title_anchor_text');	
		if ((!empty($alhambra_anchor_icon) || !empty($alhambra_anchor_text)) && shortcode_exists('trx_sc_anchor')) {
			echo do_shortcode('[trx_sc_anchor id="front_page_section_title"'
											. (!empty($alhambra_anchor_icon) ? ' icon="'.esc_attr($alhambra_anchor_icon).'"' : '')
											. (!empty($alhambra_anchor_text) ? ' title="'.esc_attr($alhambra_anchor_text).'"' : '')
											. ']');
		}
		?>
		<div class="front_page_section_inner front_page_section_title_inner<?php
			if (alhambra_get_theme_option('front_page_title_fullheight'))
				echo ' alhambra-full-height sc_layouts_flex sc_layouts_columns_middle';
			?>"<?php
				$alhambra_css = '';
				$alhambra_bg_mask = alhambra_get_theme_option('front_page_title_bg_mask');
				$alhambra_bg_color = alhambra_get_theme_option('front_page_title_bg_color');
				if (!empty($alhambra_bg_color) && $alhambra_bg_mask > 0)
					$alhambra_css .= 'background-color: '.esc_attr($alhambra_bg_mask==1
																		? $alhambra_bg_color
																		: alhambra_hex2rgba($alhambra_bg_color, $alhambra_bg_mask)
																	).';';
				if (!empty($alhambra_css))
					echo " style=\"{$alhambra_css}\"";
		?>>
			<div class="front_page_section_content_wrap front_page_section_title_content_wrap content_wrap">
				<?php
				// Caption
				$alhambra_caption = alhambra_get_theme_option('front_page_title_caption');
				if (!empty($alhambra_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($alhambra_caption) ? 'filled' : 'empty'; ?>"><?php echo wp_kses($alhambra_caption, 'alhambra_kses_content'); ?></h1><?php
				}
			
				// Description (text)
				$alhambra_description = alhambra_get_theme_option('front_page_title_description');
				if (!empty($alhambra_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($alhambra_description) ? 'filled' : 'empty'; ?>"><?php echo wpautop(wp_kses($alhambra_description, 'alhambra_kses_content')); ?></div><?php
				}
				
				// Buttons
				if (alhambra_get_theme_option('front_page_title_button1_link')!='' || alhambra_get_theme_option('front_page_title_button2_link')!='') {
					?><div class="front_page_section_buttons front_page_section_title_buttons"><?php
						alhambra_show_layout(alhambra_customizer_partial_refresh_front_page_title_button1_link());
						alhambra_show_layout(alhambra_customizer_partial_refresh_front_page_title_button2_link());
					?></div><?php
				}
				?>
			</div>
		</div>
	</div>
	<?php
}

Zerion Mini Shell 1.0