Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php Theme::plugins('postBegin') ?>
- <div class="details">
- <div class="p-title">
- <h1><?php echo $Post->title() ?></h1>
- </div>
- <div class="det_pic" align="center">
- <?php
- if($Post->coverImage()) {
- echo '<img src="'.$Post->coverImage().'" alt="Cover Image" class="img-responsive post-cover" >';
- }
- ?>
- </div>
- <div class="det_text">
- <?php echo $Post->content() ?>
- </div>
- <ul class="links">
- <?php
- // Get the user who created the post.
- $User = $Post->user();
- // Default author is the username.
- $author = $User->username();
- // If the user complete the first name or last name this will be the author.
- if( Text::isNotEmpty($User->firstName()) || Text::isNotEmpty($User->lastName()) ) {
- $author = $User->firstName().' '.$User->lastName();
- }
- ?>
- <li><i class="date"> </i><span class="icon_text"><time class="published" datetime="2015-11-01"><?php echo $Post->date() ?></time></span></li>
- <li><a href="#"><i class="admin"> </i><span class="icon_text"><?php echo $author ?></span></a></li>
- <?php Theme::plugins('postEnd') ?>
- </ul>
- <ul class="links_middle">
- <?php
- $tags = $Post->tags(true);
- foreach($tags as $tagKey=>$tagName) {
- echo '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</span></li>';
- }
- ?>
- </ul>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement