Libellés vignette 640 etc..

This commit is contained in:
Fred Tempez 2020-04-15 17:26:26 +02:00
parent 768cb64c30
commit 17471ed4e0
6 changed files with 10 additions and 11 deletions

4
.gitignore vendored
View File

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

View File

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

View File

@ -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_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_name_to_prepend' => array( 'mini_' ), //name to prepend on filename
'fixed_image_creation_to_append' => array( '' ), //name to appendon filename 'fixed_image_creation_to_append' => array( '' ), //name to appendon filename
'fixed_image_creation_width' => array( 320 ), //width of image 'fixed_image_creation_width' => array( 640 ), //width of image
'fixed_image_creation_height' => array( 240), //height of image 'fixed_image_creation_height' => array( 480 ), //height of image
/* /*
# $option: 0 / exact = defined size; # $option: 0 / exact = defined size;
# 1 / portrait = keep aspect set height; # 1 / portrait = keep aspect set height;

View File

@ -29,8 +29,8 @@ class gallery extends common {
public static $sort = [ public static $sort = [
self::SORT_ASC => 'Alphabétique ', self::SORT_ASC => 'Alphabétique ',
self::SORT_DSC => 'Alphabétique inversé', self::SORT_DSC => 'Alphabétique inverse',
self::SORT_HAND => 'Tri manuel' self::SORT_HAND => 'Manuel'
]; ];
public static $directories = []; public static $directories = [];
@ -314,7 +314,7 @@ class gallery extends common {
template::text('legend[' . $fileInfos->getFilename() . ']', [ template::text('legend[' . $fileInfos->getFilename() . ']', [
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$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()); self::$picturesId [] = str_replace('.','',$fileInfos->getFilename());
} }

View File

@ -37,8 +37,7 @@
<?php echo template::select('galleryEditSort', $module::$sort, [ <?php echo template::select('galleryEditSort', $module::$sort, [
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort']), 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort']),
'label' => 'Tri des images', '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> 'help' => 'Les tris alphabétiques conviennent également aux images numérotées.<br>Cliquez sur \'Enregistrer\' pour valider le tri.'
N\'oubliez pas d\'enregistrer pour sauvegarder le tri manuel des images'
]); ?> ]); ?>
</div> </div>
</div> </div>

0
site/tmp/.htaccess Normal file → Executable file
View File