layout_2_col.tpl 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {% extends 'layout/page.tpl'|get_template %}
  2. {% import 'default/macro/macro.tpl' as display %}
  3. {% block body %}
  4. {% if plugin_main_top %}
  5. {{ display.pluginPanel('main-top', plugin_main_top) }}
  6. {% endif %}
  7. <div class="row">
  8. <div class="col-md-9 col-md-push-3">
  9. <div class="page-content">
  10. {% if plugin_content_top %}
  11. <div class="page-content-top">
  12. {{ plugin_content_top }}
  13. </div>
  14. {% endif %}
  15. {{ sniff_notification }}
  16. {% if home_welcome %}
  17. <article id="home-welcome">
  18. {{ home_welcome }}
  19. </article>
  20. {% endif %}
  21. {% if home_include %}
  22. <article id="home-include">
  23. {{ home_include }}
  24. </article>
  25. {% endif %}
  26. {% block page_body %}
  27. {% include 'layout/page_body.tpl'|get_template %}
  28. {% endblock %}
  29. {% if welcome_to_course_block %}
  30. <article id="homepage-course">
  31. {{ welcome_to_course_block }}
  32. </article>
  33. {% endif %}
  34. {% block content %}
  35. {% if content is not null %}
  36. <section id="page" class="{{ course_history_page }}">
  37. {{ content }}
  38. </section>
  39. {% endif %}
  40. {% endblock %}
  41. {% if announcements_block %}
  42. <article id="homepage-announcements">
  43. {{ announcements_block }}
  44. </article>
  45. {% endif %}
  46. {% if course_category_block %}
  47. <article id="homepage-course-category">
  48. {{ course_category_block }}
  49. </article>
  50. {% endif %}
  51. {% include 'layout/hot_courses.tpl'|get_template %}
  52. {% include 'session/sessions_current.tpl'|get_template %}
  53. {% if plugin_content_bottom %}
  54. <div id="plugin_content_bottom">
  55. {{ plugin_content_bottom }}
  56. </div>
  57. {% endif %}
  58. </div>
  59. </div>
  60. <div class="col-md-3 col-md-pull-9">
  61. <div class="sidebar">
  62. {% if plugin_menu_top %}
  63. {{ display.pluginSidebar('sidebar-top', plugin_menu_top) }}
  64. {% endif %}
  65. {% include 'layout/login_form.tpl'|get_template %}
  66. {% if _u.logged == 1 %}
  67. {{ user_image_block }}
  68. {% endif %}
  69. <!-- BLOCK PROFILE -->
  70. {% if profile_block %}
  71. {{ display.collapseMenu('profile', 'Profile'|get_lang, profile_block) }}
  72. {% endif %}
  73. <!-- BLOCK COURSE -->
  74. {% if course_block %}
  75. {{ display.collapseMenu('courses', 'Courses'|get_lang, course_block) }}
  76. {% endif %}
  77. <!-- BLOCK SKILLS -->
  78. {% if skills_block %}
  79. {{ display.collapseMenu('skills', 'Skills'|get_lang, skills_block) }}
  80. {% endif %}
  81. {% if grade_book_sidebar %}
  82. <div class="panel-group" id="skill" role="tablist" aria-multiselectable="true">
  83. <div class="panel panel-default" id="gradebook_block">
  84. <div class="panel-heading" role="tab">
  85. <h4 class="panel-title">
  86. <a role="button" data-toggle="collapse"
  87. data-parent="#skill"
  88. href="#skillCollapse"
  89. aria-expanded="true"
  90. aria-controls="skillCollapse">
  91. {{ 'Gradebook' | get_lang }}
  92. </a>
  93. </h4>
  94. </div>
  95. <div style="" aria-expanded="true" id="skillCollapse" class="panel-collapse collapse in" role="tabpanel">
  96. <div class="panel-body">
  97. <ul class="list-group">
  98. <li class="list-group-item {{ item.class }}">
  99. {{ 'Progress' | get_lang }} : {{ grade_book_progress }} %
  100. <br />
  101. {% for badge in grade_book_badge_list %}
  102. <div class="badge_sidebar">
  103. {% for skill in badge.skills %}
  104. {% if badge.finished %}
  105. <img class="badge_sidebar_image " src ="{{ skill.icon_big }}" />
  106. {% else %}
  107. <img class="badge_sidebar_image badge_sidebar_image_transparency"
  108. src = "{{ skill.icon_big }}" />
  109. {% endif %}
  110. <div class="badge_sidebar_title">
  111. {{ skill.name }}
  112. </div>
  113. {% endfor %}
  114. </div>
  115. {% endfor %}
  116. </li>
  117. </ul>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. {% endif %}
  123. {{ certificates_search_block }}
  124. <!-- BLOCK NOTICE -->
  125. {% if notice_block %}
  126. {{ display.collapse('notice', 'Notice'|get_lang, notice_block) }}
  127. {% endif %}
  128. <!-- BLOCK HELP -->
  129. {% if help_block %}
  130. {{ display.collapse('help', 'MenuGeneral'|get_lang, help_block, true) }}
  131. {% endif %}
  132. <!-- BLOCK LINKS NAVIGATION -->
  133. {% if navigation_links %}
  134. {{ display.collapseFor('navigation_sidebar', 'MainNavigation'|get_lang, navigation_links) }}
  135. {% endif %}
  136. {{ search_block }}
  137. {{ classes_block }}
  138. {% if plugin_menu_bottom %}
  139. {{ display.pluginSidebar('sidebar-bottom', plugin_menu_bottom) }}
  140. {% endif %}
  141. </div>
  142. </div>
  143. </div>
  144. {% if plugin_main_bottom %}
  145. {{ display.pluginPanel('main-bottom', plugin_main_bottom) }}
  146. {% endif %}
  147. {% endblock %}