menu.tpl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. </ul>
  18. {% if _u.logged == 1 %}
  19. <ul class="nav pull-right">
  20. {% if is_profile_editable == true %}
  21. <li class="dropdown">
  22. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  23. {% if ('allow_message_tool' | get_setting) == 'true' %}
  24. {{ _u.messages_count }}
  25. {% endif %}
  26. <img src="{{ _u.avatar_small }}"/>
  27. {{ _u.complete_name }}
  28. <b class="caret"></b>
  29. </a>
  30. <ul class="dropdown-menu">
  31. <li>
  32. {{ profile_link }}
  33. {{ message_link }}
  34. </li>
  35. </ul>
  36. </li>
  37. {% else %}
  38. <li>
  39. <a>
  40. {% if ('allow_message_tool' | get_setting) == 'true' %}
  41. {{ _u.messages_count }}
  42. {% endif %}
  43. <img src="{{ _u.avatar_small }}"/>
  44. {{ _u.complete_name }}
  45. </a>
  46. </li>
  47. {% endif %}
  48. <li>
  49. <a id="logout_button" class="logout" title="{{ "Logout"|get_lang }}" href="{{ url('logout') }}" >
  50. <img src="{{ "exit.png"|icon(22) }}">
  51. </a>
  52. </li>
  53. </ul>
  54. {% endif %}
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {% endif %}