<div class="front_page_section front_page_section_about<?php
	$tourimo_scheme = tourimo_get_theme_option( 'front_page_about_scheme' );
	if ( ! empty( $tourimo_scheme ) && ! tourimo_is_inherit( $tourimo_scheme ) ) {
		echo ' scheme_' . esc_attr( $tourimo_scheme );
	}
	echo ' front_page_section_paddings_' . esc_attr( tourimo_get_theme_option( 'front_page_about_paddings' ) );
	if ( tourimo_get_theme_option( 'front_page_about_stack' ) ) {
		echo ' sc_stack_section_on';
	}
?>"
		<?php
		$tourimo_css      = '';
		$tourimo_bg_image = tourimo_get_theme_option( 'front_page_about_bg_image' );
		if ( ! empty( $tourimo_bg_image ) ) {
			$tourimo_css .= 'background-image: url(' . esc_url( tourimo_get_attachment_url( $tourimo_bg_image ) ) . ');';
		}
		if ( ! empty( $tourimo_css ) ) {
			echo ' style="' . esc_attr( $tourimo_css ) . '"';
		}
		?>
>
<?php
	// Add anchor
	$tourimo_anchor_icon = tourimo_get_theme_option( 'front_page_about_anchor_icon' );
	$tourimo_anchor_text = tourimo_get_theme_option( 'front_page_about_anchor_text' );
if ( ( ! empty( $tourimo_anchor_icon ) || ! empty( $tourimo_anchor_text ) ) && shortcode_exists( 'trx_sc_anchor' ) ) {
	echo do_shortcode(
		'[trx_sc_anchor id="front_page_section_about"'
									. ( ! empty( $tourimo_anchor_icon ) ? ' icon="' . esc_attr( $tourimo_anchor_icon ) . '"' : '' )
									. ( ! empty( $tourimo_anchor_text ) ? ' title="' . esc_attr( $tourimo_anchor_text ) . '"' : '' )
									. ']'
	);
}
?>
	<div class="front_page_section_inner front_page_section_about_inner
	<?php
	if ( tourimo_get_theme_option( 'front_page_about_fullheight' ) ) {
		echo ' tourimo-full-height sc_layouts_flex sc_layouts_columns_middle';
	}
	?>
			"
			<?php
			$tourimo_css           = '';
			$tourimo_bg_mask       = tourimo_get_theme_option( 'front_page_about_bg_mask' );
			$tourimo_bg_color_type = tourimo_get_theme_option( 'front_page_about_bg_color_type' );
			if ( 'custom' == $tourimo_bg_color_type ) {
				$tourimo_bg_color = tourimo_get_theme_option( 'front_page_about_bg_color' );
			} elseif ( 'scheme_bg_color' == $tourimo_bg_color_type ) {
				$tourimo_bg_color = tourimo_get_scheme_color( 'bg_color', $tourimo_scheme );
			} else {
				$tourimo_bg_color = '';
			}
			if ( ! empty( $tourimo_bg_color ) && $tourimo_bg_mask > 0 ) {
				$tourimo_css .= 'background-color: ' . esc_attr(
					1 == $tourimo_bg_mask ? $tourimo_bg_color : tourimo_hex2rgba( $tourimo_bg_color, $tourimo_bg_mask )
				) . ';';
			}
			if ( ! empty( $tourimo_css ) ) {
				echo ' style="' . esc_attr( $tourimo_css ) . '"';
			}
			?>
	>
		<div class="front_page_section_content_wrap front_page_section_about_content_wrap content_wrap">
			<?php
			// Caption
			$tourimo_caption = tourimo_get_theme_option( 'front_page_about_caption' );
			if ( ! empty( $tourimo_caption ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
				?>
				<h2 class="front_page_section_caption front_page_section_about_caption front_page_block_<?php echo ! empty( $tourimo_caption ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( $tourimo_caption, 'tourimo_kses_content' ); ?></h2>
				<?php
			}

			// Description (text)
			$tourimo_description = tourimo_get_theme_option( 'front_page_about_description' );
			if ( ! empty( $tourimo_description ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
				?>
				<div class="front_page_section_description front_page_section_about_description front_page_block_<?php echo ! empty( $tourimo_description ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( wpautop( $tourimo_description ), 'tourimo_kses_content' ); ?></div>
				<?php
			}

			// Content
			$tourimo_content = tourimo_get_theme_option( 'front_page_about_content' );
			if ( ! empty( $tourimo_content ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
				?>
				<div class="front_page_section_content front_page_section_about_content front_page_block_<?php echo ! empty( $tourimo_content ) ? 'filled' : 'empty'; ?>">
					<?php
					$tourimo_page_content_mask = '%%CONTENT%%';
					if ( strpos( $tourimo_content, $tourimo_page_content_mask ) !== false ) {
						$tourimo_content = preg_replace(
							'/(\<p\>\s*)?' . $tourimo_page_content_mask . '(\s*\<\/p\>)/i',
							sprintf(
								'<div class="front_page_section_about_source">%s</div>',
								apply_filters( 'the_content', get_the_content() )
							),
							$tourimo_content
						);
					}
					tourimo_show_layout( $tourimo_content );
					?>
				</div>
				<?php
			}
			?>
		</div>
	</div>
</div>
