about.phtml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <h1><?= _t('index.about') ?></h1>
  10. <p><?= _t('index.about.freshrss_description') ?></p>
  11. <h2><?= _t('index.about.project_website') ?></h2>
  12. <a href="<?= FRESHRSS_WEBSITE ?>" target="_blank"><?= FRESHRSS_WEBSITE ?></a>
  13. <h2><?= _t('index.about.documentation') ?></h2>
  14. <a href="<?= FRESHRSS_WIKI ?>" target="_blank"><?= FRESHRSS_WIKI ?></a>
  15. <h2><?= _t('index.about.bugs_reports') ?></h2>
  16. <?= _t('index.about.github') ?>
  17. <h2><?= _t('index.about.license') ?></h2>
  18. <?= _t('index.about.agpl3') ?>
  19. <?php
  20. if (FreshRSS_Auth::hasAccess()) { ?>
  21. <h2><?= _t('index.about.version') ?></h2>
  22. <?= FRESHRSS_VERSION ?>
  23. <?php
  24. $env = FreshRSS_Context::systemConf()->environment;
  25. if ($env !== 'production' && FreshRSS_Context::userConf()->is_admin) { ?>
  26. <h2>data/config.php</h2>
  27. <code>'environment' => '<?= $env; ?>'</code><br />
  28. <?php
  29. }
  30. }
  31. ?>
  32. <h2><?= _t('index.about.credits') ?></h2>
  33. <p><?= _t('index.about.credits_content') ?></p>
  34. </main>
  35. <?php if (!FreshRSS_Auth::hasAccess()) { ?>
  36. <footer class="main-footer">
  37. <?php if (file_exists(TOS_FILENAME)) { ?>
  38. <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
  39. <?php } ?>
  40. </footer>
  41. <?php } ?>