about.phtml 1.5 KB

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