You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
5.1 KiB
99 lines
5.1 KiB
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> |
|
<?php $this->need('component/header.php'); ?> |
|
<!-- aside --> |
|
<?php $this->need('component/aside.php'); ?> |
|
<!-- / aside --> |
|
<?php if (trim($this->options->postFontSize)!==""): ?> |
|
<style> |
|
#post-content{ |
|
font-size: <?php $this->options->postFontSize(); ?>; |
|
} |
|
</style> |
|
<?php endif; ?> |
|
<!-- <div id="content" class="app-content"> --> |
|
<a class="off-screen-toggle hide"></a> |
|
<main class="app-content-body <?php echo Content::returnPageAnimateClass($this); ?>"> |
|
<div class="hbox hbox-auto-xs hbox-auto-sm"> |
|
<!--文章--> |
|
<div class="col center-part"> |
|
<!--生成分享图片必须的HTML结构--> |
|
<?php echo Content::returnSharePostDiv($this) ?> |
|
<!--标题下的一排功能信息图标:作者/时间/浏览次数/评论数/分类--> |
|
<?php echo Content::exportPostPageHeader($this,$this->user->hasLogin()); ?> |
|
<!--文章标题下面的小部件--> |
|
<?php if (Content::isImageCategory($this->categories)): ?> |
|
<?php $display = ' style="display:none"'; echo '<small class="text-muted letterspacing indexWords">' |
|
.$this->fields->album |
|
.'</small>'; ?> |
|
<?php endif; ?> |
|
<ul <?php if (isset($display)) echo $display;?> class="entry-meta text-muted list-inline m-b-none small |
|
post-head-icon"> |
|
<!--作者--> |
|
<li class="meta-author"><i class="fontello fontello-user" aria-hidden="true"></i><span class="sr-only"><?php _me("作者") ?>:</span> <a class="meta-value" href="<?php $this->author->permalink(); ?>" rel="author"> <?php $this->author(); ?></a></li> |
|
<!--发布时间--> |
|
<li class="meta-date"><i class="fontello fontello-clock-o" aria-hidden="true"></i> <span class="sr-only"><?php _me("发布时间:") ?></span><time class="meta-value"><?php $this->date(I18n::dateFormat()); ?></time></li> |
|
<!--浏览数--> |
|
<li class="meta-views"><i class="fontello fontello-eye" aria-hidden="true"></i> <span class="meta-value"><?php echo get_post_view($this) ?> <?php _me('次浏览'); ?></span></li> |
|
<?php if($this->options->commentChoice =='0'): ?> |
|
<!--评论数--> |
|
<li class="meta-comments"><i class="iconfont icon-comments-o" aria-hidden="true"></i> <a |
|
class="meta-value" href="#comments"> <?php $this->commentsNum(_mt('暂无评论'), _mt('1 条评论'), _mt('%d 条评论')); ?></a></li> |
|
<?php endif; ?> |
|
<!--文字数目--> |
|
<li class="meta-word"><i class="fontello fontello-pencil"></i> <span class="meta-value"><?php echo Utils::getWordsOfContentPost($this->text); ?> <?php _me('字数'); ?></span></li> |
|
<!--分类--> |
|
<li class="meta-categories"><i class="fontello fontello-tags" aria-hidden="true"></i> <span class="sr-only"><?php _me("分类") ?>:</span> <span class="meta-value"><?php $this->category(' '); ?></span></li> |
|
</ul> |
|
</header> |
|
<div class="wrapper-md" id="post-panel"> |
|
<?php Content::BreadcrumbNavigation($this, $this->options->rootUrl); ?> |
|
<!--博客文章样式 begin with .blog-post--> |
|
<div id="postpage" class="blog-post"> |
|
<article class="panel"> |
|
<!--文章页面的头图--> |
|
<?php if (!Content::isImageCategory($this->categories)) echo Content::exportHeaderImg($this); ?> |
|
<!--文章内容--> |
|
<div id="post-content" class="wrapper-lg"> |
|
<div class="entry-content l-h-2x"> |
|
<?php |
|
|
|
Content::postContent($this,$this->user->hasLogin()); |
|
?> |
|
</div> |
|
<?php if ($this->options->adContentPost != ""): ?> |
|
<!--文章页脚的广告位--> |
|
<?php $this->options->adContentPost(); ?> |
|
<?php endif; ?> |
|
<!--文章的页脚部件:打赏和其他信息的输出--> |
|
<?php echo Content::exportPostFooter($this->modified,$this->options->timezone - idate("Z")); ?> |
|
<?php if (!empty($this->options->featuresetup) && in_array('payforauthorinpost', $this->options->featuresetup)): ?> |
|
<!--打赏模块--> |
|
<?php echo Content::exportPayForAuthors(); ?> |
|
<?php endif; ?> |
|
<!--/文章的页脚部件:打赏和其他信息的输出--> |
|
</div> |
|
</article> |
|
</div> |
|
<!--上一篇&下一篇--> |
|
<nav class="m-t-lg m-b-lg"> |
|
<ul class="pager"> |
|
<?php thePrev($this); ?> <?php theNext($this); ?> |
|
</ul> |
|
</nav> |
|
<!--评论--> |
|
<?php $this->need('component/comments.php') ?> |
|
</div> |
|
</div> |
|
<!--文章右侧边栏开始--> |
|
<?php |
|
//if (!Content::isImageCategory($this->categories)) { |
|
$this->need('component/sidebar.php'); |
|
//} |
|
?> |
|
<!--文章右侧边栏结束--> |
|
</div> |
|
</main> |
|
|
|
<!-- footer --> |
|
<?php $this->need('component/footer.php'); ?> |
|
<!-- / footer -->
|
|
|