main_header.tpl 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]> <html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  3. <!--[if IE 7]> <html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8"> <![endif]-->
  4. <!--[if IE 8]> <html lang="{{ document_language }}" class="no-js lt-ie9"> <![endif]-->
  5. <!--[if gt IE 8]><!--><html lang="{{ document_language }}" class="no-js"> <!--<![endif]-->
  6. <head>
  7. {% block head %}
  8. {% include template ~ "/layout/head.tpl" %}
  9. {% endblock %}
  10. </head>
  11. <body dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
  12. <noscript>{{ "NoJavascript"|get_lang }}</noscript>
  13. <!-- Display the Chamilo Uses Cookies Warning Validation if needed -->
  14. {% if displayCookieUsageWarning == true %}
  15. <!-- If toolbar is displayed, we have to display this block bellow it -->
  16. {% if toolBarDisplayed == true %}
  17. <div class="displayUnderToolbar" >&nbsp;</div>
  18. {% endif %}
  19. <form onSubmit="$(this).toggle('slow')" action="" method="post">
  20. <input value=1 type="hidden" name="acceptCookies"/>
  21. <div class="cookieUsageValidation">
  22. {{ "YouAcceptCookies" | get_lang }}
  23. <span style="margin-left:20px;" onclick="$(this).next().toggle('slow'); $(this).toggle('slow')">
  24. ({{"More" | get_lang }})
  25. </span>
  26. <div style="display:none; margin:20px 0;">
  27. {{ "HelpCookieUsageValidation" | get_lang}}
  28. </div>
  29. <span style="margin-left:20px;" onclick="$(this).parent().parent().submit()">
  30. ({{"Accept" | get_lang }})
  31. </span>
  32. </div>
  33. </form>
  34. {% endif %}
  35. {% if show_header == true %}
  36. <div id="page-wrap"><!-- page section -->
  37. {# Bug and help notifications #}
  38. {% block help_notifications %}
  39. <ul id="navigation" class="notification-panel">
  40. {{ help_content }}
  41. {{ bug_notification_link }}
  42. </ul>
  43. {% endblock %}
  44. {# topbar #}
  45. {% block topbar %}
  46. {% include template ~ "/layout/topbar.tpl" %}
  47. {% if show_toolbar == 1 %}
  48. <div class="clear-header"></div>
  49. {% endif %}
  50. {% endblock %}
  51. <header>
  52. <div class="extra-header">{{ header_extra_content }}</div>
  53. <section id="main" class="container">
  54. {% if plugin_header_main %}
  55. <div class="row">
  56. <div class="col-lg-12">
  57. {{ plugin_header_main }}
  58. </div>
  59. </div>
  60. {% endif %}
  61. <div class="row">
  62. <div class="col-lg-3">
  63. <div class="logo">
  64. {{ logo }}
  65. </div>
  66. </div>
  67. <div class="col-lg-9">
  68. <div class="col-sm-4">
  69. {% if plugin_header_left is not null %}
  70. <div id="plugin_header_left">
  71. {{ plugin_header_left }}
  72. </div>
  73. {% endif %}
  74. </div>
  75. <div class="col-sm-4">
  76. {% if plugin_header_center is not null %}
  77. <div id="plugin_header_center">
  78. {{ plugin_header_center }}
  79. </div>
  80. {% endif %}
  81. </div>
  82. <div class="col-sm-4">
  83. {% if plugin_header_right is not null %}
  84. <div id="plugin_header_right">
  85. {{ plugin_header_right }}
  86. </div>
  87. {% endif %}
  88. <div class="section-notifications">
  89. <ul id="notifications" class="nav nav-pills pull-right">
  90. {{ notification_menu }}
  91. </ul>
  92. </div>
  93. {{ accessibility }}
  94. </div>
  95. </div>
  96. </div>
  97. </section>
  98. <section id="menu-bar">
  99. {# menu #}
  100. {% block menu %}
  101. {% include template ~ "/layout/menu.tpl" %}
  102. {% endblock %}
  103. </section>
  104. <section id="breadcrumb-bar">
  105. <div class="container">
  106. {# breadcrumb #}
  107. {% block breadcrumb %}
  108. {{ breadcrumb }}
  109. {% endblock %}
  110. </div>
  111. </section>
  112. </header>
  113. <div id="top_main_content" class="container">
  114. <div class="row">
  115. {# course navigation links/shortcuts need to be activated by the admin #}
  116. {% include template ~ "/layout/course_navigation.tpl" %}
  117. {% endif %}