index.php 6.5 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="index_business wow fadeInUpA">
      <div class="layout">
        <div class="index_bd">
          <a href="">
          <figure class="business_cell">
            <figcaption class="business_cont">
              <div class="cont_inner">
                <h5 class="txt_small">VIDEO</h5>
                <h2 class="txt_title">Together, We Win</h2>
                <p class="txt_desc">From design to delivery, our integrated packaging solutions connect people and products proving every day that packaging matters.</p>
              </div>
            </figcaption>
            <div class="business_img">
              <i class="ico_arrow"></i>
              <div class="img_box" style="background-image: url('template/img/demo/business01.jpg')"></div>
              <span class="btn_play"></span>
            </div>
          </figure>
          </a>
        </div>
      </div>
    </section>
  <section class="index_promote index_cates">
      <div class="layout">
        <header class="index_hd wow fadeInLeftA">
          <h2 class="hd_title">Featured Products</h2>
          <p class="hd_desc">Our portfolio of products is as diverse as your global business.We have the solutions to get yourproducts from the shop floor to the front door.</p>
          <div class="learn_more"><a href="" class="sys_btn"><span class="btn_txt">View all 10 categories</span></a></div>
        </header>
        <div class="index_bd wow fadeInRightA">
          <div class="promote_slider cates_slider">
            <ul class="swiper-wrapper">
             <?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="promote_item swiper-slide">
                <a class="item_inner" href="<?php the_permalink() ?>">
                <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,"..."); ?>"/></span>
                <div class="item_info">
                  <h3 class="item_tit"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 50,"..."); ?></h3>
                </div>
                </a>
              </li>
            <?php  $i++; endwhile; endif;  wp_reset_query(); ?>  
            </ul>
            <div class="index_swiper_control">
              <span class="swiper-button-prev"></span>
              <span class="swiper-button-next"></span>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="index_promote index_markets">
      <div class="layout">
        <header class="index_hd wow fadeInLeftA">
          <h2 class="hd_title">New Arrivals</h2>
          <p class="hd_desc">Our paper and packaging solutions are designed to drive brand loyalty and increase sales in everyshopping category.</p>
          <div class="learn_more"><a href="" class="sys_btn"><span class="btn_txt">View all 9 markets</span></a></div>
        </header>
        <div class="index_bd wow fadeInRightA">
          <div class="promote_slider market_slider">
            <ul class="swiper-wrapper">
                <?php $args = array('showposts' => 9, 'post_type' => 'post', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'special','value' => 'New Arrivals','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="promote_item swiper-slide">
                <a class="item_inner" href="<?php the_permalink() ?>">
                <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,"..."); ?>"/></span>
                <div class="item_info">
                  <h3 class="item_tit"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 50,"..."); ?></h3>
                </div>
                </a>
              </li>
            <?php  $i++; endwhile; endif;  wp_reset_query(); ?>  
           
            </ul>
            <div class="index_swiper_control">
              <span class="swiper-button-prev"></span>
              <span class="swiper-button-next"></span>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="index_business wow fadeInUpA">
      <div class="layout">
        <div class="index_bd">
          <a href="">
          <figure class="business_cell">
            <figcaption class="business_cont">
              <div class="cont_inner">
                <h5 class="txt_small">CASE STUDY</h5>
                <h2 class="txt_title">We think packaging matters. 84% of consumers say we're on the right track.</h2>
                <p class="txt_desc">We recently published our 5th annual Packaging Matters survey results. Find out what's on consumers' minds when it comes to packaging and product satisfaction. </p>
              </div>
            </figcaption>
            <div class="business_img">
              <i class="ico_arrow"></i>
              <div class="img_box" style="background-image: url('template/img/demo/business02.jpg')"></div>
            </div>
          </figure>
          </a>
        </div>
      </div>
    </section>
</section>
<?php get_footer();?>