menu.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!-- Navigation -->
  2. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  3. <div class="navbar-header">
  4. <a class="navbar-brand" href="<?php echo $this->webApp()->getSite();?>">
  5. <?php echo $this->webApp()->getConfig('TITULO');?>
  6. </a>
  7. </div>
  8. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  9. <span class="sr-only">Toggle navigation</span>
  10. <span class="icon-bar"></span>
  11. <span class="icon-bar"></span>
  12. <span class="icon-bar"></span>
  13. </button>
  14. <!-- Top Navigation: Right Menu -->
  15. <ul class="nav navbar-right navbar-top-links">
  16. <li class="dropdown">
  17. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  18. <i class="fa fa-user fa-fw"></i> <?php echo $this->webApp()->getUsuario();?> <b class="caret"></b>
  19. </a>
  20. <ul class="dropdown-menu dropdown-user">
  21. <li><a href="usuario/miperfil"><i class="fa fa-user fa-fw"></i> Mi perfil</a></li>
  22. <li class="divider"></li>
  23. <li><a href="site/logout"><i class="fa fa-sign-out fa-fw"></i> Cerrar sesión</a></li>
  24. </ul>
  25. </li>
  26. </ul>
  27. <!-- Sidebar -->
  28. <div class="navbar-default sidebar" role="navigation">
  29. <div class="sidebar-nav navbar-collapse">
  30. <ul class="nav" id="side-menu">
  31. <li>
  32. <a href="usuario"><i class="fa fa-users fa-fw"></i> <span>Usuarios</span></a>
  33. </li>
  34. <li>
  35. <a href="#" id="contract"></a>
  36. </li>
  37. </ul>
  38. <div class="theme-selector">
  39. <div class="btn-group">
  40. <a href="usuario/theme?id=<?php echo oxusmedia\webApp\webApp::THEME_LIGHT;?>" id="theme-light" class="btn btn-xs light<?php echo $this->webApp()->getTheme() == oxusmedia\webApp\webApp::THEME_LIGHT ? ' active' : '';?>" title="Cambiar a tema Claro"><i class="fa fa-sun-o"></i></a>
  41. <a href="usuario/theme?id=<?php echo oxusmedia\webApp\webApp::THEME_DARKLY;?>" id="theme-dark" class="btn btn-xs dark<?php echo $this->webApp()->getTheme() == oxusmedia\webApp\webApp::THEME_DARKLY ? ' active' : '';?>" title="Cambiar a tema Oscuro"><i class="fa fa-moon-o"></i></a>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </nav>