about.phtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. if (FreshRSS_Auth::hasAccess()) {
  5. $this->partial('aside_configure');
  6. }
  7. ?>
  8. <main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
  9. <?php if (FreshRSS_Auth::hasAccess()) {?>
  10. <div class="link-back-wrapper">
  11. <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
  12. </div>
  13. <?php } ?>
  14. <h1><?= _t('index.about') ?></h1>
  15. <p><?= _t('index.about.freshrss_description') ?></p>
  16. <h2><?= _t('index.about.project_website') ?></h2>
  17. <a href="<?= FRESHRSS_WEBSITE ?>" target="_blank"><?= FRESHRSS_WEBSITE ?></a>
  18. <h2><?= _t('index.about.documentation') ?></h2>
  19. <a href="<?= FRESHRSS_WIKI ?>" target="_blank"><?= FRESHRSS_WIKI ?></a>
  20. <h2><?= _t('index.about.bugs_reports') ?></h2>
  21. <?= _t('index.about.github') ?>
  22. <h2><?= _t('index.about.license') ?></h2>
  23. <?= _t('index.about.agpl3') ?>
  24. <?php
  25. if (FreshRSS_Auth::hasAccess()) { ?>
  26. <h2><?= _t('index.about.version') ?></h2>
  27. <?= FRESHRSS_VERSION ?>
  28. <?php
  29. $env = FreshRSS_Context::systemConf()->environment;
  30. if ($env !== 'production' && FreshRSS_Context::userConf()->is_admin) { ?>
  31. <h2>data/config.php</h2>
  32. <code>'environment' => '<?= $env; ?>'</code><br />
  33. <?php
  34. }
  35. }
  36. ?>
  37. <h2><?= _t('index.about.credits') ?></h2>
  38. <p><?= _t('index.about.credits_content') ?></p>
  39. </main>
  40. <?php if (!FreshRSS_Auth::hasAccess()) { ?>
  41. <footer class="main-footer">
  42. <?php if (file_exists(TOS_FILENAME)) { ?>
  43. <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
  44. <?php } ?>
  45. </footer>
  46. <?php } ?>