[9.0.14] tippy lity and tinymce setup updates

This commit is contained in:
fredtempez 2019-03-30 05:25:52 +01:00
parent 6bd4e6e53c
commit 7f0d7f2e22
12 changed files with 34 additions and 23 deletions

View File

@ -328,15 +328,6 @@ core.start = function() {
}); });
}).trigger("resize"); }).trigger("resize");
// Ajouter l'attribut data-lity afin de faire la liaison avec lity
$("a[rel='data-lity']").attr("data-lity","");
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
$("a[rel='gallery']").addClass("gallery","");
//
$('.gallery').simpleLightbox();
}; };
core.start(); core.start();

View File

@ -28,7 +28,7 @@ class common {
const GROUP_ADMIN = 3; const GROUP_ADMIN = 3;
// Numéro de version stable // Numéro de version stable
const ZWII_VERSION = '9.0.13'; const ZWII_VERSION = '9.0.14';
public static $actions = []; public static $actions = [];
public static $coreModuleIds = [ public static $coreModuleIds = [

View File

@ -8,6 +8,7 @@ $(function() {
enableTime: true, enableTime: true,
time_24hr: true, time_24hr: true,
locale: "fr", locale: "fr",
regional:"fr",
dateFormat: "Y-m-d H:i:s" dateFormat: "Y-m-d H:i:s"
}); });
}); });

View File

@ -1,4 +1,5 @@
[ [
"lity.min.css", "lity.min.css",
"lity.min.js" "lity.min.js",
"init.js"
] ]

7
core/vendor/lity/init.js vendored Normal file
View File

@ -0,0 +1,7 @@
// Initialisation
// Ajouter l'attribut data-lity afin de faire la liaison avec lity
$(document).ready(function() {
$("a[rel='data-lity']").attr(
"data-lity",""
);
});

View File

@ -1,5 +1,6 @@
[ [
"simplelightbox.min.js", "simplelightbox.min.js",
"simplelightbox.min.css", "simplelightbox.min.css",
"init.css" "init.css",
"init.js"
] ]

10
core/vendor/simplelightbox/init.js vendored Normal file
View File

@ -0,0 +1,10 @@
// Paramètres d'initialisation
$(document).ready(function() {
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
$("a[rel='gallery']").addClass(
"gallery",""
);
$('.gallery').simpleLightbox({closeText:"✕",captionsData:'alt'});
});

File diff suppressed because one or more lines are too long

View File

@ -112,8 +112,8 @@ tinymce.addI18n('fr_FR',{
"Handy Shortcuts": "Raccourci", "Handy Shortcuts": "Raccourci",
"Horizontal line": "Ligne horizontale", "Horizontal line": "Ligne horizontale",
"Insert\/edit image": "Ins\u00e9rer\/modifier une image", "Insert\/edit image": "Ins\u00e9rer\/modifier une image",
"Image description": "Description", "Image description": "Légende",
"Image Title": "Légende", "Image Title": "Titre",
"Source": "Source", "Source": "Source",
"Dimensions": "Dimensions", "Dimensions": "Dimensions",
"Constrain proportions": "Conserver les proportions", "Constrain proportions": "Conserver les proportions",

View File

@ -1 +1 @@
[{"title":"Nouvelle page","value":"?nouvelle-page"},{"title":"Nouvelle page","value":"?nouvelle-page-2"},{"title":"Accueil","value":"?accueil-2"},{"title":"Blog","value":"?blog"},{"title":"Galeries","value":"?galeries"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?p-contact"},{"title":"Accueil","value":"?accueil","menu":[{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"}]},{"title":"News","value":"?news"}] [{"title":"Nouvelle page","value":"?nouvelle-page-2"},{"title":"Nouvelle page","value":"?nouvelle-page-3"},{"title":"Nouvelle page","value":"?nouvelle-page-4"},{"title":"Nouvelle page","value":"?nouvelle-page"},{"title":"Accueil","value":"?accueil","menu":[{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"}]},{"title":"Priv\u00e9e","value":"?privee"},{"title":"Blog","value":"?blog","menu":[{"title":"Galeries","value":"?galeries"}]},{"title":"Contact","value":"?contact","menu":[{"title":"Site de Zwii","value":"?site-de-zwii"}]}]

View File

@ -14,12 +14,15 @@ $(document).ready(function() {
placement: "top" placement: "top"
}); });
// Pour les images map, pas de flèche, bulle haut suivant le curseur // Pour les images map, pas de flèche, bulle haut suivant le curseur
tippy('img[title], a[title], area[title]', { tippy('img[title], a[title], area[title]', {
content(reference) { content(reference) {
const title = reference.getAttribute('title') const title = reference.getAttribute('title')
reference.removeAttribute('title') reference.removeAttribute('title')
return title return title
}, },
placement: "top", placement: "top",
followCursor: true, followCursor: true,
animation: "fade", animation: "fade",

View File

@ -1,5 +0,0 @@
# Bloque l'accès htaccess
<Files .htaccess>
Order deny,allow
Deny from all
</Files>