index.php 7.4 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-button-prev swiper-button-white"><span class="slide-page-box"></span></div>
      <div class="swiper-button-next swiper-button-white"><span class="slide-page-box"></span></div>
      <div class="swiper-pagination swiper-pagination-white"></div>
  </div>
  <section class="index_slider_brands">
      <div class="layout">
        <ul class="brands_imgs">
         <?php $i=1; $images = get_get_field('ad_ico01'); if( $images ): foreach( $images as $image ): ?>
          <li><a href=""><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>" /></a></li>
         <?php $i++;  endforeach; endif; ?>
        </ul>
        <div class="brand_cont">
          <h2 class="brand_title">Design - Distribution - Technology</h2>
          <p class="brand_desc">Dai Dong Tien is proud to be the pioneer in Technology - Design - Distribution of plastic industry </p>
        </div>
      </div>
    </section>
  <section class="index_company_intr">
      <div class="index_bd">
      <div class="layout">
        <img class="company_intr_img wow fadeInRightA" src="<?php echo home_url("/"); ?>style/global/img/demo/company_intr_img.png" alt="">
        
        <div class="company_intr_cont wow fadeInLeftA">
          <h2 class="company_intr_title"><a href="<?php echo home_url("/"); ?>about-us/">About us</a></h2>
          <div class="company_intr_desc"><?php get_the_field('about_text'); ?></div>
          <div class="play_video">
            <a href="">
              <i class="play_ico"></i>
              <span class="play_txt">Play Video</span>
            </a>
          </div>
        </div>
      </div>
      </div>
    </section>
    <section class="index_product">
      <div class="index_hd">
        <div class="layout">
          <h2 class="hd_title">Our Products</h2>
        </div>
      </div>
      <div class="index_bd">
      <div class="layout">
        <!-- filiter -->
        <section class="filter_panel">
          <span class="filter_label">Browse by:</span>
          <a class="sys_btn" href="<?php echo home_url("/"); ?>products">All</a>
          <div class="sys_select_box">
            <div class="select_toggle">
              <span class="toggle_val">Products</span>
              <i class="toggle_caret"></i>
            </div>
            <div class="select_menu">
              <div class="select_menu_inner">
              <ul>
               <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('menu' => 4, 'echo' => false)) ));?>
              </ul>
              </div>
            </div>
          </div>
        </section>
        <!-- product_items -->
        <ul class="product_items flex_row wow fadeInUpA">
         <?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="product_item">
            <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() ?>"></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>
              </figcaption>
            </figure>
          </li>
          <?php $i++; endwhile; endif;  wp_reset_query(); ?>   
        </ul>
      </div>
      </div>      
    </section>
  <section class="index_service">
      <div class="index_hd">
        <div class="layout">
          <h2 class="hd_title">Our service</h2>
        </div>
      </div>
      <div class="index_bd">
      <div class="layout">
        <div class="service_items flex_row" data-wow-delay=".1s">
          <figure class="service_cell wow fadeInUpA">
            <div class="cell_img"><img src="template/img/demo/service01.png" alt=""></div>
            <div class="cell_info">
              <h3 class="cell_tit">Distribution Service</h3>
              <p class="cell_desc">You have products and are seeking for distribution channels in Vietnam? We are always ready to coorporate and have business together through our...</p>
              <div class="learn_more">
                <a href="" class="sys_btn">Read more</a>
              </div>
            </div>
          </figure>
          <figure class="service_cell wow fadeInUpA" data-wow-delay=".2s">
            <div class="cell_img"><img src="template/img/demo/service02.png" alt=""></div>
            <div class="cell_info">
              <h3 class="cell_tit">Service for OEMs</h3>
              <p class="cell_desc">You need a strategic partner who has reliability and experience in design, production and quality control. With Dai Dong Tien, You can find it all. .</p>
              <div class="learn_more">
                <a href="" class="sys_btn">Read more</a>
              </div>
            </div>
          </figure>
        </div>
      </div>
      </div>
    </section>
    <section class="index_brands">
      <div class="index_hd">
        <div class="layout">
          <h2 class="hd_title">Partners</h2>
        </div>
      </div>
      <div class="index_bd">
      <div class="layout">
        <ul class="brand_items flex_row wow fadeInUpA">
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand01.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand02.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand03.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand04.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand05.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand06.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand07.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand08.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand09.png" alt=""></span></li>
          <li class="brand_item"><span class="item_img"><img src="template/img/demo/brand10.png" alt=""></span></li>
        </ul>
      </div>
      </div>      
    </section>
</section>

<?php get_footer();?>