album2.4 custom.css estaens
This commit is contained in:
parent
be9e5958e3
commit
53d0b3cf89
|
@ -5,7 +5,7 @@
|
|||
- Une troisième langue d'administration est disponible : espagnol / castillan,
|
||||
- Thème / Menu : le menu en petit écran (burger) dispose maintenant de ses propres paramètres,
|
||||
- Modules du coeur et de page : renforcement de la sécurité,
|
||||
- Module de type galerie: 'Album' remplace 'Gallery', les vignettes respectent le format des photos. Gallery est disponible en téléchargement sur https://deltacms.fr/modules,
|
||||
- Module de type galerie: 'Album' remplace 'Gallery', les vignettes respectent le format des photos, 'Album' permet la géolocalisation des photos. Gallery est disponible en téléchargement sur https://deltacms.fr/modules,
|
||||
- Langues : la traduction automatique est supprimée, ce qui parachève la dégooglisation de Deltacms,
|
||||
- Edition de page / emplacement dans le menu : une page désactivée est signalée par le curseur 'not-allowed' et par une typographie italique en petit écran, son lien est inactif,
|
||||
- Nouveaux gabarits pour l'éditeur Tinymce : accordéon à 3 et 4 paragraphes,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<p>This page contains a photo album module. Click on one of the albums below to see the photos it contains.</p>
|
|
@ -160,27 +160,35 @@
|
|||
"style": "site\/data\/search\/erreur404\/theme.css"
|
||||
}
|
||||
},
|
||||
"galeries": {
|
||||
"greece": {
|
||||
"config": {
|
||||
"name": "Greece",
|
||||
"directory": "site\/file\/source\/galerie\/grece",
|
||||
"homePicture": null,
|
||||
"sort": "SORT_ASC",
|
||||
"position": 0
|
||||
},
|
||||
"legend": [],
|
||||
"order": []
|
||||
},
|
||||
"photo-album": {
|
||||
"knock-knock": {
|
||||
"config": {
|
||||
"name": "Knock knock",
|
||||
"directory": "site\/file\/source\/galerie\/toctoc",
|
||||
"homePicture": null,
|
||||
"homePicture": "a.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 2
|
||||
},
|
||||
"legend": [],
|
||||
"legend": {
|
||||
"ajpg": "",
|
||||
"bjpg": "",
|
||||
"cjpg": ""
|
||||
},
|
||||
"order": []
|
||||
},
|
||||
"geolocation": {
|
||||
"config": {
|
||||
"name": "Geolocation",
|
||||
"directory": "site\/file\/source\/galerie\/geotag",
|
||||
"homePicture": "estaens_2.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 2
|
||||
},
|
||||
"legend": {
|
||||
"estaens_1jpg": "",
|
||||
"estaens_2jpg": "",
|
||||
"estaens_3jpg": ""
|
||||
},
|
||||
"order": []
|
||||
}
|
||||
}
|
||||
|
|
|
@ -128,32 +128,6 @@
|
|||
"hideMenuSide": false,
|
||||
"hideMenuChildren": false
|
||||
},
|
||||
"galeries": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
"disable": false,
|
||||
"content": "galeries.html",
|
||||
"hideTitle": false,
|
||||
"breadCrumb": false,
|
||||
"metaDescription": "",
|
||||
"metaTitle": "",
|
||||
"moduleId": "album",
|
||||
"modulePosition": "bottom",
|
||||
"parentPageId": "",
|
||||
"position": 5,
|
||||
"group": 0,
|
||||
"groupEdit": 2,
|
||||
"targetBlank": false,
|
||||
"title": "Image galleries",
|
||||
"shortTitle": "Galleries",
|
||||
"block": "12",
|
||||
"barLeft": "",
|
||||
"barRight": "",
|
||||
"displayMenu": "none",
|
||||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
},
|
||||
"deltacms": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
|
@ -410,6 +384,32 @@
|
|||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
},
|
||||
"photo-album": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
"disable": false,
|
||||
"content": "photo-album.html",
|
||||
"hideTitle": false,
|
||||
"breadCrumb": false,
|
||||
"metaDescription": "",
|
||||
"metaTitle": "",
|
||||
"moduleId": "album",
|
||||
"modulePosition": "bottom",
|
||||
"parentPageId": "",
|
||||
"position": 5,
|
||||
"group": 0,
|
||||
"groupEdit": 2,
|
||||
"targetBlank": false,
|
||||
"title": "Photo album",
|
||||
"shortTitle": "Album",
|
||||
"block": "12",
|
||||
"barLeft": "",
|
||||
"barRight": "",
|
||||
"displayMenu": "none",
|
||||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<p>Esta página contiene un módulo de álbum de fotos. Haga clic en uno de los álbumes siguientes para ver las fotos que contiene. </p>
|
|
@ -158,27 +158,35 @@
|
|||
],
|
||||
"draft": ""
|
||||
},
|
||||
"galeria": {
|
||||
"album-de-fotos": {
|
||||
"toque-toque": {
|
||||
"config": {
|
||||
"name": "Toque toque",
|
||||
"directory": "site\/file\/source\/galerie\/toctoc",
|
||||
"homePicture": null,
|
||||
"homePicture": "a.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 0
|
||||
},
|
||||
"legend": [],
|
||||
"legend": {
|
||||
"ajpg": "",
|
||||
"bjpg": "",
|
||||
"cjpg": ""
|
||||
},
|
||||
"order": []
|
||||
},
|
||||
"grecia": {
|
||||
"geolocalizacion": {
|
||||
"config": {
|
||||
"name": "Grecia",
|
||||
"directory": "site\/file\/source\/galerie\/grece",
|
||||
"homePicture": null,
|
||||
"name": "Geolocalización",
|
||||
"directory": "site\/file\/source\/galerie\/geotag",
|
||||
"homePicture": "estaens_2.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 2
|
||||
},
|
||||
"legend": [],
|
||||
"legend": {
|
||||
"estaens_1jpg": "",
|
||||
"estaens_2jpg": "",
|
||||
"estaens_3jpg": ""
|
||||
},
|
||||
"order": []
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,32 +237,6 @@
|
|||
"hideMenuHead": false,
|
||||
"hideMenuChildren": true
|
||||
},
|
||||
"galeria": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
"disable": false,
|
||||
"content": "galeria.html",
|
||||
"hideTitle": false,
|
||||
"breadCrumb": false,
|
||||
"metaDescription": "",
|
||||
"metaTitle": "",
|
||||
"moduleId": "album",
|
||||
"modulePosition": "bottom",
|
||||
"parentPageId": "",
|
||||
"position": 5,
|
||||
"group": 0,
|
||||
"groupEdit": 2,
|
||||
"targetBlank": false,
|
||||
"title": "Galeria",
|
||||
"shortTitle": "Galeria",
|
||||
"block": "12",
|
||||
"barLeft": "",
|
||||
"barRight": "",
|
||||
"displayMenu": "none",
|
||||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
},
|
||||
"pagina-privada": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
|
@ -418,6 +392,32 @@
|
|||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
},
|
||||
"album-de-fotos": {
|
||||
"typeMenu": "text",
|
||||
"iconUrl": "",
|
||||
"disable": false,
|
||||
"content": "album-de-fotos.html",
|
||||
"hideTitle": false,
|
||||
"breadCrumb": false,
|
||||
"metaDescription": "",
|
||||
"metaTitle": "",
|
||||
"moduleId": "album",
|
||||
"modulePosition": "bottom",
|
||||
"parentPageId": "",
|
||||
"position": 5,
|
||||
"group": 0,
|
||||
"groupEdit": 2,
|
||||
"targetBlank": false,
|
||||
"title": "Álbum de fotos",
|
||||
"shortTitle": "Álbum",
|
||||
"block": "12",
|
||||
"barLeft": "",
|
||||
"barRight": "",
|
||||
"displayMenu": "none",
|
||||
"hideMenuSide": false,
|
||||
"hideMenuHead": false,
|
||||
"hideMenuChildren": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -148,22 +148,30 @@
|
|||
"config": {
|
||||
"name": "Toc toc",
|
||||
"directory": "site\/file\/source\/galerie\/toctoc",
|
||||
"homePicture": null,
|
||||
"homePicture": "a.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 0
|
||||
},
|
||||
"legend": [],
|
||||
"legend": {
|
||||
"ajpg": "",
|
||||
"bjpg": "",
|
||||
"cjpg": ""
|
||||
},
|
||||
"order": []
|
||||
},
|
||||
"geolocalisation": {
|
||||
"config": {
|
||||
"name": "Géolocalisation",
|
||||
"directory": "site\/file\/source\/galerie\/geotag",
|
||||
"homePicture": null,
|
||||
"homePicture": "estaens_2.jpg",
|
||||
"sort": "SORT_ASC",
|
||||
"position": 3
|
||||
},
|
||||
"legend": [],
|
||||
"legend": {
|
||||
"estaens_1jpg": "",
|
||||
"estaens_2jpg": "",
|
||||
"estaens_3jpg": ""
|
||||
},
|
||||
"order": []
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -239,3 +239,32 @@ figure.image figcaption {
|
|||
text-align: center;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Module Agenda : grille de l'agenda */
|
||||
.fc-unthemed th, .fc-unthemed td, .fc-unthemed thead, .fc-unthemed tbody, .fc-unthemed .fc-divider, .fc-unthemed .fc-row, .fc-unthemed .fc-content, .fc-unthemed .fc-popover, .fc-unthemed .fc-list-view, .fc-unthemed .fc-list-heading td, .fc .fc-row .fc-content-skeleton td{
|
||||
border-color: rgba(146, 52, 101, 1);
|
||||
}
|
||||
|
||||
/* Module Album photo */
|
||||
|
||||
/* Cases contenant les vignettes */
|
||||
.galleryPicture, .galleryGalleryPicture {
|
||||
/*exemple background-color: green;*/
|
||||
}
|
||||
.galleryPicture:hover, .galleryGalleryPicture:hover {
|
||||
/*exemple background-color: yellow;*/
|
||||
}
|
||||
/* Nom ou légende de l'image */
|
||||
.galleryName, .galleryGalleryName {
|
||||
/*exemple color: white;*/
|
||||
}
|
||||
.galleryName:hover, .galleryGalleryName:hover {
|
||||
/*exemple color: black;*/
|
||||
}
|
||||
/* Nom ou légende des images redimensionnées */
|
||||
.picResized {
|
||||
/*exemple color: red;*/
|
||||
}
|
||||
.picResized:hover{
|
||||
/*exemple color: orange;*/
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
setlocale(LC_NUMERIC,'English','en_US','en_US.UTF-8');
|
||||
class album extends common {
|
||||
const VERSION = '2.3';
|
||||
const VERSION = '2.4';
|
||||
const REALNAME = 'Album Photo';
|
||||
const DELETE = true;
|
||||
const UPDATE = '0.0';
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
<?php
|
||||
/* création des miniatures par @Lionel 2019
|
||||
* vignettes en webp le 15 janv. 2023
|
||||
* modification le 08 octobre 2023
|
||||
*/
|
||||
if (!isset($_GET['img']))
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
function makeDir($dir) {
|
||||
if ( (is_dir($dir))||(file_exists($dir)) ) { return true; }
|
||||
else {
|
||||
if (mkdir($dir,0755)) { return true; }
|
||||
else { return false; }
|
||||
}
|
||||
}
|
||||
$ratio = 200;
|
||||
$img = '../../../'.$_GET['img'];
|
||||
if ( is_file($img) && substr(mime_content_type($img), 0, 5) == 'image' ) {
|
||||
|
||||
function makeDir($dir) {
|
||||
if ( (!is_dir($dir)) || (!file_exists($dir)) )
|
||||
mkdir($dir,0755,true);
|
||||
}
|
||||
|
||||
$ratio = 200;
|
||||
$size_img = filesize($img);
|
||||
$dossiercache = '../../../site/file/cache';
|
||||
makeDir($dossiercache);
|
||||
$par = substr(strrchr($img, '/'), 1);
|
||||
|
@ -23,10 +24,9 @@ $cache = substr(strrchr($url_par, '/'), 1);
|
|||
makeDir($dossiercache.'/'.$cache);
|
||||
$extension = strrchr($par,'.');
|
||||
$vignette = str_replace($extension,'',$par);
|
||||
$miniature = $dossiercache.'/'.$cache.'/'.$vignette.'.webp';
|
||||
$miniature = $dossiercache.'/'.$cache.'/'.$vignette.'-'.$size_img.'.webp';
|
||||
|
||||
if(!file_exists($miniature))
|
||||
{
|
||||
if(!file_exists($miniature)) {
|
||||
$imginfo = getimagesize($img);
|
||||
$largeur = $imginfo[0];
|
||||
$hauteur = $imginfo[1];
|
||||
|
@ -65,4 +65,6 @@ if(!file_exists($miniature))
|
|||
$data = file_get_contents($miniature);
|
||||
echo $data;
|
||||
clearstatcache();
|
||||
}
|
||||
else {echo 'This is not an image';}
|
||||
?>
|
||||
|
|
|
@ -11,3 +11,33 @@ $(".galleryGalleryPicture").simpleLightbox({
|
|||
captionsData: "caption",
|
||||
closeText: "×"
|
||||
});
|
||||
|
||||
$(function () {
|
||||
// @Lionel 2019
|
||||
|
||||
var taille = "<?php echo $this->getData(['theme','site', 'width']); ?>";
|
||||
|
||||
switch(taille)
|
||||
{
|
||||
case '75vw':
|
||||
$('a.galleryPicture').css('height', '165px');//view/index
|
||||
$('a.galleryGalleryPicture').css('height', '110px');//view/gallery
|
||||
$('div.galleryGalleryName').css('font-size', '0.8em');//view/gallery
|
||||
break;
|
||||
case '85vw':
|
||||
$('a.galleryPicture').css('height', '200px');
|
||||
$('a.galleryGalleryPicture').css('height', '135px');
|
||||
$('div.galleryGalleryName').css('font-size', '0.85em');
|
||||
break;
|
||||
case '95vw':
|
||||
$('a.galleryPicture').css('height', '235px');
|
||||
$('a.galleryGalleryPicture').css('height', '160px');
|
||||
$('div.galleryGalleryName').css('font-size', '0.9em');
|
||||
break;
|
||||
default:
|
||||
$('a.galleryPicture').css('height', '250px');
|
||||
$('a.galleryGalleryPicture').css('height', '185px');
|
||||
$('div.galleryGalleryName').css('font-size', '1em');
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue