Commit d25735ad by rajshah

added enabler to show the postfolio listing

parent a1176156
<?php if (get_field('enable_section')) : <?php
$terms = get_terms('portfolio-category'); $portfolio_listing = get_field('portfolio_listing') ?: [];
if ($terms) : if (is_array($portfolio_listing) && !empty($portfolio_listing) && isset($portfolio_listing)):
$enable_portfolio_listing = $portfolio_listing['enable_portfolio_listing'] ?? '';
if ($enable_portfolio_listing && !empty($enable_portfolio_listing) && isset($enable_portfolio_listing)):
$terms = get_terms('portfolio-category');
?> ?>
<section class="case-study-filter background-dark mb-60 ABOUT TOP-BANNER-SECTION"> <section class="case-study-filter background-dark mb-60 ABOUT TOP-BANNER-SECTION">
<div class="container"> <div class="container">
...@@ -102,4 +105,5 @@ ...@@ -102,4 +105,5 @@
</div> </div>
</section> </section>
<?php endif; <?php endif;
endif; ?> endif;
\ No newline at end of file ?>
\ 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