layout_2_col.tpl 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {% extends template ~ "/layout/main.tpl" %}
  2. {% block body %}
  3. {% if section_name != 'section-mycourses' %}
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-3 menu-column">
  7. {% block login_form %}
  8. {% if _u.logged == 0 %}
  9. {% include template ~ "/layout/login_form.tpl" %}
  10. {% endif %}
  11. {% endblock %}
  12. {% if _u.logged == 1 %}
  13. {{ user_image_block }}
  14. {% endif %}
  15. {{ profile_block }}
  16. </div>
  17. <div class="col-md-9">
  18. {% if announcements_block %}
  19. <section id="homepage-announcements">
  20. {{ announcements_block }}
  21. </section>
  22. {% endif %}
  23. </div>
  24. </div>
  25. </div>
  26. <div class="container">
  27. <div class="row">
  28. <div class="col-md-12">
  29. {% if home_page_block %}
  30. <section id="homepage-home">
  31. {{ home_page_block }}
  32. </section>
  33. {% endif %}
  34. <div id="latest_blocks"></div>
  35. <!-- block statistics -->
  36. <div class="statistics">
  37. <div class="row">
  38. <div class="col-xs-4 col-md-4">
  39. <ul class="items">
  40. <li><i class="fa fa-user fa-4x icon-color" aria-hidden="true"></i></li>
  41. <li>
  42. <h2 class="number">{{ total_users }}</h2>
  43. <p class="text">{{ "RegisteredUsers"|get_lang }}</p>
  44. </li>
  45. </ul>
  46. </div>
  47. <div class="col-xs-4 col-md-4">
  48. <ul class="items">
  49. <li><i class="fa fa-book fa-4x icon-color" aria-hidden="true"></i></li>
  50. <li>
  51. <h2 class="number">{{ total_courses }}</h2>
  52. <p class="text">{{ "OpenCourses"|get_lang }}</p>
  53. </li>
  54. </ul>
  55. </div>
  56. <div class="col-xs-4 col-md-4">
  57. <ul class="items">
  58. <li><i class="fa fa-signal fa-4x icon-color" aria-hidden="true"></i></li>
  59. <li>
  60. <h2 class="number">{{ total_exercises }}</h2>
  61. <p class="text">{{ "Exercises"|get_lang }}</p>
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </div>
  67. <!-- end block statistics -->
  68. <!-- HOT COURSE -->
  69. {% include template ~ "/layout/hot_courses.tpl" %}
  70. <!-- END HOT COURSE -->
  71. <!-- CMS -->
  72. {#{% include template ~ "/layout/cms.tpl" %}#}
  73. <script>
  74. $(document).ready(function() {
  75. $.ajax({
  76. url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/latest/3?_locale={{ document_language }}",
  77. success: function (data) {
  78. $('#latest_pages').html(data);
  79. }
  80. });
  81. });
  82. $(document).ready(function() {
  83. $.ajax({
  84. url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/blocks/4?_locale={{ document_language }}",
  85. success: function (data) {
  86. $('#latest_blocks').html(data);
  87. }
  88. });
  89. });
  90. </script>
  91. <div id="latest_pages"></div>
  92. <!-- END CSS -->
  93. </div>
  94. </div>
  95. </div>
  96. {% endif %}
  97. {% if section_name != 'section-mycampus' %}
  98. <div class="container">
  99. <div class="row">
  100. <div class="col-md-3 menu-column">
  101. {% if _u.logged == 1 %}
  102. {{ user_image_block }}
  103. {% endif %}
  104. {{ profile_block }}
  105. {{ course_block }}
  106. {{ skills_block }}
  107. {{ certificates_search_block }}
  108. </div>
  109. <div class="col-md-9">
  110. {{ sniff_notification }}
  111. {% block page_body %}
  112. {% include template ~ "/layout/page_body.tpl" %}
  113. {% endblock %}
  114. {% if welcome_to_course_block %}
  115. <section id="homepage-course">
  116. {{ welcome_to_course_block }}
  117. </section>
  118. {% endif %}
  119. {% block content %}
  120. {% if content is not null %}
  121. <section id="page-content" class="{{ course_history_page }}">
  122. {{ content }}
  123. </section>
  124. {% endif %}
  125. {% endblock %}
  126. {% if course_category_block %}
  127. <section id="homepage-course-category">
  128. {{ course_category_block }}
  129. </section>
  130. {% endif %}
  131. </div>
  132. </div>
  133. </div>
  134. {% endif %}
  135. {% endblock %}