Update tpls use "html.twig" extension instead of "tpl" #1990
parent
6a7eb36429
commit
3ed79fa8fb
@ -1,6 +1,6 @@ |
||||
{% |
||||
extends hide_header == true |
||||
? template ~ "/layout/blank.tpl" |
||||
? template ~ "/layout/blank.html.twig" |
||||
: template ~ "/layout/layout_1_col.html.twig" |
||||
%} |
||||
|
@ -1,4 +1,4 @@ |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
{% extends template ~ "/layout/page.html.twig" %} |
||||
|
||||
{% block body %} |
||||
<script> |
@ -1,5 +1,5 @@ |
||||
{% extends template ~ "/layout/no_layout.tpl" %} |
||||
{% extends template ~ "/layout/no_layout.html.twig" %} |
||||
|
||||
{% block body %} |
||||
{% include template ~ '/javascript/editor/elfinder_standalone.tpl' %} |
||||
{% include template ~ '/javascript/editor/elfinder_standalone.html.twig' %} |
||||
{% endblock %} |
@ -1,47 +0,0 @@ |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
|
||||
{% block body %} |
||||
{% 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 }} |
||||
</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,263 +0,0 @@ |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
|
||||
{% block body %} |
||||
{% 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-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 announcements_block %} |
||||
<article id="homepage-announcements"> |
||||
{{ announcements_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% if course_category_block %} |
||||
<article id="homepage-course-category"> |
||||
{{ course_category_block }} |
||||
</article> |
||||
{% endif %} |
||||
|
||||
{% include template ~ "/layout/hot_courses.tpl" %} |
||||
|
||||
{% if plugin_content_bottom %} |
||||
<div id="plugin_content_bottom"> |
||||
{{ plugin_content_bottom }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
<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> |
||||
{% 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> |
||||
<!-- 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.icon_big }}" /> |
||||
{% else %} |
||||
<img class="badge_sidebar_image badge_sidebar_image_transparency" src = "{{ skill.icon_big }}" /> |
||||
{% 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> |
||||
</div> |
||||
</div> |
||||
{% if plugin_main_bottom %} |
||||
<div class="row"> |
||||
<div class="page-main-bottom" class="col-md-12"> |
||||
{{ plugin_main_bottom }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endblock %} |
@ -1,4 +1,4 @@ |
||||
{% extends template ~ "/layout/page.tpl" %} |
||||
{% extends template ~ "/layout/page.html.twig" %} |
||||
{% block body %} |
||||
<div id="maincontent" class="maincontent"> |
||||
{{ plugin_courses_block }} |
@ -0,0 +1,9 @@ |
||||
{% if show_footer == true %} |
||||
</div> |
||||
</section> |
||||
{% include template ~ "/layout/page_footer.html.twig" %} |
||||
{% endif %} |
||||
</div> |
||||
{% include template ~ '/layout/footer.js.html.twig' %} |
||||
</body> |
||||
</html> |
@ -1,9 +0,0 @@ |
||||
{% if show_footer == true %} |
||||
</div> |
||||
</section> |
||||
{% include template ~ "/layout/page_footer.tpl" %} |
||||
{% endif %} |
||||
</div> |
||||
{% include template ~ '/layout/footer.js.tpl' %} |
||||
</body> |
||||
</html> |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue