Cleaning templates.

1.10.x
Julio Montoya 12 years ago
parent 9ceeb3b2d8
commit 20ddca4938
  1. 1
      main/template/default/layout/head.tpl
  2. 1
      main/template/default/layout/header.tpl
  3. 49
      main/template/default/layout/layout_1_col.tpl
  4. 25
      main/template/default/layout/layout_3_col.tpl
  5. 2
      main/template/default/layout/main.tpl
  6. 23
      main/template/default/layout/show_footer.tpl
  7. 16
      main/template/default/layout/show_header.tpl
  8. 33
      main/template/default/layout/sidebar.tpl

@ -4,6 +4,7 @@
<!--[if IE 8]> <html lang="{{ document_language }}" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="{{ document_language }}" class="no-js"> <!--<![endif]-->
<head>
<noscript>{{ "NoJavascript"|get_lang }}</noscript>
<meta charset="{{ system_charset }}" />
<link href="http://www.chamilo.org/documentation.php" rel="help" />
<link href="http://www.chamilo.org/team.php" rel="author" />

@ -4,7 +4,6 @@
{% set classBody = '' %}
{% endif %}
<body dir="{{ text_direction }}" class="{{ section_name }} {{ classBody }}">
<noscript>{{ "NoJavascript"|get_lang }}</noscript>
{% set classMain = '' %}
{% if show_toolbar == 1 %}
{% set classMain = 'with-toolbar' %}

