index.php 4.9 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>
    <div class="index_cates">
      <div class="layout">
          <div class="cate_items">
            <ul>
            <?php $i=1; $images = get_get_field('ad_ico01'); if( $images ): foreach( $images as $image ): ?>
              <li class="cate_item wow fadeInUpA tit_anm" data-wow-delay=".1s">
                <div class="item_inner">
                  <figure>
                    <h3 class="item_title">
                      <?php echo $image['title']; ?>
                      <i class="line-1"></i>
                      <i class="line-2"></i>
                      <i class="line-3"></i>
                      <i class="line-4"></i>
                    </h3>
                    <a href="">
                    <div class="item_img"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>"></div>
                    <p class="item_desc">
                      <?php echo $image['description']; ?>
                    </p>
                    </a>
                  </figure>
                </div>
              </li>
<?php  $i++; endforeach; endif; ?>
            </ul>
          </div>
      </div>
    </div>
    <!-- index_product -->
    <div class="index_product">
        <div class="index_title tit_anm">
          <h2>RANGE OF PRODUCTS</h2>
          <i class="line-1"></i>
          <i class="line-2"></i>
          <i class="line-3"></i>
          <i class="line-4"></i>
        </div>
        <div class="index_bd" style="background-image: url(<?php echo home_url("/"); ?>style/global/img/demo/product_bg.jpg)">
          <div class="layout">
            <div class="title_desc">At Coffee Day Beverages, we believe in hand-holding our customers to install and maintain their vending machines. Our experts are spread across 1200+ cities, towns and are just a call away from you.</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 ); if( $the_query->have_posts() ): while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
              <li class="product_item wow fadeInUpA tit_anm" data-wow-delay=".1s">
                <figure> <span 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() ?>"></a></span>
                  <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>
                      <i class="line-1"></i>
                      <i class="line-2"></i>
                      <i class="line-3"></i>
                      <i class="line-4"></i>
                    </h3>
                    <p class="item_desc"><a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 500,"..."); ?></a></p>
                  </figcaption>
                </figure>
              </li>
             <?php endwhile; endif;  wp_reset_query(); ?>
            </ul>
          </div>
        </div>
    </div>


    <!-- company_subscribe -->
    <div class="company_subscribe">
      <div class="index_title tit_anm">
        <h2>Subscribe</h2>
        <i class="line-1"></i>
        <i class="line-2"></i>
        <i class="line-3"></i>
        <i class="line-4"></i>
      </div>
      <div class="index_bd" style="background-image: url(<?php echo home_url("/"); ?>style/global/img/demo/subscribe_bg.jpg)">
        <div class="layout wow fadeInUpA">
            <h3 class="title">Subscribe to our newsletters now and stay up to date with new collections, the latest lookbooks and exclusive offers.</h3>
            <a href="javascript:" class="sys_btn button">SEND</a>
        </div>
      </div>
    </div>  
</section>
<?php get_footer();?>