File: /var/www/html/studio/wp-content/themes/kulan/single-projects.php
<?php
/**
* The template for displaying single project
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package kulan
*/
get_header();
if ( class_exists('ACF') ) {
$hide_page_banner = get_field('hide_page_banner');
$banner_title = get_field('banner_title');
$banner_image = get_field('banner_image');
}else{
$hide_page_banner = $banner_title = $banner_image = '';
}
if( !$banner_title){
$banner_title = get_the_title();
}
if($hide_page_banner == false):
?>
<!-- Start page header -->
<section class="page__header position-relative">
<div class="container">
<div class="text-center" >
<div class="d-inline-flex justify-content-center gap-2 transprent__btn">
<?php kulan_breadcrumb_trail(); ?>
</div>
<h2 class="t__40"><?php echo esc_html($banner_title); ?></h2>
</div>
</div>
</section>
<!-- End page header -->
<?php
endif;
// Member Information
if ( class_exists('ACF') ) {
$single_page_shape_image_1_ = get_field('single_page_shape_image_1_');
$single_page_shape_image_2_ = get_field('single_page_shape_image_2_');
$card_info_header = get_field('card_info_header');
$card_info_title_1 = get_field('card_info_title_1');
$card_info_content_1 = get_field('card_info_content_1');
$card_info_title_2 = get_field('card_info_title_2');
$card_info_content_2 = get_field('card_info_content_2');
$card_info_title_3 = get_field('card_info_title_3');
$card_info_content_3 = get_field('card_info_content_3');
$card_info_title_4 = get_field('card_info_title_4');
$card_info_content_4 = get_field('card_info_content_4');
$card_info_title_5 = get_field('card_info_title_5');
$card_info_content_5 = get_field('card_info_content_5');
$card_info_content_6 = get_field('card_info_content_6');
$project_top_title = get_field('project_top_title');
$project_title = get_field('project_title');
$project_content_1 = get_field('project_content_1');
$project_content_2 = get_field('project_content_2');
$project_content_3 = get_field('project_content_3');
$project_content_4 = get_field('project_content_4');
$project_inner_title = get_field('project_inner_title');
$bullet_image_1 = get_field('bullet_image_1');
$project_inner_content_1 = get_field('project_inner_content_1');
$bullet_image_2 = get_field('bullet_image_2');
$project_inner_content_2 = get_field('project_inner_content_2');
$button_title = get_field('button_title');
$button_url = get_field('button_url');
$our_process__top_title = get_field('our_process__top_title');
$our_process__title = get_field('our_process__title');
$our_process__section_image = get_field('our_process__section_image');
$our_process__shape_image = get_field('our_process__shape_image');
$our_process__description_field__number_1 = get_field('our_process__description_field__number_1');
$our_process__description_field__title_1 = get_field('our_process__description_field__title_1');
$our_process__description_field__content_1 = get_field('our_process__description_field__content_1');
$our_process__description_field__number_2 = get_field('our_process__description_field__number_2');
$our_process__description_field__title_2 = get_field('our_process__description_field__title_2');
$our_process__description_field__content_2 = get_field('our_process__description_field__content_2');
$our_process__description_field__number_3 = get_field('our_process__description_field__number_3');
$our_process__description_field__title_3 = get_field('our_process__description_field__title_3');
$our_process__description_field__content_3 = get_field('our_process__description_field__content_3');
$our_process__description_field__number_4 = get_field('our_process__description_field__number_4');
$our_process__description_field__title_4 = get_field('our_process__description_field__title_4');
$our_process__description_field__content_4 = get_field('our_process__description_field__content_4');
}else{
$single_page_shape_image_1_ = $single_page_shape_image_2_ = $card_info_header = $card_info_title_1 = $card_info_content_1 = $card_info_title_2 = $card_info_content_2 = $card_info_title_3 = $card_info_content_3 = $card_info_title_4 = $card_info_content_4 = $card_info_title_5 = $card_info_content_5 = $card_info_content_6 = $project_top_title = $project_title = $project_content_1 = $project_content_2 = $project_content_3 = $project_content_4 = $project_inner_title = $bullet_image_1 = $project_inner_content_1 = $bullet_image_2 = $project_inner_content_2 = $button_title = $button_url = $our_process__top_title = $our_process__title = $our_process__section_image = $our_process__shape_image = $our_process__description_field__number_1 = $our_process__description_field__title_1 = $our_process__description_field__content_1 = $our_process__description_field__number_2 = $our_process__description_field__title_2 = $our_process__description_field__content_2 = $our_process__description_field__number_3 = $our_process__description_field__title_3 = $our_process__description_field__content_3 = $our_process__description_field__number_4 = $our_process__description_field__title_4 = $our_process__description_field__content_4 = '';
}
?>
<!-- project details start -->
<section class="project__details py__130">
<div class="wrapper">
<div class="container">
<div class="first__para">
<div class="position-relative">
<?php if(has_post_thumbnail()): ?>
<img src="<?php the_post_thumbnail_url() ?>" alt="<?php the_title_attribute(); ?>" class="w-100 thumb__img" >
<?php endif; ?>
<?php if($card_info_header): ?>
<div class="info">
<h3 class="t__22"><?php echo esc_html($card_info_header); ?></h3>
<ul class="pt__30">
<li> <p><?php echo esc_html($card_info_title_1); ?></p> <span><?php echo esc_html($card_info_content_1); ?></span> </li>
<li> <p><?php echo esc_html($card_info_title_2); ?></p> <span><?php echo esc_html($card_info_content_2); ?></span> </li>
<li> <p><?php echo esc_html($card_info_title_3); ?></p> <span><?php echo esc_html($card_info_content_3); ?></span> </li>
<li> <p><?php echo esc_html($card_info_title_4); ?></p> <span><?php echo esc_html($card_info_content_4); ?></span> </li>
<li> <p><?php echo esc_html($card_info_title_5); ?></p> <span><?php echo esc_html($card_info_content_5); ?> <br> <?php echo esc_html($card_info_content_6); ?></span> </li>
</ul>
</div>
<?php endif; ?>
</div>
<div class="pt__40">
<?php if($project_top_title):?>
<p class="transparent__btn"><?php echo esc_html($project_top_title); ?></p>
<?php endif;?>
<h4 class="t__40 pt__30"><?php echo esc_html($project_title); ?></h4>
</div>
<?php if($project_content_1):?>
<p class="pt__35">
<?php echo wp_kses($project_content_1, 'kulan_kses_allowed_html');?>
</p>
<?php endif;?>
<?php if($project_content_2):?>
<p class="pt__35">
<?php echo wp_kses($project_content_2, 'kulan_kses_allowed_html');?>
</p>
<?php endif;?>
<?php if($project_content_3):?>
<p class="pt__35">
<?php echo wp_kses($project_content_3, 'kulan_kses_allowed_html');?>
</p>
<?php endif;?>
<?php if($project_content_4):?>
<p class="pt__35">
<?php echo wp_kses($project_content_4, 'kulan_kses_allowed_html');?>
</p>
<?php endif;?>
</div>
<div class="second__para pt__35">
<h3 class="t__22"><?php echo esc_html($project_inner_title); ?></h3>
<ul>
<li>
<?php if($bullet_image_1):?>
<img src="<?php echo esc_url($bullet_image_1); ?>" alt="<?php esc_attr_e('Bullet Image','kulan');?>">
<?php endif;?>
<p><?php echo wp_kses($project_inner_content_1, 'kulan_kses_allowed_html');?></p>
</li>
<li>
<?php if($bullet_image_2):?>
<img src="<?php echo esc_url($bullet_image_2); ?>" alt="<?php esc_attr_e('Bullet Image','kulan');?>">
<?php endif;?>
<p><?php echo wp_kses($project_inner_content_2, 'kulan_kses_allowed_html');?></p>
</li>
</ul>
</div>
<?php if( $button_url ): ?>
<div class="view__project__link">
<a href="<?php echo esc_attr($button_url); ?>" target="_blank"><?php echo esc_html( $button_title ); ?> <i class="ti-arrow-top-right"></i></a>
</div>
<?php endif; ?>
</div>
</div>
<div>
<?php if($single_page_shape_image_1_):?>
<img src="<?php echo esc_url($single_page_shape_image_1_);?>" alt="<?php esc_attr_e('Shape Image','kulan');?>" class="rat__shap">
<?php endif;?>
<?php if($single_page_shape_image_2_):?>
<img src="<?php echo esc_url($single_page_shape_image_2_);?>" alt="<?php esc_attr_e('Shape Image','kulan');?>" class="dots__shap">
<?php endif;?>
</div>
</section>
<!-- Project details end -->
<!-- Start Work Process -->
<section class="work_process work_process_3 py__130">
<div class="container">
<div class="wrapper">
<div>
<div class="title__area">
<?php if($our_process__top_title):?>
<div class="transparent__btn"><?php echo esc_html($our_process__top_title); ?></div>
<?php endif;?>
<h2 class="t__40 pt__30"> <?php echo esc_html($our_process__title); ?></h2>
</div>
<?php if($our_process__section_image):?>
<img src="<?php echo esc_url($our_process__section_image);?>" alt="<?php echo esc_attr($our_process__title); ?>" class="bg__img">
<?php endif;?>
</div>
<div>
<ul>
<li>
<h3 class="t__22 d-flex align-items-center gap-3"><span class="no"><?php echo esc_html($our_process__description_field__number_1); ?></span><span><?php echo esc_html($our_process__description_field__title_1); ?></span></h3>
<p><?php echo wp_kses($our_process__description_field__content_1, 'kulan_kses_allowed_html');?></p>
</li>
<li>
<h3 class="t__22 d-flex align-items-center gap-3"><span class="no"><?php echo esc_html($our_process__description_field__number_2); ?></span><span><?php echo esc_html($our_process__description_field__title_2); ?></span></h3>
<p><?php echo wp_kses($our_process__description_field__content_2, 'kulan_kses_allowed_html');?></p>
</li>
<li>
<h3 class="t__22 d-flex align-items-center gap-3"><span class="no"><?php echo esc_html($our_process__description_field__number_3); ?></span><span><?php echo esc_html($our_process__description_field__title_3); ?></span></h3>
<p><?php echo wp_kses($our_process__description_field__content_3, 'kulan_kses_allowed_html');?></p>
</li>
<li>
<h3 class="t__22 d-flex align-items-center gap-3"><span class="no"><?php echo esc_html($our_process__description_field__number_4); ?></span><span><?php echo esc_html($our_process__description_field__title_4); ?></span></h3>
<p><?php echo wp_kses($our_process__description_field__content_4, 'kulan_kses_allowed_html');?></p>
</li>
</ul>
</div>
</div>
</div>
<div>
<?php if($our_process__shape_image):?>
<img src="<?php echo esc_url($our_process__shape_image);?>" alt="<?php esc_attr_e('Shape Image','kulan');?>" class="dots__shap">
<?php endif;?>
</div>
</section>
<!-- End Work Process -->
<?php
get_footer();