index.php 6.8 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_company_intr">
      <div class="layout">
        <div class="index_bd">
          <div class="company_intr_cont wow fadeInLeftA">
            <div class="sys_text_cell">
              <h2 class="cell_title">ABOUT US</h2>
              <div class="cell_desc"><?php get_the_field('about_text'); ?></div>
              <ul class="company_intr_info">
                <li class="info_count_item">
                  <span class="count_item_num">40</span>
                  <span class="count_item_label">Taper</span>
                </li>
                <li class="info_count_item">
                  <span class="count_item_num">3/4/5</span>
                  <span class="count_item_label">Axis</span>
                </li>
                <li class="info_count_item">
                  <span class="count_item_num">12k-30k</span>
                  <span class="count_item_label">RPM</span>
                </li>
                <li class="info_count_item">
                  <span class="count_item_num">24-40</span>
                  <span class="count_item_label">Tool<br>Capacity</span>
                </li>
              </ul>
              <div class="cell_more">
                <a href="<?php echo home_url("/"); ?>about-us/" class="sys_btn">View more</a>
              </div>
            </div>
          </div>
          <div class="company_intr_img wow fadeInUpA">
          <div class="company_intr_img_slide">
          <ul class="swiper-wrapper">
           <?php $images = get_get_field('about_img'); if( $images ): foreach( $images as $image ): ?>
                      <li class="swiper-slide"><a href="<?php echo home_url("/"); ?>about-us/"><img width="520px;" src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>" /></a></li>
                <?php endforeach; endif; ?>
            </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    
   <div class="index_product">
      <div class="layout">
        <div class="index_title">
          <h2>PRODUCT</h2>
        </div>
        <div class="index_bd">
          <div class="product_slider">
            <ul class="swiper-wrapper 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="swiper-slide product_item wow fadeInUpA" 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></h3>
                  </figcaption>
                </figure>
              </li>
              <?php  $i++; endwhile; endif;  wp_reset_query(); ?>
            </ul>
            <div class="index_swiper_control">
                <div class="swiper-pagination"></div>
            </div>
          </div>
        </div>
      </div>
    </div> 
    <!-- index_promote -->
    <div class="index_promote">
      <div class="layout">
        <ul class="promote_list">
          <li class="promote_item wow fadeInRightA">
            <div class="item_inner">
              <div class="item_img"><img src="template/img/demo/promote01.jpg" alt=""></div>
            </div>
          </li>
          <li class="promote_item wow fadeInUpA" data-wow-delay=".1s">
            <div class="item_inner">
              <div class="sys_text_cell">
                <h2 class="cell_title">See For Yourself</h2>
                <p class="cell_desc">Words can only tell you so much. Check out this gallery of photos to see your Haas from every angle.</p>
                <div class="cell_more">
                  <a href="" class="sys_btn">View more</a>
                </div>
              </div>
            </div>
          </li>
          <li class="promote_item wow fadeInLeftA">
            <div class="item_inner">
              <div class="item_img"><img src="template/img/demo/promote02.jpg" alt=""></div>
            </div>            
          </li>
        </ul>
      </div>
    </div>

    <!-- index_business -->
    <div class="index_business">
      <div class="layout">
        <div class="index_business_cont">
          <div class="sys_text_cell wow fadeInLeftA">
            <h2 class="cell_title">Do Even More</h2>
            <p class="cell_desc">From the industry's most user-friendly control, to our innovative Wireless Intuitive Probing System (WIPS), to our wide selection of spindles and tool changers, we let you configure your machine so it works for you. After all, you know what you need better than anyone. Learn more about everything Haas has to offer.</p>
            <div class="cell_more">
              <a href="" class="sys_btn">Explore Features</a>
            </div>
          </div>
        </div>
        <div class="index_business_img wow fadeInUpA"><a href=""><img src="template/img/demo/business01.jpg" alt=""></a></div>
      </div>
    </div>
<div class="company_subscribe wow fadeInUpA">
      <div class="layout">
          <div class="sys_text_cell">
            <h2 class="cell_title">Build Your Mold Machine</h2>
            <p class="cell_desc">Ready to create your new Haas vertical mill?<br>Let's find the right machine for your shop, and make it your own by adding the options and features that work for you.</p>
            <div class="cell_more">
              <a href="javascript:" class="button sys_btn">INQUIRY NOW</a>
            </div>
          </div>        
      </div>
    </div>
</section>
<?php get_footer();?>