Minor - Fix templates in order to use new symfony structure

pull/2528/head
jmontoyaa 7 years ago
parent 0f5919bfc6
commit 1532879a1f
  1. 4
      main/template/default/admin/career_dashboard.html.twig
  2. 4
      main/template/default/admin/gradebook_dependency.html.twig
  3. 5
      main/template/default/admin/gradebook_list.html.twig
  4. 4
      main/template/default/admin/resource_sequence.html.twig
  5. 6
      main/template/default/auth/session_catalog.html.twig
  6. 6
      main/template/default/forum/list.html.twig
  7. 2
      main/template/default/javascript/editor/ckeditor/elfinder.html.twig
  8. 0
      main/template/default/layout/footer.html.twig
  9. 133
      main/template/default/layout/footer.js.html.twig
  10. 0
      main/template/default/layout/head.html.twig
  11. 466
      main/template/default/layout/header.js.html.twig
  12. 0
      main/template/default/layout/layout_1_col.html.twig
  13. 0
      main/template/default/layout/layout_2_col.html.twig
  14. 21
      main/template/default/layout/layout_3_col.html.twig
  15. 15
      main/template/default/layout/no_layout.html.twig
  16. 67
      main/template/default/layout/page.html.twig
  17. 29
      main/template/default/layout/page_body.html.twig
  18. 95
      main/template/default/layout/page_footer.html.twig
  19. 60
      main/template/default/layout/page_header.html.twig
  20. 9
      main/template/default/layout/show_footer.html.twig
  21. 55
      main/template/default/layout/show_header.html.twig
  22. 2
      main/template/default/session/resume_session.html.twig
  23. 2
      main/template/default/social/add_groups.html.twig
  24. 2
      main/template/default/social/friends.html.twig
  25. 2
      main/template/default/social/group_view.html.twig
  26. 2
      main/template/default/social/group_waiting_list.html.twig
  27. 2
      main/template/default/social/groups.html.twig
  28. 2
      main/template/default/social/groups_topics.html.twig
  29. 1
      main/template/default/social/home.html.twig
  30. 2
      main/template/default/social/invitations.html.twig
  31. 2
      main/template/default/social/myfiles.html.twig
  32. 3
      main/template/default/social/profile.html.twig
  33. 2
      main/template/default/social/search.html.twig
  34. 2
      main/template/default/social/whoisonline.html.twig
  35. 1
      main/template/experimental/layout/layout_1_col.html.twig
  36. 41
      main/template/experimental/layout/layout_2_col.html.twig
  37. 1
      main/template/experimental/layout/layout_3_col.html.twig
  38. 1
      main/template/experimental/layout/show_footer.html.twig
  39. 1
      main/template/experimental/layout/show_header.html.twig
  40. 5
      src/CoreBundle/Resources/views/Admin/switcher_links.html.twig
  41. 68
      src/CoreBundle/Resources/views/default/layout/layout_2_col.html.twig
  42. 21
      src/CoreBundle/Resources/views/default/layout/layout_3_col.html.twig
  43. 4
      src/CoreBundle/Resources/views/layout_cms.html.twig
  44. 37
      src/CoreBundle/Resources/views/layout_one_col.html.twig
  45. 48
      src/CoreBundle/Resources/views/layout_two_col.html.twig
  46. 0
      src/ThemeBundle/Resources/views/Layout/breadcrumb.html.twig
  47. 49
      src/ThemeBundle/Resources/views/Layout/footer.js.twig
  48. 2
      src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig
  49. 2
      src/ThemeBundle/Resources/views/Layout/layout_two_col.html.twig

@ -1,6 +1,7 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
{{ form_filter }}
{% for item in data %}
@ -68,4 +69,5 @@
</div>
</div>
{% endfor %}
{% endautoescape %}
{% endblock %}

@ -1,6 +1,7 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
<h3>
{{ gradebook_category.name }}
{% if gradebook_category.courseCode is not empty %}
@ -65,4 +66,5 @@
</tr>
{% endfor %}
</table>
{% endautoescape %}
{% endblock %}

@ -1,6 +1,7 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
{{ form }}
{% if gradebook_list %}
@ -32,7 +33,7 @@
</tr>
{% endfor %}
</table>
{{ gradebook_list }}
{% endif %}
{% endautoescape %}
{% endblock %}

@ -1,6 +1,7 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
<script>
var url = '{{ _p.web_ajax }}sequence.ajax.php';
var parentList = [];
@ -313,4 +314,5 @@
{{ save_sequence }}
</div>
</div>
{% endautoescape %}
{% endblock %}

