Browse Source

[9.0.14] tippy lity and tinymce setup updates

pull/5/head
fredtempez 3 years ago
parent
commit
7f0d7f2e22
  1. 9
      core/core.js.php
  2. 2
      core/core.php
  3. 1
      core/vendor/flatpickr/init.js
  4. 3
      core/vendor/lity/inc.json
  5. 7
      core/vendor/lity/init.js
  6. 3
      core/vendor/simplelightbox/inc.json
  7. 10
      core/vendor/simplelightbox/init.js
  8. 6
      core/vendor/simplelightbox/simplelightbox.min.js
  9. 4
      core/vendor/tinymce/langs/fr_FR.js
  10. 2
      core/vendor/tinymce/link_list.json
  11. 5
      core/vendor/tippy/init.js
  12. 5
      site/tmp/.htaccess

9
core/core.js.php

@ -328,15 +328,6 @@ core.start = function() {
});
}).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();

2
core/core.php

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

1
core/vendor/flatpickr/init.js

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

3
core/vendor/lity/inc.json

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

7
core/vendor/lity/init.js

@ -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",""
);
});

3
core/vendor/simplelightbox/inc.json

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

10
core/vendor/simplelightbox/init.js

@ -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'});
});

6
core/vendor/simplelightbox/simplelightbox.min.js

File diff suppressed because one or more lines are too long

4
core/vendor/tinymce/langs/fr_FR.js

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

2
core/vendor/tinymce/link_list.json

@ -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"}]}]

5
core/vendor/tippy/init.js

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

5
site/tmp/.htaccess

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