aside_configure.phtml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <ul class="nav nav-list aside">
  2. <li class="nav-header"><?php echo _t('configuration'); ?></li>
  3. <li class="item<?php echo Minz_Request::actionName() === 'display' ? ' active' : ''; ?>">
  4. <a href="<?php echo _url('configure', 'display'); ?>"><?php echo _t('display_configuration'); ?></a>
  5. </li>
  6. <li class="item<?php echo Minz_Request::actionName() === 'reading' ? ' active' : ''; ?>">
  7. <a href="<?php echo _url('configure', 'reading'); ?>"><?php echo _t('reading_configuration'); ?></a>
  8. </li>
  9. <li class="item<?php echo Minz_Request::actionName() === 'archiving' ? ' active' : ''; ?>">
  10. <a href="<?php echo _url('configure', 'archiving'); ?>"><?php echo _t('archiving_configuration'); ?></a>
  11. </li>
  12. <li class="item<?php echo Minz_Request::actionName() === 'sharing' ? ' active' : ''; ?>">
  13. <a href="<?php echo _url('configure', 'sharing'); ?>"><?php echo _t('sharing'); ?></a>
  14. </li>
  15. <li class="item<?php echo Minz_Request::actionName() === 'shortcut' ? ' active' : ''; ?>">
  16. <a href="<?php echo _url('configure', 'shortcut'); ?>"><?php echo _t('shortcuts'); ?></a>
  17. </li>
  18. <li class="item<?php echo Minz_Request::actionName() === 'queries' ? ' active' : ''; ?>">
  19. <a href="<?php echo _url('configure', 'queries'); ?>"><?php echo _t('queries'); ?></a>
  20. </li>
  21. <li class="separator"></li>
  22. <li class="item<?php echo Minz_Request::actionName() === 'users' ? ' active' : ''; ?>">
  23. <a href="<?php echo _url('configure', 'users'); ?>"><?php echo _t('users'); ?></a>
  24. </li>
  25. <?php
  26. $current_user = Minz_Session::param('currentUser', '');
  27. if (Minz_Configuration::isAdmin($current_user)) {
  28. ?>
  29. <li class="item<?php echo Minz_Request::controllerName() === 'update' ? ' active' : ''; ?>">
  30. <a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('update'); ?></a>
  31. </li>
  32. <?php } ?>
  33. </ul>