From 510afbe8f18d9199bd63fef9f53868ac863a5fad Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 5 Sep 2024 10:31:35 +0200 Subject: [PATCH] =?UTF-8?q?1.11.01=20le=20template=20file=20affiche=20le?= =?UTF-8?q?=20dossier=20du=20fichier=20ou=20de=20l'image=20s=C3=A9lectionn?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 3 + core/core.php | 2 +- core/module/config/view/setup/setup.php | 54 ++--- core/module/config/view/social/social.php | 50 ++-- core/module/page/view/edit/edit.php | 32 +-- core/module/theme/view/body/body.php | 15 +- core/module/theme/view/header/header.php | 20 +- core/module/theme/view/menu/menu.php | 212 ++++++++--------- module/blog/blog.php | 2 +- module/blog/changes.md | 3 +- module/blog/view/edit/edit.php | 271 +++++++++++----------- module/form/changes.md | 2 + module/form/form.php | 2 +- module/form/view/option/option.php | 11 +- 14 files changed, 308 insertions(+), 371 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 5cbfda6..fae1076 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -325,6 +325,7 @@ class template 'name' => $nameId, 'type' => 2, 'value' => '', + 'folder' => '', 'language' => 'fr_FR' ], $attributes); // Traduction de l'aide et de l'étiquette @@ -367,6 +368,8 @@ class template '&field_id=' . $attributes['id'] . '&type=' . $attributes['type'] . '&akey=' . md5_file(core::DATA_DIR . 'core.json') . + // Ajoute le nom du dossier si la variable est passée + (!empty($attributes['folder']) ? '&fldr=' . $attributes['folder'] : '') . ($attributes['extensions'] ? '&extensions=' . $attributes['extensions'] : '') . '" class="inputFile %s %s" diff --git a/core/core.php b/core/core.php index a366e1a..e59a86c 100644 --- a/core/core.php +++ b/core/core.php @@ -51,7 +51,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.11.00'; + const ZWII_VERSION = '1.11.01'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; diff --git a/core/module/config/view/setup/setup.php b/core/module/config/view/setup/setup.php index 08ca40e..e400b86 100644 --- a/core/module/config/view/setup/setup.php +++ b/core/module/config/view/setup/setup.php @@ -3,12 +3,6 @@

- -

@@ -17,7 +11,8 @@ 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', 'label' => 'Favicon', - 'value' => $this->getData(['config', 'favicon']) + 'value' => $this->getData(['config', 'favicon']), + 'folder' => $this->getData(['config', 'favicon']) ? dirname($this->getData(['config', 'favicon'])) : '' ]); ?>
@@ -26,7 +21,8 @@ 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'help' => 'Sélectionnez une icône adaptée à un thème sombre.
Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', 'label' => 'Favicon thème sombre', - 'value' => $this->getData(['config', 'faviconDark']) + 'value' => $this->getData(['config', 'faviconDark']), + 'folder' => $this->getData(['config', 'faviconDark']) ? dirname($this->getData(['config', 'faviconDark'])) : '' ]); ?>
@@ -47,8 +43,8 @@
helper::checkRewrite(), - 'help' => 'Supprime le point d\'interrogation dans les URL, l\'option est indisponible avec les autres serveurs Web', - 'disabled' => stripos($_SERVER["SERVER_SOFTWARE"], 'Apache') === false and $module->isModRewriteEnabled() + 'help' => 'Supprime le point d\'interrogation dans les URL, l\'option est indisponible avec les autres serveurs Web', + 'disabled' => stripos($_SERVER["SERVER_SOFTWARE"], 'Apache') === false and $module->isModRewriteEnabled() ]); ?>
@@ -59,12 +55,6 @@

-

@@ -90,8 +80,8 @@ ]); ?>
-
Version installée : 
-
Version en ligne  : 
+
Version installée : 
+
Version en ligne  : 

-

@@ -169,12 +153,6 @@

-

@@ -198,13 +176,21 @@
-

ZwiiCMS Site Web - Forum +

ZwiiCMS Site Web - Forum

- Licence Creative Commons -

Cette œuvre est mise à disposition selon les termes de la Licence Creative Commons Attribution - Pas d'Utilisation Commerciale - Pas de Modification 4.0 International.

-

Pour voir une copie de cette licence, visitez http://creativecommons.org/licenses/by-nc-nd/4.0/ ou écrivez à Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

