gallery slider url courtes
|
@ -5,7 +5,7 @@
|
|||
- Ajout du groupe éditeur, autorisations limitées à l'édition des pages, l'ajout de fichiers, l'accès aux pages privées membre et éditeur,
|
||||
- Adaptation des modules de page à ce nouveau groupe avec des actions autorisées très limitées,
|
||||
- Nouvelle option dans l'édition d'une page, permissions : sélection du groupe requis pour modifier la page,
|
||||
- Module Gallery, sélection du dossier incluant les images : exclusion de certains dossiers,
|
||||
- Modules Gallery et Slider, sélection du dossier : seuls les dossiers incluant au moins une image sont proposés et exclusion de certains dossiers
|
||||
- Corrections :
|
||||
- Affichage du sous-menu avec un alignement du contenu à droite : il y avait un décalage du site quand les pages situées à la droite du menu possédaient des pages enfants.
|
||||
|
||||
|
|
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 96 KiB |
|
@ -259,7 +259,7 @@ class gallery extends common {
|
|||
self::$galleries[] = [
|
||||
template::ico('sort'),
|
||||
$gallery['config']['name'],
|
||||
$gallery['config']['directory'],
|
||||
str_replace('site/file/source/','',$gallery['config']['directory']),
|
||||
template::button('galleryConfigEdit' . $galleryId , [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId . '/' . $_SESSION['csrf'],
|
||||
'value' => template::ico('pencil')
|
||||
|
|
|
@ -63,7 +63,9 @@ function dirs() {
|
|||
directoryDOM.empty();
|
||||
for(var i = 0; i < result.length; i++) {
|
||||
directoryDOM.append(function(i) {
|
||||
var option = $("<option>").val(result[i]).text(result[i]);
|
||||
var textshort = result[i];
|
||||
textshort = textshort.replace("site/file/source/","");
|
||||
var option = $("<option>").val(result[i]).text(textshort);
|
||||
if(directoryOldDOM.val() === result[i]) {
|
||||
option.prop("selected", true);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,9 @@ function dirs() {
|
|||
directoryDOM.empty();
|
||||
for(var i = 0; i < result.length; i++) {
|
||||
directoryDOM.append(function(i) {
|
||||
var option = $("<option>").val(result[i]).text(result[i]);
|
||||
var textshort = result[i];
|
||||
textshort = textshort.replace("site/file/source/","");
|
||||
var option = $("<option>").val(result[i]).text(textshort);
|
||||
if(directoryOldDOM.val() === result[i]) {
|
||||
option.prop("selected", true);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ echo template::formOpen('galleryEditForm'); ?>
|
|||
<h4><?php echo $text['slider_view']['config'][2]; ?></h4>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::select('galleryEditDirectory', $module::$listDirs, [
|
||||
<?php echo template::select('galleryEditDirectory', str_replace('site/file/source/','',$module::$listDirs), [
|
||||
'label' => $text['slider_view']['config'][4],
|
||||
'selected' => array_search($this->getData(['module', $this->getUrl(0), 'config', 'directory']), $module::$listDirs)
|
||||
]);
|
||||
|
|