layout_2_col.tpl 4.1 KB

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