init geogallery
This commit is contained in:
parent
2448e50793
commit
3c32371899
2
module/geogallery/changes.md
Normal file
2
module/geogallery/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# Version 0.1
|
||||
- GeoGallery est basé sur le module gallery 4.1
|
1
module/geogallery/enum.json
Normal file
1
module/geogallery/enum.json
Normal file
@ -0,0 +1 @@
|
||||
{"name":"gallery","realName":"Galerie","version":"4.0","update":"0.0","delete":true,"dataDirectory":"site\/data\/gallery\/"}
|
1101
module/geogallery/geogallery.php
Normal file
1101
module/geogallery/geogallery.php
Normal file
File diff suppressed because it is too large
Load Diff
44
module/geogallery/i18n/de.json
Normal file
44
module/geogallery/i18n/de.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Zeigen Sie den Inhalt der Seite mit der Galerie an",
|
||||
"Alignement du bouton de retour": "Return -Taste -Ausrichtung",
|
||||
"Alphabétique ": "Alphabetisch",
|
||||
"Alphabétique inverse": "Alphabetik umgekehrt",
|
||||
"Au-dessus": "Über",
|
||||
"Aucune galerie": "Keine Galerie",
|
||||
"Bordure": "Bordüre",
|
||||
"Configuration de la galerie %s ": "Galeriekonfiguration %s",
|
||||
"Configuration des galeries": "Die Konfiguration der Galer",
|
||||
"Couleur de la bordure": "Randfarbe",
|
||||
"Couverture": "Decke",
|
||||
"Discrète": "Diskret",
|
||||
"Distribué avec marges": "Verteilt",
|
||||
"Distribué sans marge": "Ohne Rand verteilt",
|
||||
"Dossier cible": "Zieldatei",
|
||||
"En dessous": "Unter",
|
||||
"Epaisse": "Dick",
|
||||
"Fine": "Bußgeld",
|
||||
"Forte": "Stärke",
|
||||
"Galerie ajoutée": "Galerie hinzugefügt",
|
||||
"Galerie effacée": "Gelobte Galerie",
|
||||
"Légende": "Legende",
|
||||
"Légendes": "Legenden",
|
||||
"Manuel": "Manuel",
|
||||
"Marge": "Marge",
|
||||
"Masqué": "Maske",
|
||||
"Mode plein écran automatique": "Automatischer Vollmodus",
|
||||
"Opacité au survol": "Opazität im Überflug",
|
||||
"Options de configuration": "Optionen de Konfiguration",
|
||||
"Proportionnelle": "Proportional",
|
||||
"Supprimer cette galerie ?": "Diese Galerie entfernen?",
|
||||
"Tri des images": "Bilder sortieren",
|
||||
"Très Discrète": "Sehr diskret",
|
||||
"Très fine": "Sehr gut",
|
||||
"Très forte": "Sehr stark",
|
||||
"Très épaisse": "Sehr dick",
|
||||
"Vignettes": "Vignetten",
|
||||
"Ajouter une galerie": "Eine Galerie hinzufügen",
|
||||
"Éditer une galerie": "Eine Galerie bearbeiten",
|
||||
"Effacer une galerie": "Eine Galerie löschen",
|
||||
"Options des galeries": "Galerieoptionen",
|
||||
"Thème des galeries": "Galeriethemen"
|
||||
}
|
44
module/geogallery/i18n/en_EN.json
Normal file
44
module/geogallery/i18n/en_EN.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Show the content of the page with the gallery",
|
||||
"Alignement du bouton de retour": "Return button alignment",
|
||||
"Alphabétique ": "Alphabetical",
|
||||
"Alphabétique inverse": "Reverse alphabetics",
|
||||
"Au-dessus": "Above",
|
||||
"Aucune galerie": "No gallery",
|
||||
"Bordure": "Border",
|
||||
"Configuration de la galerie %s ": "Gallery settings %s ",
|
||||
"Configuration des galeries": "Galleries's settings",
|
||||
"Couleur de la bordure": "Border color",
|
||||
"Couverture": "Cover",
|
||||
"Discrète": "Discreet",
|
||||
"Distribué avec marges": "Distributed with margins",
|
||||
"Distribué sans marge": "Distributed without margin",
|
||||
"Dossier cible": "Target file",
|
||||
"En dessous": "Below",
|
||||
"Epaisse": "Thick",
|
||||
"Fine": "Fine",
|
||||
"Forte": "Forte",
|
||||
"Galerie ajoutée": "Gallery added",
|
||||
"Galerie effacée": "Erased gallery",
|
||||
"Légende": "Caption",
|
||||
"Légendes": "Legends",
|
||||
"Manuel": "Manuel",
|
||||
"Marge": "Marge",
|
||||
"Masqué": "Mask",
|
||||
"Mode plein écran automatique": "Automatic full mode",
|
||||
"Opacité au survol": "Opacity in overflight",
|
||||
"Options de configuration": "Configuration options",
|
||||
"Proportionnelle": "Proportional",
|
||||
"Supprimer cette galerie ?": "Remove this gallery?",
|
||||
"Tri des images": "Sorting images",
|
||||
"Très Discrète": "Very discreet",
|
||||
"Très fine": "Very fine",
|
||||
"Très forte": "Very strong",
|
||||
"Très épaisse": "Very thick",
|
||||
"Vignettes": "Vignettes",
|
||||
"Ajouter une galerie": "Add a gallery",
|
||||
"Éditer une galerie": "Edit a gallery",
|
||||
"Effacer une galerie": "Delete a gallery",
|
||||
"Options des galeries": "Gallery options",
|
||||
"Thème des galeries": "Gallery themes"
|
||||
}
|
44
module/geogallery/i18n/es.json
Normal file
44
module/geogallery/i18n/es.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Mostrar contenido de página con galería",
|
||||
"Alignement du bouton de retour": "Alineación del botón Atrás",
|
||||
"Alphabétique ": "Alfabético",
|
||||
"Alphabétique inverse": "Alfabético inverso",
|
||||
"Au-dessus": "Encima",
|
||||
"Aucune galerie": "Sin galería",
|
||||
"Bordure": "Bordillo",
|
||||
"Configuration de la galerie %s ": "Configuración de la galería %s ",
|
||||
"Configuration des galeries": "Configuración de la galería",
|
||||
"Couleur de la bordure": "Color del bordillo",
|
||||
"Couverture": "Portada ",
|
||||
"Discrète": "Discreto",
|
||||
"Distribué avec marges": "Distribuido con márgenes",
|
||||
"Distribué sans marge": "Distribuido sin margen",
|
||||
"Dossier cible": "Carpeta de destino",
|
||||
"En dessous": "Debajo",
|
||||
"Epaisse": "grueso",
|
||||
"Fine": "Fino",
|
||||
"Forte": "Fuerte",
|
||||
"Galerie ajoutée": "Galería añadida",
|
||||
"Galerie effacée": "Galería eliminada",
|
||||
"Légende": "Pie",
|
||||
"Légendes": "Leyendas",
|
||||
"Manuel": "Manual",
|
||||
"Marge": "Margen",
|
||||
"Masqué": "Máscara",
|
||||
"Mode plein écran automatique": "Modo automático de pantalla completa",
|
||||
"Opacité au survol": "Opacidad de desplazamiento",
|
||||
"Options de configuration": "Opciones de configuración",
|
||||
"Proportionnelle": "Proporcional",
|
||||
"Supprimer cette galerie ?": "¿Borrar esta galería?",
|
||||
"Tri des images": "Ordenar imágenes",
|
||||
"Très Discrète": "Muy discreto",
|
||||
"Très fine": "Muy fino",
|
||||
"Très forte": "Muy fuerte",
|
||||
"Très épaisse": "Muy grueso",
|
||||
"Vignettes": "Viñetas",
|
||||
"Ajouter une galerie": "Agregar una galería",
|
||||
"Éditer une galerie": "Editar una galería",
|
||||
"Effacer une galerie": "Borrar una galería",
|
||||
"Options des galeries": "Opciones de galerías",
|
||||
"Thème des galeries": "Temas de galerías"
|
||||
}
|
44
module/geogallery/i18n/fr_FR.json
Normal file
44
module/geogallery/i18n/fr_FR.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "",
|
||||
"Alignement du bouton de retour": "",
|
||||
"Alphabétique ": "",
|
||||
"Alphabétique inverse": "",
|
||||
"Au-dessus": "",
|
||||
"Aucune galerie": "",
|
||||
"Bordure": "",
|
||||
"Configuration de la galerie %s ": "",
|
||||
"Configuration des galeries": "",
|
||||
"Couleur de la bordure": "",
|
||||
"Couverture": "",
|
||||
"Discrète": "",
|
||||
"Distribué avec marges": "",
|
||||
"Distribué sans marge": "",
|
||||
"Dossier cible": "",
|
||||
"En dessous": "",
|
||||
"Epaisse": "",
|
||||
"Fine": "",
|
||||
"Forte": "",
|
||||
"Galerie ajoutée": "",
|
||||
"Galerie effacée": "",
|
||||
"Légende": "",
|
||||
"Légendes": "",
|
||||
"Manuel": "",
|
||||
"Marge": "",
|
||||
"Masqué": "",
|
||||
"Mode plein écran automatique": "",
|
||||
"Opacité au survol": "",
|
||||
"Options de configuration": "",
|
||||
"Proportionnelle": "",
|
||||
"Supprimer cette galerie ?": "",
|
||||
"Tri des images": "",
|
||||
"Très Discrète": "",
|
||||
"Très fine": "",
|
||||
"Très forte": "",
|
||||
"Très épaisse": "",
|
||||
"Vignettes": "",
|
||||
"Ajouter une galerie": "",
|
||||
"Éditer une galerie": "",
|
||||
"Effacer une galerie": "",
|
||||
"Options des galeries": "",
|
||||
"Thème des galeries": ""
|
||||
}
|
44
module/geogallery/i18n/gr_GR.json
Normal file
44
module/geogallery/i18n/gr_GR.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Εμφάνιση περιεχομένου σελίδας με γκαλερί",
|
||||
"Alignement du bouton de retour": "Ευθυγράμμιση κουμπιού πίσω",
|
||||
"Alphabétique ": "Αλφαβητική Ταξινόμηση",
|
||||
"Alphabétique inverse": "Αντίστροφη αλφαβητική",
|
||||
"Au-dessus": "Πάνω",
|
||||
"Aucune galerie": "Δεν υπάρχει συλλογή εικόνων",
|
||||
"Bordure": "κάδρο γύρω",
|
||||
"Configuration de la galerie %s ": "Διαμόρφωση της γκαλερί %s ",
|
||||
"Configuration des galeries": "Διαμόρφωση γκαλερί",
|
||||
"Couleur de la bordure": "Χρώμα γραμμής",
|
||||
"Couverture": "Κάλυψη ",
|
||||
"Discrète": "διακριτικό",
|
||||
"Distribué avec marges": "Διανομή με περιθώρια",
|
||||
"Distribué sans marge": "Διανομή χωρίς περιθώριο",
|
||||
"Dossier cible": "Φάκελος στόχος",
|
||||
"En dessous": "Κάτω",
|
||||
"Epaisse": "Παχιά γραμμή",
|
||||
"Fine": "Λεπτή γραμμή ",
|
||||
"Forte": "Ισχυρή αδιαφάνεια",
|
||||
"Galerie ajoutée": "Προστέθηκε γκαλερί",
|
||||
"Galerie effacée": "Γκαλερί διαγράφηκε",
|
||||
"Légende": "Λεζάντα εικόνας",
|
||||
"Légendes": "",
|
||||
"Manuel": "Χειροκίνητη ",
|
||||
"Marge": "Περιθώριο",
|
||||
"Masqué": "κρυμμένο",
|
||||
"Mode plein écran automatique": "Αυτόματη λειτουργία πλήρους οθόνης",
|
||||
"Opacité au survol": "Αδιαφάνεια στο mouse-over",
|
||||
"Options de configuration": "Επιλογές διαμόρφωσης",
|
||||
"Proportionnelle": "Αναλογική",
|
||||
"Supprimer cette galerie ?": "",
|
||||
"Tri des images": "Ταξινόμηση εικόνων",
|
||||
"Très Discrète": "Πολύ διακριτικό",
|
||||
"Très fine": "Πολύ λεπτή γραμμή ",
|
||||
"Très forte": "Πολύ Ισχυρή αδιαφάνεια",
|
||||
"Très épaisse": "πολύ παχιά γραμμή",
|
||||
"Vignettes": "",
|
||||
"Ajouter une galerie": "Προσθήκη συλλογής",
|
||||
"Éditer une galerie": "Επεξεργασία συλλογής",
|
||||
"Effacer une galerie": "Διαγραφή συλλογής",
|
||||
"Options des galeries": "Επιλογές συλλογών",
|
||||
"Thème des galeries": "Θέματα συλλογών"
|
||||
}
|
44
module/geogallery/i18n/it.json
Normal file
44
module/geogallery/i18n/it.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Mostra il contenuto della pagina con la galleria",
|
||||
"Alignement du bouton de retour": "Allineamento del pulsante di ritorno",
|
||||
"Alphabétique ": "Alfabetico",
|
||||
"Alphabétique inverse": "Alfabetico inverso",
|
||||
"Au-dessus": "Al di sopra",
|
||||
"Aucune galerie": "Nessuna galleria",
|
||||
"Bordure": "Bordo",
|
||||
"Configuration de la galerie %s ": "Configurazione della galleria %s ",
|
||||
"Configuration des galeries": "Configurazione di Galler",
|
||||
"Couleur de la bordure": "Colore del bordo",
|
||||
"Couverture": "Copertina",
|
||||
"Discrète": "Discreto",
|
||||
"Distribué avec marges": "Distribuito con margini",
|
||||
"Distribué sans marge": "Distribuito senza margine",
|
||||
"Dossier cible": "File di destinazione",
|
||||
"En dessous": "Qui di seguito",
|
||||
"Epaisse": "Spesso",
|
||||
"Fine": "Bene",
|
||||
"Forte": "Forte",
|
||||
"Galerie ajoutée": "Galleria aggiunta",
|
||||
"Galerie effacée": "Galleria cancellata",
|
||||
"Légende": "Didascalia",
|
||||
"Légendes": "Leggende",
|
||||
"Manuel": "Manuel",
|
||||
"Marge": "Marge",
|
||||
"Masqué": "Maschera",
|
||||
"Mode plein écran automatique": "Modalità completa automatica",
|
||||
"Opacité au survol": "Opacità in luce eccessiva",
|
||||
"Options de configuration": "Opzioni di configurazione",
|
||||
"Proportionnelle": "Proporzionale",
|
||||
"Supprimer cette galerie ?": "Rimuovere questa galleria?",
|
||||
"Tri des images": "Ordinamento delle immagini",
|
||||
"Très Discrète": "Molto discreto",
|
||||
"Très fine": "Molto bene",
|
||||
"Très forte": "Molto forte",
|
||||
"Très épaisse": "Molto spesso",
|
||||
"Vignettes": "Vignette",
|
||||
"Ajouter une galerie": "Aggiungi una galleria",
|
||||
"Éditer une galerie": "Modifica una galleria",
|
||||
"Effacer une galerie": "Cancella una galleria",
|
||||
"Options des galeries": "Opzioni delle gallerie",
|
||||
"Thème des galeries": "Temi delle gallerie"
|
||||
}
|
44
module/geogallery/i18n/pt_PT.json
Normal file
44
module/geogallery/i18n/pt_PT.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Mostre o conteúdo da página com a galeria",
|
||||
"Alignement du bouton de retour": "Retornar alinhamento do botão",
|
||||
"Alphabétique ": "Alfabético",
|
||||
"Alphabétique inverse": "Alfabético reverso",
|
||||
"Au-dessus": "Acima de",
|
||||
"Aucune galerie": "Sem galeria",
|
||||
"Bordure": "Fronteira",
|
||||
"Configuration de la galerie %s ": "Configuração da galeria %s ",
|
||||
"Configuration des galeries": "Configuração de Galler",
|
||||
"Couleur de la bordure": "Cor da borda",
|
||||
"Couverture": "Capa",
|
||||
"Discrète": "Discreto",
|
||||
"Distribué avec marges": "Distribuído com margens",
|
||||
"Distribué sans marge": "Distribuído sem margem",
|
||||
"Dossier cible": "Arquivo de destino",
|
||||
"En dessous": "Abaixo de",
|
||||
"Epaisse": "Espesso",
|
||||
"Fine": "Multar",
|
||||
"Forte": "Forte",
|
||||
"Galerie ajoutée": "Galeria adicionada",
|
||||
"Galerie effacée": "Galeria apagada",
|
||||
"Légende": "Legenda",
|
||||
"Légendes": "Legendas",
|
||||
"Manuel": "Manuel",
|
||||
"Marge": "Marge",
|
||||
"Masqué": "mascarar",
|
||||
"Mode plein écran automatique": "Modo completo automático",
|
||||
"Opacité au survol": "Opacidade em Overflight",
|
||||
"Options de configuration": "",
|
||||
"Proportionnelle": "Proporcional",
|
||||
"Supprimer cette galerie ?": "Remover esta galeria?",
|
||||
"Tri des images": "Classificando imagens",
|
||||
"Très Discrète": "Muito discreto",
|
||||
"Très fine": "Muito bem",
|
||||
"Très forte": "Muito forte",
|
||||
"Très épaisse": "Muito espesso",
|
||||
"Vignettes": "Vinhetas",
|
||||
"Ajouter une galerie": "Adicionar uma galeria",
|
||||
"Éditer une galerie": "Editar uma galeria",
|
||||
"Effacer une galerie": "Apagar uma galeria",
|
||||
"Options des galeries": "Opções de galerias",
|
||||
"Thème des galeries": "Temas de galerias"
|
||||
}
|
44
module/geogallery/i18n/tr_TR.json
Normal file
44
module/geogallery/i18n/tr_TR.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"Afficher le contenu de la page avec la galerie": "Sayfa içeriğini galeri ile görüntüle",
|
||||
"Alignement du bouton de retour": "Geri düğmesi hizalaması",
|
||||
"Alphabétique ": "Alfabetik",
|
||||
"Alphabétique inverse": "Ters alfabetik",
|
||||
"Au-dessus": "Üstünde",
|
||||
"Aucune galerie": "Galeri Yok",
|
||||
"Bordure": "Çerçeve",
|
||||
"Configuration de la galerie %s ": "%s galeri yapılandırması",
|
||||
"Configuration des galeries": "Galerilerin yapılandırması",
|
||||
"Couleur de la bordure": "Çerçeve rengi",
|
||||
"Couverture": "Kapak",
|
||||
"Discrète": "Silik",
|
||||
"Distribué avec marges": "Kenar boşluklarıyla dağıtıldı",
|
||||
"Distribué sans marge": "Marjsız dağıtıldı",
|
||||
"Dossier cible": "Hedef klasör",
|
||||
"En dessous": "Altında",
|
||||
"Epaisse": "Kalın",
|
||||
"Fine": "İnce",
|
||||
"Forte": "Güçlü",
|
||||
"Galerie ajoutée": "Galeri eklendi",
|
||||
"Galerie effacée": "Galeri silindi",
|
||||
"Légende": "Başlık",
|
||||
"Légendes": "Başlıklar",
|
||||
"Manuel": "Manuel",
|
||||
"Marge": "Kenar boşluğu",
|
||||
"Masqué": "Gizli",
|
||||
"Mode plein écran automatique": "Otomatik tam ekran modu",
|
||||
"Opacité au survol": "Hover opaklığı",
|
||||
"Options de configuration": "Yapılandırma seçenekleri",
|
||||
"Proportionnelle": "Orantılı",
|
||||
"Supprimer cette galerie ?": "Bu galeri silinsin mi?",
|
||||
"Tri des images": "Resimleri sıralama",
|
||||
"Très Discrète": "Çok silik",
|
||||
"Très fine": "Çok ince",
|
||||
"Très forte": "Çok güçlü",
|
||||
"Très épaisse": "Çok kalın",
|
||||
"Vignettes": "Küçük resim",
|
||||
"Ajouter une galerie": "Galeri Ekle",
|
||||
"Éditer une galerie": "Galeri Düzenle",
|
||||
"Effacer une galerie": "Galeri Sil",
|
||||
"Options des galeries": "Galeri Seçenekleri",
|
||||
"Thème des galeries": "Galeri Temaları"
|
||||
}
|
12
module/geogallery/profil/main/add.inc.php
Normal file
12
module/geogallery/profil/main/add.inc.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php $moduleData['gallery'] = [
|
||||
'add' => $this->getInput('profilAddGalleryAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddGalleryEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddGalleryDelete', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN),
|
||||
'theme' => $this->getInput('profilAddGalleryTheme', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilAddGalleryAdd', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilAddGalleryEdit', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilAddGalleryDelete', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilAddGalleryTheme', helper::FILTER_BOOLEAN)
|
||||
];
|
12
module/geogallery/profil/main/edit.inc.php
Normal file
12
module/geogallery/profil/main/edit.inc.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php $moduleData['gallery'] = [
|
||||
'add' => $this->getInput('profilEditGalleryAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilEditGalleryEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilEditGalleryDelete', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN),
|
||||
'theme' => $this->getInput('profilEditGalleryTheme', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilEditGalleryAdd', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilEditGalleryEdit', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilEditGalleryDelete', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN) ||
|
||||
$this->getInput('profilEditGalleryTheme', helper::FILTER_BOOLEAN)
|
||||
];
|
28
module/geogallery/profil/view/add.inc.php
Normal file
28
module/geogallery/profil/view/add.inc.php
Normal file
@ -0,0 +1,28 @@
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo sprintf('%s %s', helper::translate('Permissions'), helper::translate('Galerie')); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryAdd', true, 'Ajouter une galerie'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryEdit', true, 'Éditer une galerie'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryDelete', true, 'Effacer une galerie'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilAddGalleryOption', true, 'Options des galeries'); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilAddGalleryTheme', true, 'Thème des galeries'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
38
module/geogallery/profil/view/edit.inc.php
Normal file
38
module/geogallery/profil/view/edit.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo sprintf('%s %s', helper::translate('Permissions'), helper::translate('Galerie')); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryAdd', true, 'Ajouter une galerie', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Éditer une galerie', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryDelete', true, 'Effacer une galerie', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilEditGalleryOption', true, 'Options des galeries', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Thème des galeries', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
25
module/geogallery/ressource/defaultdata.php
Normal file
25
module/geogallery/ressource/defaultdata.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
class theme extends gallery {
|
||||
public static $defaultTheme = [
|
||||
'thumbAlign' => 'center',
|
||||
'thumbWidth' => '18em',
|
||||
'thumbHeight' => '15em',
|
||||
'thumbMargin' => '.5em',
|
||||
'thumbBorder' => '.1em',
|
||||
'thumbOpacity' => '.7',
|
||||
'thumbBorderColor' => 'rgba(221, 221, 221, 1)',
|
||||
'thumbRadius' => '.3em',
|
||||
'thumbShadows' => '1px 1px 10px',
|
||||
'thumbShadowsColor' => 'rgba(125, 125, 125, 1)',
|
||||
'legendHeight' => '.375em',
|
||||
'legendAlign' => 'center',
|
||||
'legendTextColor' => 'rgba(255, 255, 255, 1)',
|
||||
'legendBgColor' => 'rgba(0, 0, 0, .6)'
|
||||
];
|
||||
public static $defaultData = [
|
||||
"showUniqueGallery" => false,
|
||||
"backPosition" => "top",
|
||||
"backAlign" => "center",
|
||||
'versionData' => '3.0'
|
||||
];
|
||||
}
|
52
module/geogallery/ressource/theme.css
Executable file
52
module/geogallery/ressource/theme.css
Executable file
@ -0,0 +1,52 @@
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
display: block;
|
||||
border: var(--thumbBorder) solid var(--thumbBorderColor);
|
||||
height: var(--thumbHeight);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
-webkit-transition: opacity .3s ease-out;
|
||||
transition: opacity .3s ease-out;
|
||||
border-radius: var(--thumbRadius);
|
||||
box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
|
||||
-webkit-box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
|
||||
-moz-box-shadow: var(--thumbShadows) var(--thumbShadowsColor);
|
||||
}
|
||||
.galleryPicture:hover,
|
||||
.galleryGalleryPicture:hover {
|
||||
opacity: var(--thumbOpacity);
|
||||
}
|
||||
.galleryName,
|
||||
.galleryGalleryName {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-radius: 0 0 calc(var(--thumbRadius)/2) calc(var(--thumbRadius)/2);
|
||||
padding: var(--legendHeight);
|
||||
background: var(--legendBgColor);
|
||||
color: var(--legendTextColor);
|
||||
text-align: var(--legendAlign);
|
||||
}
|
||||
|
||||
.galleryRow {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: var(--thumbAlign);
|
||||
}
|
||||
|
||||
.colPicture {
|
||||
width : var(--thumbWidth);
|
||||
max-width: 50%;
|
||||
padding: var(--thumbMargin);
|
||||
}
|
||||
|
||||
@media (max-width: 432px) {
|
||||
.colPicture {
|
||||
width: 90%;
|
||||
max-width: 90%;
|
||||
margin: 0.5em;
|
||||
}
|
||||
}
|
27
module/geogallery/ressource/vartheme.css
Executable file
27
module/geogallery/ressource/vartheme.css
Executable file
@ -0,0 +1,27 @@
|
||||
.galleryRow {
|
||||
--thumbAlign: #thumbAlign#;
|
||||
}
|
||||
.colPicture {
|
||||
--thumbWidth: #thumbWidth#;
|
||||
--thumbMargin: #thumbMargin#;
|
||||
}
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
--thumbHeight: #thumbHeight#;
|
||||
--thumbBorder: #thumbBorder#;
|
||||
--thumbBorderColor: #thumbBorderColor#;
|
||||
--thumbRadius: #thumbRadius#;
|
||||
--thumbShadows: #thumbShadows#;
|
||||
--thumbShadowsColor: #thumbShadowsColor#;
|
||||
}
|
||||
.galleryName,
|
||||
.galleryGalleryName {
|
||||
--legendHeight: #legendHeight#;
|
||||
--legendAlign: #legendAlign#;
|
||||
--legendTextColor: #legendTextColor#;
|
||||
--legendBgColor: #legendBgColor#;
|
||||
}
|
||||
.galleryPicture:hover,
|
||||
.galleryGalleryPicture:hover {
|
||||
--thumbOpacity: #thumbOpacity#;
|
||||
}
|
22
module/geogallery/vendor/tablednd/MIT-LICENSE.txt
vendored
Normal file
22
module/geogallery/vendor/tablednd/MIT-LICENSE.txt
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
Copyright (c) Denis Howlett <denish@isocra.com>
|
||||
Copyright 2012 Nick Lombard - nickl- and other contributors
|
||||
https://github.com/isocra/TableDnD
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
module/geogallery/vendor/tablednd/inc.json
vendored
Executable file
3
module/geogallery/vendor/tablednd/inc.json
vendored
Executable file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"tablednd.min.js"
|
||||
]
|
2
module/geogallery/vendor/tablednd/lisez-moi.txt
vendored
Executable file
2
module/geogallery/vendor/tablednd/lisez-moi.txt
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
https://github.com/isocra/TableDnD
|
||||
Version 1.0.5
|
2
module/geogallery/vendor/tablednd/tablednd.min.js
vendored
Executable file
2
module/geogallery/vendor/tablednd/tablednd.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
19
module/geogallery/view/add/add.css
Normal file
19
module/geogallery/view/add/add.css
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
88
module/geogallery/view/add/add.js.php
Normal file
88
module/geogallery/view/add/add.js.php
Normal file
@ -0,0 +1,88 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
/**
|
||||
* Tri de la galerie avec drag and drop
|
||||
*/
|
||||
$("#galleryTable").tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
$("#galleryAddFilterResponse").val($.tableDnD.serialize());
|
||||
},
|
||||
onDragStop : function(table, row) {
|
||||
// Affiche le bouton de tri après un déplacement
|
||||
//$(":input[type='submit']").prop('disabled', false);
|
||||
// Sauvegarde le tri
|
||||
sortGalleries();
|
||||
},
|
||||
// Supprime le tiret des séparateurs
|
||||
serializeRegexp: ""
|
||||
});
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Confirmation de suppression
|
||||
*/
|
||||
$(".galleryAddDelete").on("click", function() {
|
||||
var _this = $(this);
|
||||
var message = "<?php echo helper::translate('Supprimer cette galerie ?'); ?>";
|
||||
return core.confirm(message, function() {
|
||||
$(location).attr("href", _this.attr("href"));
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* Liste des dossiers
|
||||
*/
|
||||
var oldResult = [];
|
||||
var directoryDOM = $("#galleryAddDirectory");
|
||||
var directoryOldDOM = $("#galleryAddDirectoryOld");
|
||||
function dirs() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/dirs",
|
||||
success: function(result) {
|
||||
if($(result).not(oldResult).length !== 0 || $(oldResult).not(result).length !== 0) {
|
||||
directoryDOM.empty();
|
||||
for(var i = 0; i < result.length; i++) {
|
||||
directoryDOM.append(function(i) {
|
||||
var option = $("<option>").val(result[i]).text(result[i]);
|
||||
if(directoryOldDOM.val() === result[i]) {
|
||||
option.prop("selected", true);
|
||||
}
|
||||
return option;
|
||||
}(i))
|
||||
}
|
||||
oldResult = result;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
dirs();
|
||||
// Actualise la liste des dossiers toutes les trois secondes
|
||||
setInterval(function() {
|
||||
dirs();
|
||||
}, 3000);
|
||||
|
||||
/**
|
||||
* Stock le dossier choisi pour le re-sélectionner en cas d'actualisation ajax de la liste des dossiers
|
||||
*/
|
||||
directoryDOM.on("change", function() {
|
||||
directoryOldDOM.val($(this).val());
|
||||
});
|
66
module/geogallery/view/add/add.php
Normal file
66
module/geogallery/view/add/add.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php echo template::formOpen('galleryAddForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryAddBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config' ,
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset9">
|
||||
<?php echo template::submit('galleryAddSubmit'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Paramètres');?></h4>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::text('galleryAddName', [
|
||||
'label' => 'Nom'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="displayNone">
|
||||
<?php echo template::hidden('galleryAddDirectoryOld', [
|
||||
'noDirty' => true // Désactivé à cause des modifications en ajax
|
||||
]); ?>
|
||||
</div>
|
||||
<?php echo template::select('galleryAddDirectory', [], [
|
||||
'label' => 'Dossier cible',
|
||||
'noDirty' => true // Désactivé à cause des modifications en ajax
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryAddSort', $module::$sort, [
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort']),
|
||||
'label' => 'Tri des images',
|
||||
'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col7 verticalAlignBottom">
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleryAddFullscreen', true, 'Mode plein écran automatique' , [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'fullScreen']),
|
||||
'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleryAddShowPageContent', true, 'Afficher le contenu de la page avec la galerie' , [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'showPageContent']),
|
||||
'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
24
module/geogallery/view/config/config.css
Executable file
24
module/geogallery/view/config/config.css
Executable file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
||||
|
||||
.galleryConfigError {
|
||||
color: #F3674A;
|
||||
font-weight: bold;
|
||||
}
|
47
module/geogallery/view/config/config.js.php
Normal file
47
module/geogallery/view/config/config.js.php
Normal file
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
/**
|
||||
* Tri de la galerie avec drag and drop
|
||||
*/
|
||||
$("#galleryTable").tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
$("#galleryConfigFilterResponse").val($.tableDnD.serialize());
|
||||
sortGalleries();
|
||||
location.reload();
|
||||
},
|
||||
// Supprime le tiret des séparateurs
|
||||
serializeRegexp: ""
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Tri dynamique des galeries
|
||||
*/
|
||||
|
||||
function sortGalleries() {
|
||||
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/sortGalleries";
|
||||
var data = $("#galleryConfigFilterResponse").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url ,
|
||||
data: {
|
||||
response : data
|
||||
}
|
||||
});
|
||||
}
|
44
module/geogallery/view/config/config.php
Normal file
44
module/geogallery/view/config/config.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php echo template::formOpen('galleryConfigForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryConfigBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1 offset8">
|
||||
<?php echo template::button('galleryConfigOption', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/option/galleries/',
|
||||
'value' => template::ico('sliders')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryConfigTheme', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/theme/',
|
||||
'value' => template::ico('brush')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryAdd', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/add/',
|
||||
'value' => template::ico('plus'),
|
||||
'class' => 'buttonGreen',
|
||||
'class' => 'buttonGreen'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php if($module::$galleries): ?>
|
||||
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['#','Nom', 'Dossier cible', '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
|
||||
<?php echo template::hidden('galleryConfigFilterResponse'); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::speech('Aucune galerie'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="moduleVersion">Version n°
|
||||
<?php echo $module::VERSION; ?>
|
||||
</div>
|
||||
</div>
|
18
module/geogallery/view/edit/edit.css
Executable file
18
module/geogallery/view/edit/edit.css
Executable file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
87
module/geogallery/view/edit/edit.js.php
Normal file
87
module/geogallery/view/edit/edit.js.php
Normal file
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Tri dynamique de la galerie
|
||||
*/
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
$("#galleryTable").tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
$("#galleryEditFormResponse").val($.tableDnD.serialize());
|
||||
sortPictures();
|
||||
},
|
||||
serializeRegexp: ""
|
||||
});
|
||||
|
||||
console.log($("#galleryEditSort").val());
|
||||
|
||||
if ($("#galleryEditSort").val() !== "SORT_HAND") {
|
||||
$("#galleryTable tr").addClass("nodrag nodrop");
|
||||
$(".zwiico-sort").hide();
|
||||
$("#galleryTable").tableDnDUpdate();
|
||||
} else {
|
||||
$("#galleryTable tr").removeClass("nodrag nodrop");
|
||||
$(".zwiico-sort").show();
|
||||
$("#galleryTable").tableDnDUpdate();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#galleryEditSort").change(function() {
|
||||
if ($("#galleryEditSort").val() !== "SORT_HAND") {
|
||||
$("#galleryTable tr").addClass("nodrag nodrop");
|
||||
$(".zwiico-sort").hide();
|
||||
$("#galleryTable").tableDnDUpdate();
|
||||
} else {
|
||||
$("#galleryTable tr").removeClass("nodrag nodrop");
|
||||
$(".zwiico-sort").show();
|
||||
$("#galleryTable").tableDnDUpdate();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Tri dynamique des images
|
||||
*/
|
||||
|
||||
function sortPictures() {
|
||||
var url = "<?php echo helper::baseUrl(true,true) . $this->getUrl(0); ?>/sortPictures";
|
||||
var d1 = $("#galleryEditFormResponse").val();
|
||||
var d2 = $("#galleryEditFormGalleryName").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url ,
|
||||
data: {
|
||||
response : d1,
|
||||
gallery: d2
|
||||
},/*
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
alert(xhr.status);
|
||||
alert(thrownError);
|
||||
}
|
||||
*/
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checkbox unique
|
||||
*/
|
||||
|
||||
$('.homePicture').click(function(){
|
||||
$('.homePicture').prop('checked', false);
|
||||
$(this).prop('checked', true);
|
||||
});
|
34
module/geogallery/view/edit/edit.php
Normal file
34
module/geogallery/view/edit/edit.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php echo template::formOpen('galleryEditForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryEditBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1 offset8">
|
||||
<?php echo template::button('galleryConfigOption', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/option/gallery/' . $this->getUrl(2),
|
||||
'value' => template::ico('sliders')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::submit('galleryEditSubmit'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php if ($module::$pictures): ?>
|
||||
<?php echo template::table([1, 4, 1, 3, 2, 1], $module::$pictures, ['#', 'Image', 'Couverture', 'Légende', 'Coordonnées', ''], ['id' => 'galleryTable'], $module::$picturesId); ?>
|
||||
<?php echo template::hidden('galleryEditFormResponse'); ?>
|
||||
<?php echo template::hidden('galleryEditSort', ['value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort'])]); ?>
|
||||
<?php echo template::hidden('galleryEditFormGalleryName', ['value' => $this->getUrl(2)]); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::speech('Aucune image.'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<div class="moduleVersion">Version n°
|
||||
<?php echo $module::VERSION; ?>
|
||||
</div>
|
14
module/geogallery/view/gallery/gallery.css
Normal file
14
module/geogallery/view/gallery/gallery.css
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
31
module/geogallery/view/gallery/gallery.js.php
Normal file
31
module/geogallery/view/gallery/gallery.js.php
Normal file
@ -0,0 +1,31 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Galerie d'image
|
||||
* SLB est activé pour tout le site
|
||||
*/
|
||||
var b = new SimpleLightbox('.galleryGalleryPicture', {
|
||||
captionSelector: "self",
|
||||
captionType: "data",
|
||||
captionsData: "caption",
|
||||
closeText: "×"
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
// Démarre en mode plein écran
|
||||
if ( $("#pictureContainer").hasClass("fullScreen") ) {
|
||||
$('a#homePicture')[0].click();
|
||||
}
|
||||
});
|
33
module/geogallery/view/gallery/gallery.php
Normal file
33
module/geogallery/view/gallery/gallery.php
Normal file
@ -0,0 +1,33 @@
|
||||
<div class="row <?php echo $module::$config['backAlign'] . ' ' . $module::$config['backPositionTop'];?>">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryGalleryBack', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0),
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="pictureContainer" class="row galleryRow <?php echo ($module::$config['fullScreen']);?> ">
|
||||
<?php foreach($module::$pictures as $picture => $legend): ?>
|
||||
<div class="colPicture">
|
||||
<a
|
||||
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
||||
<?php if ( strpos($picture, $module::$config['homePicture']) > 1) { echo 'id="homePicture"'; } ?>
|
||||
class="galleryGalleryPicture"
|
||||
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
|
||||
data-caption="<?php echo $legend; ?>"
|
||||
>
|
||||
<?php if($legend): ?>
|
||||
<div class="galleryGalleryName"><?php echo $legend; ?></div>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="row <?php echo $module::$config['backAlign'] . ' ' . $module::$config['backPositionBottom'];?>">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryGalleryBack', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0),
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
17
module/geogallery/view/index/index.php
Normal file
17
module/geogallery/view/index/index.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php if($module::$galleries): ?>
|
||||
<div class="row galleryRow">
|
||||
<?php foreach($module::$galleries as $galleryId => $gallery): ?>
|
||||
<div class="colPicture" div="pos<?php echo $gallery['config']['position']; ?>" >
|
||||
<a
|
||||
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
||||
class="galleryPicture"
|
||||
style="background-image:url('<?php echo $module::$firstPictures[$galleryId];?>')"
|
||||
>
|
||||
<div class="galleryName"><?php echo $gallery['config']['name']; ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php echo template::speech('Aucune galerie'); ?>
|
||||
<?php endif; ?>
|
18
module/geogallery/view/option/option.css
Normal file
18
module/geogallery/view/option/option.css
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
68
module/geogallery/view/option/option.js.php
Normal file
68
module/geogallery/view/option/option.js.php
Normal file
@ -0,0 +1,68 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gestion des événements
|
||||
*/
|
||||
|
||||
// Activation des options pour les galeries non uniques
|
||||
$("#galleryOptionShowUniqueGallery").click(function() {
|
||||
if ($(this).prop("checked")) {
|
||||
$("#galleryOptionBackPosition, #galleryOptionBackAlign").prop( "disabled", true );
|
||||
} else {
|
||||
$("#galleryOptionBackPosition, #galleryOptionBackAlign").prop( "disabled", false );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Liste des dossiers
|
||||
*/
|
||||
var oldResult = [];
|
||||
var directoryDOM = $("#galleryEditDirectory");
|
||||
var directoryOldDOM = $("#galleryEditDirectoryOld");
|
||||
function dirs() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/dirs",
|
||||
success: function(result) {
|
||||
if($(result).not(oldResult).length !== 0 || $(oldResult).not(result).length !== 0) {
|
||||
directoryDOM.empty();
|
||||
for(var i = 0; i < result.length; i++) {
|
||||
directoryDOM.append(function(i) {
|
||||
var option = $("<option>").val(result[i]).text(result[i]);
|
||||
if(directoryOldDOM.val() === result[i]) {
|
||||
option.prop("selected", true);
|
||||
}
|
||||
return option;
|
||||
}(i))
|
||||
}
|
||||
oldResult = result;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
dirs();
|
||||
// Actualise la liste des dossiers toutes les trois secondes
|
||||
setInterval(function() {
|
||||
dirs();
|
||||
}, 3000);
|
||||
|
||||
/**
|
||||
* Stock le dossier choisi pour le re-sélectionner en cas d'actualisation ajax de la liste des dossiers
|
||||
*/
|
||||
directoryDOM.on("change", function() {
|
||||
directoryOldDOM.val($(this).val());
|
||||
});
|
||||
|
120
module/geogallery/view/option/option.php
Normal file
120
module/geogallery/view/option/option.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php echo template::formOpen('galleriesOptionForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleriesOptionBack', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
||||
'value' => template::ico('left'),
|
||||
'class' => 'buttonGrey'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset9">
|
||||
<?php echo template::submit('galleriesOptionSubmit'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($module::$formOptionSelect === 'galleries'): ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Paramètres');?></h4>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une seule galerie' , [
|
||||
'checked' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
|
||||
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
|
||||
: false,
|
||||
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) > 1,
|
||||
'help' => 'Cette option est active lorsque le module ne contient qu\'une seule galerie, elle permet d\'éviter la page listant toutes les galeries et affiche directement la galerie'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="containerBackOptions">
|
||||
<div class="col6">
|
||||
<?php echo template::select('galleryOptionBackPosition', $module::$galleryOptionBackPosition, [
|
||||
'label' => 'Position du bouton de retour à l\'index des galeries',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true
|
||||
? 'none'
|
||||
: $this->getData(['module', $this->getUrl(0), 'config','backPosition']),
|
||||
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
|
||||
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
|
||||
: false,
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::select('galleryOptionBackAlign', $module::$galleryOptionBackAlign, [
|
||||
'label' => 'Alignement du bouton de retour',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true
|
||||
? 'none'
|
||||
: $this->getData(['module', $this->getUrl(0), 'config','backAlign']),
|
||||
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
|
||||
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
|
||||
: false,
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif($module::$formOptionSelect === 'gallery'): ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Paramètres');?></h4>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::text('galleryEditName', [
|
||||
'label' => 'Nom',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(3), 'config', 'name'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="displayNone">
|
||||
<?php echo template::hidden('galleryEditDirectoryOld', [
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(3), 'config', 'directory']),
|
||||
'noDirty' => true // Désactivé à cause des modifications en ajax
|
||||
]); ?>
|
||||
</div>
|
||||
<?php echo template::select('galleryEditDirectory', [], [
|
||||
'label' => 'Dossier cible',
|
||||
'noDirty' => true // Désactivé à cause des modifications en ajax
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryEditSort', $module::$sort, [
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(3), 'config', 'sort']),
|
||||
'label' => 'Tri des images',
|
||||
'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col7 verticalAlignBottom">
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleryEditFullscreen', true, 'Mode plein écran automatique' , [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(3), 'config', 'fullScreen']),
|
||||
'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleryEditShowPageContent', true, 'Afficher le contenu de la page avec la galerie' , [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(3), 'config', 'showPageContent']),
|
||||
'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo template::formClose(); ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="moduleVersion">Version n°
|
||||
<?php echo $module::VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
18
module/geogallery/view/theme/theme.css
Executable file
18
module/geogallery/view/theme/theme.css
Executable file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* This file is part of Zwii.
|
||||
*
|
||||
* For full copyright and license information, please see the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Rémi Jean <remi.jean@outlook.com>
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
* @copyright Copyright (C) 2018-2024, Frédéric Tempez
|
||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
134
module/geogallery/view/theme/theme.php
Normal file
134
module/geogallery/view/theme/theme.php
Normal file
@ -0,0 +1,134 @@
|
||||
<?php echo template::formOpen('galleryThemeForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col1">
|
||||
<?php echo template::button('galleryThemeBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
||||
'value' => template::ico('left')
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset9">
|
||||
<?php echo template::submit('galleryThemeBack'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Vignettes');?></h4>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryThemeThumbWidth', $module::$galleryThemeSizeWidth, [
|
||||
'label' => 'Largeur',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbWidth'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryThemeThumbHeight', $module::$galleryThemeSizeHeight, [
|
||||
'label' => 'Hauteur',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbHeight'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('galleryThemeThumbAlign', $module::$galleryThemeFlexAlign, [
|
||||
'label' => 'Alignement',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbAlign'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::select('galleryThemeThumbMargin', $module::$galleryThemeMargin, [
|
||||
'label' => 'Marge',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbMargin'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::select('galleryThemeThumbBorder', $module::$galleryThemeBorder, [
|
||||
'label' => 'Bordure',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorder'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('galleryThemeThumbBorderColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Couleur de la bordure',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorderColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('galleryThemeThumbRadius', $module::$galleryThemeRadius, [
|
||||
'label' => 'Arrondi des angles',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbRadius'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::select('galleryThemeThumbShadows', $module::$galleryThemeShadows, [
|
||||
'label' => 'Ombre',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadows'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('galleryThemeThumbShadowsColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Couleur de l\'ombre',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadowsColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('galleryThemeThumbOpacity', $module::$galleryThemeOpacity, [
|
||||
'label' => 'Opacité au survol',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbOpacity'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo helper::translate('Légendes');?></h4>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::text('galleryThemeLegendTextColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Texte',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendTextColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::text('galleryThemeLegendBgColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Arrière plan',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendBgColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryThemeLegendHeight', $module::$galleryThemeLegendHeight, [
|
||||
'label' => 'Hauteur',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendHeight'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::select('galleryThemeLegendAlign', $module::$galleryThemeAlign, [
|
||||
'label' => 'Alignement',
|
||||
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendAlign'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="moduleVersion">Version n°
|
||||
<?php echo $module::VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user