menu.tpl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <nav id="menubar" class="navbar navbar-default">
  2. <div class="container">
  3. <!-- Brand and toggle get grouped for better mobile display -->
  4. <div class="navbar-header">
  5. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menuone"
  6. aria-expanded="false">
  7. <span class="sr-only">Toggle navigation</span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. </button>
  12. <a class="navbar-brand" href="{{ _p.web }}">{{ _s.site_name }}</a>
  13. </div>
  14. <div class="collapse navbar-collapse" id="menuone">
  15. <ul class="nav navbar-nav">
  16. {% for item in menu %}
  17. <li class="{{ item.current }}">
  18. <a href="{{ item.url }}" target="{{ item.target }}" title="{{ item.title }}">{{ item.title }}
  19. </a>
  20. </li>
  21. {% endfor %}
  22. </ul>
  23. {% if _u.logged == 1 %}
  24. <script>
  25. $(document).ready(function () {
  26. $("#count_message")
  27. .load('{{ _p.web_main }}inc/ajax/message.ajax.php?a=get_count_message', function () {
  28. $("#count_message_li").removeClass('hidden');
  29. });
  30. });
  31. </script>
  32. <ul class="nav navbar-nav navbar-right">
  33. <li id="count_message_li" class="hidden">
  34. <a href="{{ message_url }}">
  35. <span id="count_message"></span>
  36. </a>
  37. </li>
  38. {% if _u.status != 6 %}
  39. <li class="dropdown avatar-user">
  40. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
  41. aria-expanded="false">
  42. <img class="img-circle" src="{{ _u.avatar_small }}" alt="{{ _u.complete_name }}"/>
  43. <span class="username-movil">{{ _u.complete_name }}</span>
  44. <span class="caret"></span>
  45. </a>
  46. <ul class="dropdown-menu" role="menu">
  47. <li class="user-header">
  48. <div class="text-center">
  49. <img class="img-circle" src="{{ _u.avatar_medium }}"
  50. alt="{{ _u.complete_name }}"/>
  51. <p class="name"><a href="{{ profile_url }}">{{ _u.complete_name }}</a></p>
  52. <p><i class="fa fa-envelope-o" aria-hidden="true"></i> {{ _u.email }}</p>
  53. </div>
  54. </li>
  55. <li role="separator" class="divider"></li>
  56. <li class="user-body">
  57. <a title="{{ "Inbox"|get_lang }}" href="{{ message_url }}">
  58. <em class="fa fa-envelope" aria-hidden="true"></em> {{ "Inbox"|get_lang }}
  59. </a>
  60. </li>
  61. {% if certificate_url %}
  62. <li class="user-body">
  63. <a title="{{ "MyCertificates"|get_lang }}" href="{{ certificate_url }}">
  64. <em class="fa fa-graduation-cap"
  65. aria-hidden="true"></em> {{ "MyCertificates"|get_lang }}
  66. </a>
  67. </li>
  68. {% endif %}
  69. <li class="user-body">
  70. <a id="logout_button" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}">
  71. <em class="fa fa-sign-out"></em> {{ "Logout"|get_lang }}
  72. </a>
  73. </li>
  74. </ul>
  75. </li>
  76. {% endif %}
  77. </ul>
  78. {% endif %}
  79. </div>
  80. </div>
  81. </nav>