index.php 8.3 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="slider_banner swiper-container">
    <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['url']; ?>" /></a></div>
        <?php endforeach; endif; ?> 
    </div>
    <div class="slider_swiper_control">
      <div class="banner_button_prev"></div>
      <div class="banner_button_next"></div>
    </div>
    <div class="swiper-pagination swiper-pagination-white"></div>
  </section>
   <section class="web_main index_main">
   <!--company_advantage-->
    <section class="company_advantages">
      <div class="layout">
        <div class="index_hd wow fadeInUpA" data-wow-delay=".8s" data-wow-duration=".8s">
          <h2 class="hd_title">product<span>classification</span></h2>
        </div>
        <ul class="advantage_items"> 
		 <?php $i=1; $images = get_get_field('ad_ico01'); if( $images ): foreach( $images as $image ): ?>
          <li class="advantage_item wow fadeInUpA" data-wow-delay="<?php if($i==1) : ?>0<?php else: ?>.<?php echo $i-1; ?>s<?php endif; ?>" data-wow-duration=".8s"> 
		  <span class="icon_img">
		  <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>" /></span>
            <h4 class="advantage_tit"><a href="<?php echo $image['alt']; ?>"><?php echo $image['title']; ?></a></h4>
          </li>
         <?php $i++;  endforeach; endif; ?>  
        </ul>
      </div>
    </section>
    <!--company_advantage end--> 
    <!--company_introduce_container-->
    <section class="about_container wow fadeInUpA" data-wow-delay="1s" data-wow-duration=".8s" style="background-image:url(<?php echo home_url("/"); ?>style/global/img/demo/about_bg.png)">
      <div class="layout">
        <div class="index_hd wow fadeInUpA" data-wow-delay="1.5s" data-wow-duration=".8s">
          <h2 class="hd_title">about<span>us</span></h2>
        </div>
        <div class="about_text wow fadeInUpA" data-wow-delay="1.8s" data-wow-duration=".8s"><?php get_the_field('about_text'); ?></div>
        <a href="<?php echo home_url("/"); ?>about-us" class="more_btn about_more wow fadeInUpA" data-wow-delay="2.1s" data-wow-duration=".8s">read more</a> </div>
    </section>
    <!--company_introduce_container-->
	 <section class="company_introduce_container">
      <div class="company_img"><img src="<?php echo home_url("/"); ?>style/global/img/demo/bg02.jpg" /></div>
      <div class="layout">
        <div class="introduce_wrap wow fadeInRightA" data-wow-delay=".8s" data-wow-duration=".8s">
          <ul class="introduce_items">
            <li class="introduce_item"> <a href="">
              <figure> <span class="introduce_img"><img src="<?php echo home_url("/"); ?>style/global/img/demo/01.png" /></span>
                <figcaption>
                  <h4 class="introduce_tit">Strong R & D capability and experienced technical team.</h4>
                  <p class="introduce_desc">Founded in 1997, the company is a professional production and processing enterprise with 20 years of design and manufacture of various rubber fenders</p>
                </figcaption>
              </figure>
              </a> </li>
            <li class="introduce_item"> <a href="">
              <figure> <span class="introduce_img"><img src="<?php echo home_url("/"); ?>style/global/img/demo/02.png" /></span>
                <figcaption>
                  <h4 class="introduce_tit">Strong R & D capability and experienced technical team.</h4>
                  <p class="introduce_desc">Founded in 1997, the company is a professional production and processing enterprise with 20 years of design and manufacture of various rubber fenders</p>
                </figcaption>
              </figure>
              </a> </li>
            <li class="introduce_item"> <a href="">
              <figure> <span class="introduce_img"><img src="<?php echo home_url("/"); ?>style/global/img/demo/03.png" /></span>
                <figcaption>
                  <h4 class="introduce_tit">Strong R & D capability and experienced technical team.</h4>
                  <p class="introduce_desc">Founded in 1997, the company is a professional production and processing enterprise with 20 years of design and manufacture of various rubber fenders</p>
                </figcaption>
              </figure>
              </a> </li>
            <li class="introduce_item"> <a href="">
              <figure> <span class="introduce_img"><img src="<?php echo home_url("/"); ?>style/global/img/demo/04.png" /></span>
                <figcaption>
                  <h4 class="introduce_tit">Strong R & D capability and experienced technical team.</h4>
                  <p class="introduce_desc">Founded in 1997, the company is a professional production and processing enterprise with 20 years of design and manufacture of various rubber fenders</p>
                </figcaption>
              </figure>
              </a> </li>
          </ul>
        </div>
      </div>
    </section>
	  <!--index_product-->
    <section class="index_feature_product" style="background-image:url(<?php echo home_url("/"); ?>style/global/img/demo/product_bg.jpg)">
      <section class="layout">
        <div class="index_hd wow fadeInUpA" data-wow-delay=".8s" data-wow-duration=".8s">
          <h2 class="hd_title"><span class="white">hot</span><span>product</span></h2>
        </div>
        <div class="feature_items wow fadeInUpA" data-wow-delay="1.3s" data-wow-duration=".8s">
          <ul class="swiper-wrapper">  
		   <?php $args = array('showposts' => 8, '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="feature_item swiper-slide"> <a href="<?php the_permalink() ?>">
              <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,"..."); ?>"/></span>
                <h4 class="pd_tit"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 50,"..."); ?></h4>
              </figure>
              </a> </li>
           <?php $i++; endwhile; endif;  wp_reset_query(); ?> 
          </ul>
          <div class="feature-pagination"></div>
        </div>
      </section>
    </section>
    <!--index_product end--> 
	   <!-- index_news_container -->
    <section class="index_news_container">
      <section class="layout">
        <div class="index_hd wow fadeInUpA" data-wow-delay=".8s" data-wow-duration=".8s">
          <h2 class="hd_title">news<span>information</span></h2>
        </div>
            <ul class="news_items">
  	 <?php query_posts(array( 'post_type' => 'news','showposts' => 3,'orderby' => 'post_date','order'=> 'DESC') );  while (have_posts()) : the_post();?>
            <li class="news_item wow fadeInUpA" data-wow-delay=".8s" data-wow-duration=".8s"> <span class="news_img">
				<a href="<?php the_permalink() ?>"><img src="<?php echo $image['url']; ?>" ></a>
			</span>
                <div class="news_info">
                    <h4 class="news_tit"><a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?></a></h4>
                    <div class="news_time"><?php the_time('M-d-Y') ?></div>
                    <p class="news_detail"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 300,"..."); ?></p>
                  </div>
              </li>
              <?php endwhile; wp_reset_query(); ?>
            </ul>
       <a href="<?php echo home_url("/"); ?>news" class="more_btn news_more wow fadeInUpA" data-wow-delay="1.2s" data-wow-duration=".8s">read more</a>
      </section>
    </section>
    <!-- index_news_container end --> 
 </section>

 <?php get_footer();?>