$this->title = $model['title']; ?> <div class="content-wrap"> <div class="content"> <header class="article-header"> <h1 class="article-title"><?php echo $model['title']?></h1> <div class="meta"> <span id="mute-category" class="muted"><i class="fa fa-list-alt"></i><a href=""> 搞笑</a></span> <span class="muted"><i class="fa fa-user"></i> <a href="">LuLu Blog</a></span> <time class="muted"><i class="fa fa-clock-o"></i> <?php echo TimeHelper::formatTime($model['created_at']) ?></time> <span class="muted"><i class="fa fa-eye"></i> <?php echo $model['view_count']?>℃</span> <span class="muted"><i class="fa fa-comments-o"></i> <a href=""><?php echo $model['comment_count']?>评论</a></span> </div> </header> <article class="article-content"> <?php echo $model['body_body'] ?> </article> <div class="line"></div> <div class="related_top"> <div class="related_posts"> <div class="related_img"> <ul> <?php echo $this->render(Resource::getThemePath('/views/_inc/content_list'),['orderBy'=>'created_at desc','item'=>'item_related','limit'=>4]);?> </ul>
?> <div class="content-wrap"> <div class="content"> <header class="article-header"> <h1 class="article-title"><?php echo $model['title']; ?> </h1> <div class="meta"> <span id="mute-category" class="muted"><i class="fa fa-list-alt"></i><a href=""> 搞笑</a></span> <span class="muted"><i class="fa fa-user"></i> <a href="">LuLu Blog</a></span> <time class="muted"><i class="fa fa-clock-o"></i> <?php echo TimeHelper::formatTime($model['created_at']); ?> </time> <span class="muted"><i class="fa fa-eye"></i> <?php echo $model['view_count']; ?> ℃</span> <span class="muted"><i class="fa fa-comments-o"></i> <a href=""><?php echo $model['comment_count']; ?> 评论</a></span> </div> </header> <article class="article-content"> <?php
public function getCreatedAt() { return TimeHelper::formatTime($this->created_at); }