diff options
| author | 2022-10-03 21:50:40 +0200 | |
|---|---|---|
| committer | 2022-10-03 21:50:40 +0200 | |
| commit | 645224a303c5672b318b62ff294302a9e82abe06 (patch) | |
| tree | 93a7da325bbcf9b3cb0e433774938fc2a845c496 /app/layout | |
| parent | 46d0b4140ebc3365618b23b01c094b0860baed9d (diff) | |
Improved: Remove <li> as separator (#4597)
* templates
* themes
* fix
* fix
* fixes
* fix
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/aside_feed.phtml | 4 | ||||
| -rw-r--r-- | app/layout/header.phtml | 3 | ||||
| -rw-r--r-- | app/layout/nav_menu.phtml | 19 |
3 files changed, 10 insertions, 16 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 79a83e1ba..3c4f1ec2e 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -163,9 +163,7 @@ <li class="item"><a href="<?= _url('stats', 'repartition', 'id', '------') ?>"><?= _t('index.menu.stats') ?></a></li> <?php } ?> <li class="item link website"><a target="_blank" rel="noreferrer" href="http://example.net/"><?= _t('gen.action.see_website') ?></a></li> - <?php if (FreshRSS_Auth::hasAccess()) { ?> - <li class="separator"></li> - <?php + <?php if (FreshRSS_Auth::hasAccess()) { $get = Minz_Request::param('get'); if (!$get) { $url = _url('subscription', 'feed', 'id', '------', 'from', $actual_view); diff --git a/app/layout/header.phtml b/app/layout/header.phtml index fc83b2044..f8e54c7ce 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -55,7 +55,6 @@ <?php else: ?> <li class="item"><span class="signout">(<?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?>)</span></li> <?php endif; ?> - <li class="separator"></li> <li class="dropdown-header"><?= _t('gen.menu.configuration') ?></li> <li class="item"><a href="<?= _url('configure', 'display') ?>"><?= _t('gen.menu.display') ?></a></li> <li class="item"><a href="<?= _url('configure', 'reading') ?>"><?= _t('gen.menu.reading') ?></a></li> @@ -67,7 +66,6 @@ <?= Minz_ExtensionManager::callHook('menu_configuration_entry') ?> <?php if (FreshRSS_Auth::hasAccess('admin')) { ?> - <li class="separator"></li> <li class="dropdown-header"><?= _t('gen.menu.admin') ?></li> <li class="item"><a href="<?= _url('configure', 'system') ?>"><?= _t('gen.menu.system') ?></a></li> <li class="item"><a href="<?= _url('user', 'manage') ?>"><?= _t('gen.menu.user_management') ?></a></li> @@ -79,7 +77,6 @@ <?= Minz_ExtensionManager::callHook('menu_admin_entry') ?> <?php } ?> - <li class="separator"></li> <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> <?= Minz_ExtensionManager::callHook('menu_other_entry') ?> diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index ee15cfe61..e8c4170c9 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -50,16 +50,17 @@ </li> <?php endforeach; ?> - <?php if (count(FreshRSS_Context::$user_conf->queries) > 0) { ?> - <li class="separator"></li> - <?php } ?> - <?php - $url_query = Minz_Request::currentRequest();; + $classSeparator = ''; + if (count(FreshRSS_Context::$user_conf->queries) > 0) { + $classSeparator = ' separator'; + } + + $url_query = Minz_Request::currentRequest(); $url_query['c'] = 'configure'; $url_query['a'] = 'bookmarkQuery'; ?> - <li class="item"><a href="<?= Minz_Url::display($url_query) ?>"><?= _i('bookmark-add') ?> <?= _t('index.menu.bookmark_query') ?></a></li> + <li class="item<?= $classSeparator ?>"><a href="<?= Minz_Url::display($url_query) ?>"><?= _i('bookmark-add') ?> <?= _t('index.menu.bookmark_query') ?></a></li> </ul> <a class="dropdown-close" href="#close">❌</a> </div> @@ -112,7 +113,6 @@ formaction="<?= Minz_Url::display($mark_read_url) ?>" type="submit"><?= $string_mark ?></button> </li> - <li class="separator"></li> <?php $today = @strtotime('today'); $mark_before_today = $mark_read_url; @@ -121,7 +121,7 @@ $mark_before_one_week['params']['idMax'] = ($today - 604800) . '000000'; $mark_unread_enabled = FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_READ) or !FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_NOT_READ); ?> - <li class="item"> + <li class="item separator"> <button class="as-link <?= $confirm ?>" form="mark-read-menu" formaction="<?= Minz_Url::display($mark_before_today) ?>" @@ -133,8 +133,7 @@ formaction="<?= Minz_Url::display($mark_before_one_week) ?>" type="submit"><?= _t('index.menu.before_one_week') ?></button> </li> - <li class="separator"></li> - <li class="item"> + <li class="item separator"> <button class="as-link <?= $mark_unread_enabled ? $confirm : '" disabled="disabled' ?>" form="mark-read-menu" formaction="<?= Minz_Url::display($mark_unread_url) ?>" |
