Merge branch '1.10.x' of github.com:chamilo/chamilo-lms into 1.10.x

1.10.x
aragonc 9 years ago
commit 0c999ea4b0
  1. 6
      app/Resources/public/css/frames.css
  2. 3
      main/admin/settings.lib.php
  3. 12
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ar.js
  4. 13
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/bg.js
  5. 4
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/da.js
  6. 4
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/de.js
  7. 13
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/eu.js
  8. 13
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/id.js
  9. 13
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ko.js
  10. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/sv.js
  11. 13
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ug.js
  12. 36
      main/inc/lib/javascript/ckeditor/plugins/mathjax/plugin.js
  13. 6
      main/inc/lib/template.lib.php
  14. 1
      main/social/myfiles.php
  15. 4
      main/template/default/layout/footer.js.tpl
  16. 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php

@ -20,9 +20,3 @@ a{
a:hover{
text-decoration: underline;
}
img{
border: 1px solid #ccc;
border-radius: 5px;
padding: 5px;
background: #fff;
}

@ -1000,6 +1000,7 @@ function add_edit_template() {
$form->addButtonSave(get_lang('Ok'), 'submit');
// Setting the rules: the required fields.
$form->addRule('template_image', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('title', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('template_text', get_lang('ThisFieldIsRequired'), 'required');
@ -1042,7 +1043,7 @@ function add_edit_template() {
// Store the information in the database (as insert or as update).
$table_system_template = Database :: get_main_table('system_template');
if ($_GET['action'] == 'add') {
$content_template = '<head>{CSS}<style type="text/css">.text{font-weight: normal;}</style></head><body>'.Database::escape_string($values['template_text']).'</body>';
$content_template = Security::remove_XSS($values['template_text'], COURSEMANAGERLOWSECURITY);
$params = [
'title' => $values['title'],
'content' => $content_template,

@ -3,11 +3,11 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ar', {
title: 'Mathematics in TeX', // MISSING
button: 'Math', // MISSING
dialogInput: 'Write your TeX here', // MISSING
title: 'الرياصيات في Tex',
button: 'رياضيات',
dialogInput: 'أكتب Tex خاصتك هنا',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX documentation', // MISSING
loading: 'تحميل',
pathName: 'math' // MISSING
docLabel: 'وثائق Tex',
loading: 'جاري التحميل...',
pathName: 'رياضيات'
} );

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'bg', {
title: 'Формули в TeX формат',
button: 'Формули',
dialogInput: 'Въведете вашите данни с TeX форматиране тук',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX документация',
loading: 'зареждане...',
pathName: 'формули'
} );

@ -5,9 +5,9 @@ For licensing, see LICENSE.md or http://ckeditor.com/license
CKEDITOR.plugins.setLang( 'mathjax', 'da', {
title: 'Matematik i TeX',
button: 'Matematik',
dialogInput: 'Write your TeX here', // MISSING
dialogInput: 'Skriv din TeX her',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX dokumentation',
loading: 'loading...', // MISSING
loading: 'henter...',
pathName: 'matematik'
} );

@ -7,7 +7,7 @@ CKEDITOR.plugins.setLang( 'mathjax', 'de', {
button: 'Rechnung',
dialogInput: 'Schreiben Sie hier in Tex',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'Tex Dokumentation',
loading: 'lädt...',
docLabel: 'TeX-Dokumentation',
loading: 'Ladevorgang...',
pathName: 'rechnen'
} );

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'eu', {
title: 'Matematikak TeX-en',
button: 'Matematika',
dialogInput: 'Idatzi zure TeX hemen',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX dokumentazioa',
loading: 'kargatzen...',
pathName: 'matematika'
} );

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'id', {
title: 'Mathematics in TeX', // MISSING
button: 'Matematika',
dialogInput: 'Tulis Tex anda disini',
docUrl: 'http:// MISSING //en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX documentation', // MISSING
loading: 'memuat...',
pathName: 'math' // MISSING
} );

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ko', {
title: 'TeX 문법 수식',
button: '수식',
dialogInput: '여기 TeX 를 입력하세요',
docUrl: 'http://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:TeX_%EB%AC%B8%EB%B2%95',
docLabel: 'TeX 문서',
loading: '불러오는 중...',
pathName: '수식'
} );

@ -8,6 +8,6 @@ CKEDITOR.plugins.setLang( 'mathjax', 'sv', {
dialogInput: 'Skriv din TeX här',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX dokumentation',
loading: 'laddar',
loading: 'laddar...',
pathName: 'matte'
} );

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ug', {
title: 'TeX شەكلىدىكى ماتېماتىكا فورمۇلا تەھرىرلىگۈچ',
button: 'ماتېماتىكا فورمۇلا',
dialogInput: 'بۇ جايغا TeX ڭىزنى يېزىڭ',
docUrl: 'http:// MISSING //en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX documentation', // MISSING
loading: 'loading...', // MISSING
pathName: 'math' // MISSING
} );

