Browse Source

Libellés vignette 640 etc..

pull/7/head
Fred Tempez 2 years ago
parent
commit
17471ed4e0
  1. 4
      .gitignore
  2. 4
      core/core.php
  3. 4
      core/vendor/filemanager/config/config.php
  4. 6
      module/gallery/gallery.php
  5. 3
      module/gallery/view/edit/edit.php
  6. 0
      site/tmp/.htaccess

4
.gitignore

@ -12,8 +12,8 @@ site/data/fr/*.json
# Fichiers uploadés
site/file/source/*
site/file/thumb/*
site/file/source/
site/file/thumb/
# Dossiers vides dans GitHub
!.gitkeep

4
core/core.php

@ -33,10 +33,10 @@ class common {
// Miniatures de la gallery
const THUMBS_SEPARATOR = 'mini_';
const THUMBS_WIDTH = 320;
const THUMBS_WIDTH = 640;
// Numéro de version
const ZWII_VERSION = '10.0.064';
const ZWII_VERSION = '10.0.065';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];

4
core/vendor/filemanager/config/config.php

@ -515,8 +515,8 @@ $config = array(
'fixed_path_from_filemanager' => array( '../../../site/file/thumb/' ), //fixed path of the image folder from the current position on upload folder
'fixed_image_creation_name_to_prepend' => array( 'mini_' ), //name to prepend on filename
'fixed_image_creation_to_append' => array( '' ), //name to appendon filename
'fixed_image_creation_width' => array( 320 ), //width of image
'fixed_image_creation_height' => array( 240), //height of image
'fixed_image_creation_width' => array( 640 ), //width of image
'fixed_image_creation_height' => array( 480 ), //height of image
/*
# $option: 0 / exact = defined size;
# 1 / portrait = keep aspect set height;

6
module/gallery/gallery.php

@ -29,8 +29,8 @@ class gallery extends common {
public static $sort = [
self::SORT_ASC => 'Alphabétique ',
self::SORT_DSC => 'Alphabétique inversé',
self::SORT_HAND => 'Tri manuel'
self::SORT_DSC => 'Alphabétique inverse',
self::SORT_HAND => 'Manuel'
];
public static $directories = [];
@ -314,7 +314,7 @@ class gallery extends common {
template::text('legend[' . $fileInfos->getFilename() . ']', [
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())])
]),
'<a href="' . $fileInfos->getPathname() .'" rel="data-lity" data-lity=""><img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '"></a>'
'<a href="' . str_replace('source','thumb',$directory) . '/' . self::THUMBS_SEPARATOR . $fileInfos->getFilename() .'" rel="data-lity" data-lity=""><img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '"></a>'
];
self::$picturesId [] = str_replace('.','',$fileInfos->getFilename());
}

3
module/gallery/view/edit/edit.php

@ -37,8 +37,7 @@
<?php echo template::select('galleryEditSort', $module::$sort, [
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort']),
'label' => 'Tri des images',
'help' => 'Les images sont triées par nom de fichier grâce à la méthode naturelle qui donne de meilleurs résultats lorsque les images sont numérotées.<br>
N\'oubliez pas d\'enregistrer pour sauvegarder le tri manuel des images'
'help' => 'Les tris alphabétiques conviennent également aux images numérotées.<br>Cliquez sur \'Enregistrer\' pour valider le tri.'
]); ?>
</div>
</div>

0
site/tmp/.htaccess

Loading…
Cancel
Save