menu.tpl 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 }}">
  37. {{ "FAQ"|get_lang }}
  38. </a>
  39. </li>
  40. <li class="item-menu menu-3 {% if _p.basename == 'inscription.php' %} active {% endif %}">
  41. <a href="{{ _p.web }}main/auth/inscription.php?language={{ current_language }}">{{ "Subscription"|get_lang }}</a>
  42. </li>
  43. <li class="item-menu menu-4"><a href="{{ "DemoMenuLink"|get_lang }}">{{ "Demo"|get_lang }}</a></li>
  44. <li class="item-menu menu-5"><a href="{{ _p.web_url }}contact?_locale={{ document_language }}">{{ "Contact"|get_lang }}</a></li>
  45. {% endif %}
  46. </ul>
  47. {% if _u.logged == 1 %}
  48. <ul class="nav navbar-nav navbar-right">
  49. {% if user_notifications is not null %}
  50. <li><a href="{{ message_url }}">{{ user_notifications }}</a></li>
  51. {% endif %}
  52. {% if _u.status != 6 %}
  53. <li class="dropdown avatar-user">
  54. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  55. <img class="img-circle" src="{{ _u.avatar_small }}" alt="{{ _u.complete_name }}" /> <span class="caret"></span>
  56. </a>
  57. <ul class="dropdown-menu" role="menu">
  58. <li class="user-header">
  59. <div class="text-center">
  60. <img class="img-circle" src="{{ _u.avatar_medium }}" alt="{{ _u.complete_name }}" />
  61. <p class="name"><a href="{{ profile_url }}">{{ _u.complete_name }}</a></p>
  62. <p><i class="fa fa-envelope-o" aria-hidden="true"></i> {{ _u.email }}</p>
  63. </div>
  64. </li>
  65. <li role="separator" class="divider"></li>
  66. <li class="user-body">
  67. {% if _u.is_admin == 1 %}
  68. <a href="{{ _p.web }}main/admin">
  69. <em class="fa fa-cog" aria-hidden="true"></em>
  70. {{ "NomPageAdmin"|get_lang }}
  71. </a>
  72. {% endif %}
  73. <a href="{{ _p.web }}main/calendar/agenda_js.php?type=personal">
  74. <em class="fa fa-calendar" aria-hidden="true"></em>
  75. {{ "AllowPersonalAgendaTitle"|get_lang }}
  76. </a>
  77. <a title="{{ "Inbox"|get_lang }}" href="{{ message_url }}">
  78. <em class="fa fa-envelope" aria-hidden="true"></em> {{ "Inbox"|get_lang }}
  79. </a>
  80. <a title="{{ "MyCertificates"|get_lang }}" href="{{ certificate_url }}">
  81. <em class="fa fa-graduation-cap" aria-hidden="true"></em> {{ "MyCertificates"|get_lang }}
  82. </a>
  83. <a id="logout_button" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}" >
  84. <em class="fa fa-sign-out"></em> {{ "Logout"|get_lang }}
  85. </a>
  86. </li>
  87. </ul>
  88. </li>
  89. {% endif %}
  90. </ul>
  91. {% endif %}
  92. </div><!-- /.navbar-collapse -->
  93. </nav>
  94. </div><!-- /.container-fluid -->