@ -4,17 +4,14 @@
*/
/**
* @fileOverview [Mathematical Formulas](http://ckeditor.com/addon/mathjax) plugin.
* @fileOverview The [Mathematical Formulas](http://ckeditor.com/addon/mathjax) plugin that allows you to create and modify mathematical equations written in TeX directly in CKEditor..
*/
'use strict';
( function() {
var cdn = 'http:\/\/cdn.mathjax.org\/mathjax\/2.2-latest\/MathJax.js?config=TeX-AMS_HTML';
CKEDITOR.plugins.add( 'mathjax', {
lang: 'af,ar,ca,cs,cy,da,de,el,en,en-gb,eo,es,fa,fi,fr,gl,he,hr,hu,it,ja,km,ku,lt,nb,nl,no,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
lang: 'af,ar,bg,ca,cs,cy,da,de,el,en,en-gb,eo,es,eu,fa,fi,fr,gl,he,hr,hu,id,it,ja,km,ko,ku,lt,nb,nl,no,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
requires: 'widget,dialog',
icons: 'mathjax',
hidpi: true, // %REMOVE_LINE_CORE%
@ -22,6 +19,10 @@
init: function( editor ) {
var cls = editor.config.mathJaxClass || 'math-tex';
if ( !editor.config.mathJaxLib ) {
CKEDITOR.error( 'mathjax-no-config' );
}
editor.widgets.add( 'mathjax', {
inline: true,
dialog: 'mathjax',
@ -127,8 +128,10 @@
// Add MathJax script to page preview.
editor.on( 'contentPreview', function( evt ) {
evt.data.dataValue = evt.data.dataValue.replace( /<\/head>/,
'<script src="' + ( editor.config.mathJaxLib ? CKEDITOR.getUrl( editor.config.mathJaxLib ) : cdn ) + '"><\/script><\/head>' );
evt.data.dataValue = evt.data.dataValue.replace(
/<\/head>/,
'<script src="' + CKEDITOR.getUrl( editor.config.mathJaxLib ) + '"><\/script><\/head>'
);
} );
editor.on( 'paste', function( evt ) {
@ -337,7 +340,7 @@
'</script>' +
// Load MathJax lib.
'<script src="' + ( editor.config.mathJaxLib || cdn ) + '"></script>' +
'<script src="' + ( editor.config.mathJaxLib ) + '"></script>' +
'</head>' +
'<body style="padding:0;margin:0;background:transparent;overflow:hidden">' +
'<span id="preview"></span>' +
@ -431,14 +434,20 @@
} )();
/**
* Sets the path to the MathJax library. It can be both a local
* resource and a location different than the default CDN.
* Sets the path to the MathJax library. It can be both a local resource and a location different than the default CDN.
*
* Please note that this must be a full or absolute path.
*
* config.mathJaxLib = 'http:\/\/example.com\/libs\/MathJax.js';
* Read more in the [documentation](#!/guide/dev_mathjax)
* and see the [SDK sample](http://sdk.ckeditor.com/samples/mathjax.html).
*
* @cfg {String} [mathJaxLib='http:\/\/cdn.mathjax.org\/mathjax\/2.2-latest\/MathJax.js?config=TeX-AMS_HTML']
* config.mathJaxLib = '//cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML';
*
* **Note:** Since CKEditor 4.5 this option does not have a default value, so it must
* be set in order to enable the MathJax plugin.
*
* @since 4.3
* @cfg {String} mathJaxLib
* @member CKEDITOR.config
*/
@ -455,6 +464,9 @@
*
* <span class="my-math">\( \sqrt{4} = 2 \)</span>
*
* Read more in the [documentation](#!/guide/dev_mathjax)
* and see the [SDK sample](http://sdk.ckeditor.com/samples/mathjax.html).
*
* @cfg {String} [mathJaxClass='math-tex']
* @member CKEDITOR.config
*/

@ -606,6 +606,8 @@ class Template
// Logo
$logo = return_logo($this->theme);
$this->assign('logo', $logo);
$this->assign('show_media_element', 1);
}
/**
@ -857,7 +859,7 @@ class Template
$notification = return_notification_menu();
$this->assign('notification_menu', $notification);
$resize = '';
if (api_get_setting('accessibility_font_resize') == 'true') {
$resize .= '<div class="resize_font">';
@ -869,7 +871,7 @@ class Template
$resize .= '</div>';
}
$this->assign('accessibility', $resize);
// Preparing values for the menu
// Logout link

@ -106,6 +106,7 @@ $editor = $tpl->fetch('default/'.$editor->getEditorStandAloneTemplate());
$tpl->assign('social_right_content', $editor);
$tpl->assign('social_menu_block', $social_menu_block);
$tpl->assign('actions', $actions);
$tpl->assign('show_media_element', 0);
$social_layout = $tpl->get_template('social/myfiles.tpl');
$tpl->display($social_layout);

@ -79,7 +79,9 @@
$(".jp-jplayer audio").addClass('skip');
// Mediaelement
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */);
if ( {{ show_media_element }} == 1) {
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer(/* Options */);
}
// Table highlight.
$("form .data_table input:checkbox").click(function () {

@ -100,6 +100,7 @@ class Basic extends Toolbar
if (api_get_setting('enabled_mathjax') == 'true') {
$plugins[] = 'mathjax';
$config['mathJaxLib'] = api_get_path(WEB_PATH).'web/assets/MathJax/MathJax.js?config=AM_HTMLorMML';
}
if (api_get_setting('enabled_asciisvg') == 'true') {

Loading…
Cancel
Save