summaryrefslogtreecommitdiff
path: root/app/layout/aside_configure.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/layout/aside_configure.phtml')
-rw-r--r--app/layout/aside_configure.phtml54
1 files changed, 42 insertions, 12 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml
index 27f11ab6d..d956ec21f 100644
--- a/app/layout/aside_configure.phtml
+++ b/app/layout/aside_configure.phtml
@@ -1,19 +1,49 @@
<ul class="nav nav-list aside">
- <li class="nav-header"><?php echo Minz_Translate::t ('configuration'); ?></li>
- <li class="item<?php echo Minz_Request::actionName () == 'display' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Minz_Translate::t ('reading_configuration'); ?></a>
+ <li class="nav-header"><?php echo _t('gen.menu.configuration'); ?></li>
+ <li class="item<?php echo Minz_Request::actionName() === 'display' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'display'); ?>"><?php echo _t('gen.menu.display'); ?></a>
</li>
- <li class="item<?php echo Minz_Request::actionName () == 'archiving' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'archiving'); ?>"><?php echo Minz_Translate::t ('archiving_configuration'); ?></a>
+ <li class="item<?php echo Minz_Request::actionName() === 'reading' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'reading'); ?>"><?php echo _t('gen.menu.reading'); ?></a>
</li>
- <li class="item<?php echo Minz_Request::actionName () == 'sharing' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'sharing'); ?>"><?php echo Minz_Translate::t ('sharing'); ?></a>
+ <li class="item<?php echo Minz_Request::actionName() === 'archiving' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'archiving'); ?>"><?php echo _t('gen.menu.archiving'); ?></a>
</li>
- <li class="item<?php echo Minz_Request::actionName () == 'shortcut' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'shortcut'); ?>"><?php echo Minz_Translate::t ('shortcuts'); ?></a>
+ <li class="item<?php echo Minz_Request::actionName() === 'sharing' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'sharing'); ?>"><?php echo _t('gen.menu.sharing'); ?></a>
</li>
- <li class="separator"></li>
- <li class="item<?php echo Minz_Request::actionName () == 'users' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'users'); ?>"><?php echo Minz_Translate::t ('users'); ?></a>
+ <li class="item<?php echo Minz_Request::actionName() === 'shortcut' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'shortcut'); ?>"><?php echo _t('gen.menu.shortcuts'); ?></a>
</li>
+ <li class="item<?php echo Minz_Request::actionName() === 'queries' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'queries'); ?>"><?php echo _t('gen.menu.queries'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'user' &&
+ Minz_Request::actionName() === 'profile'? ' active' : ''; ?>">
+ <a href="<?php echo _url('user', 'profile'); ?>"><?php echo _t('gen.menu.user_profile'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'extension' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('extension', 'index'); ?>"><?php echo _t('gen.menu.extensions'); ?></a>
+ </li>
+ <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
+ <li class="nav-header"><?php echo _t('gen.menu.admin'); ?></li>
+ <li class="item<?php echo Minz_Request::actionName() === 'system' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('configure', 'system')?>"><?php echo _t('gen.menu.system'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'user' &&
+ Minz_Request::actionName() === 'manage' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('user', 'manage'); ?>"><?php echo _t('gen.menu.user_management'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'auth' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('auth', 'index'); ?>"><?php echo _t('gen.menu.authentication'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'checkInstall' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('update', 'checkInstall'); ?>"><?php echo _t('gen.menu.check_install'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'index' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('gen.menu.update'); ?></a>
+ </li>
+ <?php } ?>
</ul>