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