taxonomy-news_catalog.php 2.8 KB
<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>    	
  <div class="main-banner">
            	<ul class="slides">
                <li class="item"><img src="template/img/demo/main_banner.jpg" alt=""/></li>
               	<li class="item"><img src="template/img/demo/main_banner.jpg" alt=""/></li>
                <li class="item"><img src="template/img/demo/main_banner.jpg" alt=""/></li>
              </ul>
            </div>
 <section class="layout page_content main_content ">
<?php get_sidebar();?>
       <section class="main">
       <nav class="path-bar">
 
     <h1 class="title"><?php wp_title(); ?> </h1>
      <ul class="path-nav">
          <li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>
      </ul>
      
   
    </nav>
      <div class="main-tit-bar">
         <h1 class="title"><?php wp_title(); ?> </h1>
         <div class="share-this"><div class="addthis_sharing_toolbox"></div> </div>
         <div class="clear"></div>
      </div>  
       <div class="blog_list">
             <ul>
<?php while ( have_posts() ) : the_post(); ?>
            <li class="blog-item">
                          <figure class="item-wrap">
                            <?php $image = get_field('news_img');if( !empty($image) ): ?><a class="item-img" href="<?php echo $get_lang?home_url('/')  .$get_lang.'/news/' . $post->post_name:home_url('/') .'news/' . $post->post_name ; ?>"><img class="blog-img" src="<?php echo $image['url']; ?>" alt="<?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?>"></a><?php endif; ?>
                              <figcaption class="item-info">
                                <h3 class="item-title"><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, 200,"..."); ?></a></h3>
                                <time>by admin on <?php the_time('y-m-d') ?></time>
                                <div class="item-detail"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 300,"..."); ?></div>
                                <a href="<?php the_permalink() ?>" class="item-more">Read more</a>
                              </figcaption>
                            </figure>
                        </li>
<?php endwhile; wp_reset_query();  ?>
         </ul>
      </div>     
      <section class="page-bar">
         <div class="pages"><?php echo izt_pagenavi();?></div>
      </section>
   </section>
 </section>
<?php get_footer();?>