Minor - skill fix templates to use with new structure

pull/2528/head
jmontoyaa 8 years ago
parent ff18739ca5
commit 488b314e6d
  1. 2
      main/admin/skills_wheel.php
  2. 9
      main/inc/lib/template.lib.php
  3. 4
      main/template/default/learnpath/view.html.twig
  4. 1
      main/template/default/skill/skill_wheel.html.twig
  5. 3
      main/template/default/skill/skill_wheel.js.html.twig
  6. 16
      src/ThemeBundle/Resources/views/Layout/skill_layout.html.twig

@ -90,4 +90,4 @@ $templateName = $tpl->get_template('skill/skill_wheel.tpl');
$content = $tpl->fetch($templateName);
$tpl->assign('content', $content);
$tpl->display_no_layout_template();
$tpl->displaySkillLayout();

@ -442,6 +442,15 @@ class Template
$this->returnResponse($this->params, $template);
}
/**
* Displays an empty template.
*/
public function displaySkillLayout()
{
$template = '@ChamiloTheme/Layout/skill_layout.html.twig';
$this->returnResponse($this->params, $template);
}
/**
* Sets the footer visibility.
*

@ -66,8 +66,8 @@
</div>
{# TOC layout #}
<div id="toc_id" class="scorm-body" name="toc_name">
{% include template ~ '/learnpath/scorm_list.html.twig' %}
</div>
{% include template ~ '/learnpath/scorm_list.html.twig' %}
</div>
{# end TOC layout #}
</div>
</div>

@ -1,4 +1,3 @@
{% include template ~ '/skill/skill_wheel.js.html.twig' %}
<script>
/* Skill search input in the left menu */
function check_skills_sidebar() {

@ -1,7 +1,4 @@
{# topbar #}
{% include template ~ "/layout/topbar.html.twig" %}
<script>
var SkillWheel = {
currentSkill: null,
getSkillInfo: function(skillId) {

@ -0,0 +1,16 @@
{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
{# overrides everything inside body no-footer no-header #}
{% block chamilo_wrap %}
{# topbar #}
{% include "@ChamiloTheme/Layout/topbar.html.twig" %}
{% include 'default/skill/skill_wheel.js.html.twig' %}
{% include 'default/skill/skill_wheel.html.twig' %}
{% autoescape false %}
<section id="content-scorm">
{{ content }}
</section>
{% endautoescape %}
{% endblock %}
{% block chamilo_footer %}
{% endblock %}
Loading…
Cancel
Save