menu.tpl 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <div class="container">
  2. <nav class="navbar navbar-default">
  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" aria-expanded="false">
  6. <span class="sr-only">Toggle navigation</span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. </button>
  11. <a class="navbar-brand" href="{{ _p.web }}">
  12. {{ _s.site_name }}
  13. </a>
  14. </div>
  15. <!-- Collect the nav links, forms, and other content for toggling -->
  16. <div class="collapse navbar-collapse" id="menuone">
  17. <ul class="nav navbar-nav">
  18. {% if _u.logged == 1 %}
  19. {% for items in menu %}
  20. {% if items.key != 'profile' and items.key != 'dashboard' and items.key != 'admin' and items.key != 'agenda' %}
  21. {% set counter = counter + 1 %}
  22. <li class="item-menu menu-{{ counter }} {{ items.key }} {{ items.current }}">
  23. <a href="{{ items.url }}">{{ items.title }}</a>
  24. </li>
  25. {% endif %}
  26. {% endfor %}
  27. {% endif %}
  28. {% if _u.logged == 1 %}
  29. <li class="item-menu menu-5"><a href="{{ _p.web_url }}faq?_locale={{ document_language }}">{{ "FAQ"|get_lang }}</a></li>
  30. {% endif %}
  31. {% if _u.logged == 0 %}
  32. <li class="item-menu {% if _p.basename == 'index.php' %} active {% endif %}">
  33. <a href="{{ _p.web }}?language={{ current_language }}">{{ "CampusHomepage"|get_lang }}</a>
  34. </li>
  35. <li class="item-menu menu-2">
  36. <a href="{{ _p.web_url }}faq?_locale={{ document_language }}">{{ "FAQ"|get_lang }}</a>
  37. </li>
  38. <li class="item-menu menu-3 {% if _p.basename == 'inscription.php' %} active {% endif %}">
  39. <a href="{{ _p.web }}main/auth/inscription.php?language={{ current_language }}">{{ "Subscription"|get_lang }}</a>
  40. </li>
  41. <li class="item-menu menu-4"><a href="{{ "DemoMenuLink"|get_lang }}">{{ "Demo"|get_lang }}</a></li>
  42. <li class="item-menu menu-5"><a href="{{ _p.web_url }}contact?_locale={{ document_language }}">{{ "Contact"|get_lang }}</a></li>
  43. {% endif %}
  44. </ul>
  45. {% if _u.logged == 1 %}
  46. <ul class="nav navbar-nav navbar-right">
  47. {% if user_notifications is not null %}
  48. <li><a href="{{ message_url }}">{{ user_notifications }}</a></li>
  49. {% endif %}
  50. {% if _u.status != 6 %}
  51. <li class="dropdown avatar-user">
  52. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  53. <img class="img-circle" src="{{ _u.avatar_small }}" alt="{{ _u.complete_name }}" /> <span class="caret"></span>
  54. </a>
  55. <ul class="dropdown-menu" role="menu">
  56. <li class="user-header">
  57. <div class="text-center">
  58. <img class="img-circle" src="{{ _u.avatar_medium }}" alt="{{ _u.complete_name }}" />
  59. <p class="name"><a href="{{ profile_url }}">{{ _u.complete_name }}</a></p>
  60. <p><i class="fa fa-envelope-o" aria-hidden="true"></i> {{ _u.email }}</p>
  61. </div>
  62. </li>
  63. <li role="separator" class="divider"></li>
  64. <li class="user-body">
  65. {% if _u.is_admin == 1 %}
  66. <a href="{{ _p.web }}main/admin">
  67. <em class="fa fa-cog" aria-hidden="true"></em>
  68. {{ "NomPageAdmin"|get_lang }}
  69. </a>
  70. {% endif %}
  71. <a href="{{ _p.web }}main/calendar/agenda_js.php?type=personal">
  72. <em class="fa fa-calendar" aria-hidden="true"></em>
  73. {{ "AllowPersonalAgendaTitle"|get_lang }}
  74. </a>
  75. <a title="{{ "Inbox"|get_lang }}" href="{{ message_url }}">
  76. <em class="fa fa-envelope" aria-hidden="true"></em> {{ "Inbox"|get_lang }}
  77. </a>
  78. <a title="{{ "MyCertificates"|get_lang }}" href="{{ certificate_url }}">
  79. <em class="fa fa-graduation-cap" aria-hidden="true"></em> {{ "MyCertificates"|get_lang }}
  80. </a>
  81. <a id="logout_button" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}" >
  82. <em class="fa fa-sign-out"></em> {{ "Logout"|get_lang }}
  83. </a>
  84. </li>
  85. </ul>
  86. </li>
  87. {% endif %}
  88. </ul>
  89. {% endif %}
  90. </div><!-- /.navbar-collapse -->
  91. </nav>
  92. </div><!-- /.container-fluid -->