From 9de918120f464a58b47c86afd9a96d5e141a1de6 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 20 Jan 2022 09:53:40 +0100 Subject: [PATCH] layout -> option --- module/blog/blog.php | 14 +++++++------- module/blog/view/config/config.php | 14 +++++++------- .../view/{layout/layout.css => option/option.css} | 0 .../view/{layout/layout.php => option/option.php} | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) rename module/blog/view/{layout/layout.css => option/option.css} (100%) rename module/blog/view/{layout/layout.php => option/option.php} (76%) diff --git a/module/blog/blog.php b/module/blog/blog.php index 08222009..ff862cd2 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -32,7 +32,7 @@ class blog extends common { 'commentDelete' => self::GROUP_MODERATOR, 'commentDeleteAll' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR, - 'layout' => self::GROUP_MODERATOR, + 'option' => self::GROUP_MODERATOR, 'delete' => self::GROUP_MODERATOR, 'edit' => self::GROUP_MODERATOR, 'index' => self::GROUP_VISITOR, @@ -482,20 +482,20 @@ class blog extends common { ]); } - public function layout() { + public function option() { // Mise à jour des données de module $this->update(); // Soumission du formulaire if($this->isPost()) { $this->setData(['module', $this->getUrl(0), 'config',[ - 'feeds' => $this->getInput('blogLayoutShowFeeds',helper::FILTER_BOOLEAN), - 'feedsLabel' => $this->getInput('blogLayoutFeedslabel',helper::FILTER_STRING_SHORT), - 'itemsperPage' => $this->getInput('blogLayoutItemsperPage', helper::FILTER_INT,true), + 'feeds' => $this->getInput('blogOptionShowFeeds',helper::FILTER_BOOLEAN), + 'feedsLabel' => $this->getInput('blogOptionFeedslabel',helper::FILTER_STRING_SHORT), + 'itemsperPage' => $this->getInput('blogOptionItemsperPage', helper::FILTER_INT,true), 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']) ]]); // Valeurs en sortie $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/layout', + 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/option', 'notification' => 'Modifications enregistrées', 'state' => true ]); @@ -503,7 +503,7 @@ class blog extends common { // Valeurs en sortie $this->addOutput([ 'title' => 'Mise en page', - 'view' => 'layout' + 'view' => 'option' ]); } } diff --git a/module/blog/view/config/config.php b/module/blog/view/config/config.php index 0430fdb2..1be3aab5 100644 --- a/module/blog/view/config/config.php +++ b/module/blog/view/config/config.php @@ -8,18 +8,18 @@ 'value' => 'Retour' ]); ?> -
+
helper::baseUrl() . $this->getUrl(0) . '/add', 'ico' => 'plus', - 'value' => 'Article' + 'value' => '' ]); ?>
-
- helper::baseUrl() . $this->getUrl(0) . '/layout', - 'ico' => 'brush', - 'value' => 'Mise en page' +
+ helper::baseUrl() . $this->getUrl(0) . '/option', + 'ico' => 'cogs', + 'value' => '' ]); ?>
diff --git a/module/blog/view/layout/layout.css b/module/blog/view/option/option.css similarity index 100% rename from module/blog/view/layout/layout.css rename to module/blog/view/option/option.css diff --git a/module/blog/view/layout/layout.php b/module/blog/view/option/option.php similarity index 76% rename from module/blog/view/layout/layout.php rename to module/blog/view/option/option.php index f845302b..f86d3cd8 100644 --- a/module/blog/view/layout/layout.php +++ b/module/blog/view/option/option.php @@ -1,7 +1,7 @@ - +
- 'buttonGrey', 'href' => helper::baseUrl() . $this->getUrl(0) . '/config', 'ico' => 'left', @@ -9,7 +9,7 @@ ]); ?>
- +
@@ -18,12 +18,12 @@

Paramètres du module

- $this->getData(['module', $this->getUrl(0), 'config', 'feeds']), ]); ?>
- 'Texte de l\'étiquette', 'value' => $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) ]); ?> @@ -31,7 +31,7 @@
- 'Articles par page', 'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage']) ]); ?>