diff options
| author | 2023-03-21 18:47:07 +0100 | |
|---|---|---|
| committer | 2023-03-21 18:47:07 +0100 | |
| commit | e679d3df0e55530c056d701b4773ff7e74f5c82c (patch) | |
| tree | 38c69b91a41c05b3f5893b90e7f71077db95b4c0 /app/layout | |
| parent | 34f62896ac729131dee25997307521bf259c5efc (diff) | |
Improved: show Terms of Service in config menu (#5215)
* Use constants for path to TOS
* improve comments
* TOS title moved to template
* TOS available via config menu
* CSS: improve handling of content of TOS/about
* give info about set/unset TOS in system config
* fix target
* i18n FR
* i18n DE
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/aside_configure.phtml | 5 | ||||
| -rw-r--r-- | app/layout/header.phtml | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml index 03b8108f7..6acb08f02 100644 --- a/app/layout/aside_configure.phtml +++ b/app/layout/aside_configure.phtml @@ -84,6 +84,11 @@ <li class="item<?= Minz_Request::actionName() === 'about' ? ' active' : '' ?>"> <a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a> </li> + <?php if (file_exists(TOS_FILENAME)) { ?> + <li class="item"> + <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a> + </li> + <?php } ?> </ul> </li> </ul> diff --git a/app/layout/header.phtml b/app/layout/header.phtml index 0a49d5992..37dd39d6c 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -103,6 +103,11 @@ <ul> <li class="item"><a href="<?= _url('index', 'logs') ?>"><?= _t('gen.menu.logs') ?></a></li> <li class="item"><a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a></li> + <?php if (file_exists(TOS_FILENAME)) { ?> + <li class="item"> + <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a> + </li> + <?php } ?> <?= Minz_ExtensionManager::callHook('menu_other_entry') ?> </ul> </li> |
