/
template-page.php
executable file
·40 lines (40 loc) · 2.21 KB
/
template-page.php
1
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></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 endif; ?> <?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 endif; ?> </header> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( '页面:', 'hmjblog' ), 'after' => '</div>' ) ); ?> <div class="post-link-share"> <div class="post-like"> <a href="javascript:;" data-action="ding" data-id="<?php the_ID(); ?>" class="specsZan <?php if(isset($_COOKIE['specs_zan_'.$post->ID])) echo 'done';?>"><i class="fa fa-thumbs-o-up"></i>赞 <span class="count"> <?php if( get_post_meta($post->ID,'specs_zan',true) ){ echo get_post_meta($post->ID,'specs_zan',true); } else { echo '0'; }?></span> </a> </div> <div class="bdsharebuttonbox"> <span class="share-hmj"> 分享到:</span> <a title="分享到新浪微博" class="bds_tsina fa fa-weibo" href="#" data-cmd="tsina"></a> <a title="分享到QQ空间" class="bds_qzone fa fa-star" href="#" data-cmd="qzone"></a> <a title="分享到腾讯微博" class="bds_tqq fa fa-tencent-weibo" href="#" data-cmd="tqq"></a> <a title="分享到QQ好友" class="qq fa fa-qq" href="#" data-cmd="sqq" ></a> <a title="分享到人人网" class="bds_renren fa fa-renren" href="#" data-cmd="renren"></a> <a title="分享到微信" class="bds_weixin fa fa-weixin" href="#" data-cmd="weixin"></a> <a class="bds_more fa fa-ellipsis-h" href="#" data-cmd="more"></a> </div> </div> </div> </article>