Commit 26e27497 by rajshah Committed by Arjun Jhukal

done main content single case study

parent fb38319f
......@@ -3,7 +3,7 @@
$case_study_content = get_field('case_study_content') ?: [];
if (!empty($case_study_content) && isset($case_study_content) && is_array($case_study_content)):
?>
<section class="case-study-general makura-new">
<section class="case-study-general makura-new">
<div class="container">
<div class="row">
<div class="col-lg-4 col-xl-3">
......@@ -20,7 +20,8 @@ if (!empty($case_study_content) && isset($case_study_content) && is_array($case_
if (!empty($case_study_content_title)):
?>
<li class="<?php echo esc_attr($i === 0) ? 'active' : ''; ?>">
<a href="#" data-target="<?php echo esc_attr($case_study_content_title_id); ?>"><?php echo esc_html($case_study_content_title); ?></a>
<a href="#"
data-target="<?php echo esc_attr($case_study_content_title_id); ?>"><?php echo esc_html($case_study_content_title); ?></a>
</li>
<?php endif;
endforeach; ?>
......@@ -37,7 +38,8 @@ if (!empty($case_study_content) && isset($case_study_content) && is_array($case_
$case_study_content_title_id = str_replace(' ', '-', strtolower($case_study_content_title));
if (!empty($case_study_content_title)):
?>
<h2 id="<?php echo esc_attr($case_study_content_title_id); ?>"><?php echo esc_html($case_study_content_title); ?></h2>
<h2 id="<?php echo esc_attr($case_study_content_title_id); ?>">
<?php echo esc_html($case_study_content_title); ?></h2>
<?php endif;
if (!empty($case_study_content_desc)): echo $case_study_content_desc;
endif; ?>
......@@ -46,6 +48,6 @@ if (!empty($case_study_content) && isset($case_study_content) && is_array($case_
</div>
</div>
</div>
</section>
</section>
<?php endif; ?>
<!-- !Case Study Content -->
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment