Commit 304f7b83 by Arjun Jhukal

updated the new widget

parent ccd15d70
This source diff could not be displayed because it is too large. You can view the blob instead.
<?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>
<div class="button-wrapper"> <div class="button-wrapper">
<a href="<?php echo get_field('wb_button_link') ?>" <a href="<?php echo get_field('wb_button_link') ?>"
class="btn btn-start-project btn-primary"><?php echo get_field('wb_button_text') ?></a> class="btn btn-start-project btn-primary"><?php echo get_field('wb_button_text') ?></a>
</div> </div>
<?php <?php
$review_widget = get_field('review_widget') ?: []; $review_widget = get_field('review_widget') ?: [];
if (isset($review_widget) && is_array($review_widget) && !empty($review_widget)) : if (isset($review_widget) && is_array($review_widget) && !empty($review_widget)) :
$enable_review_widget = $review_widget['enable_review_widget'] ?: ''; $enable_review_widget = $review_widget['enable_review_widget'] ?: '';
...@@ -19,34 +19,34 @@ ...@@ -19,34 +19,34 @@
$review_items = $review_widget['widget_items'] ?: ''; $review_items = $review_widget['widget_items'] ?: '';
if (isset($review_items) && is_array($review_items) && !empty($review_items)) : if (isset($review_items) && is_array($review_items) && !empty($review_items)) :
?> ?>
<div class="review-block d-flex"> <div class="review-block d-flex">
<?php foreach ($review_items as $i => $item): <?php foreach ($review_items as $i => $item):
$widget = $item['widget'] ?? ''; $widget = $item['widget'] ?? '';
if (empty($widget)) continue; if (empty($widget)) continue;
if ($i === 1) { if ($i === 1) {
$widget = do_shortcode($widget); $widget = do_shortcode($widget);
}; };
?> ?>
<div class="review bg-white rounded-2"> <div class="reviewd d-flex align-items-center bg-white rounded-2">
<?php echo $widget; ?> <?php echo $widget; ?>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; <?php endif;
endif; endif;
endif; ?> endif; ?>
</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>
</section> </div>
</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
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
&:hover { &:hover {
background-color: $white !important; background-color: $white !important;
color: $primary !important; color: $primary !important;
svg { svg {
path { path {
stroke: $primary; stroke: $primary;
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
.COMPARISON-FORM .section-title { .COMPARISON-FORM .section-title {
margin-bottom: 24px; margin-bottom: 24px;
} }
// &::before { // &::before {
// content: ""; // content: "";
// width: 18px; // width: 18px;
...@@ -35,6 +37,7 @@ ...@@ -35,6 +37,7 @@
margin-right: 12px; margin-right: 12px;
} }
} }
h1 { h1 {
color: $white; color: $white;
} }
...@@ -47,3 +50,32 @@ ...@@ -47,3 +50,32 @@
} }
} }
} }
.ti-widget-container {
margin-top: 0 !important;
}
.ti-footer {
box-shadow: none !important;
padding: 0 !important;
.ti-fade-container {
.ti-large-logo {
height: unset !important;
}
.ti-logo-fb {
max-width: 70px !important;
height: unset !important;
}
}
}
.TOP-BANNER-SECTION {
.ti-widget.ti-goog .ti-stars .ti-star {
max-width: 12px !important;
height: 12px !important;
}
}
\ 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