main_header.tpl 4.7 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 "default/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. {{ "youDeclareToAcceptCookies" | 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 class="skip">
  37. <ul>
  38. <li><a href="#menu">{{ "WCAGGoMenu"|get_lang }}</a></li>
  39. <li><a href="#content" accesskey="2">{{ "WCAGGoContent"|get_lang }}</a></li>
  40. </ul>
  41. </div>
  42. <div id="wrapper">
  43. <div id="page" class="page-section"> <!-- page section -->
  44. {# Bug and help notifications #}
  45. {% block help_notifications %}
  46. <ul id="navigation" class="notification-panel">
  47. {{ help_content }}
  48. {{ bug_notification_link }}
  49. </ul>
  50. {% endblock %}
  51. {# topbar #}
  52. {% block topbar %}
  53. {% include "default/layout/topbar.tpl" %}
  54. {% endblock %}
  55. <div id="main" class="container">
  56. <header>
  57. <div class="row">
  58. <div id="header_left" class="span4">
  59. {# logo #}
  60. {% block logo %}
  61. {{ logo }}
  62. {% endblock %}
  63. {# plugin_header left #}
  64. {% if plugin_header_left is not null %}
  65. <div id="plugin_header_left">
  66. {{ plugin_header_left }}
  67. </div>
  68. {% endif %}
  69. </div>
  70. <div id="header_center" class="span3">
  71. {# plugin_header center #}
  72. {% if plugin_header_center is not null %}
  73. <div id="plugin_header_center">
  74. {{ plugin_header_center }}
  75. </div>
  76. {% endif %}
  77. &nbsp;
  78. </div>
  79. <div id="header_right" class="span5">
  80. {# plugin_header right #}
  81. {% if plugin_header_right is not null %}
  82. <div id="plugin_header_right">
  83. {{ plugin_header_right }}
  84. </div>
  85. {% endif %}
  86. <div class="section-notifications">
  87. <ul id="notifications" class="nav nav-pills pull-right">
  88. {{ notification_menu }}
  89. </ul>
  90. </div>
  91. </div>
  92. </div>
  93. {% if plugin_header_main %}
  94. <div class="row">
  95. <div class="span12">
  96. <div id="plugin_header_main">
  97. {{ plugin_header_main }}
  98. </div>
  99. </div>
  100. </div>
  101. {% endif %}
  102. {# menu #}
  103. {% block menu %}
  104. {% include "default/layout/menu.tpl" %}
  105. {% endblock %}
  106. {# breadcrumb #}
  107. {% block breadcrumb %}
  108. {{ breadcrumb }}
  109. {% endblock %}
  110. </header>
  111. <div id="top_main_content" class="row">
  112. {# course navigation links/shortcuts need to be activated by the admin #}
  113. {% include "default/layout/course_navigation.tpl" %}
  114. {% endif %}