forked from muchenkezhan/wordpress-qzdy-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
87 lines (87 loc) · 6.23 KB
/
category.php
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/*
Name: 秋之德雨默认分类theme
*/
?>
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="map pagemap">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
<?php
$cat_ID='';
$flkgg='';
$cat_ID = get_query_var('cat');
$flkgg=get_term_meta($cat_ID,'_prefix_taxonomy_options',true);
if (empty($flkgg['is_filter']) && empty(_qzdy('is_filter_bar')) ) {?>
<div id="map-sub-classification" class="map-sub-classification">
<div class="container">
<?php get_template_part( '/include/expand/category-filter-bar' );?>
</div>
</div>
<?php } ?>
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_switch_left(); ?>">
<div class="layui-col-md<?php example_theme_liebiao_kuandu();?> layui-col-lg<?php example_theme_liebiao_kuandu();?>">
<div class="paging-aa" id="paging-aa">
<?php $posts = query_posts($query_string . '&orderby=date&showposts='._qzdy('qzdy-category-piece').''); ?>
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div class="excerpt-sticky title-article list-card item-box<?php echo qzdy_prevent_theme(); ?>">
<div class="index-post-img-small<?php echo qzdy_prevent_theme(); ?>"><a
href="<?php the_permalink() ?>">
<?php if(_qzdy('rp-page-tesetu-sw')=='tesetu1'){?>
<div title="<?php the_title(); ?>" class="item-thumb-small lazy commodity-img" data-original="<?php echo post_thumbnail_srcs(); ?>" style="background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"><span class="layui-badge layui-bg-cyan x"><?php the_time('Y/n/j'); ?></span>
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M903.93 107.306H115.787c-51.213 0-93.204 42.505-93.204 93.72V825.29c0 51.724 41.99 93.717 93.717 93.717h788.144c51.72 0 93.717-41.993 93.717-93.717V201.025c-.512-51.214-43.017-93.719-94.23-93.719zm-788.144 64.527h788.657c16.385 0 29.704 13.316 29.704 29.704v390.229L760.54 402.285c-12.805-13.828-30.217-21.508-48.14-19.971-17.924 1.02-34.821 10.754-46.602 26.114l-172.582 239.16-87.06-85.52c-12.29-11.783-27.654-17.924-44.039-17.924-16.39.508-31.755 7.676-43.53 20.48L86.595 821.705V202.05c-1.025-17.416 12.804-30.73 29.191-30.217zm788.145 683.674H141.906l222.255-245.82 87.06 86.037c12.8 12.807 30.212 18.95 47.115 17.417 17.41-1.538 33.797-11.266 45.063-26.118l172.584-238.647 216.111 236.088 2.051-1.54V825.8c.509 16.39-13.315 29.706-30.214 29.706zm0 0"></path><path d="M318.072 509.827c79.89 0 144.417-65.037 144.417-144.416 0-79.378-64.527-144.925-144.417-144.925-79.891 0-144.416 64.527-144.416 144.412 0 79.892 64.525 144.93 144.416 144.93zm0-225.327c44.553 0 80.912 36.362 80.912 80.91 0 44.557-35.847 81.43-80.912 81.43-45.068 0-80.916-36.36-80.916-80.915 0-44.556 36.872-81.425 80.916-81.425zm0 0"></path></svg>
</div>
<?php }else{?>
<div title="<?php the_title(); ?>" class="item-thumb-small lazy commodity-img" data-original="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_srcs(); ?>&w=300&h=240&zc=1&q=100" style="background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"><span class="layui-badge layui-bg-cyan x"><?php the_time('Y/n/j'); ?></span>
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M903.93 107.306H115.787c-51.213 0-93.204 42.505-93.204 93.72V825.29c0 51.724 41.99 93.717 93.717 93.717h788.144c51.72 0 93.717-41.993 93.717-93.717V201.025c-.512-51.214-43.017-93.719-94.23-93.719zm-788.144 64.527h788.657c16.385 0 29.704 13.316 29.704 29.704v390.229L760.54 402.285c-12.805-13.828-30.217-21.508-48.14-19.971-17.924 1.02-34.821 10.754-46.602 26.114l-172.582 239.16-87.06-85.52c-12.29-11.783-27.654-17.924-44.039-17.924-16.39.508-31.755 7.676-43.53 20.48L86.595 821.705V202.05c-1.025-17.416 12.804-30.73 29.191-30.217zm788.145 683.674H141.906l222.255-245.82 87.06 86.037c12.8 12.807 30.212 18.95 47.115 17.417 17.41-1.538 33.797-11.266 45.063-26.118l172.584-238.647 216.111 236.088 2.051-1.54V825.8c.509 16.39-13.315 29.706-30.214 29.706zm0 0"></path><path d="M318.072 509.827c79.89 0 144.417-65.037 144.417-144.416 0-79.378-64.527-144.925-144.417-144.925-79.891 0-144.416 64.527-144.416 144.412 0 79.892 64.525 144.93 144.416 144.93zm0-225.327c44.553 0 80.912 36.362 80.912 80.91 0 44.557-35.847 81.43-80.912 81.43-45.068 0-80.916-36.36-80.916-80.915 0-44.556 36.872-81.425 80.916-81.425zm0 0"></path></svg>
</div>
<?php }?>
</a></div>
<div class="index-post-text-small">
<h2 title="<?php the_title(); ?>" class="m-t-none text-ellipsis index-post-title text-title"><a
href="<?php the_permalink() ?>">
<?php $cat_ID=''; echo $cat_ID; ?><?php the_title(); ?></a></h2>
<p class="summary l-h-2x text-muted">
<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200,'…'); ?>
</p>
<div class="line line-lg b-b b-light"></div>
<div
class="text-muted post-item-foot-icon text-ellipsis list-inline<?php echo qzdy_prevent_theme(); ?>">
<li class="viewfloat">
<i class="layui-icon layui-icon-slider"></i><a
href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?>
</a></li><li><i class="layui-icon layui-icon-log"></i><?php the_time('Y/n/j '); ?>
</li>
<li><i class="layui-icon layui-icon-user"></i><a href=""><?php the_author(); ?></a></li>
<li><span class="view"><i
class="layui-icon layui-icon-fire"></i><?php post_views(' ', ''); ?></span>
</li>
</div>
</div>
</div>
<?php endwhile; else: ?>
<div class="qzdy_ssnrts">
<p>宝贝暂时没有相关的文章哦</p>
</div>
<?php endif; ?></div>
<?php if(_qzdy('rp-fanye-mode')==1){?>
<div class="pagination" id="pagenavi">
<p><?php lingfeng_pagenavi();?></p>
</div>
<?php }else{?>
<div class="next-page">
<?php
$next_page = get_next_posts_link('加载更多');
if($next_page) echo $next_page;
?>
</div>
<?php }?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<?php get_footer();?>