4
0

html.phtml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. // Override some layout preferences for the public API output
  5. FreshRSS_Context::userConf()->content_width = 'large';
  6. FreshRSS_Context::userConf()->show_author_date = FreshRSS_UserConfiguration::default()->show_author_date;
  7. FreshRSS_Context::userConf()->show_favicons = FreshRSS_UserConfiguration::default()->show_favicons;
  8. FreshRSS_Context::userConf()->show_feed_name = FreshRSS_UserConfiguration::default()->show_feed_name;
  9. FreshRSS_Context::userConf()->show_tags = FreshRSS_UserConfiguration::default()->show_tags;
  10. FreshRSS_Context::userConf()->show_tags_max = FreshRSS_UserConfiguration::default()->show_tags_max;
  11. ?>
  12. <?php $this->renderHelper('htmlPagination'); ?>
  13. <main id="stream" class="reader api">
  14. <h2>
  15. <a href="<?= $this->html_url ?>"><?= FreshRSS_View::title() ?></a> ·
  16. <a class="view-rss" href="<?= $this->rss_url ?>" title="<?= _t('index.menu.rss_view') ?>">
  17. <?= _i('rss') ?>
  18. </a>
  19. </h2>
  20. <?php
  21. foreach ($this->entries as $entry):
  22. $this->entry = $entry;
  23. $this->feed = $this->feeds[$entry->feedId()] ??
  24. FreshRSS_Category::findFeed($this->categories, $entry->feedId()) ??
  25. FreshRSS_Feed::default();
  26. ?>
  27. <div class="flux">
  28. <?php $this->renderHelper('index/article'); ?>
  29. </div>
  30. <?php endforeach; ?>
  31. </main>
  32. <?php $this->renderHelper('htmlPagination'); ?>