sidebar.php 5.3 KB
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>    	
<aside class="aside">
<section class="aside-wrap">
		  <section class="side-widget side-product-list">
            <div class="side-tit-bar">
              <h4 class="side-tit">categories</h4>
            </div>
            <div class="side-cate side-hide">
                <ul class="side-cate-menu">
               <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('menu' => 4, 'echo' => false)) ));?>
                </ul>
             </div>
          </section>
 
       <!--    <section class="aside-new-wrap wow fadeInLeftA">
             <div class="side-tit-bar">
            <h4 class="side-tit">news</h4>
          </div>
             <div class="side-cont">
            <ul class="side-new-cont">
                 <?php query_posts(array( 'post_type' => 'news','showposts' => 13,'orderby' => 'post_date','order'=> 'DESC') );while ( have_posts() ) : the_post(); ?>	
                <li class="index-new-item">
                <div class="new-info"><a href="<?php echo $get_lang?home_url('/')  .$get_lang.'/news/' . $post->post_name:home_url('/') .'news/' . $post->post_name ; ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 150,"..."); ?></a></div>
                <div class="new-time"> <a href="?php the_permalink() ?>"><?php the_time('M  d, Y') ?></a> </div>
              </li>
 <?php endwhile; wp_reset_query();  ?>    
                </ul>
             </div>
          </section>

           <section class="side-widget">
             <div class="side-tit-bar">
                <h4 class="side-tit">Categories</h4>
             </div>
             <div class="side-cate side-hide">
                <ul class="side-cate-menu">
               <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('menu' => 70, 'echo' => false)) ));?>
                </ul>
             </div>
          </section>
          

		 <section class="side-widget">
             <div class="side-tit-bar">
                <h4 class="side-tit">Feature Products</h4>
             </div>
             <section class="products-scroll-list-wrap side-hide">
             	<a href="javascript:" class="products-scroll-btn-prev"><b></b></a>
                 <div class="products-scroll-list">
                    <ul>
<?php $args = array('showposts' => 18, '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(); ?>
                       <li>
                          <a href="<?php the_permalink() ?>"><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 class="pd-info">
                               <div class="pd-name"><a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 55,"..."); ?></a></div>
                          </div>
                       </li>
<?php endwhile; endif;  wp_reset_query(); ?>                  
                    </ul>
                  </div>
                 <a href="javascript:" class="products-scroll-btn-next"><b></b></a> 
             </section> 
          </section>  
 
<section class="aside-contact-wrap wow fadeInLeftA">
          <div class="side-tit-bar">
            <h4 class="side-tit">Contact Us</h4>
          </div>
          <div class="side-cont">
            <ul class="aside-contact">
              <?php if( get_get_field('lianxi_adress') ){ ?><li class="side-company"><?php get_the_field('lianxi_adress'); ?></li><?php } ?>
             <?php if( get_get_field('lianxi_phone_01') ){ ?> <li class="side-phone">Phone: <?php get_the_field('lianxi_phone_01'); ?></li><?php } ?>
             <?php if( get_get_field('lianxi_mail_01') ){ ?><li class="side-email">E-mail: <a href="javascript:" class="add_email12"><?php get_the_field('lianxi_mail_01'); ?></a></li><?php } ?>
             <?php if( get_get_field('lianxi_fax') ){ ?><li class="side-fax">Fax: <?php get_the_field('lianxi_fax'); ?></li><?php } ?>
             <?php if( get_get_field('lianxi_whatsapp') ){ ?><li class="side-sky">Whatsapp: <?php get_the_field('lianxi_whatsapp'); ?></li><?php } ?>
            </ul>
          </div>
        </section>		 
        -->
        <section class="about-wrapper wow fadeInUpA">
          <h2 class="about-tit">why choose us</h2>
          <div class="about-detial"><?php get_the_field('about_text'); ?></div>
          <a href="<?php echo home_url("/"); ?>about-us" class="about-more">read more</a> </section> 
<?php $images = get_get_field('ad_sidebar_banner'); if( $images ): foreach( $images as $image ): ?>
<div class="side-bn"><a href="<?php echo $image['alt']; ?>"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['description']; ?>" /></a></div>
<?php endforeach; endif; ?>
<section class="aside-wrap">
	  </aside>