/** * 阅读文章页面 */ if (!defined('EMLOG_ROOT')) { exit('error!'); } ?> <div id="content"> <div id="contentleft"> <h2><?php topflg($top); echo $log_title; ?> </h2> <p class="date"><?php blog_author($author); ?> 发布于:<?php echo gmdate('Y-n-j G:i', $date); ?> <?php blog_sort($logid); ?> 有 <?php echo $views; ?> 人浏览,获得评论 <?php echo $comnum; ?> 条 <?php editflg($logid, $author);
?> <small>></small><?php echo $log_title; ?> </div> <header class="article_header"> <h1><a href="<?php echo Url::log($logid); ?> "><?php echo $log_title; ?> </a></h1> <div class="article_meta"> <span><i class="fa fa-user"></i> <?php echo blog_author($author); ?> </span> <span><i class="fa fa-clock-o"></i> <?php echo timeago($date, true); ?> </span> <span><i class="fa fa-eye"></i> <?php echo $views; ?> 次浏览</span> <span><i class="fa fa fa-folder-open"></i> <?php blog_sort($logid); ?> </span> <?php
<?php if (!empty($logs)) { foreach ($logs as $value) { ?> <h2><?php topflg($value['top'], $value['sortop'], isset($sortid) ? $sortid : ''); ?> <a href="<?php echo $value['log_url']; ?> "><?php echo $value['log_title']; ?> </a></h2> <p class="date">作者:<?php blog_author($value['author']); ?> 发布于:<?php echo gmdate('Y-n-j G:i', $value['date']); ?> <?php blog_sort($value['logid']); ?> <?php editflg($value['logid'], $value['author']); ?> </p> <?php echo $value['log_description'];