<?php
	$leatherhouse_about_area_disabled = get_theme_mod( 'leatherhouse_about_area_disabled', true );

if ( true === $leatherhouse_about_area_disabled ) {
	// Theme check
	$activate_theme_data = wp_get_theme(); // getting current theme data.
	$activate_theme      = $activate_theme_data->name;
	if ( 'Leather House' == $activate_theme ) {	
		$leatherhouse_about_area_title     = get_theme_mod( 'leatherhouse_about_area_title', 'Sink into the Luxury of Premium Leather Products' );
		$leatherhouse_about_area_des       = get_theme_mod( 'leatherhouse_about_area_des', 'Experience the ultimate in comfort. Our showcase highlights pure leather goods, renowned for their unparalleled softness and luxurious feel.' );
		$leatherhouse_about_img_prime      = get_theme_mod( 'leatherhouse_about_img_prime', get_template_directory_uri() . '/assets/images/about-1.webp' );
		$leatherhouse_about_img_second     = get_theme_mod( 'leatherhouse_about_img_second', get_template_directory_uri() . '/assets/images/about-2.webp' );
		$leatherhouse_about_area_btn_title     = get_theme_mod( 'leatherhouse_about_area_btn_title', 'See all collections' );
		$leatherhouse_about_container_size = get_theme_mod( 'leatherhouse_about_container_size', 'container-fluid' );
	} elseif ( 'Modern House' == $activate_theme ) { 
		$leatherhouse_about_area_title     = get_theme_mod( 'leatherhouse_about_area_title', 'Experience the Beauty of Modern Home Design' );
		$leatherhouse_about_area_des       = get_theme_mod( 'leatherhouse_about_area_des', 'Our handpicked selection of modern homes blends sleek design with functional luxury. Elevate your lifestyle with spaces built to impress and endure.' );
		$leatherhouse_about_img_prime      = get_theme_mod( 'leatherhouse_about_img_prime', get_template_directory_uri() . '/assets/images/mh-about-1.webp' );
		$leatherhouse_about_img_second     = get_theme_mod( 'leatherhouse_about_img_second', get_template_directory_uri() . '/assets/images/mh-about-2.webp' );
		$leatherhouse_about_area_btn_title     = get_theme_mod( 'leatherhouse_about_area_btn_title', 'View all designs' );
		$leatherhouse_about_container_size = get_theme_mod( 'leatherhouse_about_container_size', 'container-fluid' );
	} elseif ( 'NewsCraft' == $activate_theme ) {	
		$leatherhouse_about_area_title     = get_theme_mod( 'leatherhouse_about_area_title', 'Where Creativity Meets Journalism' );
		$leatherhouse_about_area_des       = get_theme_mod( 'leatherhouse_about_area_des', 'NewsCraft blends style and storytelling with a touch of modern sophistication. Ideal for online magazines, lifestyle blogs, and digital publishers who care about design as much as content.' );
		$leatherhouse_about_img_prime      = get_theme_mod( 'leatherhouse_about_img_prime', get_template_directory_uri() . '/assets/images/ncs-about-1.webp' );
		$leatherhouse_about_img_second     = get_theme_mod( 'leatherhouse_about_img_second', get_template_directory_uri() . '/assets/images/ncs-about-2.webp' );
		$leatherhouse_about_area_btn_title     = get_theme_mod( 'leatherhouse_about_area_btn_title', 'Join Now' );
		$leatherhouse_about_container_size = get_theme_mod( 'leatherhouse_about_container_size', 'container-fluid' );
	}

	$leatherhouse_about_area_btn_link     = get_theme_mod( 'leatherhouse_about_area_btn_link', '#' );	
	$leatherhouse_about_editor_content = get_theme_mod( 'leatherhouse_about_editor_content' );
	$leatherhouse_about_content        = get_theme_mod( 'leatherhouse_about_content', LEATHERHOUSE_ABOUT_DEFAULT_CONTENT );
	?>	
	<section id="about-section" class="about-section av-py-default about-home shapes-section">
		<div class="<?php echo esc_attr( $leatherhouse_about_container_size ); ?>">
			<div class="av-columns-area">
				<?php if ( ! empty( $leatherhouse_about_img_prime ) ) : ?>
					<div class="av-column-8 mb-4 mb-av-0">
						<div class="about-content">
							<img class="about-main-img" src="<?php echo esc_url( $leatherhouse_about_img_prime ); ?>">
						</div>
					</div>
				<?php endif; ?>

				<!-- About Section -->
				<?php if ( empty( $leatherhouse_about_img_second ) ) : ?>
					<div class="av-column-12">
				<?php else : ?>
					<div class="av-column-3">
				<?php endif; ?>
					<div class="about-panel">
						<?php if ( ! empty( $leatherhouse_about_area_title ) ) : ?>
							<div class="heading-title">
								<div class="heading-default wow">
									<?php if ( ! empty( $leatherhouse_about_area_title ) ) : ?>
										<h3><?php echo wp_kses_post( $leatherhouse_about_area_title ); ?></h3>
									<?php endif; ?>
								</div>
							</div>
						<?php endif; ?>
						<?php if ( ! empty( $leatherhouse_about_area_des ) ) : ?>
							<p class="about-description"><?php echo wp_kses_post( $leatherhouse_about_area_des ); ?></p>
						<?php endif; ?>
						<?php if (!empty($leatherhouse_about_area_btn_title)) : ?>
							<a href="<?php echo esc_url($leatherhouse_about_area_btn_link); ?>" class="av-btn about-btn av-btn-primary">
								<?php echo esc_html($leatherhouse_about_area_btn_title); ?>
							</a>
						<?php endif; ?>
						<img class="about-secondry-img" src="<?php echo esc_url( $leatherhouse_about_img_second ); ?>">
						<?php if( !empty($leatherhouse_about_editor_content) ) { ?>
						<div class="about-wrapper">
							<div class="about-footer">
								<?php echo wp_kses_post( $leatherhouse_about_editor_content ); ?>
							</div>
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</section>
<?php } ?>
