taxonomy-news_catalog.php
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php get_header();?>
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<nav class="path-bar">
<ul class="path-nav">
<li><?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></li>
</ul>
</nav>
<section class="page-layout">
<section class="layout">
<!-- aside begin -->
<?php get_sidebar();?>
<!--// aisde end -->
<!-- main begin -->
<section class="main">
<div class="main-tit-bar">
<h1 class="title"><?php wp_title(); ?></h1>
<div class="share-this"><div class="addthis_sharing_toolbox"></div> </div>
</div>
<section class="blog-list">
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li class="blog-item">
<?php $image = get_field('news_img');if( !empty($image) ): ?>
<a href="<?php the_permalink() ?>">
<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; ?>
<div class="blog-tit">
<a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title',$post->post_title)), 0, 200,"..."); ?></a></div>
<div class="blog-meta">by admin on <?php the_time('m-d-Y') ?></div>
<p class="blog-summary"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 300,"..."); ?>
<span class="readmore">
<a href="<?php the_permalink() ?>">Read more
<i>»</i>
</a>
</span>
</p>
</li>
<?php endwhile; wp_reset_query(); ?>
</ul>
<section class="page-bar">
<div class="pages"><?php echo izt_pagenavi();?></div>
</section>
</section>
</section>
<!--// main end -->
<div class="clear"></div>
</section>
</section>
<?php get_footer();?>