/home/awneajlw/public_html/decenttraders.online/wp-content/themes/minimalin/single-service.php
<?php get_header();
$data = \MINIMALIN\Includes\Classes\Common::instance()->data('single-service')->get();
$layout = $data->get('layout');
$sidebar = $data->get('sidebar');
$layout = ($layout) ? $layout : 'right';
$sidebar = ($sidebar) ? $sidebar : 'default-sidebar';
if (is_active_sidebar($sidebar)) {
$layout = 'right';
} else {
$layout = 'full';
}
$class = (!$layout || $layout == 'full') ? 'col-xl-12 col-lg-12 content-side' : 'col-xl-8 order11';
$options = minimalin_WSH()->option();
do_action('minimalin_banner', $data);
$allowed_tags = wp_kses_allowed_html('post');
?>
<!--Start Solution Detail Page -->
<section class="servicer-single-page">
<div class="container">
<div class="row">
<?php if( $data->get( 'layout' ) == 'left' ): ?>
<!--Start Sidebar-->
<div class="col-xl-4 order22 <?php if ( $data->get( 'layout' ) == 'left' ) echo 'left-sidebar'; elseif ( $data->get( 'layout' ) == 'right' ) echo 'right-sidebar'; ?>">
<div class="servicer-single-page-sideber">
<?php dynamic_sidebar( $sidebar ); ?>
</div>
</div>
<?php endif; ?>
<?php
while (have_posts()) : the_post();
$service_detail_image = get_post_meta( get_the_id(), 'service_detail_image', true );
?>
<div class="<?php echo esc_attr( $class ); ?> content-side">
<div class="servicer-single-page-content">
<div class="intro-box">
<?php if( isset( $service_detail_image ) ){?>
<div class="img-box">
<img src="<?php echo wp_get_attachment_url($service_detail_image['id']);?>" alt="<?php bloginfo( 'name' ); ?>" />
</div>
<?php } ?>
<?php the_content(); ?>
</div>
<div class="what-we-offer">
<?php if(get_post_meta( get_the_id(), 'offer_title', true)); { ?>
<div class="inner-title">
<h3><?php echo (get_post_meta( get_the_id(), 'offer_title', true ));?></h3>
</div>
<?php } ?>
<div class="what-we-offer-content">
<?php if(get_post_meta( get_the_id(), 'offer_text', true)); { ?>
<div class="text">
<p><?php echo (get_post_meta( get_the_id(), 'offer_text', true ));?></p>
</div>
<?php } ?>
<?php
$icons = get_post_meta(get_the_id(), 'offer_section', true); if ($icons) :
?>
<div class="what-we-offer__inner">
<div class="row">
<?php
$countss=1;
for ( $i=0; $i < count( $icons['advantages_title2'] ); $i++ ) {
$advantages_title2 = ( isset( $icons['advantages_title2'][$i] ) && !empty( $icons['advantages_title2'][$i] ) ) ? $icons['advantages_title2'][$i] : '';
$advantages_text2 = ( isset( $icons['advantages_text2'][$i] ) && !empty( $icons['advantages_text2'][$i] ) ) ? $icons['advantages_text2'][$i] : '';
$features_list = ( isset( $icons['features_list'][$i] ) && !empty( $icons['features_list'][$i] ) ) ? $icons['features_list'][$i] : '';
?>
<div class="col-xl-6 col-lg-6">
<div class="what-we-offer__single">
<div class="title-box">
<h3><span><?php $countss = sprintf('%02d', $countss); echo $countss; ?>.</span><?php echo wp_kses($advantages_title2, true); ?></h3>
</div>
<div class="list-item">
<div class="text">
<p><?php echo wp_kses($advantages_text2, true); ?></p>
</div>
<?php $features_list = $features_list;
if(!empty($features_list)){
$features_list = explode("\n", ($features_list));
?>
<ul class="clearfix">
<?php foreach($features_list as $features): ?>
<li>
<div class="icon">
<i class="icon-check-mark"></i>
</div>
<p><?php echo wp_kses($features, true); ?></p>
</li>
<?php endforeach; ?>
</ul>
<?php } ?>
</div>
</div>
</div>
<?php $countss++; } ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
<div class="features-box">
<?php if(get_post_meta( get_the_id(), 'feature_title', true)); { ?>
<div class="inner-title">
<h3><?php echo (get_post_meta( get_the_id(), 'feature_title', true ));?></h3>
</div>
<?php } ?>
<?php if(get_post_meta( get_the_id(), 'feature_text', true)); { ?>
<div class="text">
<p><?php echo (get_post_meta( get_the_id(), 'feature_text', true ));?></p>
</div>
<?php } ?>
<?php
$icons = get_post_meta(get_the_id(), 'highlights_tabs', true); if ($icons) :
?>
<div class="features-box__tab">
<div class="features-box__tab-btn">
<ul class="tabs-button-box clearfix">
<?php
$countss=1;
for ( $i=0; $i < count( $icons['highlight_title'] ); $i++ ) {
$highlight_title = ( isset( $icons['highlight_title'][$i] ) && !empty( $icons['highlight_title'][$i] ) ) ? $icons['highlight_title'][$i] : '';
?>
<li data-tab="#<?php echo esc_attr($countss);?>" class="tab-btn-item <?php if($countss == 1) echo 'active-btn-item';?>">
<i class="icon-arrow-upper-right"></i>
<h5><?php echo wp_kses($highlight_title, true); ?></h5>
</li>
<?php $countss++; } ?>
</ul>
</div>
<div class="tabs-content-box">
<div class="features-box__shape">
</div>
<?php
$countss=1;
for ( $i=0; $i < count( $icons['highlight_text'] ); $i++ ) {
$highlight_text = ( isset( $icons['highlight_text'][$i] ) && !empty( $icons['highlight_text'][$i] ) ) ? $icons['highlight_text'][$i] : '';
$highlight_icon_image = ( isset( $icons['highlight_icon_image'][$i] ) && !empty( $icons['highlight_icon_image'][$i] ) ) ? $icons['highlight_icon_image'][$i] : '';
$highlight_text2 = ( isset( $icons['highlight_text2'][$i] ) && !empty( $icons['highlight_text2'][$i] ) ) ? $icons['highlight_text2'][$i] : '';
$highlight_icon_image2 = ( isset( $icons['highlight_icon_image2'][$i] ) && !empty( $icons['highlight_icon_image2'][$i] ) ) ? $icons['highlight_icon_image2'][$i] : '';
?>
<!-- Start Tab Box -->
<div class="tab-content-box-item <?php if($countss == 1) echo 'tab-content-box-item-active';?>" id="<?php echo esc_attr($countss);?>">
<div class="features-box__content-tab-item">
<div class="owl-carousel owl-theme thm-owl__carousel features-box-carousel owl-nav-style-one"
data-owl-options='{
"loop": true,
"autoplay": false,
"margin": 0,
"nav": true,
"dots": false,
"smartSpeed": 500,
"autoplayTimeout": 10000,
"navText": ["<span class=\"left icon-arrow-right\"></span>","<span class=\"icon-arrow-right\"></span>"],
"responsive": {
"0": {
"items": 1
},
"768": {
"items": 1
},
"992": {
"items": 1
},
"1200": {
"items": 1
}
}
}'>
<!--Start Single Box-->
<div class="single-box">
<div class="features-box__content-tab-item__inner">
<div class="features-box__img">
<img src="<?php echo wp_get_attachment_url($highlight_icon_image['id']);?>" alt="<?php bloginfo( 'name' ); ?>">
</div>
<div class="text-box">
<p><?php echo wp_kses($highlight_text, true); ?></p>
</div>
</div>
</div>
<!--End Single Box-->
<!--Start Single Box-->
<div class="single-box">
<div class="features-box__content-tab-item__inner">
<div class="features-box__img">
<img src="<?php echo wp_get_attachment_url($highlight_icon_image2['id']);?>" alt="<?php bloginfo( 'name' ); ?>">
</div>
<div class="text-box">
<p><?php echo wp_kses($highlight_text2, true); ?></p>
</div>
</div>
</div>
<!--End Single Box-->
</div>
</div>
</div>
<!-- End Tab Box -->
<?php $countss++; } ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="why-choose-style1__content why-choose-style1__content--1">
<?php if(get_post_meta( get_the_id(), 'choose_title', true)); { ?>
<div class="title-box">
<h3><?php echo (get_post_meta( get_the_id(), 'choose_title', true ));?></h3>
</div>
<?php } ?>
<?php
$icons = get_post_meta(get_the_id(), 'advantages_tabs', true); if ($icons) :
?>
<div class="row">
<?php
$countss=1;
for ( $i=0; $i < count( $icons['advantages_title'] ); $i++ ) {
$advantages_title = ( isset( $icons['advantages_title'][$i] ) && !empty( $icons['advantages_title'][$i] ) ) ? $icons['advantages_title'][$i] : '';
$advantages_text = ( isset( $icons['advantages_text'][$i] ) && !empty( $icons['advantages_text'][$i] ) ) ? $icons['advantages_text'][$i] : '';
$select_social_media2 = ( isset( $icons['select_social_media2'][$i] ) && !empty( $icons['select_social_media2'][$i] ) ) ? $icons['select_social_media2'][$i] : '';
$advantages_btn_link = ( isset( $icons['advantages_btn_link'][$i] ) && !empty( $icons['advantages_btn_link'][$i] ) ) ? $icons['advantages_btn_link'][$i] : '';
?>
<!--Start Single Why Choose Style1-->
<div class="col-xl-6 col-lg-6">
<div class="why-choose-style1-single">
<div class="top">
<div class="left">
<div class="title-box">
<div class="shape">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/shapes/zikjak.png" alt="<?php bloginfo( 'name' ); ?>">
</div>
<h3><a href="<?php echo esc_url($advantages_btn_link); ?>"><?php echo wp_kses($advantages_title, true); ?></a></h3>
</div>
</div>
<div class="right">
<div class="icon-box">
<span class="<?php echo esc_attr(str_replace("", " ", $select_social_media2)); ?>
">
</div>
</div>
</div>
<div class="bottom">
<div class="text">
<p><?php echo wp_kses($advantages_text, true); ?></p>
</div>
</div>
</div>
</div>
<!--End Single Why Choose Style1-->
<?php $countss++; } ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php if( $data->get( 'layout' ) == 'right' ): ?>
<!--Start Sidebar-->
<div class="col-xl-4 order22 <?php if ( $data->get( 'layout' ) == 'left' ) echo 'left-sidebar'; elseif ( $data->get( 'layout' ) == 'right' ) echo 'right-sidebar'; ?>">
<div class="servicer-single-page-sideber">
<?php dynamic_sidebar( $sidebar ); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</section>
<!-- service-details end -->
<?php get_footer(); ?>