layout_2_col.tpl 3.6 KB

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