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.

27 lines
986B

  1. <div class="narrow">
  2. <?= partial('partials/header') ?>
  3. <br>
  4. <ul class="entries">
  5. <?php foreach($this->entries as $entry): ?>
  6. <?= partial('partials/entry', array('entry' => $entry, 'user' => $this->user)) ?>
  7. <?php endforeach; ?>
  8. </ul>
  9. <?php if(count($this->entries) == 0): ?>
  10. <div class="bs-callout bs-callout-warning">There are no entries yet!</div>
  11. <?php endif; ?>
  12. <nav class="site-navigation">
  13. <? if($this->older) { ?>
  14. <a class="prev" href="/<?= $this->user->url ?>?before=<?= $this->older ?>" rel="prev"><abbr>&larr;</abbr> <span>Older</span></a>
  15. <? } else { ?>
  16. <a class="prev disabled"><abbr>&larr;</abbr> <span>Older</span></a>
  17. <? } ?>
  18. <? if($this->newer) { ?>
  19. <a class="next" href="/<?= $this->user->url ?>?before=<?= $this->newer ?>" rel="next"><abbr>&rarr;</abbr> <span>Newer</span></a>
  20. <? } else { ?>
  21. <a class="next disabled"><abbr>&rarr;</abbr> <span>Newer</span></a>
  22. <? } ?>
  23. </nav>
  24. </div>