+ Licence Creative Commons +

Cette œuvre est mise à disposition selon les termes de la Licence Creative Commons + Attribution - Pas d'Utilisation Commerciale - Pas de Modification 4.0 + International.

+

Pour voir une copie de cette licence, visitez + http://creativecommons.org/licenses/by-nc-nd/4.0/ ou écrivez à Creative Commons, PO Box + 1866, Mountain View, CA 94042, USA.

diff --git a/core/module/config/view/social/social.php b/core/module/config/view/social/social.php index 0430d85..cf64beb 100644 --- a/core/module/config/view/social/social.php +++ b/core/module/config/view/social/social.php @@ -4,11 +4,6 @@

-

@@ -18,29 +13,30 @@ 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'label' => 'Image Open Graph', 'value' => $this->getData(['config', 'seo', 'openGraphImage']), + 'folder' => $this->getData(['config', 'seo', 'openGraphImage']) ? dirname($this->getData(['config', 'seo', 'openGraphImage'])) : '', 'type' => 1, - 'help' => sprintf('%s : JPG - PNG
', helper::translate('Format')) . - sprintf('%s : 1200 x 630 pixels
', helper::translate('Dimensions minimales')) . - sprintf('%s : 1.91:1
', helper::translate('Ratio')) . - sprintf('%s : %s, %s
', helper::translate('Taille maximale du fichier'), helper::translate('5 Mo pour les images JPEG'), helper::translate('1 Mo pour les images PNG')) + 'help' => sprintf('%s : JPG - PNG
', helper::translate('Format')) . + sprintf('%s : 1200 x 630 pixels
', helper::translate('Dimensions minimales')) . + sprintf('%s : 1.91:1
', helper::translate('Ratio')) . + sprintf('%s : %s, %s
', helper::translate('Taille maximale du fichier'), helper::translate('5 Mo pour les images JPEG'), helper::translate('1 Mo pour les images PNG')) ]); ?>
- -

- %s', helper::translate('Format'), $module::$imageOpenGraph['type']); ?> -

-

- %s x %s pixels', helper::translate('Dimensions minimales'), $module::$imageOpenGraph['wide'], $module::$imageOpenGraph['height'] ); ?> -

-

- %s:1' , helper::translate('Ratio'), round($module::$imageOpenGraph['ratio'], 2)); ?> -

-

- %s', helper::translate('Poids'), $module::$imageOpenGraph['size']); ?> -

+ +

+ %s', helper::translate('Format'), $module::$imageOpenGraph['type']); ?> +

+

+ %s x %s pixels', helper::translate('Dimensions minimales'), $module::$imageOpenGraph['wide'], $module::$imageOpenGraph['height']); ?> +

+

+ %s:1', helper::translate('Ratio'), round($module::$imageOpenGraph['ratio'], 2)); ?> +

+

+ %s', helper::translate('Poids'), $module::$imageOpenGraph['size']); ?> +

@@ -48,10 +44,10 @@
getData(['config', 'seo', 'openGraphImage']) && - file_exists(self::FILE_DIR . 'source/' . $this->getData(['config', 'seo', 'openGraphImage'])) + file_exists(self::FILE_DIR . 'source/' . $this->getData(['config', 'seo', 'openGraphImage'])) ): ?> + src="getData(['config', 'seo', 'openGraphImage']); ?>" />
@@ -84,12 +80,6 @@

- -

diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 3f56c65..cb5bed7 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -10,7 +10,7 @@
'buttonRed', - 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '/' . self::$siteContent, + 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '/' . self::$siteContent, 'value' => template::ico('trash'), 'help' => 'Effacer la page' ]); ?> @@ -28,7 +28,6 @@ ]); ?>
-
'Contenu', @@ -58,11 +57,6 @@

-

@@ -111,11 +105,6 @@

-

@@ -167,11 +156,6 @@

-

@@ -186,7 +170,8 @@ 'help' => 'Sélectionnez une image ou une icône de petite dimension', 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'label' => 'Icône', - 'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) + 'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']), + 'folder' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) ? dirname($this->getData(['page', $this->getUrl(2), 'iconUrl'])) : '', ]); ?>
@@ -283,11 +268,6 @@

-

@@ -363,11 +343,6 @@

-