@ -1,6 +1,7 @@
{% extends template ~ "/layout/page.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block body %}
{% block content %}
{% autoescape false %}
<script>
$(document).ready(function () {
$('#date').datepicker({
@ -220,4 +221,5 @@
</div>
<!-- end view session grib -->
{{ catalog_pagination }}
{% endautoescape %}
{% endblock %}

@ -1,8 +1,9 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
{{ introduction_section }}
{{ form_content }}
{% if data is not empty %}
@ -85,4 +86,5 @@
{{ 'NoForumInThisCategory'|get_lang }}
</div>
{% endif %}
{% endautoescape %}
{% endblock %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/no_layout.html.twig" %}
{% extends "@ChamiloTheme/Layout/no_layout.html.twig" %}
{% block body %}
{% include template ~ '/javascript/editor/elfinder_standalone.html.twig' %}

@ -1,133 +0,0 @@
<script>
/* Makes row highlighting possible */
$(document).ready( function() {
$("[data-toggle=popover]").each(function(i, obj) {
$(this).popover({
html: true,
content: function() {
var id = $(this).attr('id')
return $('#popover-content-' + id).html();
}
});
});
// Date time settings.
moment.locale('{{ locale }}');
$.datepicker.setDefaults($.datepicker.regional["{{ locale }}"]);
$.datepicker.regional["local"] = $.datepicker.regional["{{ locale }}"];
// Fix old calls of "inc/lib/mediaplayer/player.swf" and convert to <audio> tag, then rendered by media element js
// see BT#13405
$('embed').each( function () {
var flashVars = $(this).attr('flashvars');
if (flashVars && flashVars.indexOf("file") == -1) {
var audioId = Math.floor( Math.random()*99999 );
flashVars = flashVars.replace('&autostart=false', '');
flashVars = flashVars.replace('&autostart=true', '');
var audioDiv = '<audio id="'+audioId+'" controls="controls" style="width:400px;" width:"400px;" src="'+flashVars+'" ><source src="'+flashVars+'" type="audio/mp3" ></source></audio>';
$(this).hide();
$(this).after(audioDiv);
}
});
// Chosen select
$(".chzn-select").chosen({
disable_search_threshold: 10,
no_results_text: '{{ 'SearchNoResultsFound' | get_lang | escape('js') }}',
placeholder_text_multiple: '{{ 'SelectSomeOptions' | get_lang | escape('js') }}',
placeholder_text_single: '{{ 'SelectAnOption' | get_lang | escape('js') }}',
width: "100%"
});
// Bootstrap tabs.
$('.tab-wrapper a').click(function (e) {
e.preventDefault();
$(this).tab('show');
//$('#tabs a:first').tab('show') // Select first tab
});
// Fixes bug when loading links inside a tab.
$('.tab-wrapper .tab-pane a').unbind();
/**
* Advanced options
* Usage
* <a id="link" href="url">Advanced</a>
* <div id="link_options">
* hidden content :)
* </div>
* */
$(".advanced_options").on("click", function (event) {
event.preventDefault();
var id = $(this).attr('id') + '_options';
var button = $(this);
$("#" + id).toggle();
});
/**
* <a class="advanced_options_open" href="http://" rel="div_id">Open</a>
* <a class="advanced_options_close" href="http://" rel="div_id">Close</a>
* <div id="div_id">Div content</div>
* */
$(".advanced_options_open").on("click", function (event) {
event.preventDefault();
var id = $(this).attr('rel');
$("#" + id).show();
});
$(".advanced_options_close").on("click", function (event) {
event.preventDefault();
var id = $(this).attr('rel');
$("#" + id).hide();
});
// Adv multi-select search input.
$('.select_class_filter').each( function () {
var inputId = $(this).attr('id');
inputId = inputId.replace('-filter', '');
$("#" + inputId).filterByText($("#" + inputId + "-filter"));
});
$(".jp-jplayer audio").addClass('skip');
// Mediaelement
if ( {{ show_media_element }} == 1) {
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */);
}
// Table highlight.
$("form .data_table input:checkbox").click(function () {
if ($(this).is(":checked")) {
$(this).parentsUntil("tr").parent().addClass("row_selected");
} else {
$(this).parentsUntil("tr").parent().removeClass("row_selected");
}
});
/* For non HTML5 browsers */
if ($("#formLogin".length > 1)) {
$("input[name=login]").focus();
}
// Tool tip (in exercises)
var tip_options = {
placement: 'right'
};
$('.boot-tooltip').tooltip(tip_options);
var more = '{{ 'SeeMore' | get_lang | escape('js') }}';
var close = '{{ 'Close' | get_lang | escape('js') }}';
/*$('.list-teachers').readmore({
speed: 75,
moreLink: '<a href="#">' + more + '</a>',
lessLink: '<a href="#">' + close + '</a>',
collapsedHeight: 35,
blockCSS: 'display: block; width: 100%;'
});*/
});
</script>

@ -1,466 +0,0 @@
<script>
{% if constant('CHAMILO_LOAD_WYSIWYG') %}
// External plugins not part of the default Ckeditor package.
var plugins = [
'asciimath',
'asciisvg',
'audio',
'ckeditor_wiris',
'dialogui',
'glossary',
'leaflet',
'mapping',
'maximize',
'mathjax',
'oembed',
'toolbar',
'toolbarswitch',
'video',
'wikilink',
'wordcount',
'youtube',
'flash',
'inserthtml',
'image2_chamilo'
];
plugins.forEach(function(plugin) {
CKEDITOR.plugins.addExternal(plugin, '{{ _p.web_main ~ 'inc/lib/javascript/ckeditor/plugins/' }}' + plugin + '/');
});
/**
* Function use to load templates in a div
**/
var showTemplates = function (ckeditorName) {
var editorName = 'content';
if (ckeditorName && ckeditorName.length > 0) {
editorName = ckeditorName;
}
CKEDITOR.editorConfig(CKEDITOR.config);
CKEDITOR.loadTemplates(CKEDITOR.config.templates_files, function (a) {
var templatesConfig = CKEDITOR.getTemplates("default");
var $templatesUL = $("<ul>");
if (templatesConfig) {
$.each(templatesConfig.templates, function () {
var template = this;
var $templateLi = $("<li>");
var templateHTML = "<img src=\"" + templatesConfig.imagesPath + template.image + "\" ><div>";
templateHTML += "<b>" + template.title + "</b>";
if (template.description) {
templateHTML += "<div class=description>" + template.description + "</div>";
}
templateHTML += "</div>";
$("<a>", {
href: "#",
html: templateHTML,
click: function (e) {
e.preventDefault();
if (CKEDITOR.instances[editorName]) {
CKEDITOR.instances[editorName].setData(template.html, function () {
this.checkDirty();
});
}
}
}).appendTo($templateLi);
$templatesUL.append($templateLi);
});
}
$templatesUL.appendTo("#frmModel");
});
};
{% endif %}
function doneResizing() {
var widthWindow = $(window).width();
if ((widthWindow>=1024) && (widthWindow>=768)) {
$("#profileCollapse").addClass("in");
$("#courseCollapse").addClass("in");
$("#skillsCollapse").addClass("in");
$("#sn-sidebar-collapse").addClass("in");
$("#user_image_block").removeClass("text-muted");
} else {
$("#profileCollapse").removeClass("in");
$("#courseCollapse").removeClass("in");
$("#skillsCollapse").removeClass("in");
$("#sn-avatar-one").removeClass("in");
$("#user_image_block").addClass("text-muted");
}
};
$(document).ready(function() {
$("#open-view-list").click(function(){
$("#student-list-work").fadeIn(300);
});
$("#closed-view-list").click(function(){
$("#student-list-work").fadeOut(300);
});
check_brand();
var id;
$(window).resize(function() {
clearTimeout(id);
id = setTimeout(doneResizing, 200);
});
// Removes the yellow input in Chrome
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).on("load", function (e) {
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');
$(this).after(this.outerHTML).remove();
$('input[name=' + name + ']').val(text);
});
});
}
$(".accordion_jquery").accordion({
autoHeight: false,
active: false, // all items closed by default
collapsible: true,
header: ".accordion-heading"
});
// Global popup
$('body').on('click', 'a.ajax', function(e) {
e.preventDefault();
var contentUrl = this.href,
loadModalContent = $.get(contentUrl),
self = $(this);
$.when(loadModalContent).done(function(modalContent) {
var modalDialog = $('#global-modal').find('.modal-dialog'),
modalSize = self.data('size') || get_url_params(contentUrl, 'modal_size'),
modalWidth = self.data('width') || get_url_params(contentUrl, 'width'),
modalTitle = self.data('title') || ' ';
modalDialog.removeClass('modal-lg modal-sm').css('width', '');
if (modalSize) {
switch (modalSize) {
case 'lg':
modalDialog.addClass('modal-lg');
break;
case 'sm':
modalDialog.addClass('modal-sm');
break;
}
} else if (modalWidth) {
modalDialog.css('width', modalWidth + 'px');
}
$('#global-modal').find('.modal-title').text(modalTitle);
$('#global-modal').find('.modal-body').html(modalContent);
$('#global-modal').modal('show');
});
});
$('a.expand-image').on('click', function(e) {
e.preventDefault();
var title = $(this).attr('title');
var image = new Image();
image.onload = function() {
if (title) {
$('#expand-image-modal').find('.modal-title').text(title);
} else {
$('#expand-image-modal').find('.modal-title').html('&nbsp;');
}
$('#expand-image-modal').find('.modal-body').html(image);
$('#expand-image-modal').modal({
show: true
});
};
image.src = this.href;
});
// Global confirmation
$('.popup-confirmation').on('click', function() {
showConfirmationPopup(this);
return false;
});
// old jquery.menu.js
$('#navigation a').stop().animate({
'marginLeft':'50px'
},1000);
$('#navigation div').hover(
function () {
$('a',$(this)).stop().animate({
'marginLeft':'1px'
},200);
},
function () {
$('a',$(this)).stop().animate({
'marginLeft':'50px'
},200);
}
);
/* Make responsive image maps */
$('map').imageMapResize();
jQuery.fn.filterByText = function(textbox) {
return this.each(function() {
var select = this;
var options = [];
$(select).find('option').each(function() {
options.push({value: $(this).val(), text: $(this).text()});
});
$(select).data('options', options);
$(textbox).bind('change keyup', function() {
var options = $(select).empty().data('options');
var search = $.trim($(this).val());
var regex = new RegExp(search,"gi");
$.each(options, function(i) {
var option = options[i];
if(option.text.match(regex) !== null) {
$(select).append(
$('<option>').text(option.text).val(option.value)
);
}
});
});
});
};
$(".black-shadow").mouseenter(function() {
$(this).addClass('hovered-course');
}).mouseleave(function() {
$(this).removeClass('hovered-course');
});
});
$(window).resize(function() {
check_brand();
});
$(document).scroll(function() {
var valor = $('body').outerHeight() - 700;
if ($(this).scrollTop() > 100) {
$('.bottom_actions').addClass('bottom_actions_fixed');
} else {
$('.bottom_actions').removeClass('bottom_actions_fixed');
}
if ($(this).scrollTop() > valor) {
$('.bottom_actions').removeClass('bottom_actions_fixed');
} else {
$('.bottom_actions').addClass('bottom_actions_fixed');
}
//Exercise warning fixed at the top
var fixed = $("#exercise_clock_warning");
if (fixed.length) {
if (!fixed.attr('data-top')) {
// If already fixed, then do nothing
if (fixed.hasClass('subnav-fixed')) return;
// Remember top position
var offset = fixed.offset();
fixed.attr('data-top', offset.top);
fixed.css('width', '100%');
}
if (fixed.attr('data-top') - fixed.outerHeight() <= $(this).scrollTop()) {
fixed.addClass('navbar-fixed-top');
fixed.css('width', '100%');
} else {
fixed.removeClass('navbar-fixed-top');
fixed.css('width', '100%');
}
}
// Admin -> Settings toolbar.
if ($('body').width() > 959) {
if ($('.new_actions').length) {
if (!$('.new_actions').attr('data-top')) {
// If already fixed, then do nothing
if ($('.new_actions').hasClass('new_actions-fixed')) return;
// Remember top position
var offset = $('.new_actions').offset();
var more_top = 0;
if ($('.subnav').hasClass('new_actions-fixed')) {
more_top = 50;
}
$('.new_actions').attr('data-top', offset.top + more_top);
}
// Check if the height is enough before fixing the icons menu (or otherwise removing it)
// Added a 30px offset otherwise sometimes the menu plays ping-pong when scrolling to
// the bottom of the page on short pages.
if ($('.new_actions').attr('data-top') - $('.new_actions').outerHeight() <= $(this).scrollTop() + 30) {
$('.new_actions').addClass('new_actions-fixed');
} else {
$('.new_actions').removeClass('new_actions-fixed');
}
}
}
});
function get_url_params(q, attribute) {
var vars;
var hash;
if (q != undefined) {
q = q.split('&');
for(var i = 0; i < q.length; i++){
hash = q[i].split('=');
if (hash[0] == attribute) {
return hash[1];
}
}
}
}
function check_brand() {
if ($('.subnav').length) {
if ($(window).width() >= 969) {
$('.subnav .brand').hide();
} else {
$('.subnav .brand').show();
}
}
}
function showConfirmationPopup(obj, urlParam) {
if (urlParam) {
url = urlParam
} else {
url = obj.href;
}
var dialog = $("#dialog");
if ($("#dialog").length == 0) {
dialog = $('<div id="dialog" style="display:none">{{ "ConfirmYourChoice" | get_lang }} </div>').appendTo('body');
}
var width_value = 350;
var height_value = 150;
var resizable_value = true;
var new_param = get_url_params(url, 'width');
if (new_param) {
width_value = new_param;
}
var new_param = get_url_params(url, 'height')
if (new_param) {
height_value = new_param;
}
var new_param = get_url_params(url, 'resizable');
if (new_param) {
resizable_value = new_param;
}
// Show dialog
dialog.dialog({
modal : true,
width : width_value,
height : height_value,
resizable : resizable_value,
buttons: [
{
text: '{{ 'Yes' | get_lang }}',
click: function() {
window.location = url;
},
icons:{
primary:'ui-icon-locked'
}
},
{
text: '{{ 'No' | get_lang }}',
click: function() { $(this).dialog("close"); },
icons:{
primary:'ui-icon-locked'
}
}
]
});
// prevent the browser to follow the link
return false;
}
function setCheckbox(value, table_id) {
checkboxes = $("#"+table_id+" input:checkbox");
$.each(checkboxes, function(index, checkbox) {
checkbox.checked = value;
if (value) {
$(checkbox).parentsUntil("tr").parent().addClass("row_selected");
} else {
$(checkbox).parentsUntil("tr").parent().removeClass("row_selected");
}
});
return false;
}
function action_click(element, table_id) {
d = $("#"+table_id);
if (!confirm('{{ "ConfirmYourChoice"|get_lang }}')) {
return false;
} else {
var action =$(element).attr("data-action");
$('#'+table_id+' input[name="action"] ').attr("value", action);
d.submit();
return false;
}
}
/**
* Generic function to replace the deprecated jQuery toggle function
* @param inId : id of block to hide / unhide
* @param inIdTxt : id of the button
* @param inTxtHide : text one of the button
* @param inTxtUnhide : text two of the button
* @todo : allow to detect if text is from a button or from a <a>
*/
function hideUnhide(inId, inIdTxt, inTxtHide, inTxtUnhide)
{
if ($('#'+inId).css("display") == "none") {
$('#'+inId).show(400);
$('#'+inIdTxt).attr("value", inTxtUnhide);
} else {
$('#'+inId).hide(400);
$('#'+inIdTxt).attr("value", inTxtHide);
}
}
function expandColumnToogle(buttonSelector, col1Info, col2Info)
{
$(buttonSelector).on('click', function (e) {
e.preventDefault();
col1Info = $.extend({
selector: '',
width: 4
}, col1Info);
col2Info = $.extend({
selector: '',
width: 8
}, col2Info);
if (!col1Info.selector || !col2Info.selector) {
return;
}
var col1 = $(col1Info.selector),
col2 = $(col2Info.selector);
$('#expand').toggleClass('hide');
$('#contract').toggleClass('hide');
if (col2.is('.col-md-' + col2Info.width)) {
col2.removeClass('col-md-' + col2Info.width).addClass('col-md-12');
col1.removeClass('col-md-' + col1Info.width).addClass('hide');
return;
}
col2.removeClass('col-md-12').addClass('col-md-' + col2Info.width);
col1.removeClass('hide').addClass('col-md-' + col1Info.width);
});
}
</script>

@ -1,21 +0,0 @@
{% extends template ~ "/layout/page.html.twig" %}
{% 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 }}
{{ search_block }}
{{ classes_block }}
</div>
{% endblock %}

@ -1,15 +0,0 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[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>
{% include template ~ "/layout/head.html.twig" %}
</head>
<body dir="{{text_direction}}" class="{{section_name}}">
<section id="content-scorm">
{% block body %}
{{ content }}
{% endblock %}
</body>
</html>

@ -1,67 +0,0 @@
{% autoescape false %}
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[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>
{% block head %}
{% include template ~ "/layout/head.html.twig" %}
{% endblock %}
</head>
<body dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
<noscript>{{ "NoJavascript"|get_lang }}</noscript>
<div class="wrap">
{% if displayCookieUsageWarning == true %}
<!-- Display Cookies validation -->
<div class="toolbar-cookie alert-warning">
<form onSubmit="$(this).toggle('slow')" action="" method="post">
<input value=1 type="hidden" name="acceptCookies"/>
<div class="cookieUsageValidation">
{{ "YouAcceptCookies" | get_lang }}
<span style="margin-left:20px;" onclick="$(this).next().toggle('slow'); $(this).toggle('slow')">
({{"More" | get_lang }})
</span>
<div style="display:none; margin:20px 0;">
{{ "HelpCookieUsageValidation" | get_lang}}
</div>
<span style="margin-left:20px;" onclick="$(this).parent().parent().submit()">
({{"Accept" | get_lang }})
</span>
</div>
</form>
</div>
{% endif %}
{% if show_header == true %}
{% include template ~ "/layout/page_header.html.twig" %}
{% endif %}
{% if show_course_shortcut is not null %}
<div class="nav-tools">
{{ show_course_shortcut }}
</div>
{% endif %}
<section id="content-section">
<div class="container">
{% block breadcrumb %}
<div id="page-breadcrumb">
{{ breadcrumb }}
</div>
{% endblock %}
{% block body %}
{{ content }}
{% endblock %}
</div>
</section>
{% if show_footer == true %}
{% include template ~ "/layout/page_footer.html.twig" %}
{% endif %}
{% include template ~ '/layout/footer.js.html.twig' %}
</div>
</body>
</html>
{% endautoescape %}

@ -1,29 +0,0 @@
{% autoescape false %}
{% if actions != '' %}
{{ actions }}
{% endif %}
{{ flash_messages }}
{% if header != '' %}
<div class="section-page">
<div class="page-header">
<h3>{{ header }}</h3>
</div>
</div>
{% endif %}
{% if category != '' %}
<div class="section-category">
<div class="page-header">
<h3>{{ category.name }}</h3>
</div>
<div class="description">
{{ category.description }}
</div>
</div>
{% endif %}
{% if message != '' %}
<section id="messages">
{{ message}}
</section>
{% endif %}
{% endautoescape %}

@ -1,95 +0,0 @@
{% autoescape false %}
<footer id="footer-section" class="sticky-footer bgfooter">
<div class="container">
<div class="pre-footer">
{% if plugin_pre_footer is not null %}
<div id="plugin_pre_footer">
{{ plugin_pre_footer }}
</div>
{% endif %}
</div>
<div class="sub-footer">
<div class="row">
<div class="col-md-4">
{% if session_teachers is not null %}
<div class="session-teachers">
{{ session_teachers }}
</div>
{% endif %}
{% if teachers is not null %}
<div class="teachers">
{{ teachers }}
</div>
{% endif %}
{% if plugin_footer_left is not null %}
<div id="plugin_footer_left">
{{ plugin_footer_left }}
</div>
{% endif %}
</div>
<div class="col-md-4">
{% if plugin_footer_center is not null %}
<div id="plugin_footer_center">
{{ plugin_footer_center }}
</div>
{% endif %}
</div>
<div class="col-md-4 text-right">
{% if administrator_name is not null %}
<div class="administrator-name">
{{ administrator_name }}
</div>
{% endif %}
{% if _s.software_name is not empty %}
<div class="software-name">
<a href="{{_p.web}}" target="_blank">
{{ "PoweredByX" |get_lang | format(_s.software_name) }}
</a>&copy; {{ "now"|date("Y") }}
</div>
{% endif %}
{% if plugin_footer_right is not null %}
<div id="plugin_footer_right">
{{ plugin_footer_right }}
</div>
{% endif %}
</div>
</div>
</div>
<div class="extra-footer">
{{ footer_extra_content }}
</div>
</div>
</footer>
<div class="modal fade" id="expand-image-modal" tabindex="-1" role="dialog" aria-labelledby="expand-image-modal-title" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="expand-image-modal-title">&nbsp;</h4>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
{# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
<div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
{{ execution_stats }}
{% endautoescape %}

@ -1,60 +0,0 @@
{% autoescape false %}
<div id="navigation" class="notification-panel">
{{ help_content }}
{{ bug_notification }}
</div>
{% block topbar %}
{% include template ~ "/layout/topbar.html.twig" %}
{% endblock %}
<div class="extra-header">{{ header_extra_content }}</div>
<header id="header-section" class="header-movil">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="logo">
{{ logo }}
</div>
</div>
<div class="col-md-9">
<div class="row">
<div class="col-sm-4">
{% if plugin_header_left is not null %}
<div id="plugin_header_left">
{{ plugin_header_left }}
</div>
{% endif %}
</div>
<div class="col-sm-4">
{% if plugin_header_center is not null %}
<div id="plugin_header_center">
{{ plugin_header_center }}
</div>
{% endif %}
</div>
<div class="col-sm-4">
{% if plugin_header_right is not null %}
<div id="plugin_header_right">
{{ plugin_header_right }}
</div>
{% endif %}
<script>
$(document).on('ready', function () {
$("#notifications").load("{{ _p.web_main }}inc/ajax/online.ajax.php?a=get_users_online");
});
</script>
<div class="section-notifications">
<ul id="notifications" class="nav nav-pills pull-right">
</ul>
</div>
{{ accessibility }}
</div>
</div>
</div>
</div>
</div>
</header>
{% block menu %}
{% include template ~ "/layout/menu.html.twig" %}
{% endblock %}
{% include template ~ "/layout/course_navigation.html.twig" %}
{% endautoescape %}

@ -1,9 +0,0 @@
{% 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,55 +0,0 @@
<!DOCTYPE html>
<!--[if lt IE 7]>
<html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html lang="{{ document_language }}" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[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>
{% block head %}
{% include template ~ "/layout/head.html.twig" %}
{% endblock %}
</head>
<body dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
<noscript>{{ "NoJavascript"|get_lang }}</noscript>
{% autoescape false %}
{% if show_header == true %}
<div class="wrap">
{% if displayCookieUsageWarning == true %}
<!-- Display Cookies validation -->
<div class="toolbar-cookie alert-warning">
<form onSubmit="$(this).toggle('slow')" action="" method="post">
<input value=1 type="hidden" name="acceptCookies"/>
<div class="cookieUsageValidation">
{{ "YouAcceptCookies" | get_lang }}
<span style="margin-left:20px;" onclick="$(this).next().toggle('slow'); $(this).toggle('slow')">
({{ "More" | get_lang }})
</span>
<div style="display:none; margin:20px 0;">
{{ "HelpCookieUsageValidation" | get_lang }}
</div>
<span style="margin-left:20px;" onclick="$(this).parent().parent().submit()">
({{ "Accept" | get_lang }})
</span>
</div>
</form>
</div>
{% endif %}
{% include template ~ "/layout/page_header.html.twig" %}
{% if show_course_shortcut is not null %}
<div class="nav-tools">
{{ show_course_shortcut }}
</div>
{% endif %}
<section id="content-section">
<div class="container">
{% block breadcrumb %}
<div id="page-breadcrumb">
{{ breadcrumb }}
</div>
{% endblock %}
{{ flash_messages }}
{% endif %}
{% endautoescape %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,3 @@
{#{% extends template ~ "/layout/layout_1_col.html.twig" %}#}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,5 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
<div class="row">

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1,4 +1,4 @@
{% extends template ~ "/layout/layout_1_col.html.twig" %}
{% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

@ -1 +0,0 @@
{% extends "default/layout/layout_1_col.html.twig" %}

@ -1,41 +0,0 @@
{% extends "default/layout/layout_2_col.html.twig" %}
{% block header %}
{% embed "default/layout/main_header.html.twig" %}
{% block head %}
{{ parent() }}
{% endblock %}
{% block help_notifications %}
{{ parent() }}
{% endblock %}
{% block logo %}
{{ parent() }}
{% endblock %}
{% block breadcrumb %}
{{ parent() }}
{% endblock %}
{% block menu %}
{{ parent() }}
{% endblock %}
{% block topbar %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% block login_form %}
{{ parent() }}
{% endblock %}
{% block page_body %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ parent() }}
{% endblock %}

@ -1 +0,0 @@
{% extends "default/layout/layout_3_col.html.twig" %}

@ -1 +0,0 @@
{% extends "default/layout/show_footer.html.twig" %}

@ -1 +0,0 @@
{% extends "default/layout/show_header.html.twig" %}

@ -6,11 +6,14 @@
class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
{% for locale in locales %}
{{ locale }}julio
<li>
<a href="{{ locale.link }}"
title="{{ locale.locale_target_language }}">
<span class="lang-sm lang-lbl-full" lang="{{ locale.locale }}"></span>
{#<span class="lang-sm lang-lbl-full" lang="{{ locale.locale }}"></span>#}
<span class="flag-icon flag-icon-{{ locale.locale }}"></span>
{{ locale.locale_target_language }}
</a>
</li>

@ -1,68 +0,0 @@
{% extends template ~ "/layout/page.tpl" %}
{% block body %}
<div class="col-md-3 menu-column">
{% if _u.logged == 1 %}
{{ user_image_block }}
{% endif %}
{{ profile_block }}
{{ course_block }}
{{ teacher_block }}
{{ skills_block }}
{{ certificates_search_block }}
{{ notice_block }}
{{ help_block }}
{{ navigation_course_links }}
{{ search_block }}
{{ classes_block }}
</div>
<div class="col-md-9">
{% if home_page_block %}
<section id="homepage-home">
{{ home_page_block }}
</section>
{% endif %}
{{ 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 announcements_block %}
<section id="homepage-announcements">
{{ announcements_block }}
</section>
{% endif %}
{% if course_category_block %}
<section id="homepage-course-category">
{{ course_category_block }}
</section>
{% endif %}
{% include template ~ "/layout/hot_courses.tpl" %}
</div>
{% endblock %}

@ -1,21 +0,0 @@
{% extends template ~ "/layout/page.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 }}
{{ search_block }}
{{ classes_block }}
</div>
{% endblock %}

@ -1,4 +0,0 @@
{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
{#{% extends 'SonataPageBundle::base_layout.html.twig' %}#}

@ -1,37 +0,0 @@
{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
{% block page_content %}
{% if js is defined %}
{% autoescape false %}
{% for item in js %}
{{ item }}
{% endfor %}
{% endautoescape %}
{% endif %}
<div class="row">
<div class="col-xs-12 col-md-12">
{# Breadcrumb #}
{% block chamilo_breadcrumb %}
{# {% include '@ChamiloCore/breadcrumb.html.twig' %}#}
{% endblock %}
{% block chamilo_messages %}
{# Flash messages #}
{% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
{% endblock %}
{# Content #}
{% block content %}
<section id="main_content">
{% autoescape false %}
{{ content }}
{% endautoescape %}
</section>
{% endblock %}
</div>
</div>
{% endblock %}

@ -1,48 +0,0 @@
{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
{% set pathInfo = path(
app.request.attributes.get('_route'),
app.request.attributes.get('_route_params'))
%}
{% block page_content %}
{# Left column #}
<div class="col-md-3">
{% block chamilo_left_column %}
<section class="left_column">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
{{ render(controller('ChamiloThemeBundle:Sidebar:userPanel', {'pathInfo': pathInfo })) }}
{#{{ render(controller('ChamiloThemeBundle:Sidebar:searchForm')) }}#}
{% endif %}
{# Sidebar menu #}
{{ render(controller('ChamiloThemeBundle:Sidebar:menuKnp', {'request' : app.request, pathInfo: pathInfo })) }}
{# Skill block see SkillBlockService.php #}
{#{{ sonata_block_render({'type': 'chamilo_core.block.skill'}) }}#}
</section>
{% endblock %}
</div>
{# Right column #}
<div class="col-md-9">
{% block chamilo_breadcrumb %}
{% include '@ChamiloCore/breadcrumb.html.twig' %}
{% endblock %}
{% block chamilo_messages %}
{# Flash messages #}
{% include 'SonataCoreBundle:FlashMessage:render.html.twig' %}
{% endblock %}
{% block chamilo_right_column %}
{% block content %}
<section class="right_column">
{% autoescape false %}
{{ content }}
{% endautoescape %}
</section>
{% endblock %}
{% endblock %}
</div>
{% endblock %}

@ -1,17 +1,43 @@
<script>
/* Makes row highlighting possible */
$(document).ready( function() {
$("[data-toggle=popover]").each(function(i, obj) {
$(this).popover({
html: true,
content: function() {
var id = $(this).attr('id')
return $('#popover-content-' + id).html();
}
});
});
$('.scrollbar-inner').scrollbar();
// Date time settings.
moment.locale('{{ app.request.locale }}');
$.datepicker.setDefaults($.datepicker.regional["{{ app.request.locale }}"]);
$.datepicker.regional["local"] = $.datepicker.regional["{{ app.request.locale }}"];
moment.locale('{{ locale }}');
$.datepicker.setDefaults($.datepicker.regional["{{ locale }}"]);
$.datepicker.regional["local"] = $.datepicker.regional["{{ locale }}"];
// Fix old calls of "inc/lib/mediaplayer/player.swf" and convert to <audio> tag, then rendered by media element js
// see BT#13405
$('embed').each( function () {
var flashVars = $(this).attr('flashvars');
if (flashVars && flashVars.indexOf("file") == -1) {
var audioId = Math.floor( Math.random()*99999 );
flashVars = flashVars.replace('&autostart=false', '');
flashVars = flashVars.replace('&autostart=true', '');
var audioDiv = '<audio id="'+audioId+'" controls="controls" style="width:400px;" width:"400px;" src="'+flashVars+'" ><source src="'+flashVars+'" type="audio/mp3" ></source></audio>';
$(this).hide();
$(this).after(audioDiv);
}
});
// Chosen select
$(".chzn-select").chosen({
disable_search_threshold: 10,
no_results_text: '{{ 'SearchNoResultsFound' | trans | escape('js') }}',
placeholder_text_multiple: '{{ 'SelectSomeOptions' | trans | escape('js') }}',
placeholder_text_single: '{{ 'SelectAnOption' | trans | escape('js') }}',
no_results_text: '{{ 'SearchNoResultsFound' | get_lang | escape('js') }}',
placeholder_text_multiple: '{{ 'SelectSomeOptions' | get_lang | escape('js') }}',
placeholder_text_single: '{{ 'SelectAnOption' | get_lang | escape('js') }}',
width: "100%"
});
@ -38,7 +64,6 @@
event.preventDefault();
var id = $(this).attr('id') + '_options';
var button = $(this);
button.toggleClass('active');
$("#" + id).toggle();
});
@ -66,11 +91,15 @@
$("#" + inputId).filterByText($("#" + inputId + "-filter"));
});
$(".jp-jplayer audio").addClass('skip');
// Mediaelement
if ( {{ show_media_element }} == 1) {
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */);
$('video:not(.skip), audio:not(.skip)').mediaelementplayer({
pluginPath: '{{ _p.web }}web/assets/mediaelement/build/',
renderers: ['html5', 'flash_video', 'native_flv'],
features: ['{{ video_features }}'],
success: function(mediaElement, originalNode, instance) {
}
});
}
// Table highlight.

@ -35,7 +35,7 @@
{# Breadcrumb #}
{% block chamilo_breadcrumb %}
{% include '@ChamiloCore/breadcrumb.html.twig' %}
{% include '@ChamiloTheme/Layout/breadcrumb.html.twig' %}
{% endblock %}
{% if actions != '' %}

@ -47,7 +47,7 @@
{% endif %}
{% block chamilo_breadcrumb %}
{% include '@ChamiloCore/breadcrumb.html.twig' %}
{% include '@ChamiloTheme/Layout/breadcrumb.html.twig' %}
{% endblock %}
{% block chamilo_messages %}

Loading…
Cancel
Save