summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-03-26 14:18:05 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-26 14:18:05 +0200
commit59c1405c7d4d014ff693ef6f44400ea06318dc69 (patch)
tree38e58b7dc313d5405022445be2796e529c795324 /app
parent5f898dcc5ee244e4adbd6aa83b607c844d432fb6 (diff)
TOS in footer (#5222)
* footer added * register page
Diffstat (limited to 'app')
-rw-r--r--app/views/auth/formLogin.phtml13
-rw-r--r--app/views/auth/register.phtml9
-rw-r--r--app/views/index/about.phtml8
-rw-r--r--app/views/index/tos.phtml6
4 files changed, 31 insertions, 5 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml
index 872caac02..29f98d20b 100644
--- a/app/views/auth/formLogin.phtml
+++ b/app/views/auth/formLogin.phtml
@@ -3,7 +3,9 @@
<h1><?= _t('gen.auth.login') ?></h1>
<?php if (!max_registrations_reached()) { ?>
- <a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
+ <div class="link-registration">
+ <a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
+ </div>
<?php } ?>
<form id="crypto-form" method="post" action="<?= _url('auth', 'login') ?>">
@@ -39,6 +41,11 @@
</button>
</div>
</form>
-
- <p><a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a></p>
</main>
+
+<footer class="main-footer">
+ <a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a>
+ <?php if (file_exists(TOS_FILENAME)) { ?>
+ | <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
+ <?php } ?>
+</footer>
diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml
index 999b2406a..98276452f 100644
--- a/app/views/auth/register.phtml
+++ b/app/views/auth/register.phtml
@@ -77,6 +77,11 @@
<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.cancel') ?></a>
</div>
</form>
-
- <p><a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a></p>
</main>
+
+<footer class="main-footer">
+ <a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a>
+ <?php if (file_exists(TOS_FILENAME)) { ?>
+ | <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
+ <?php } ?>
+</footer>
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml
index 41c0b1c72..1966c1f6b 100644
--- a/app/views/index/about.phtml
+++ b/app/views/index/about.phtml
@@ -45,3 +45,11 @@
<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 } ?>
diff --git a/app/views/index/tos.phtml b/app/views/index/tos.phtml
index 24610ed9f..8a9c2f583 100644
--- a/app/views/index/tos.phtml
+++ b/app/views/index/tos.phtml
@@ -27,3 +27,9 @@
<h1><?= _t('index.tos.title')?></h1>
<?= $this->terms_of_service ?>
</main>
+
+<?php if (!FreshRSS_Auth::hasAccess()) { ?>
+<footer class="main-footer">
+ <a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a>
+</footer>
+<?php } ?>