@@ -415,5 +390,4 @@
- \ No newline at end of file diff --git a/core/module/theme/view/body/body.php b/core/module/theme/view/body/body.php index 1030c0b..4067b49 100644 --- a/core/module/theme/view/body/body.php +++ b/core/module/theme/view/body/body.php @@ -7,15 +7,7 @@ 'value' => template::ico('left') ]); ?>
-
- 'https://doc.zwiicms.fr/arriere-plan', - 'target' => '_blank', - 'value' => template::ico('help'), - 'class' => 'buttonHelp' - ]); */ ?> -
-
+
@@ -35,7 +27,7 @@
- 'colorPicker', 'help' => 'Le curseur horizontal règle le niveau de transparence.', 'label' => 'Couleur icône haut de page', @@ -68,7 +60,8 @@ 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'label' => 'Arrière plan', 'type' => 1, - 'value' => $imageFile + 'value' => $imageFile, + 'folder' => $imageFile ? dirname($imageFile) : '' ]); ?>
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index d598113..afc5d21 100644 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -7,15 +7,7 @@ 'value' => template::ico('left') ]); ?>
-
- 'https://doc.zwiicms.fr/banniere', - 'target' => '_blank', - 'value' => template::ico('help'), - 'class' => 'buttonHelp' - ]); */?> -
-
+
@@ -158,13 +150,17 @@ 'label' => 'Image', 'language' => $this->getData(['user', $this->getUser('id'), 'language']), 'type' => 1, - 'value' => $imageFile + 'value' => $imageFile, + 'folder' => $imageFile ? dirname($imageFile) : '' ]); ?> - ; getData(['theme', 'site', 'width']); ?> + + ; + getData(['theme', 'site', 'width']); ?> | - + | diff --git a/core/module/theme/view/menu/menu.php b/core/module/theme/view/menu/menu.php index 6aedd37..1516532 100644 --- a/core/module/theme/view/menu/menu.php +++ b/core/module/theme/view/menu/menu.php @@ -7,15 +7,7 @@ 'value' => template::ico('left') ]); ?>
-
- 'https://doc.zwiicms.fr/menu', - 'target' => '_blank', - 'value' => template::ico('help'), - 'class' => 'buttonHelp' - ]); */?> -
-
+
@@ -112,117 +104,117 @@ 'selected' => $this->getData(['theme', 'menu', 'burgerContent']), ]); ?>
-
- getData(['theme', 'menu', 'burgerLogo'])) ? $this->getData(['theme', 'menu', 'burgerLogo']) : ""; ?> - 'Sélectionner une image de dimensions adaptées', - 'language' => $this->getData(['user', $this->getUser('id'), 'language']), - 'label' => 'Logo du menu burger', - 'type' => 1, - 'value' => $imageFile - ]); - ?> -
+
+ getData(['theme', 'menu', 'burgerLogo'])) ? $this->getData(['theme', 'menu', 'burgerLogo']) : ""; ?> + 'Sélectionner une image de dimensions adaptées', + 'language' => $this->getData(['user', $this->getUser('id'), 'language']), + 'label' => 'Logo du menu burger', + 'type' => 1, + 'value' => $imageFile, + 'folder' => $imageFile ? dirname($imageFile) : '' + ]); + ?>
-
-
-
-

- -

-
-
- 'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', - 'label' => 'Texte', - 'value' => $this->getData(['theme', 'menu', 'textColor']) - ]); ?> -
-
- 'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', - 'label' => 'Arrière plan', - 'value' => $this->getData(['theme', 'menu', 'backgroundColor']) - ]); ?> -
-
- 'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', - 'label' => 'Fond du sous-menu', - 'value' => $this->getData(['theme', 'menu', 'backgroundColorSub']) - ]); ?> -
+
+
+
+
+

+ +

