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.

62 lines
1.7 KiB

  1. <!-- <h1 class="subhead"><?php echo $Language->get('Post') ?></h1>-->
  2. <div class="container">
  3. <div class="box">
  4. <div class="col-lg-12 text-center">
  5. <!-- Plugins Post Begin -->
  6. <?php Theme::plugins('postBegin') ?>
  7. <!-- Post header -->
  8. <header class="post-header">
  9. <!-- Post title -->
  10. <h2 class="post-title">
  11. <hr><a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
  12. <h4><small><?php echo $Post->description() ?></small></h4><hr> </h2>
  13. </div>
  14. </header>
  15. <!-- Cover Image -->
  16. <?php
  17. if($Post->coverImage()) {
  18. echo '<a href="'.$Post->permalink().'" class="image featured"><img src="'.$Post->coverImage().'" alt="Cover Image"></a>';
  19. }
  20. ?>
  21. <!-- Post content -->
  22. <div class="col-lg-12 ">
  23. <?php echo $Post->content() ?>
  24. </div>
  25. <!-- Post's tags -->
  26. <p>&nbsp;</p>
  27. <div class="col-md-6 text-left">
  28. <h5>
  29. <small>
  30. <strong><?php $Language->p('Tags') ?></strong>
  31. <?php
  32. $tags = $Post->tags(true);
  33. foreach($tags as $tagKey=>$tagName) {
  34. echo '&nbsp;|&nbsp <a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a>';
  35. }
  36. ?>
  37. </small>
  38. </h5>
  39. <!-- Post date and author -->
  40. <h6>
  41. <small>
  42. <?php
  43. $User = $Post->user();
  44. $author = $User->username();
  45. if( Text::isNotEmpty($User->firstName()) || Text::isNotEmpty($User->lastName()) ) {
  46. $author = $User->firstName().' '.$User->lastName();
  47. }
  48. ?>
  49. <time><?php echo $Post->date() ?></time>&nbsp;|&nbsp
  50. <span class="name"><?php echo $author ?></span>
  51. </small>
  52. </h6>
  53. </div>
  54. <!-- Plugins Post End -->
  55. <?php Theme::plugins('postEnd') ?>
  56. </div></div>
  57. </section>