parent
1906be7070
commit
30a5512996
@ -1,16 +1,47 @@ |
||||
{% extends template ~ "/layout/main.tpl" %} |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
|
||||
{% block body %} |
||||
<div class="container{{ fluid == true ? '-fluid':'' }}"> |
||||
{% include template ~ "/layout/page_body.tpl" %} |
||||
{% block content %} |
||||
{% if content is not null %} |
||||
<section id="main_content" class="row"> |
||||
<div class="col-md-12"> |
||||
{% if plugin_main_top %} |
||||
<div class="row"> |
||||
<div id="plugin_main_top" class="col-md-12"> |
||||
{{ plugin_main_top }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if plugin_content_top %} |
||||
<div class="row"> |
||||
<div id="plugin_content_top" class="col-md-12"> |
||||
{{ plugin_content_top }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
<div class="row"> |
||||
<div class="col-xs-12 col-md-12"> |
||||
{% include template ~ "/layout/page_body.tpl" %} |
||||
{% block content %} |
||||
{% if content is not null %} |
||||
<section id="main_content"> |
||||
{{ content }} |
||||
</div> |
||||
</section> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
</section> |
||||
{% endif %} |
||||
{% endblock %} |
||||
</div> |
||||
</div> |
||||
|
||||
{% if plugin_content_bottom %} |
||||
<div class="row"> |
||||
<div id="plugin_content_bottom" class="col-md-12"> |
||||
{{ plugin_content_bottom }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
{% if plugin_main_bottom %} |
||||
<div class="row"> |
||||
<div id="plugin_main_bottom" class="col-md-12"> |
||||
{{ plugin_main_bottom }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
@ -1,146 +1,338 @@ |
||||
{% extends template ~ "/layout/main.tpl" %} |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
|
||||
{% block body %} |
||||
{% if section_name != 'section-mycourses' %} |
||||
<div class="container"> |
||||
{% if plugin_main_top %} |
||||
<div class="row"> |
||||
<div class="page-main-top" class="col-md-12"> |
||||
{{ plugin_main_top }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
<div class="row"> |
||||
<div class="col-md-3 menu-column"> |
||||
{% block login_form %} |
||||
{% if _u.logged == 0 %} |
||||
{% include template ~ "/layout/login_form.tpl" %} |
||||
<div class="col-md-9 col-md-push-3"> |
||||
<div class="page-content"> |
||||
{% if plugin_content_top %} |
||||
<div class="page-content-top"> |
||||
{{ plugin_content_top }} |
||||
</div> |
||||
{% endif %} |
||||
|
||||
{{ sniff_notification }} |
||||
|
||||
{% if home_page_block %} |
||||
<article id="homepage-home"> |
||||
{{ home_page_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% block page_body %} |
||||
{% include template ~ "/layout/page_body.tpl" %} |
||||
{% endblock %} |
||||
|
||||
{% if welcome_to_course_block %} |
||||
<article id="homepage-course"> |
||||
{{ welcome_to_course_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% block content %} |
||||
{% if content is not null %} |
||||
<section id="page" class="{{ course_history_page }}"> |
||||
{{ content }} |
||||
</section> |
||||
{% endif %} |
||||
{% endblock %} |
||||
{% if _u.logged == 1 %} |
||||
{{ user_image_block }} |
||||
{% endif %} |
||||
{{ profile_block }} |
||||
</div> |
||||
<div class="col-md-9"> |
||||
{% if announcements_block %} |
||||
<section id="homepage-announcements"> |
||||
{{ announcements_block }} |
||||
</section> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
{% if announcements_block %} |
||||
<article id="homepage-announcements"> |
||||
{{ announcements_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% if course_category_block %} |
||||
<article id="homepage-course-category"> |
||||
{{ course_category_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% if plugin_content_bottom %} |
||||
<div id="plugin_content_bottom"> |
||||
{{ plugin_content_bottom }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
{% if home_page_block %} |
||||
<section id="homepage-home"> |
||||
{{ home_page_block }} |
||||
</section> |
||||
{% endif %} |
||||
|
||||
<div id="latest_blocks"></div> |
||||
|
||||
<!-- block statistics --> |
||||
<div class="statistics"> |
||||
<div class="row"> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-user fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_users }}</h2> |
||||
<p class="text">{{ "RegisteredUsers"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
<div class="col-md-3 col-md-pull-9"> |
||||
<div class="sidebar"> |
||||
{% if plugin_menu_top %} |
||||
<div class="siderbar-menu-top"> |
||||
{{ plugin_menu_top }} |
||||
</div> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-book fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_courses }}</h2> |
||||
<p class="text">{{ "OpenCourses"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
{% endif %} |
||||
|
||||
{% include template ~ "/layout/login_form.tpl" %} |
||||
|
||||
{% if _u.logged == 1 %} |
||||
{{ user_image_block }} |
||||
{% endif %} |
||||
|
||||
{% if profile_block %} |
||||
<!-- block profile --> |
||||
<div class="panel-group" id="profile" role="tablist" aria-multiselectable="true"> |
||||
<div class="panel panel-default" id="profile_block"> |
||||
<div class="panel-heading" role="tab"> |
||||
<h4 class="panel-title"> |
||||
<a role="button" data-toggle="collapse" data-parent="#profile" href="#profileCollapse" aria-expanded="true" aria-controls="profileCollapse"> |
||||
{{ 'Profile' | get_lang }} |
||||
</a> |
||||
</h4> |
||||
</div> |
||||
<div style="" aria-expanded="true" id="profileCollapse" class="panel-collapse collapse in" role="tabpanel"> |
||||
<div class="panel-body"> |
||||
<ul class="list-group"> |
||||
{% for item in profile_block %} |
||||
<li class="list-group-item {{ item.class }}"> |
||||
<span class="item-icon"> |
||||
{{ item.icon }} |
||||
</span> |
||||
<a href="{{ item.link }}">{{ item.title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-signal fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_exercises }}</h2> |
||||
<p class="text">{{ "Exercises"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
<!-- end block profile --> |
||||
{% endif %} |
||||
|
||||
{% if course_block %} |
||||
<!-- block course --> |
||||
<div class="panel-group" id="course" role="tablist" aria-multiselectable="true"> |
||||
<div class="panel panel-default" id="course_block"> |
||||
<div class="panel-heading" role="tab"> |
||||
<h4 class="panel-title"> |
||||
<a role="button" data-toggle="collapse" data-parent="#course" href="#courseCollapse" aria-expanded="true" aria-controls="courseCollapse"> |
||||
{{ 'Courses' | get_lang }} |
||||
</a> |
||||
</h4> |
||||
</div> |
||||
<div style="" aria-expanded="true" id="courseCollapse" class="panel-collapse collapse in" role="tabpanel"> |
||||
<div class="panel-body"> |
||||
<ul class="list-group"> |
||||
{% for item in course_block %} |
||||
<li class="list-group-item {{ item.class }}"> |
||||
<span class="item-icon"> |
||||
{{ item.icon }} |
||||
</span> |
||||
<a href="{{ item.link }}">{{ item.title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<!-- end block course --> |
||||
{% endif %} |
||||
|
||||
{% if grade_book_sidebar %} |
||||
<div class="panel-group" id="skill" role="tablist" aria-multiselectable="true"> |
||||
<div class="panel panel-default" id="gradebook_block"> |
||||
<div class="panel-heading" role="tab"> |
||||
<h4 class="panel-title"> |
||||
<a role="button" data-toggle="collapse" data-parent="#skill" href="#skillCollapse" aria-expanded="true" aria-controls="skillCollapse"> |
||||
{{ 'Gradebook' | get_lang }} |
||||
</a> |
||||
</h4> |
||||
</div> |
||||
<div style="" aria-expanded="true" id="skillCollapse" class="panel-collapse collapse in" role="tabpanel"> |
||||
<div class="panel-body"> |
||||
<ul class="list-group"> |
||||
<li class="list-group-item {{ item.class }}"> |
||||
{{ 'Progress' | get_lang }} : {{ grade_book_progress }} % |
||||
<br /> |
||||
{% for badge in grade_book_badge_list %} |
||||
<div class="badge_sidebar"> |
||||
{% for skill in badge.skills %} |
||||
{% if badge.finished %} |
||||
<img class="badge_sidebar_image " src = "{{ skill.web_icon_path }}" /> |
||||
{% else %} |
||||
<img class="badge_sidebar_image badge_sidebar_image_transparency" src = "{{ skill.web_icon_path }}" /> |
||||
{% endif %} |
||||
<div class="badge_sidebar_title"> |
||||
{{ skill.name }} |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
{#<div class="badge_sidebar_title">#} |
||||
{#{{ badge.name }}#} |
||||
{#</div>#} |
||||
{% endfor %} |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
{% endif %} |
||||
|
||||
{% if skills_block %} |
||||
<!-- block skills --> |
||||
<div class="panel-group" id="skill" role="tablist" aria-multiselectable="true"> |
||||
<div class="panel panel-default" id="skill_block"> |
||||
<div class="panel-heading" role="tab"> |
||||
<h4 class="panel-title"> |
||||
<a role="button" data-toggle="collapse" data-parent="#skill" href="#skillCollapse" aria-expanded="true" aria-controls="skillCollapse"> |
||||
{{ 'Skills' | get_lang }} |
||||
</a> |
||||
</h4> |
||||
</div> |
||||
<div style="" aria-expanded="true" id="skillCollapse" class="panel-collapse collapse in" role="tabpanel"> |
||||
<div class="panel-body"> |
||||
<ul class="list-group"> |
||||
{% for item in skills_block %} |
||||
<li class="list-group-item {{ item.class }}"> |
||||
<span class="item-icon"> |
||||
{{ item.icon }} |
||||
</span> |
||||
<a href="{{ item.link }}">{{ item.title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<!-- end block skills --> |
||||
{% endif %} |
||||
|
||||
{{ teacher_block }} |
||||
{{ certificates_search_block }} |
||||
{{ notice_block }} |
||||
{{ help_block }} |
||||
|
||||
<!-- block navigation --> |
||||
{% if navigation_course_links %} |
||||
<div class="panel-group" id="menu" role="tablist" aria-multiselectable="true"> |
||||
<div class="panel panel-default" id="menu_block"> |
||||
<div class="panel-heading" role="tab"> |
||||
<h4 class="panel-title"> |
||||
<a role="button" data-toggle="collapse" data-parent="#menu" href="#menuCollapse" aria-expanded="true" aria-controls="menuCollapse"> |
||||
{{ 'MainNavigation' | get_lang }} |
||||
</a> |
||||
</h4> |
||||
</div> |
||||
<div style="" aria-expanded="true" id="menuCollapse" class="panel-collapse collapse in" role="tabpanel"> |
||||
<div class="panel-body"> |
||||
<ul class="nav nav-pills nav-stacked"> |
||||
{% for item in navigation_course_links %} |
||||
<li> |
||||
<a href="{{ item.link }}">{{ item.title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
<!-- end block navigation --> |
||||
|
||||
{{ search_block }} |
||||
{{ classes_block }} |
||||
|
||||
{% if plugin_menu_bottom %} |
||||
<div class="sidebar-menu-bottom"> |
||||
{{ plugin_menu_bottom }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
<!-- end block statistics --> |
||||
|
||||
<!-- HOT COURSE --> |
||||
{% include template ~ "/layout/hot_courses.tpl" %} |
||||
<!-- END HOT COURSE --> |
||||
<!-- CMS --> |
||||
|
||||
{#{% include template ~ "/layout/cms.tpl" %}#} |
||||
<script> |
||||
$(document).ready(function() { |
||||
$.ajax({ |
||||
url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/latest/3?_locale={{ document_language }}", |
||||
success: function (data) { |
||||
$('#latest_pages').html(data); |
||||
} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
{% if home_page_block %} |
||||
<section id="homepage-home"> |
||||
{{ home_page_block }} |
||||
</section> |
||||
{% endif %} |
||||
|
||||
<div id="latest_blocks"></div> |
||||
|
||||
<!-- block statistics --> |
||||
<div class="statistics"> |
||||
<div class="row"> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-user fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_users }}</h2> |
||||
<p class="text">{{ "RegisteredUsers"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-book fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_courses }}</h2> |
||||
<p class="text">{{ "OpenCourses"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
<div class="col-xs-4 col-md-4"> |
||||
<ul class="items"> |
||||
<li><i class="fa fa-signal fa-4x icon-color" aria-hidden="true"></i></li> |
||||
<li> |
||||
<h2 class="number">{{ total_exercises }}</h2> |
||||
<p class="text">{{ "Exercises"|get_lang }}</p> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<!-- end block statistics --> |
||||
|
||||
<!-- HOT COURSE --> |
||||
{% include template ~ "/layout/hot_courses.tpl" %} |
||||
<!-- END HOT COURSE --> |
||||
<!-- CMS --> |
||||
|
||||
{#{% include template ~ "/layout/cms.tpl" %}#} |
||||
<script> |
||||
$(document).ready(function() { |
||||
$.ajax({ |
||||
url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/latest/3?_locale={{ document_language }}", |
||||
success: function (data) { |
||||
$('#latest_pages').html(data); |
||||
} |
||||
}); |
||||
}); |
||||
}); |
||||
|
||||
$(document).ready(function() { |
||||
$.ajax({ |
||||
url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/blocks/4?_locale={{ document_language }}", |
||||
success: function (data) { |
||||
$('#latest_blocks').html(data); |
||||
} |
||||
|
||||
$(document).ready(function() { |
||||
$.ajax({ |
||||
url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/blocks/4?_locale={{ document_language }}", |
||||
success: function (data) { |
||||
$('#latest_blocks').html(data); |
||||
} |
||||
}); |
||||
}); |
||||
}); |
||||
</script> |
||||
<div id="latest_pages"></div> |
||||
<!-- END CSS --> |
||||
</script> |
||||
<div id="latest_pages"></div> |
||||
<!-- END CSS --> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
{% if section_name != 'section-mycampus' %} |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-md-3 menu-column"> |
||||
{% if _u.logged == 1 %} |
||||
{{ user_image_block }} |
||||
{% endif %} |
||||
{{ profile_block }} |
||||
{{ course_block }} |
||||
{{ skills_block }} |
||||
{{ certificates_search_block }} |
||||
</div> |
||||
<div class="col-md-9"> |
||||
{{ sniff_notification }} |
||||
|
||||
{% block page_body %} |
||||
{% include template ~ "/layout/page_body.tpl" %} |
||||
{% endblock %} |
||||
|
||||
{% if welcome_to_course_block %} |
||||
<section id="homepage-course"> |
||||
{{ welcome_to_course_block }} |
||||
</section> |
||||
{% endif %} |
||||
|
||||
{% block content %} |
||||
{% if content is not null %} |
||||
<section id="page-content" class="{{ course_history_page }}"> |
||||
{{ content }} |
||||
</section> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
{% if course_category_block %} |
||||
<section id="homepage-course-category"> |
||||
{{ course_category_block }} |
||||
</section> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
{% if plugin_main_bottom %} |
||||
<div class="row"> |
||||
<div class="page-main-bottom" class="col-md-12"> |
||||
{{ plugin_main_bottom }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
Loading…
Reference in new issue