加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
content-image.php 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
AdFate 提交于 2019-04-24 09:43 . v2.8 Happy Crack
<?php while (have_posts()) : the_post(); ?>
<section class="article-focusbox bgimg-fixed" id="focsbox-true" <?php _single_header_img() ?> >
<header class="article-header">
<h1 class="article-title"><?php the_title(); ?></h1>
<div class="article-meta">
<span class="item item-1"><?php echo get_the_date().' '.get_the_time(); ?></span>
<span class="item item-2">作者:<?php echo get_the_author() ?></span>
<span class="item item-3"><?php echo '分类:';the_category(' / '); ?></span>
<span class="item item-4"><i class="iconfont">&#xe611;</i> <?php echo _get_post_views() ?></span>
<span class="item item-5"><?php edit_post_link('[编辑]'); ?></span>
</div>
</header>
</section>
<section class="container">
<div class="content-wrap">
<div class="content">
<?php _the_ads('ad_post_header', 'single-header') ?>
<article class="article-content">
<?php the_content(); ?>
<?php wp_link_pages('link_before=<span>&link_after=</span>&before=<div class="article-paging">&after=</div>&next_or_number=number'); ?>
<?php if( _hui('post_copyright_s') ){
echo '<div class="article-copyright">'._hui('post_copyright').'<a href="'.get_bloginfo('url').'">'.get_bloginfo('name').'</a> &raquo; <a href="'.get_permalink().'">'.get_the_title().'</a></div>';
} ?>
<?php endwhile; ?>
<?php if( _hui('post_tags_s') ){ ?>
<?php the_tags('<div class="article-tags">','','</div>'); ?>
<?php } ?>
<?php get_template_part( 'module/content', 'module-wechats' ); ?>
<?php get_template_part( 'module/content', 'module-share' ); ?>
</article>
<?php if( _hui('post_prevnext_s') ){ ?>
<nav class="article-nav">
<span class="article-nav-prev"><?php previous_post_link('上一篇<br>%link'); ?></span>
<span class="article-nav-next"><?php next_post_link('下一篇<br>%link'); ?></span>
</nav>
<?php } ?>
<?php _the_ads('ad_post_footer', 'single-footer') ?>
<?php if( _hui('post_related_s') ){ ?>
<div class="postitems">
<h3><?php echo _hui('related_title', '相关推荐') ?></h3>
<ul>
<?php _posts_related( _hui('post_related_n') ) ?>
</ul>
</div>
<?php } ?>
<?php _the_ads('ad_post_comment', 'single-comment') ?>
<?php comments_template('', true); ?>
</div>
</div>
<?php get_sidebar(); ?>
</section>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化