+
+
+ 'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'label' => 'Texte', + 'value' => $this->getData(['theme', 'menu', 'textColor']) + ]); ?>
-
-
- 'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', - 'label' => 'Couleur texte page active', - 'value' => $this->getData(['theme', 'menu', 'activeTextColor']) - ]); ?> -
-
- $this->getData(['theme', 'menu', 'activeColorAuto']), - ]); ?> -
-
- 'colorPicker', - 'help' => 'Couleur de fond de la page sélectionnée dans le menu.
Le curseur horizontal règle le niveau de transparence.', - 'label' => 'Fond page active', - 'value' => $this->getData(['theme', 'menu', 'activeColor']) - ]); ?> -
+
+ 'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'label' => 'Arrière plan', + 'value' => $this->getData(['theme', 'menu', 'backgroundColor']) + ]); ?> +
+
+ 'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'label' => 'Fond du sous-menu', + 'value' => $this->getData(['theme', 'menu', 'backgroundColorSub']) + ]); ?> +
+
+
+
+ 'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'label' => 'Couleur texte page active', + 'value' => $this->getData(['theme', 'menu', 'activeTextColor']) + ]); ?> +
+
+ $this->getData(['theme', 'menu', 'activeColorAuto']), + ]); ?> +
+
+ 'colorPicker', + 'help' => 'Couleur de fond de la page sélectionnée dans le menu.
Le curseur horizontal règle le niveau de transparence.', + 'label' => 'Fond page active', + 'value' => $this->getData(['theme', 'menu', 'activeColor']) + ]); ?>
-
-
-
-

- -

-
-
- 'Fonte', - 'selected' => $this->getData(['theme', 'menu', 'font']), - 'font' => $module::$fonts['family'] - ]); ?> -
-
- 'Taille', - 'help' => 'Proportionnelle à la taille définie dans le site.', - 'selected' => $this->getData(['theme', 'menu', 'fontSize']) - ]); ?> -
-
- 'Style', - 'selected' => $this->getData(['theme', 'menu', 'fontWeight']) - ]); ?> -
-
- 'Casse', - 'selected' => $this->getData(['theme', 'menu', 'textTransform']) - ]); ?> -
+
+
+
+
+

+ +

+
+
+ 'Fonte', + 'selected' => $this->getData(['theme', 'menu', 'font']), + 'font' => $module::$fonts['family'] + ]); ?> +
+
+ 'Taille', + 'help' => 'Proportionnelle à la taille définie dans le site.', + 'selected' => $this->getData(['theme', 'menu', 'fontSize']) + ]); ?> +
+
+ 'Style', + 'selected' => $this->getData(['theme', 'menu', 'fontWeight']) + ]); ?> +
+
+ 'Casse', + 'selected' => $this->getData(['theme', 'menu', 'textTransform']) + ]); ?>
- \ No newline at end of file +
+ \ No newline at end of file diff --git a/module/blog/blog.php b/module/blog/blog.php index 010a5d5..4417a92 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -16,7 +16,7 @@ class blog extends common { - const VERSION = '7.10'; + const VERSION = '7.11'; const REALNAME = 'Blog'; const DELETE = true; const UPDATE = '0.0'; diff --git a/module/blog/changes.md b/module/blog/changes.md index 2b12fb5..de53c9b 100755 --- a/module/blog/changes.md +++ b/module/blog/changes.md @@ -1,4 +1,5 @@ - +# Versions 7.11 +- Le sélecteur de fichier affiche par défaut le chemin vers le fichier présent dans le champ. # Versions 7.10 - Empêche la validation d'un commentaire lorsque le contenu est vide. # Versions 7.8 - 7.9 diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index 41f3c7a..9ea26fb 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -1,153 +1,154 @@ -
-
- 'buttonGrey', - 'href' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'value' => template::ico('left') - ]); ?> -
-
- true, - 'value' => 'Brouillon' - ]); ?> - true - ]); ?> -
-
- 'Publier', - 'uniqueSubmission' => true - ]); ?> -
+
+
+ 'buttonGrey', + 'href' => helper::baseUrl() . $this->getUrl(0) . '/config', + 'value' => template::ico('left') + ]); ?>
-
-
-
-

-
-
- 'Titre', - 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'title']) - ]); ?> -
-
- 'Permalink', - 'value' => $this->getUrl(2) - ]); ?> -
+
+ true, + 'value' => 'Brouillon' + ]); ?> + true + ]); ?> +
+
+ 'Publier', + 'uniqueSubmission' => true + ]); ?> +
+
+
+
+
+

