Commit 0dd1fa9b by rajshah

widget added

parent 78825e64
<?php if (get_field('enable_welcome_banner_section')) : ?> <?php if (get_field('enable_welcome_banner_section')) : ?>
<section class="bg-secondary background-dark py-80 HOME TOP-BANNER-SECTION"> <section class="bg-secondary background-dark py-80 HOME TOP-BANNER-SECTION">
<div class="container"> <div class="container">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-lg-5 col-md-5 col-12 mx-auto left-text"> <div class="col-lg-5 col-md-5 col-12 mx-auto left-text">
<div class="position-relative left-text-wrapper"> <div class="position-relative left-text-wrapper">
<h1><?php echo get_field('wb_title') ?></h1> <h1><?php echo get_field('wb_title') ?></h1>
<p><?php echo get_field('wb_subtitle') ?></p> <p><?php echo get_field('wb_subtitle') ?></p>
</div>
<div class="button-wrapper">
<a href="<?php echo get_field('wb_button_link') ?>"
class="btn btn-start-project btn-primary"><?php echo get_field('wb_button_text') ?></a>
</div>
<div class="review-block d-flex">
<div class="review bg-white rounded-2">
<div class="clutch-widget" data-url="https://widget.clutch.co" data-widget-type="2"
data-height="45" data-nofollow="true" data-expandifr="true" data-scale="100"
data-clutchcompany-id="2395284"></div>
</div> </div>
<div class="review"> <div class="button-wrapper">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/banner-image-02.png" alt="" <a href="<?php echo get_field('wb_button_link') ?>"
class="img-fluid"> class="btn btn-start-project btn-primary"><?php echo get_field('wb_button_text') ?></a>
</div> </div>
<?php
$review_widget = get_field('review_widget') ?: [];
if (isset($review_widget) && is_array($review_widget) && !empty($review_widget)) :
$enable_review_widget = $review_widget['enable_review_widget'] ?: '';
if (!empty($enable_review_widget) && isset($enable_review_widget) && $enable_review_widget) :
$review_items = $review_widget['widget_items'] ?: '';
if (isset($review_items) && is_array($review_items) && !empty($review_items)) :
?>
<div class="review-block d-flex">
<?php foreach ($review_items as $i => $item):
$widget = $item['widget'] ?? '';
if (empty($widget)) continue;
if($i === 1) {
$widget = do_shortcode($widget);
};
?>
<div class="review bg-white rounded-2">
<?php echo $widget; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif;
endif;
endif; ?>
</div> </div>
</div> <div class="col-lg-6 col-md-6 col-12 mx-auto">
<div class="col-lg-6 col-md-6 col-12 mx-auto"> <?php
<?php
$image = get_field('banner_image'); $image = get_field('banner_image');
$size = 'full'; // (thumbnail, medium, large, full or custom size) $size = 'full'; // (thumbnail, medium, large, full or custom size)
if ($image) { if ($image) {
echo wp_get_attachment_image($image, $size); echo wp_get_attachment_image($image, $size);
} ?> } ?>
</div>
</div> </div>
</div> </div>
</div> </section>
</section>
<?php endif; ?> <?php endif; ?>
<script type="text/javascript" src="https://widget.clutch.co/static/js/widget.js"></script> <script type="text/javascript" src="https://widget.clutch.co/static/js/widget.js"></script>
\ 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