Files
FreshRSS/app/views/index/about.phtml
T
Alexandre Alapetite a80a5f48a1 Pass PHPStan level 8 (#5946)
* Pass PHPStan level 8
And prepare for PHPStan level 9 https://phpstan.org/user-guide/rule-levels

* Revert wrong replace in comment

* Fix PHPStan level 8

* Update PHPStan and other dev dependencies

* Remove obsolete comment

* noVariableVariables and towards bleedingEdge
https://github.com/phpstan/phpstan-strict-rules
https://phpstan.org/blog/what-is-bleeding-edge

* More bleedingEdge

* A bit more PHPStan level 9

* More PHPStan level 9

* Prepare for booleansInConditions
Ignore int and null

* Revert wrong line

* More fixes

* Fix keep_max_n_unread

* Stricter attribute functions

* Stricter callHooks and more PHPStan level 9

* More typing

* A tiny more
2023-12-18 17:59:16 +01:00

56 lines
1.6 KiB
PHTML

<?php
declare(strict_types=1);
/** @var FreshRSS_View $this */
if (FreshRSS_Auth::hasAccess()) {
$this->partial('aside_configure');
}
?>
<main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
<?php if (FreshRSS_Auth::hasAccess()) {?>
<div class="link-back-wrapper">
<a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
</div>
<?php } ?>
<h1><?= _t('index.about') ?></h1>
<p><?= _t('index.about.freshrss_description') ?></p>
<h2><?= _t('index.about.project_website') ?></h2>
<a href="<?= FRESHRSS_WEBSITE ?>" target="_blank"><?= FRESHRSS_WEBSITE ?></a>
<h2><?= _t('index.about.documentation') ?></h2>
<a href="<?= FRESHRSS_WIKI ?>" target="_blank"><?= FRESHRSS_WIKI ?></a>
<h2><?= _t('index.about.bugs_reports') ?></h2>
<?= _t('index.about.github') ?>
<h2><?= _t('index.about.license') ?></h2>
<?= _t('index.about.agpl3') ?>
<?php
if (FreshRSS_Auth::hasAccess()) { ?>
<h2><?= _t('index.about.version') ?></h2>
<?= FRESHRSS_VERSION ?>
<?php
$env = FreshRSS_Context::systemConf()->environment;
if ($env !== 'production' && FreshRSS_Context::userConf()->is_admin) { ?>
<h2>data/config.php</h2>
<code>'environment' => '<?= $env; ?>'</code><br />
<?php
}
}
?>
<h2><?= _t('index.about.credits') ?></h2>
<p><?= _t('index.about.credits_content') ?></p>
</main>
<?php if (!FreshRSS_Auth::hasAccess()) { ?>
<footer class="main-footer">
<?php if (file_exists(TOS_FILENAME)) { ?>
<a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
<?php } ?>
</footer>
<?php } ?>