+
+
+ 'Titre', + 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'title']) + ]); ?>
-
-
- $this->getData(['user', $this->getUser('id'), 'language']), - 'help' => $this->getData(['theme', 'site', 'width']) !== '100%' ? 'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.' : '', - 'label' => 'Image de couverture', - 'type' => 1, - 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picture']) - ]); ?> -
-
- 'Largeur de l\'image', - 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'pictureSize']) - ]); ?> -
-
- 'Position', - 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picturePosition']), - 'help' => 'Le texte de l\'article est adapté autour de l\'image' - ]); ?> -
+
+ 'Permalink', + 'value' => $this->getUrl(2) + ]); ?>
-
-
- $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'hidePicture']) - ]); ?> -
+
+
+
+ $this->getData(['user', $this->getUser('id'), 'language']), + 'help' => $this->getData(['theme', 'site', 'width']) !== '100%' ? 'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.' : '', + 'label' => 'Image de couverture', + 'type' => 1, + 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picture']), + 'folder' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picture']) ? dirname($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picture'])) : '' + ]); ?> +
+
+ 'Largeur de l\'image', + 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'pictureSize']) + ]); ?> +
+
+ 'Position', + 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'picturePosition']), + 'help' => 'Le texte de l\'article est adapté autour de l\'image' + ]); ?> +
+
+
+
+ $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'hidePicture']) + ]); ?>
- 'editorWysiwyg', - 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'content']) - ]); ?> -
-
-
-

-
-
- 'Auteur', - 'selected' => $this->getUser('id'), - 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false - ]); ?> -
-
- 'L\'article n\'est visible qu\'après la date de publication prévue.', - 'type' => 'datetime-local', - 'label' => 'Publication', - 'value' => floor($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'publishedOn']) / 60) * 60 - ]); ?> -
-
- 'Édition - Suppression', - 'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']), - 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' - ]); ?> -
+
+ 'editorWysiwyg', + 'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'content']) +]); ?> +
+
+
+

+
+
+ 'Auteur', + 'selected' => $this->getUser('id'), + 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false + ]); ?> +
+
+ 'L\'article n\'est visible qu\'après la date de publication prévue.', + 'type' => 'datetime-local', + 'label' => 'Publication', + 'value' => floor($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'publishedOn']) / 60) * 60 + ]); ?> +
+
+ 'Édition - Suppression', + 'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']), + 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' + ]); ?>
-
-
-
-

-
-
- $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentClose']) - ]); ?> -
-
- $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']), - '' - ]); ?> -
-
- 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', - 'label' => 'Caractères par commentaire', - 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength']) - ]); ?> -
+
+
+
+
+

+
+
+ $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentClose']) + ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']), + '' + ]); ?> +
+
+ 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', + 'label' => 'Caractères par commentaire', + 'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength']) + ]); ?> +
+
+
+
+ $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']), + ]); ?>
-
-
- $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']), - ]); ?> -
-
- $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']), - ]); ?> -
+
+ $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']), + ]); ?>
- +
+ \ No newline at end of file diff --git a/module/form/changes.md b/module/form/changes.md index 11c7f51..8536f3e 100644 --- a/module/form/changes.md +++ b/module/form/changes.md @@ -1,3 +1,5 @@ +# Versions 4.4 +- Le sélecteur de fichier affiche par défaut le chemin vers le fichier présent dans le champ. # Version 4.3 - Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts. # Version 4.2 diff --git a/module/form/form.php b/module/form/form.php index 46a0e41..2a26c52 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -17,7 +17,7 @@ class form extends common { - const VERSION = '4.3'; + const VERSION = '4.4'; const REALNAME = 'Formulaire'; const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) diff --git a/module/form/view/option/option.php b/module/form/view/option/option.php index 715bbf2..4539298 100644 --- a/module/form/view/option/option.php +++ b/module/form/view/option/option.php @@ -14,7 +14,7 @@
-

+

-

+

-

+

(bool) $this->getData(['module', $this->getUrl(0), 'config', 'group']) || !empty($this->getData(['module', $this->getUrl(0), 'config', 'user'])) || @@ -128,10 +128,10 @@
$this->getData(['user', $this->getUser('id'), 'language']), 'label' => 'Logo du site', - 'value' => $this->getData(['module', $this->getUrl(0), 'config', 'logoUrl']) + 'value' => $this->getData(['module', $this->getUrl(0), 'config', 'logoUrl']), + 'folder' => $this->getData(['module', $this->getUrl(0), 'config', 'logoUrl']) ? dirname($this->getData(['module', $this->getUrl(0), 'config', 'logoUrl'])) : '' ]); ?>
@@ -152,5 +152,4 @@
-
\ No newline at end of file