reader_view.phtml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $this->partial ('nav_menu');
  3. if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {
  4. $items = $this->entryPaginator->items ();
  5. ?>
  6. <div id="stream" class="reader">
  7. <?php foreach ($items as $item) { ?>
  8. <div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>">
  9. <div class="flux_content">
  10. <div class="content">
  11. <?php $feed = $item->feed (true); ?>
  12. <a href="<?php echo $item->link (); ?>">
  13. <img class="favicon" src="<?php echo $feed->favicon (); ?>" alt="" /> <span><?php echo $feed->name (); ?></span>
  14. </a>
  15. <h1 class="title"><?php echo $item->title (); ?></h1>
  16. <div class="author">
  17. <?php $author = $item->author (); ?>
  18. <?php echo $author != '' ? Translate::t ('by_author', $author) . ' - ' : ''; ?>
  19. <?php echo $item->date (); ?>
  20. </div>
  21. <?php
  22. if($this->conf->lazyload() == 'yes') {
  23. echo lazyimg($item->content ());
  24. } else {
  25. echo $item->content();
  26. }
  27. ?>
  28. </div>
  29. </div>
  30. </div>
  31. <?php } ?>
  32. <?php $this->entryPaginator->render ('pagination.phtml', 'next'); ?>
  33. </div>
  34. <?php } else { ?>
  35. <div id="stream" class="alert alert-warn reader">
  36. <span class="alert-head"><?php echo Translate::t ('no_feed_to_display'); ?></span>
  37. </div>
  38. <?php } ?>