<a href="<?php echo $post_link; ?> " class="zoom" rel="bookmark" title="<?php echo $post_title; ?> "><?php echo youpzt_thumbnail(250, 260); ?> </a> <div class="caption"> <p class="f12 pro-meta"><span>关注度:<?php if (function_exists('the_views')) { the_views(); } else { post_views(); } ?> </span><span class="fr pro-time f12"><em class="glyphicon fui-time"></em> <?php echo get_the_time('Y-m-d'); ?> </span></p> <!--<div class="color-6"><?php the_tags('<span class="pro-tags">标签:', '/', '</span>'); ?> </div>--> </div> </div> </div> <?php
"><?php echo get_the_author(); ?> </a>|</span> <span class="metapl"> <?php comments_popup_link('暂无评论 »', '1 条评论 »', '% 条评论 »'); ?> </span> <span class="metabj"> <?php edit_post_link('编辑', ' | ', ''); ?> </span> 阅读:<?php post_views(' ', ' 次'); ?> </p> </div> </div> <?php } ?> <div class="navigation"> <?php posts_nav_link('', '', ''); ?> </div>
while (have_posts()) { the_post(); ?> <article class="post-page post" id="post-<?php the_ID(); ?> "> <header class="page-title"> <h2><?php the_title(); ?> </h2> <address class="page-edit"> <span class ="entry-views"><?php if (function_exists('post_views')) { post_views('浏览:', '次'); } ?> </span> <span ><?php edit_post_link(__('[编辑]', 'zws'), '<p>', '</p>'); ?> </span> </address> </header> <div class="entry"> <?php the_content(); ?> </div> </article>
?> <div id="wrapper"> <div id="content"> <article class="post post-page" id="post-<?php the_ID(); ?> "> <header class="page-title"> <h2><?php the_title(); ?> </h2> <address class="page-edit"> <span class ="entry-views"><?php if (function_exists('post_views')) { post_views('浏览', '次'); } ?> </span> <span ><?php edit_post_link(__('[编辑]', 'zws'), '<p>', '</p>'); ?> </span> </address> </header> <div class="entry"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?>
<span class="comments-link"><?php comments_popup_link('0', '1', '%'); ?> </span> <?php } ?> <address class="entry-meta"> <p> <span class="entry-author"><?php the_author_posts_link(''); ?> </span> <span class ="entry-views"><?php if (function_exists('post_views')) { post_views('', ' views'); } ?> </span> <span class="entry-edit"><?php edit_post_link('编辑', '[', ']'); ?> </span> </p> </address> <?php if (is_home() || is_archive() || is_search()) { ?> <div class="entry"> <?php include 'thumbnail.php';
'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> <?php comments_open() ?> </p> </div> <footer class="post-meta-single"> <div class="meta-l"> <?php the_tags( '<span class="post-tag">', '', '</span>'); ?> <span class="post-auther"><?php the_author_posts_link(); ?></span> <span class="post-category"><?php the_category('/') ?></span> <?php edit_post_link('编辑', '<span class="post-auther">', '</span>'); ?> </div> <div class="meta-r"> <span class="post"><?php post_views(' ','次点击'); ?> </span> <span class="comments-num" date-c**t="<?php echo zfunc_comments_users($post->ID); ?>"><?php comments_popup_link('0人发表看法', '1人发表看法', '%人发表看法'); ?></span> </div> <div class="clearfix"></div> </footer> </div> </article> <?php endwhile; // Previous/next post navigation. ?> <?php else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' );
the_author(); ?> 于 <?php the_time('m'); ?> -<?php the_time('d'); ?> 发布在 <?php the_category(', '); ?> 分类下 <?php printf(_e('超过', 'Gztro')); ?> <?php post_views(' '); ?> 次围观 <?php comments_popup_link('暂无评论', '1条评论', '%条评论'); ?> <?php edit_post_link('编辑本文', '', ''); ?> </span> </div> <?php } } ?> <div class="pagenavi"><?php pagenavi();
?> </h1> <?php if (comments_open()) { ?> <div class="comments-link" style="margin: 10px 0px;"> <i class="fa fa-comments"></i><?php comments_popup_link('<span class="leave-reply">' . __('暂无评论', 'hmjblog') . '</span>', __('1条评论', 'hmjblog'), __('%条评论', 'hmjblog')); ?> <i class="fa fa-eye"></i><?php post_views('', '次浏览'); ?> </div> <?php } ?> <?php if (!comments_open()) { ?> <div class="comments-link" style="margin: 10px 0px;"> <i class="fa fa-comments"></i><span class="leave-reply">评论关闭</span> <i class="fa fa-eye"></i><?php post_views('', '次浏览'); ?> </div> <?php } ?> </header> <div class="entry-content"> <?php the_content();
<span class="group"> <i class="iconfont iconfont-exceprt"></i> <?php the_author(); ?> </span> <span class="group"> <i class="iconfont iconfont-exceprt"></i> <?php the_time('Y-m-d'); ?> </span> <span class="group"> <i class="iconfont iconfont-exceprt"></i> <?php echo post_views(); ?> 浏览 </span> <span class="group"> <i class="iconfont iconfont-exceprt"></i> <?php comments_popup_link('0 条评论', '1 条评论', '% 条评论', '', '评论已关闭'); ?> </span> </div> <div class="note"> <?php the_excerpt(); ?> </div>
the_author(); ?> </span> <span class="date"><?php _e('时间:', 'html5blank'); the_time('Y-m-d'); ?> </span> <span class="category"><?php _e('分类: ', 'html5blank'); the_category(', '); // Separated by commas ?> </span> <span class="views"><?php post_views('阅读:', ''); ?> </span> </div> <!-- post details --> <div class="entry-article"> <?php the_content(); // Dynamic Content ?> <?php the_tags(__('标签: ', 'html5blank'), ', ', '<br>'); // Separated by commas with a line break at the end ?>
</p> </div> <footer class="post-meta-single"> <div class="meta-l"> <span class="post-auther"><?php the_author_posts_link(); ?> </span> <span class="post-category"><?php the_category('/'); ?> </span> </div> <div class="meta-r"> <span class="post"><?php post_views(' ', '次点击'); ?> </span> <span class="comments-num"><?php comments_popup_link('0人发表看法', '1人发表看法', '%人发表看法'); ?> </span> </div> <div class="clearfix"></div> </footer> </div> </article> <?php } // Previous/next post navigation. ?>
<ul> <?php $args = array('posts_per_page' => 8, 'meta_key' => 'views', 'orderby' => 'meta_value_num', 'date_query' => array(array('after' => '2 month ago'))); $postslist = get_posts($args); foreach ($postslist as $post) { setup_postdata($post); ?> <li><i class="righticon"></i> <a href="<?php the_permalink(); ?> " title="<?php echo mb_strimwidth(get_the_title(), 0, 50, '...'); ?> "><?php echo mb_strimwidth(get_the_title(), 0, 26, '...'); ?> </a> <span class="grey-span"> - <?php if (function_exists('post_views')) { post_views($post->ID); } //如果安装的是插件就换成插件的调用方法 ?> </span> </li> <?php } wp_reset_postdata(); ?> </ul>