index.php 7.7 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 id="rev_slider_3_1_wrapper" class="rev_slider_wrapper fullscreen-container">
  <div id="rev_slider_3_1" class="rev_slider fullscreenbanner" >
    <ul>
      <?php $images = get_get_field('ad_index_banner'); if( $images ): foreach( $images as $image ): ?>
      <li> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>" data-bgfitend="100" data-bgpositionend="center bottom">
        <div class="tp-caption black  tp-resizeme tp-caption-more" data-voffset="0" data-start="0" data-x="0"><a href="<?php echo $image['alt']; ?>" class="banner-more"></a></div>
      </li>
      <?php endforeach; endif; ?>
    </ul>
    <div class="tp-bannertimer"></div>
  </div>
</section>
 
<div class="index-layout">
        
        
        <!-- about us -->
        <section class="gd-layer about-us-layer" style="background-image: url(<?php bloginfo( 'template_url' ); ?>/img/demo/about-bg.jpg)">
            <div class="layout">
                <div class="gm-sep about-us">
                    <div class="about-detail wow fadeInDownA">
                        <div class="about-tit-bar">
                           <h2 class="about-tit wow fadeInDownA"><a href="<?php echo home_url("/"); ?>about-us/">ABOUT US</a></h2>
                           <h5 class="tit-desc">GOODAO.CN</h5>
                        </div>
                        <div class="text">
                            <?php get_the_field('about_text'); ?>
          
                        </div>
<!--                          <div class="bar-more"><a href="" class="btn-readmore">Learn More</a></div>
 -->                    </div> 
                    <ul class="about-list wow fadeInUp">
                     <?php $i=1; $images = get_get_field('ad_ico01'); if( $images ): foreach( $images as $image ): ?>
                        <li class="about-item">
                            <span class="item-img"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['title']; ?>"/></span>
                            <span class="item-name"><?php echo $image['title']; ?></span>
                        </li>
                       <?php  $i++; endforeach; endif; ?>
                    </ul>
                </div>
            </div>
        </section>


        <!-- product center -->
        <section class="gd-layer main-product-layer">
            <header class="index-tit-bar">
                <h2 class="title">PRODUCTS CENTER</h2>
                <h5 class="desc">GOODAO.CN</h5>
            </header>
            <div class="layout">
                <div class="gm-sep product-wrap wow fadeInUp">
                 <?php $args = array('showposts' => 8, '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(); ?>
                    <div class="product-item">
                        <div class="item-wrap">
                            <div class="pd-img"><a href="<?php the_permalink() ?>" title="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 300,""); ?>"><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></div>
                            <div class="pd-info">
                                <h3 class="pd-name"><a href="<?php the_permalink() ?>" title="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 300,""); ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 50,"..."); ?></a></h3>
                            </div>
                        </div>
                    </div>
                   <?php endwhile; endif;  wp_reset_query(); ?>
                    
                </div>
            </div>
            <div class="bar-more">
                <a href="<?php echo home_url("/"); ?>products" class="btn-readmore">View More <i>&gt;&gt;</i></a>
            </div>
        </section>


        <!--  -->
        <section class="gd-layer partner-layer" style="background-image:url(<?php bloginfo( 'template_url' ); ?>/img/demo/partner-bg.jpg)">
            <header class="index-tit-bar">
                <h2 class="title">GOODAO PARTNER</h2>
                <h5 class="desc">
                    Market Share No.1 in Japan market<br>
                    Market share No.1 in South Korea market
                </h5>
            </header>
            <div class="layout">
            <div class="partner-list partner-slides wow fadeInUp">
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-1.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-2.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-3.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-4.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-5.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-6.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-1.jpg" alt=""></a></div>
                <div class="partner-item"><a href=""><img src="template/img/demo/partner-img-2.jpg" alt=""></a></div>
            </div>
            </div>
        </section>





        <section class="gd-layer news-layer">
            <header class="index-tit-bar">
                <h2 class="title">NEWS CENTER</h2>
                <h5 class="desc">GOODAO.CN</h5>
            </header>
            <div class="layout">
                <div class="news-main wow fadeInUp">
                    <div class="news-slides">
                        <ul>
                       <?php query_posts(array( 'post_type' => 'news','showposts' => 5,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
                        <li class="news-item">
                            <div class="news-time"><b> <?php the_time('d') ?></b><i> <?php the_time('y-m') ?></i></div>
                            <div class="news-info">
                                <a href="<?php echo $get_lang?home_url('/')  .$get_lang.'/news/' . $post->post_name:home_url('/') .'news/' . $post->post_name ; ?>">
                                    <h4><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 44,"..."); ?></h4>
                                    <div><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 220,"..."); ?></div>
                                </a>
                            </div>
                        </li>
           <?php endwhile; wp_reset_query();  ?>
                        </ul>
                    </div>
                    <div class="news-control">
                        <a class="news-prev" href="javascript:"></a>
                        <a class="news-next" href="javascript:"></a>
                    </div>
                    <a class="news-more" href="<?php echo home_url("/"); ?>news">
                        <i>VIEW</i><b>MORE</b>
                    </a>
                </div>
            </div>
        </section>

    </div>
<?php get_footer();?>