From 1b56a75cdfd0952a412acde857d57ad6da34674e Mon Sep 17 00:00:00 2001 From: alexonweb Date: Wed, 9 Nov 2016 00:56:41 +0300 Subject: [PATCH 1/6] Update plugin.php --- bl-plugins/pages/plugin.php | 41 +++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/bl-plugins/pages/plugin.php b/bl-plugins/pages/plugin.php index 16b84896..52ffc086 100644 --- a/bl-plugins/pages/plugin.php +++ b/bl-plugins/pages/plugin.php @@ -6,6 +6,7 @@ class pluginPages extends Plugin { { $this->dbFields = array( 'homeLink'=>1, + 'childrens'=>1, 'label'=>'Pages' ); } @@ -24,6 +25,12 @@ class pluginPages extends Plugin { $html .= 'getDbField('homeLink')?'checked':'').'>'; $html .= ''; $html .= ''; + + $html .= '
'; + $html .= ''; + $html .= 'getDbField('childrens')?'checked':'').'>'; + $html .= ''; + $html .= '
'; return $html; } @@ -62,25 +69,29 @@ class pluginPages extends Plugin { $html .= '
  • '; $html .= ''.$parent->title().''; - // Check if the parent has children - if(isset($pagesParents[$parent->key()])) - { - $children = $pagesParents[$parent->key()]; + // Show children elements? + if($this->getDbField('childrens')) { - // Print children - $html .= ''; - } + } $html .= '
  • '; } @@ -92,4 +103,4 @@ class pluginPages extends Plugin { return $html; } -} \ No newline at end of file +} From 9b541012c0b896beed550d65012b268476a3a07a Mon Sep 17 00:00:00 2001 From: alexonweb Date: Wed, 9 Nov 2016 00:57:24 +0300 Subject: [PATCH 2/6] Update ru_RU.json --- bl-plugins/pages/languages/ru_RU.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bl-plugins/pages/languages/ru_RU.json b/bl-plugins/pages/languages/ru_RU.json index e67cbf4d..dc33d8bd 100644 --- a/bl-plugins/pages/languages/ru_RU.json +++ b/bl-plugins/pages/languages/ru_RU.json @@ -6,5 +6,6 @@ }, "home": "Главная", - "show-home-link": "Показывать ссылку на главную" + "show-home-link": "Показывать ссылку на главную", + "show-childrens": "Показывать подменю" } From f52bb20f875ea86376e85d3c322261566b99e513 Mon Sep 17 00:00:00 2001 From: alexonweb Date: Wed, 9 Nov 2016 00:58:12 +0300 Subject: [PATCH 3/6] Update en_US.json --- bl-plugins/pages/languages/en_US.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bl-plugins/pages/languages/en_US.json b/bl-plugins/pages/languages/en_US.json index 8158fefa..0c25b667 100644 --- a/bl-plugins/pages/languages/en_US.json +++ b/bl-plugins/pages/languages/en_US.json @@ -6,5 +6,6 @@ }, "home": "Home", - "show-home-link": "Show home link" -} \ No newline at end of file + "show-home-link": "Show home link", + "show-childrens": "Show submenu" +} From 0c4d9597fa22d83a201cdea0495fc7bb038edeba Mon Sep 17 00:00:00 2001 From: Alex Kita Date: Wed, 23 Nov 2016 19:59:02 +0300 Subject: [PATCH 4/6] Update plugin.php thank you for your patience --- bl-plugins/pages/plugin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bl-plugins/pages/plugin.php b/bl-plugins/pages/plugin.php index 52ffc086..ca3ac36d 100644 --- a/bl-plugins/pages/plugin.php +++ b/bl-plugins/pages/plugin.php @@ -6,7 +6,7 @@ class pluginPages extends Plugin { { $this->dbFields = array( 'homeLink'=>1, - 'childrens'=>1, + 'children'=>1, 'label'=>'Pages' ); } @@ -27,9 +27,9 @@ class pluginPages extends Plugin { $html .= ''; $html .= '
    '; - $html .= ''; - $html .= 'getDbField('childrens')?'checked':'').'>'; - $html .= ''; + $html .= ''; + $html .= 'getDbField('children')?'checked':'').'>'; + $html .= ''; $html .= '
    '; return $html; @@ -70,7 +70,7 @@ class pluginPages extends Plugin { $html .= ''.$parent->title().''; // Show children elements? - if($this->getDbField('childrens')) { + if($this->getDbField('children')) { // Check if the parent has children if(isset($pagesParents[$parent->key()])) From c1adade902f174182a4ef9c1167e41ea782ee6e0 Mon Sep 17 00:00:00 2001 From: Alex Kita Date: Wed, 23 Nov 2016 19:59:07 +0300 Subject: [PATCH 5/6] Update ru_RU.json --- bl-plugins/pages/languages/ru_RU.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-plugins/pages/languages/ru_RU.json b/bl-plugins/pages/languages/ru_RU.json index dc33d8bd..ab5a8045 100644 --- a/bl-plugins/pages/languages/ru_RU.json +++ b/bl-plugins/pages/languages/ru_RU.json @@ -7,5 +7,5 @@ "home": "Главная", "show-home-link": "Показывать ссылку на главную", - "show-childrens": "Показывать подменю" + "show-children": "Показывать подменю" } From 9a1dca2f6738242f05bd86a7152630d3f8c76c0b Mon Sep 17 00:00:00 2001 From: Alex Kita Date: Wed, 23 Nov 2016 19:59:09 +0300 Subject: [PATCH 6/6] Update en_US.json --- bl-plugins/pages/languages/en_US.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-plugins/pages/languages/en_US.json b/bl-plugins/pages/languages/en_US.json index 0c25b667..389c780e 100644 --- a/bl-plugins/pages/languages/en_US.json +++ b/bl-plugins/pages/languages/en_US.json @@ -7,5 +7,5 @@ "home": "Home", "show-home-link": "Show home link", - "show-childrens": "Show submenu" + "show-children": "Show children" }