|
11 | 11 | else $w = get_option('king_wor_cate'); |
12 | 12 | if (!get_option('king_per_page')) $p = '6'; |
13 | 13 | else $p = get_option('king_per_page'); |
| 14 | +if (get_option('king_display_author') == '关闭') $a = false; |
| 15 | +else $a = true; |
14 | 16 | ?> |
15 | 17 |
|
16 | 18 | <div id="header_info"> |
|
66 | 68 | </li> |
67 | 69 | <!-- 占位DIV --> |
68 | 70 |
|
69 | | - <li class="article-list-item reveal index-post-list" v-for="post in posts" :style="post.post_categories[0].term_id | link_style"> |
| 71 | + <li :class="'article-list-item reveal index-post-list ' + (post.sticky ? 'sticky-one' : '')" v-for="post in posts" :style="post.post_categories[0].term_id | link_style"> |
70 | 72 |
|
71 | 73 | <template v-if="post.post_img.url == false || post.post_categories[0].term_id == <?php echo $f; ?> || post.post_categories[0].term_id == <?php echo $w; ?>"> |
72 | | - <em v-if="post.post_categories[0].term_id == <?php if (get_option('king_cate_cate')) { |
73 | | - echo get_option('king_cate_cate'); |
74 | | - } else { |
75 | | - echo '21213'; |
76 | | - } ?>" class="article-list-type1">{{ post.post_categories[0].name + ' | ' + (post.post_metas.tag_name ? post.post_metas.tag_name.toUpperCase() : '<?php if (get_option('king_cate_cate_ph')) echo get_option('king_cate_cate_ph'); |
77 | | - else echo 'XX' ?>') }}</em> |
| 74 | + <em v-if="post.post_categories[0].term_id == <?php tony_func('echo_s_cate'); ?>" class="article-list-type1">{{ post.post_categories[0].name + ' | ' + (post.post_metas.tag_name ? post.post_metas.tag_name.toUpperCase() : '<?php tony_func('echo_ph_cate'); ?>') }}</em> |
78 | 75 | <div v-if="post.post_categories[0].term_id == <?php echo $f; ?> || post.post_categories[0].term_id == <?php echo $w; ?>" class="link-list-left"><img :src="post.post_metas.img[0]" class="link-list-img"></div> |
79 | | - <div class="link-list-right"> |
| 76 | + <div class="link-list-right" :style="(post.post_categories[0].term_id == <?php echo $f; ?> || post.post_categories[0].term_id == <?php echo $w; ?> || post.post_categories[0].term_id == <?php tony_func('echo_s_cate'); ?>) ? '' : 'margin-top: -10px;'"> |
80 | 77 | <a v-if="post.post_categories[0].term_id == <?php echo $f; ?> || post.post_categories[0].term_id == <?php echo $w; ?>" :href="post.post_metas.link" style="text-decoration: none;" target="_blank"> |
81 | 78 | <h5 style="margin-top: 10px;" v-html="post.title.rendered"></h5> |
82 | 79 | </a> |
|
85 | 82 | </a> |
86 | 83 | <p v-html="post.post_excerpt.nine"></p> |
87 | 84 | <div class="article-list-footer"> |
88 | | - <span class="article-list-date" style="color: #ada8a8;">{{ post.post_categories[0].term_id | link_page }}{{ post.post_date }}</span> |
| 85 | + <?php if($a){ ?> |
| 86 | + <span class="article-list-date display-author" v-html="post.post_metas.author"></span> |
| 87 | + <span class="article-list-divider">-</span> |
| 88 | + <?php } ?> |
| 89 | + <span class="article-list-date">{{ post.post_categories[0].term_id | link_page }}{{ post.post_date }}</span> |
89 | 90 | <span class="article-list-divider" v-if="post.post_categories[0].term_id !== <?php echo $f; ?> && post.post_categories[0].term_id !== <?php echo $w; ?>">-</span> |
90 | 91 | <span class="article-list-minutes" v-if="post.post_categories[0].term_id !== <?php echo $f; ?> && post.post_categories[0].term_id !== <?php echo $w; ?>">{{ post.post_metas.views }} Views</span> |
91 | 92 | </div> |
|
96 | 97 | <div class="article-list-img-else"> |
97 | 98 | <div class="article-list-img" :style="'background-image:url(' + post.post_img.url +')'"></div> |
98 | 99 | <div class="article-list-img-right"> |
99 | | - <em v-if="post.post_categories[0].term_id === <?php if (get_option('king_cate_cate')) { |
100 | | - echo get_option('king_cate_cate'); |
101 | | - } else { |
102 | | - echo '0'; |
103 | | - } ?>" class="article-list-type1">{{ post.post_categories[0].name + ' | ' + (post.post_metas.tag_name ? post.post_metas.tag_name.toUpperCase() : '<?php if (get_option('king_cate_cate_ph')) echo get_option('king_cate_cate_ph'); |
104 | | - else echo 'XX' ?>') }}</em> |
| 100 | + <!-- 置顶文章提示 --> |
| 101 | + <em class="article-list-type1 sticky-one-tag" v-if="post.sticky"><i class="czs-arrow-up-l" style="font-size: 14px;font-weight: 600;"></i> 置顶</em> |
| 102 | + <!-- 置顶文章提示 --> |
| 103 | + <em v-if="post.post_categories[0].term_id === <?php tony_func('echo_s_cate'); ?>" class="article-list-type1">{{ post.post_categories[0].name + ' | ' + (post.post_metas.tag_name ? post.post_metas.tag_name.toUpperCase() : '<?php tony_func('echo_ph_cate'); ?>') }}</em> |
105 | 104 | <a :href="post.link" style="text-decoration: none;"> |
106 | 105 | <h5 v-html="post.title.rendered" style="margin: 0px;padding: 0px;margin-top:15px"></h5> |
107 | 106 | </a> |
108 | 107 | <p v-html="post.post_excerpt.four" :id="post.id"></p> |
109 | 108 | <div class="article-list-footer"> |
| 109 | + <?php if($a){ ?> |
| 110 | + <span class="article-list-date display-author" v-html="post.post_metas.author"></span> |
| 111 | + <span class="article-list-divider">-</span> |
| 112 | + <?php } ?> |
110 | 113 | <span class="article-list-date">{{ post.post_date }}</span> |
111 | 114 | <span class="article-list-divider">-</span> |
112 | 115 | <span v-if="post.post_metas.views !== ''" class="article-list-minutes">{{ post.post_metas.views }} Views</span> |
|
0 commit comments