From 4f4f94e858117223567590b256fcb4e8d94ad42b Mon Sep 17 00:00:00 2001 From: brunoduc <54796327+brunoduc@users.noreply.github.com> Date: Thu, 19 Mar 2020 18:07:00 +0100 Subject: [PATCH 1/5] add gpx and kml extention For use with map. --- core/vendor/filemanager/config/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vendor/filemanager/config/config.php b/core/vendor/filemanager/config/config.php index 45693be4..fe78f75a 100755 --- a/core/vendor/filemanager/config/config.php +++ b/core/vendor/filemanager/config/config.php @@ -341,7 +341,7 @@ $config = array( 'download_files' => true, // allow download files or just preview // you can preview these type of files if $preview_text_files is true - 'previewable_text_file_exts' => array( "bsh", "c","css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml","xsl",'txt', 'log','' ), + 'previewable_text_file_exts' => array( "bsh", "c","css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml","xsl",'txt', 'log', 'gpx', 'kml', '' ), // you can edit these type of files if $edit_text_files is true (only text based files) // you can create these type of files if $config['create_text_files'] is true (only text based files) @@ -369,7 +369,7 @@ $config = array( //Allowed extensions (lowercase insert) //********************** 'ext_img' => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff','svg', 'ico' ), //Images - 'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'ics', ''), //Files + 'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'ics', 'gpx', 'kml', ''), //Files 'ext_video' => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm" ), //Video 'ext_music' => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //Audio 'ext_misc' => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg' ), //Archives From bb48004701380a3db9d3dcde327bb1c149df7bb3 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 20 Mar 2020 15:04:54 +0100 Subject: [PATCH 2/5] [9.2.26] Fix 2 background image dans tinymce --- core/vendor/tinymce/content.css | 1 + 1 file changed, 1 insertion(+) diff --git a/core/vendor/tinymce/content.css b/core/vendor/tinymce/content.css index 57c6cbb3..05a338fa 100755 --- a/core/vendor/tinymce/content.css +++ b/core/vendor/tinymce/content.css @@ -5,6 +5,7 @@ /* Fix les problèmes de couleurs et de taille de police */ .editorWysiwyg { font-size: 14px !important; + background-image: none; } From 23aa89069ef51dd46ab5df77bd61973fbd0761bb Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 20 Mar 2020 15:08:10 +0100 Subject: [PATCH 3/5] [9.2.26] suppression ligne en trop --- core/vendor/tinymce/init.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/vendor/tinymce/init.js b/core/vendor/tinymce/init.js index d1c60064..136522cd 100755 --- a/core/vendor/tinymce/init.js +++ b/core/vendor/tinymce/init.js @@ -191,13 +191,6 @@ tinymce.init({ ] }); -/** - * Suppression du back ground TinyMCE - * - */ - $(body).removeAttr("background-image"); - - tinymce.PluginManager.add('stickytoolbar', function(editor, url) { editor.on('init', function() { setSticky(); From 6de8c27ce0d239e22279d430f72580bfe81be527 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 20 Mar 2020 15:59:52 +0100 Subject: [PATCH 4/5] =?UTF-8?q?[9.2.26]=20th=C3=A8me=20des=20modules=20+?= =?UTF-8?q?=20oprimisation=20js=20edition=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/config/view/index/index.css | 4 +- core/module/install/view/update/update.css | 4 +- core/module/page/view/edit/edit.css | 2 +- core/module/theme/view/advanced/advanced.css | 4 +- core/module/theme/view/body/body.css | 4 +- core/module/theme/view/footer/footer.css | 4 +- core/module/theme/view/header/header.css | 4 +- core/module/theme/view/index/index.css | 4 +- core/module/theme/view/manage/manage.css | 4 +- core/module/theme/view/menu/menu.css | 4 +- core/module/theme/view/site/site.css | 4 +- core/module/theme/view/site/site.js.php | 154 ++++++++----------- core/module/user/view/add/add.css | 4 +- core/module/user/view/edit/edit.css | 4 +- core/module/user/view/index/index.css | 4 +- core/module/user/view/reset/reset.css | 4 +- module/blog/view/add/add.css | 39 +++++ module/blog/view/comment/comment.css | 39 +++++ module/blog/view/config/config.css | 39 +++++ module/blog/view/edit/edit.css | 39 +++++ module/blog/view/index/index.css | 2 +- module/form/view/config/config.css | 29 +++- module/form/view/data/data.css | 39 +++++ module/gallery/view/config/config.css | 40 +++++ module/gallery/view/edit/edit.css | 39 +++++ module/news/view/add/add.css | 39 +++++ module/news/view/config/config.css | 39 +++++ module/news/view/index/index.css | 1 - module/redirection/view/config/config.css | 39 +++++ module/redirection/view/index/index.css | 39 +++++ 30 files changed, 554 insertions(+), 120 deletions(-) create mode 100644 module/blog/view/add/add.css create mode 100644 module/blog/view/comment/comment.css create mode 100644 module/blog/view/config/config.css create mode 100644 module/blog/view/edit/edit.css create mode 100644 module/form/view/data/data.css create mode 100644 module/gallery/view/edit/edit.css create mode 100644 module/news/view/add/add.css create mode 100644 module/news/view/config/config.css delete mode 100644 module/news/view/index/index.css create mode 100644 module/redirection/view/config/config.css create mode 100644 module/redirection/view/index/index.css diff --git a/core/module/config/view/index/index.css b/core/module/config/view/index/index.css index 0d42a8df..8aefd17a 100644 --- a/core/module/config/view/index/index.css +++ b/core/module/config/view/index/index.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/install/view/update/update.css b/core/module/install/view/update/update.css index 94be3bfa..ef597423 100644 --- a/core/module/install/view/update/update.css +++ b/core/module/install/view/update/update.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/page/view/edit/edit.css b/core/module/page/view/edit/edit.css index cb22eb5e..029db4f8 100644 --- a/core/module/page/view/edit/edit.css +++ b/core/module/page/view/edit/edit.css @@ -17,7 +17,7 @@ background-color: rgba(255, 255, 255, 1); } -body, +body:not(.editorWysiwyg), .block h4, input[type="email"], input[type="text"], diff --git a/core/module/theme/view/advanced/advanced.css b/core/module/theme/view/advanced/advanced.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/advanced/advanced.css +++ b/core/module/theme/view/advanced/advanced.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/body/body.css b/core/module/theme/view/body/body.css index 1ca1fa38..3f764b8d 100644 --- a/core/module/theme/view/body/body.css +++ b/core/module/theme/view/body/body.css @@ -20,8 +20,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/footer/footer.css b/core/module/theme/view/footer/footer.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/footer/footer.css +++ b/core/module/theme/view/footer/footer.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/header/header.css b/core/module/theme/view/header/header.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/header/header.css +++ b/core/module/theme/view/header/header.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/index/index.css b/core/module/theme/view/index/index.css index 75163439..7a7607d3 100755 --- a/core/module/theme/view/index/index.css +++ b/core/module/theme/view/index/index.css @@ -62,8 +62,8 @@ nav li ul { background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/manage/manage.css b/core/module/theme/view/manage/manage.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/manage/manage.css +++ b/core/module/theme/view/manage/manage.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/menu/menu.css b/core/module/theme/view/menu/menu.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/menu/menu.css +++ b/core/module/theme/view/menu/menu.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/site/site.css b/core/module/theme/view/site/site.css index 69ed098d..29fe0414 100644 --- a/core/module/theme/view/site/site.css +++ b/core/module/theme/view/site/site.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/site/site.js.php b/core/module/theme/view/site/site.js.php index 726d6a93..febdd146 100755 --- a/core/module/theme/view/site/site.js.php +++ b/core/module/theme/view/site/site.js.php @@ -13,96 +13,74 @@ /* * Chargement de l'aperçu */ -$( document ).ready(function() { - - - // Import des polices de caractères - var titleFont = $("#themeTitleFont").val(); - var textFont = $("#themeTextFont").val(); - - var css = "@import url('https://fonts.googleapis.com/css?family=" + titleFont + "|" + textFont + "');"; - var colors = core.colorVariants($("#themeButtonBackgroundColor").val()); - - // Texte - css += "p.preview {color:" + $("#themeTextTextColor").val() + ";font-family:'" + textFont.replace(/\+/g, " ") + "',sans-serif}"; - // Titres - css += "h1.preview,h3.preview{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}"; - // Fond - css += "div.preview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; - - // Couleurs des liens - colors = core.colorVariants($("#themeLinkTextColor").val()); - css += "a.preview,.buttonPreview{color:" + colors.normal + "}"; - css += "a.preview:hover,.buttonPreview{color:" + colors.darken + "}"; - css += "a.preview,.buttonPreview {font-family:'" + textFont.replace(/\+/g, " ") + "',sans-serif}"; - - // Paramètrage du DOM - $("#themePreview").remove(); - $("