menu.tpl 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% if menu is not null %}
  2. <div class="navbar subnav">
  3. <div class="navbar-inner">
  4. {% if app.full_width == 1 %}
  5. <div id="main" class="container-fluid">
  6. {% else %}
  7. <div id="main" class="container">
  8. {% endif %}
  9. <a data-toggle="collapse" data-target=".nav-collapse" class="btn btn-navbar">
  10. <span class="icon-bar"></span>
  11. <span class="icon-bar"></span>
  12. <span class="icon-bar"></span>
  13. </a>
  14. <a class="brand" href="{{ _p.web }}">{{ portal_name }}</a>
  15. <div class="nav-collapse">
  16. <ul class="nav">
  17. {{ menu }}
  18. </ul>
  19. {% if _u.logged == 1 %}
  20. <ul class="nav pull-right">
  21. {% if is_profile_editable == true %}
  22. <li class="dropdown">
  23. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  24. {% if ('allow_message_tool' | get_setting) == 'true' %}
  25. {{ _u.messages_count }}
  26. {% endif %}
  27. <img src="{{ _u.avatar_small }}"/>
  28. {{ _u.complete_name }}
  29. <b class="caret"></b>
  30. </a>
  31. <ul class="dropdown-menu">
  32. <li>
  33. {{ profile_link }}
  34. {{ message_link }}
  35. </li>
  36. </ul>
  37. </li>
  38. {% else %}
  39. <li>
  40. <a>
  41. {% if ('allow_message_tool' | get_setting) == 'true' %}
  42. {{ _u.messages_count }}
  43. {% endif %}
  44. <img src="{{ _u.avatar_small }}"/>
  45. {{ _u.complete_name }}
  46. </a>
  47. </li>
  48. {% endif %}
  49. <li>
  50. <a id="logout_button" class="logout" title="{{ "Logout"|get_lang }}" href="{{ url('logout') }}" >
  51. <img src="{{ "exit.png"|icon(22) }}">
  52. </a>
  53. </li>
  54. </ul>
  55. {% endif %}
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {% endif %}