index.php 5.6 KB
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<?php get_header();?>
<section class="web_main index_main">
  <!-- banner -->
  <div class="slider_banner">
    <div class="swiper-wrapper">
      <?php $images = get_get_field('ad_index_banner'); if( $images ): foreach( $images as $image ): ?>
      <div class="swiper-slide"> <a href="<?php echo $image['alt']; ?>"> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>"/></a></div>
      <?php endforeach; endif; ?>
    </div>
    <div class="swiper-pagination swiper-pagination-white"></div>
    <div class="swiper-button-next swiper-button-white"></div>
    <div class="swiper-button-prev swiper-button-white"></div>
  </div>
  <section class="company_business_container layout">
      <div class="index_title">
        <h2 class="wow fadeInUpA  title">service</h2>
      </div>
      <ul class="business_items">
      <?php $i=1; $images = get_get_field('ad_ico01'); if( $images ): foreach( $images as $image ): ?>
        <li class="business_item wow fadeInLeftA">
          <figure> <span class="item_img"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>"></span>
            <figcaption> <a href="<?php echo $image['alt']; ?>" class="business_title"><?php echo $image['title']; ?></a>
              <div class="business_text"><?php echo $image['description']; ?></div>
            </figcaption>
          </figure>
        </li>
        <?php  $i++; endforeach; endif; ?>
      </ul>
    </section>
    <section class="index_about_wrap" style="background-image:url(<?php echo home_url("/"); ?>style/global/img/demo/about_bg.jpg)">
      <div class="layout">
        <div class="about_info wow fadeInUpA">
          <div class="index_title">
            <h2 class="title">about us</h2>
          </div>
          <div class="about_detail" data-wow-delay=".1s"><?php get_the_field('about_text'); ?> </div> <a href="" class="about_btn">view more</a> </div>
      </div>
    </section>
  <section class="index_service_intr">
      <div class="layout">
        <div class="index_inner">
          <ul class="service_items">
            <li class="wow fadeInLeftA service_item" data-wow-delay=".4s">
              <h3 class="item_title">2023</h3>
              <span class="item_text">Year Established</span> </li>
            <li class="wow fadeInLeftA service_item" data-wow-delay=".3s">
              <h3 class="item_title">206</h3>
              <span class="item_text">projects completed</span> </li>
            <li class="wow fadeInLeftA service_item" data-wow-delay=".2s">
              <h3 class="item_title">870</h3>
              <span class="item_text">contractors appointed</span> </li>
            <li class="wow fadeInLeftA service_item" data-wow-delay=".1s">
              <h3 class="item_title">26</h3>
              <span class="item_text">Awards Won</span>
            </li>
          </ul>
        </div>
      </div>
    </section>
    <section class="index_products layout">
      <div class="index_title">
        <h2 class="wow fadeInUpA title">products</h2>
      </div>
      <ul class="product_items">
      <?php $args = array('showposts' => 12, 'post_type' => 'post', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'special','value' => 'Feature Products','compare' => 'LIKE')));

$the_query = new WP_Query( $args );$i=1; if( $the_query->have_posts() ): while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
              <li class="wow fadeInUpA product_item" data-wow-delay="<?php if($i==1) : ?>0<?php else: ?>.<?php echo $i-1; ?>s<?php endif; ?>">
                <figure> 
                  <div class="item_img">
                    <img src="<?php $images = get_field('product_gallery'); if( $images ): for($x=0;$x<1; $x++){ ?><?php echo $images[0]['sizes']['thumbnail']; ?><?php } endif; ?>" alt="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>"/><a href="<?php the_permalink() ?>" class="img_shadow"></a></div>
                  <figcaption>
                     <h3 class="item_title"><a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 50,"..."); ?></a></h3>
                     <a  href="<?php the_permalink() ?>" class="product_btn">read more</a> 
                  </figcaption>
                </figure>
              </li>
         <?php $i++; endwhile; endif;  wp_reset_query(); ?>  
        
      </ul>
    </section>
    <section class="company_subscribe" style="background-image:url(<?php echo home_url("/"); ?>style/global/img/demo/xunpan_bg.jpg)">
      <div class="layout">
        <h2 class="wow fadeInLeftA title">For inquiries about our products or pricelist
          Please leave your email to us and we will be in touch within 24 hours.</h2>
        <a href="javascript:" class=" wow fadeInRightA button">inquiry for pricelist</a> </div>
    </section>
    <section class="index_client_wrap">
      <div class="layout">
        <div class="index_title">
          <h2 class="wow fadeInUpA  title">client</h2>
        </div>
        <ul class="client_items">
          <li class="wow fadeInLeftA"><img src="template/img/demo/client01.png" /></li>
          <li class="wow fadeInLeftA"><img src="template/img/demo/client02.png" /></li>
          <li class="wow fadeInLeftA"><img src="template/img/demo/client03.png" /></li>
          <li class="wow fadeInLeftA"><img src="template/img/demo/client04.png" /></li>
          <li class="wow fadeInLeftA"><img src="template/img/demo/client05.png" /></li>
        </ul>
      </div>
    </section>
</section>
<?php get_footer();?>