profile.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php if (!defined('HTMLY')) die('HTMLy'); ?>
  2. <?php if (!empty($breadcrumb)): ?>
  3. <div class="breadcrumb"><?php echo $breadcrumb ?></div>
  4. <?php endif; ?>
  5. <div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
  6. <div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
  7. <h1 class="title-post" itemprop="name"><?php echo $author->name ?></h1>
  8. <div class="bio" itemprop="description"><?php echo $author->about ?></div>
  9. </div>
  10. </div>
  11. <h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
  12. <?php if (!empty($posts)) { ?>
  13. <ul class="post-list">
  14. <?php foreach ($posts as $p): ?>
  15. <li class="item">
  16. <span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> <?php echo i18n('by');?>
  17. <span><?php echo format_date($p->date) ?></span> - <?php echo i18n('Posted_in');?> <span><?php echo $p->category; ?></span>
  18. </li>
  19. <?php endforeach; ?>
  20. </ul>
  21. <?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
  22. <div class="pager">
  23. <?php if (!empty($pagination['prev'])): ?>
  24. <span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev"><?php echo i18n('Newer');?></a></span>
  25. <?php endif; ?>
  26. <?php if (!empty($pagination['next'])): ?>
  27. <span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next"><?php echo i18n('Older');?></a></span>
  28. <?php endif; ?>
  29. </div>
  30. <?php endif; ?>
  31. <?php } else {
  32. echo i18n('No_posts_found') . '!';
  33. } ?>