@ -9,39 +9,34 @@
</div>
{% endif %}
{% if app.template.show_header == true %}
<div id="main_content" class="col-lg-10 col-sm-11">
{% endif %}
<div id="main_content" class="col-lg-10 col-sm-11">
{# Breadcrumb #}
{% include app.template_style ~ "/layout/breadcrumb.tpl" %}
{# Breadcrumb #}
{% include app.template_style ~ "/layout/breadcrumb.tpl" %}
<div class="row">
<div class="col-sm-12 col-md-12">
{% include app.template_style ~ "/layout/page_body.tpl" %}
<div class="row">
<div class="col-sm-12 col-md-12">
{% include app.template_style ~ "/layout/page_body.tpl" %}
{% block content %}
{% if content is not null %}
<section id="section_content">
{{ content }}
</section>
{% endif %}
{% endblock %}
{% block content %}
{% if content is not null %}
<section id="section_content">
{{ content }}
</section>
{% if app.template.show_header == true %}
</div>
{% endif %}
{% endblock %}
{% if app.template.show_header == true %}
{# Plugin bottom #}
{% if plugin_content_bottom %}
<div id="plugin_content_bottom" class="col-md-12">
{{ plugin_content_bottom }}
</div>
{% endif %}
</div>
{% endif %}
{# Plugin bottom #}
{% if plugin_content_bottom %}
<div id="plugin_content_bottom" class="col-md-12">
{{ plugin_content_bottom }}
</div>
{% endif %}
</div>
</div>
{% if app.template.show_header == true %}
</div>
{% endif %}
{% endblock %}

@ -1,25 +0,0 @@
{# This template is NOT used in chamilo 1.9 #}
{% extends app.template_style ~ "/layout/main.tpl" %}
{% block body %}
<div id="maincontent" class="maincontent">
{{ plugin_courses_block}}
{{ home_page_block}}
{{ message}}
{{ content}}
{{ announcements_block}}
</div>
<div id="menu-wrapper">
{{ login_block}}
{{ profile_block}}
{{ account_block}}
{{ teacher_block}}
{{ notice_block}}
{{ navigation_course_links}}
{{ plugin_courses_right_block}}
{{ reservation_block}}
{{ search_block}}
{{ classes_block}}
</div>
{% endblock %}

@ -1,5 +1,5 @@
{% block header %}
{% include app.template_style ~ "/layout/main_header.tpl" %}
{% include app.template_style ~ "/layout/header.tpl" %}
{% endblock %}
{% block body %}

@ -1,23 +0,0 @@
{#
show_header and show_footer templates are only called when using the Display::display_header and Display::display_footer
for backward compatibility we suppose that the default layout is one column which means using a div with class span12
#}
{% if app.template.show_header == true %}
</section>
</div>
{% endif %}
{# Plugin bottom #}
{% if plugin_content_bottom is not null %}
<div id="plugin_content_bottom" class="col-md-12">
{{ plugin_content_bottom}}
</div>
{% endif %}
{% if show_footer == true %}
</div> <!-- end of #row" -->
</div> <!-- end of #main" -->
</div> <!-- end of #wrapper section -->
{% endif %}
{% include app.template_style ~ "/layout/main_footer.tpl" %}

@ -1,16 +0,0 @@
{% include app.template_style ~ "/layout/main_header.tpl" %}
{#
show_header and show_footer templates are only called when using the Display::display_header and Display::display_footer
for backward compatibility we suppose that the default layout is one column which means using a div with class span12
#}
{% if app.template.show_header == true %}
{% if plugin_content_top is not null %}
<div id="plugin_content_top" class="col-md-12">
{{ plugin_content_top }}
</div>
{% endif %}
<div class="col-md-12">
{% include app.template_style ~ "/layout/page_body.tpl" %}
{% block main_content_section_block %}<section id="main_content">{% endblock main_content_section_block %}
{% endif %}

@ -25,12 +25,27 @@
{% if _u.logged == 1 %}
<ul class="nav main-menu">
{% if 0 %}
<li class="active">
<a href="{{ _p.web }}">
<i class="fa fa-home fa-lg"></i>
<span class="text">{{ 'Home' | get_lang }}</span>
</a>
</li>
{% endif %}
<li class="active">
<a href="{{ _p.web_public }}main/dashboard/index.php">
<i class="fa fa-dashboard fa-lg"></i> {{ 'Dashboard' | get_lang }}
</a>
</li>
<li class="active">
<a href="{{ _p.web_main }}calendar/agenda_js.php?type=personal">
<i class="fa fa-calendar fa-lg"></i>
<span class="text">{{ 'Agenda' | get_lang }}</span>
</a>
</li>
<li class="active">
<a href="{{ _p.web }}main/social/home.php">
@ -39,6 +54,7 @@
</a>
</li>
<li class="active">
<a href="{{ _p.web }}main/social/groups.php">
<i class="fa fa-users fa-lg"></i>
@ -46,12 +62,7 @@
</a>
</li>
<li class="active">
<a href="{{ _p.web }}main/calendar">
<i class="fa fa-calendar fa-lg"></i>
<span class="text">{{ 'Agenda' | get_lang }}</span>
</a>
</li>
<li class="active">
<a href="{{ _p.web_main }}mySpace/index.php">
@ -71,28 +82,28 @@
<ul class="nav nav-list" style="display:none">
<li>
<a href="{{ _p.web_main }}admin/index.php">
<i class="fa fa-dashboard fa-lg"></i> {{ 'Dashboard' }}
<i class="fa fa-dashboard fa-lg"></i> {{ 'Dashboard' | get_lang }}
</a>
</li>
<li>
<a href="{{ _p.web_main }}admin/user_list.php">
<i class="fa fa-user fa-lg"></i> {{ 'Users' }}
<i class="fa fa-user fa-lg"></i> {{ 'Users' | get_lang }}
</a>
</li>
<li>
<a href="{{ _p.web_main }}admin/usergroups.php">
<i class="fa fa-users fa-lg"></i>{{ 'Groups' }}
<i class="fa fa-users fa-lg"></i>{{ 'Groups' | get_lang }}
</a>
</li>
<li>
<a href="{{ _p.web_main }}admin/course_list.php">
<i class="fa fa-book fa-lg"></i> {{ 'Courses' }}
<i class="fa fa-book fa-lg"></i> {{ 'Courses' | get_lang }}
</a>
</li>
<li>
<a href="{{ _p.web_main }}session/session_list.php">
<i class="fa fa-sitemap fa-lg"></i>{{ 'Sessions' }}
<i class="fa fa-sitemap fa-lg"></i>{{ 'Sessions'| get_lang }}
</a>
</li>

Loading…
Cancel
Save