layout_2_col.tpl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {% extends template ~ "/layout/main.tpl" %}
  2. {% block body %}
  3. {# Main content #}
  4. {# Plugin main top #}
  5. {% if plugin_main_top %}
  6. <div id="plugin_main_top" class="col-md-12">
  7. {{ plugin_main_top }}
  8. </div>
  9. {% endif %}
  10. {# Right column #}
  11. <div class="col-md-3 menu-column">
  12. {% if plugin_menu_top %}
  13. <div id="plugin_menu_top">
  14. {{plugin_menu_top}}
  15. </div>
  16. {% endif %}
  17. {# if user is not login show the login form #}
  18. {% block login_form %}
  19. {% if _u.logged == 0 %}
  20. {% include template ~ "/layout/login_form.tpl" %}
  21. {% endif %}
  22. {% endblock %}
  23. {# User picture #}
  24. {% if _u.logged == 1 %}
  25. {{ user_image_block }}
  26. {% endif %}
  27. {# User Profile links #}
  28. {{ profile_block }}
  29. {# Course block - admin #}
  30. {{ course_block }}
  31. {# Course block - teacher #}
  32. {{ teacher_block }}
  33. {# Skills #}
  34. {{ skills_block }}
  35. {# Certificates search block #}
  36. {{ certificates_search_block }}
  37. {# Notice #}
  38. {{ notice_block }}
  39. {# Help #}
  40. {{ help_block }}
  41. {# Links that are not added in the tabs #}
  42. {{ navigation_course_links }}
  43. {# Search (xapian) #}
  44. {{ search_block }}
  45. {# Classes #}
  46. {{ classes_block }}
  47. {# Plugin courses sidebar #}
  48. {# Plugins for footer section #}
  49. {% if plugin_menu_bottom %}
  50. <div id="plugin_menu_bottom">
  51. {{ plugin_menu_bottom }}
  52. </div>
  53. {% endif %}
  54. </div>
  55. <div class="col-md-9">
  56. {# Plugin bottom #}
  57. {% if plugin_content_top %}
  58. <div id="plugin_content_top">
  59. {{ plugin_content_top }}
  60. </div>
  61. {% endif %}
  62. {# Portal homepage #}
  63. {% if home_page_block %}
  64. <section id="homepage-home">
  65. {{ home_page_block }}
  66. </section>
  67. {% endif %}
  68. {# ?? #}
  69. {{ sniff_notification }}
  70. {% block page_body %}
  71. {% include template ~ "/layout/page_body.tpl" %}
  72. {% endblock %}
  73. {# Welcome to course block #}
  74. {% if welcome_to_course_block %}
  75. <section id="homepage-course">
  76. {{ welcome_to_course_block }}
  77. </section>
  78. {% endif %}
  79. {% block content %}
  80. {% if content is not null %}
  81. <section id="page-content" class="{{ course_history_page }}">
  82. {{ content }}
  83. </section>
  84. {% endif %}
  85. {% endblock %}
  86. {# Announcements #}
  87. {% if announcements_block %}
  88. <section id="homepage-announcements">
  89. {{ announcements_block }}
  90. </section>
  91. {% endif %}
  92. {# Course categories (must be turned on in the admin settings) #}
  93. {% if course_category_block %}
  94. <section id="homepage-course-category">
  95. {{ course_category_block }}
  96. </section>
  97. {% endif %}
  98. {# Hot courses template #}
  99. {% include template ~ "/layout/hot_courses.tpl" %}
  100. {# Content bottom #}
  101. {% if plugin_content_bottom %}
  102. <div id="plugin_content_bottom">
  103. {{plugin_content_bottom}}
  104. </div>
  105. {% endif %}
  106. &nbsp;
  107. </div>
  108. {# Plugin main bottom #}
  109. {% if plugin_main_bottom %}
  110. <div id="plugin_main_bottom" class="col-md-12">
  111. {{ plugin_main_bottom }}
  112. </div>
  113. {% endif %}
  114. {% endblock %}