archive-guide.php
2.1 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
<?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" style=" background:url(template/img/demo/main_banner.jpg) fixed no-repeat center center">
<ul class="path_nav">
<li>
<?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?>
</li>
</ul>
</nav>
<section class="web_main page_main">
<div class="layout">
<section class="main">
<div class="blog_list">
<h2 class="page_title">
<?php wp_title(); ?>
</h2>
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li class="blog-item">
<figure class="item-wrap">
<?php $image = get_field('guide_img');if( !empty($image) ): ?>
<a class="item-img" href="<?php echo $get_lang?home_url('/') .$get_lang.'/guide/' . $post->post_name:home_url('/') .'guide/' . $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.'/guide/' . $post->post_name:home_url('/') .'guide/' . $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>
<section class="page-bar">
<div class="pages"><?php echo izt_pagenavi();?></div>
</section>
</div>
</section>
</div>
</section>
<?php get_footer();?>