layout_2_col.tpl 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {% extends "default/layout/main.tpl" %}
  2. {% block body %}
  3. {# Main content #}
  4. <div class="span9">
  5. {# Plugin bottom #}
  6. {% if plugin_content_top %}
  7. <div id="plugin_content_top">
  8. {{ plugin_content_top }}
  9. </div>
  10. {% endif %}
  11. {# ?? #}
  12. {% if home_page_block %}
  13. <section id="home_page">
  14. {{ home_page_block}}
  15. </section>
  16. {% endif %}
  17. {# ?? #}
  18. {{ sniff_notification }}
  19. {% include "default/layout/page_body.tpl" %}
  20. {% if content is not null %}
  21. <section id="main_content">
  22. {{ content }}
  23. </section>
  24. {% endif %}
  25. {# Announcements #}
  26. {% if announcements_block %}
  27. <section id="announcements_page">
  28. {{ announcements_block }}
  29. </section>
  30. {% endif %}
  31. {# Hot courses template #}
  32. {% include "default/layout/hot_courses.tpl" %}
  33. {# Content bottom #}
  34. {% if plugin_content_bottom %}
  35. <div id="plugin_content_bottom">
  36. {{plugin_content_bottom}}
  37. </div>
  38. {% endif %}
  39. &nbsp;
  40. </div>
  41. {# Right column #}
  42. <div class="span3">
  43. {% if plugin_menu_top %}
  44. <div id="plugin_menu_top">
  45. {{plugin_menu_top}}
  46. </div>
  47. {% endif %}
  48. {# if user is not login show the login form #}
  49. {% if _u.logged == 0 %}
  50. {% include "default/layout/login_form.tpl" %}
  51. {% endif %}
  52. {# User picture #}
  53. {{ profile_block }}
  54. {# Course block - admin #}
  55. {{ course_block }}
  56. {# Course block - teacher #}
  57. {{ teacher_block }}
  58. {# Notice #}
  59. {{ notice_block }}
  60. {# Help #}
  61. {{ help_block }}
  62. {# Links that are not added in the tabs #}
  63. {{ navigation_course_links }}
  64. {# Reservation block #}
  65. {{ reservation_block }}
  66. {# Search (xapian) #}
  67. {{ search_block }}
  68. {# Classes #}
  69. {{ classes_block }}
  70. {# Skills #}
  71. {{ skills_block }}
  72. {# Plugin courses sidebar #}
  73. {# Plugins for footer section #}
  74. {% if plugin_menu_bottom %}
  75. <div id="plugin_menu_bottom">
  76. {{ plugin_menu_bottom }}
  77. </div>
  78. {% endif %}
  79. </div>
  80. {% endblock %}