From 809e409f9c7efb654b50c4b838974477fdf4446f Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 12 Aug 2020 13:37:04 +0200 Subject: [PATCH 01/11] Add Main menu to the top, add a second level to the blog item --- .../language/en-GB/plg_sampledata_blog.ini | 4 ++ plugins/sampledata/blog/blog.php | 64 ++++++++++++++++++- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index ebaba7f92b8d9..99bfba92c6988 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -28,6 +28,10 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Category Blog" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 46684dcf14d79..7b096726135f4 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -391,6 +391,7 @@ public function onAjaxSampledataApplyStep2() // Insert menuitems level 1. $menuItems = array( + // Blog array( 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE'), @@ -417,6 +418,7 @@ public function onAjaxSampledataApplyStep2() ), ), array( + // About 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=' . $articleIds[0], @@ -435,6 +437,7 @@ public function onAjaxSampledataApplyStep2() ), ), array( + // Autor Login 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE'), 'link' => 'index.php?option=com_users&view=login', @@ -582,6 +585,60 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), + array( + // Category Blog + 'menutype' => $menuTypes[0], + 'layout_type' => 'metismenu', + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), + 'link' => 'index.php?option=com_content&view=category&layout=blog&id=8', + 'parent_id' => $menuIdsLevel1[0], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + "page_subheading" => 'Subheading of Categories', + 'menu_text' => 1, + 'show_page_heading' => 1, + 'secure' => 0, + ), + ), + array( + // Category List + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE'), + 'link' => 'index.php?option=com_content&view=category&layout=list&id=8', + 'parent_id' => $menuIdsLevel1[0], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'page_subheading' => 'Subheading of List', + 'menu_text' => 1, + 'show_page_heading' => 1, + 'secure' => 0, + ), + ), + array( + // Single article + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=3', + 'parent_id' => $menuIdsLevel1[0], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'menu_text' => 1, + 'show_show' => 1, + 'secure' => 0, + ), + ), + array( + // Category List + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE'), + 'link' => 'index.php?option=com_content&view=featured', + 'parent_id' => $menuIdsLevel1[0], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'featured_categories' => '', + 'layout_type' => 'blog', + ), + ), ); try @@ -641,23 +698,24 @@ public function onAjaxSampledataApplyStep3() $catids = $this->app->getUserState('sampledata.blog.articles.catids'); $modules = array( + // The main menu array( 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_0_TITLE'), 'ordering' => 1, - 'position' => 'top-a', + 'position' => 'menu', 'module' => 'mod_menu', 'showtitle' => 0, 'params' => array( 'menutype' => $menuTypes[0], 'startLevel' => 1, 'endLevel' => 0, - 'showAllChildren' => 0, + 'showAllChildren' => 1, 'class_sfx' => '', 'layout' => '_:default', 'cache' => 1, 'cache_time' => 900, 'cachemode' => 'itemid', - 'module_tag' => 'div', + 'module_tag' => 'nav', 'bootstrap_size' => 0, 'header_tag' => 'h3', 'style' => 0, From 064edc8aed15333583e96aaa97f9e97ed4391ebe Mon Sep 17 00:00:00 2001 From: chmst Date: Fri, 14 Aug 2020 14:04:26 +0200 Subject: [PATCH 02/11] Make search module visible in position search --- plugins/sampledata/blog/blog.php | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 7b096726135f4..2f9150289a8c7 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -698,7 +698,7 @@ public function onAjaxSampledataApplyStep3() $catids = $this->app->getUserState('sampledata.blog.articles.catids'); $modules = array( - // The main menu + // The main menu Blog array( 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_0_TITLE'), 'ordering' => 1, @@ -708,7 +708,7 @@ public function onAjaxSampledataApplyStep3() 'params' => array( 'menutype' => $menuTypes[0], 'startLevel' => 1, - 'endLevel' => 0, + 'endLevel' => 1, 'showAllChildren' => 1, 'class_sfx' => '', 'layout' => '_:default', @@ -722,6 +722,7 @@ public function onAjaxSampledataApplyStep3() ), ), array( + // The author Menu, for registered users 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_1_TITLE'), 'ordering' => 1, 'position' => 'top-a', @@ -857,15 +858,19 @@ public function onAjaxSampledataApplyStep3() 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_7_TITLE'), 'ordering' => 1, 'position' => 'search', - 'module' => 'mod_search', + 'module' => 'mod_finder', 'params' => array( - 'width' => 20, - 'button_pos' => 'right', + 'searchfilter' => '', + 'show_autosuggest' => 1, + 'show_advanced' => 0, + 'show_label' => 0, + 'alt_label' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_7_TITLE'), + 'show_button' => 1, 'opensearch' => 1, - 'layout' => '_:default', - 'cache' => 1, - 'cache_time' => 900, - 'cachemode' => 'itemid', + 'opensearch_name' => '', + 'set_itemid' => 0, + 'layout' => '_:default', + 'module_tag' => 'search', ), ), array( From 157eefa4648e9c41a2a1986cb260fa9f7953156a Mon Sep 17 00:00:00 2001 From: chmst Date: Sun, 16 Aug 2020 20:44:59 +0200 Subject: [PATCH 03/11] Add a third level to the main menu blog, use module layout metismenu --- .../language/en-GB/plg_sampledata_blog.ini | 3 + plugins/sampledata/blog/blog.php | 73 +++++++++++++++++-- 2 files changed, 68 insertions(+), 8 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index 99bfba92c6988..3da266d8b0556 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -32,6 +32,9 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Category Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Articles" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Article1" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Article2" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 2f9150289a8c7..008b4d85cb98f 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -527,8 +527,9 @@ public function onAjaxSampledataApplyStep2() return $response; } - // Insert another level 1. + // Insert level 1. $menuItems = array( + // Author Login array( 'menutype' => $menuTypes[2], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_8_TITLE'), @@ -564,7 +565,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_9_TITLE'), 'link' => 'index.php?option=com_config&view=config', - 'parent_id' => $menuIdsLevel1[4], + 'parent_id' => $menuIdsLevel1[0], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'access' => 6, 'params' => array( @@ -577,7 +578,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE'), 'link' => 'index.php?option=com_config&view=templates', - 'parent_id' => $menuIdsLevel1[4], + 'parent_id' => $menuIdsLevel1[0], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'params' => array( 'menu_text' => 1, @@ -588,7 +589,6 @@ public function onAjaxSampledataApplyStep2() array( // Category Blog 'menutype' => $menuTypes[0], - 'layout_type' => 'metismenu', 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), 'link' => 'index.php?option=com_content&view=category&layout=blog&id=8', 'parent_id' => $menuIdsLevel1[0], @@ -635,15 +635,71 @@ public function onAjaxSampledataApplyStep2() 'parent_id' => $menuIdsLevel1[0], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( - 'featured_categories' => '', - 'layout_type' => 'blog', + 'menu_text' => 1, + 'show_show' => 1, + 'secure' => 0, + ), + ), + array( + // Articles (menun header) + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), + 'type' => 'heading', + 'link' => '', + 'parent_id' => $menuIdsLevel1[0], + 'component_id' => '', + 'params' => array( + 'menu_text' => 1, + 'show_show' => 1, + 'secure' => 0, + ), + ), + ); + + try + { + $menuIdsLevel2 = $this->addMenuItems($menuItems, 2); + } + catch (Exception $e) + { + $response = array(); + $response['success'] = false; + $response['message'] = Text::sprintf('PLG_SAMPLEDATA_BLOG_STEP_FAILED', 2, $e->getMessage()); + + return $response; + } + + // Add a third level of menuItems + $menuItems = array( + array( + // Article1 + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=5', + 'parent_id' => $menuIdsLevel2[4], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'menu_show' => 1, + 'secure' => 0, + ), + ), + array( + // Article2 + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=6', + 'parent_id' => $menuIdsLevel2[4], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'menu_show' => 1, + 'secure' => 0, ), ), ); try { - $this->addMenuItems($menuItems, 2); + $this->addMenuItems($menuItems, 3); } catch (Exception $e) { @@ -707,8 +763,9 @@ public function onAjaxSampledataApplyStep3() 'showtitle' => 0, 'params' => array( 'menutype' => $menuTypes[0], + 'layout' => 'cassiopeia:metismenu', 'startLevel' => 1, - 'endLevel' => 1, + 'endLevel' => 3, 'showAllChildren' => 1, 'class_sfx' => '', 'layout' => '_:default', From ba6b1e3ec1ac0ed0baea00ebda3ef9f1c129a708 Mon Sep 17 00:00:00 2001 From: chmst Date: Sun, 16 Aug 2020 21:36:39 +0200 Subject: [PATCH 04/11] Fix parent_ids for 3rd level in main menu blog, add layout metismenu to the module --- plugins/sampledata/blog/blog.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 008b4d85cb98f..8ef41bc8ea473 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -676,7 +676,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=5', - 'parent_id' => $menuIdsLevel2[4], + 'parent_id' => $menuIdsLevel2[6], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, @@ -688,7 +688,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=6', - 'parent_id' => $menuIdsLevel2[4], + 'parent_id' => $menuIdsLevel2[6], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, @@ -768,7 +768,6 @@ public function onAjaxSampledataApplyStep3() 'endLevel' => 3, 'showAllChildren' => 1, 'class_sfx' => '', - 'layout' => '_:default', 'cache' => 1, 'cache_time' => 900, 'cachemode' => 'itemid', From f225d7be4f5422f05162f7192c127df00224134c Mon Sep 17 00:00:00 2001 From: chmst Date: Tue, 18 Aug 2020 21:12:15 +0200 Subject: [PATCH 05/11] Fix links on the 2nd sublevel --- plugins/sampledata/blog/blog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 8ef41bc8ea473..c89997acc0147 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -674,7 +674,7 @@ public function onAjaxSampledataApplyStep2() array( // Article1 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=5', 'parent_id' => $menuIdsLevel2[6], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, @@ -686,7 +686,7 @@ public function onAjaxSampledataApplyStep2() array( // Article2 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=6', 'parent_id' => $menuIdsLevel2[6], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, From 78f78fc80e62130f4c150440e21f4ed111e37b4a Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 19 Aug 2020 14:23:48 +0200 Subject: [PATCH 06/11] Change name of menuitems --- administrator/language/en-GB/plg_sampledata_blog.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index 3da266d8b0556..2706792b3f176 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -33,8 +33,8 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Articles" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Article1" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Article2" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Your Modules" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Your Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" From c0de33076c5110096227185321fc2344ef82d85a Mon Sep 17 00:00:00 2001 From: chmst Date: Tue, 25 Aug 2020 17:30:57 +0200 Subject: [PATCH 07/11] Disable old-fashioned image in module above content --- plugins/sampledata/blog/blog.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index c89997acc0147..de161a300fedc 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -938,6 +938,7 @@ public function onAjaxSampledataApplyStep3() 'showtitle' => 0, 'params' => array( 'prepare_content' => 1, + 'enabled' => 0, 'layout' => '_:default', 'cache' => 1, 'cache_time' => 900, From afed66ed508a060cc619f486bac2e76700ac2030 Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 26 Aug 2020 10:22:52 +0200 Subject: [PATCH 08/11] Add new category and articles for a multi column layout --- .../language/en-GB/plg_sampledata_blog.ini | 16 ++- plugins/sampledata/blog/blog.php | 116 ++++++++++++++---- 2 files changed, 108 insertions(+), 24 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index 2706792b3f176..b49042920b350 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -24,17 +24,27 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_TITLE="Your Modules" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="

Templates control the look and feel of your website.

This blog is installed with the Protostar template.

You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).

For example you can change the site background color, highlights color, site title, site description and title font used.

More options are available in the site administrator. You may also install a new template using the extension manager.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_TITLE="Your Template" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_FULLTEXT="" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="

Text Article1
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Lorem ipsum1" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

Text Article2
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Lorem ipsum2" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

Text Article3
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Lorem ipsum3" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Category Blog" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Articles" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Your Modules" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Your Template" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Lorem" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Ipsum" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index de161a300fedc..1274037bdbb04 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -214,6 +214,53 @@ public function onAjaxSampledataApplyStep1() // Get ID from category we just added $catIds[] = $categoryModel->getItem()->id; + // Create "template" category. + $categoryTitle = Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE'); + $alias = ApplicationHelper::stringURLSafe($categoryTitle); + + // Set unicodeslugs if alias is empty + if (trim(str_replace('-', '', $alias) == '')) + { + $unicode = $this->app->set('unicodeslugs', 1); + $alias = ApplicationHelper::stringURLSafe($categoryTitle); + $this->app->set('unicodeslugs', $unicode); + } + + $category = array( + 'title' => $categoryTitle . $langSuffix, + 'parent_id' => 1, + 'id' => 0, + 'published' => 1, + 'access' => $access, + 'created_user_id' => $user->id, + 'extension' => 'com_content', + 'level' => 1, + 'alias' => $alias . $langSuffix, + 'associations' => array(), + 'description' => '', + 'language' => $language, + 'params' => '{}', + ); + + try + { + if (!$categoryModel->save($category)) + { + throw new Exception($categoryModel->getError()); + } + } + catch (Exception $e) + { + $response = array(); + $response['success'] = false; + $response['message'] = Text::sprintf('PLG_SAMPLEDATA_BLOG_STEP_FAILED', 1, $e->getMessage()); + + return $response; + } + + // Get ID from category we just added + $catIds[] = $categoryModel->getItem()->id; + // Create Articles. $articles = array( array( @@ -241,6 +288,18 @@ public function onAjaxSampledataApplyStep1() 'catid' => $catIds[0], 'ordering' => 0, ), + array( + 'catid' => $catIds[2], + 'ordering' => 0, + ), + array( + 'catid' => $catIds[2], + 'ordering' => 0, + ), + array( + 'catid' => $catIds[2], + 'ordering' => 0, + ), ); $mvcFactory = $this->app->bootComponent('com_content')->getMVCFactory(); @@ -437,7 +496,7 @@ public function onAjaxSampledataApplyStep2() ), ), array( - // Autor Login + // Author Login 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE'), 'link' => 'index.php?option=com_users&view=login', @@ -450,6 +509,34 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), + // Blog withm colums + array( + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), + 'link' => 'index.php?option=com_content&view=category&layout=blog&id=' . $catids[2], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'layout_type' => 'blog', + 'blog_class_leading' => 'column-1', + 'blog_class' => 'column-2', + 'show_category_title' => 0, + 'num_leading_articles' => 1, + 'num_intro_articles' => 2, + 'num_links' => 0, + 'orderby_sec' => 'rdate', + 'order_date' => 'published', + 'show_pagination' => 2, + 'show_pagination_results' => 1, + 'show_category' => 0, + 'info_bloc_position' => 0, + 'show_publish_date' => 0, + 'show_hits' => 0, + 'show_feed_link' => 1, + 'menu_text' => 1, + 'show_page_heading' => 0, + 'secure' => 0, + ), + ), array( 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE'), @@ -586,20 +673,6 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), - array( - // Category Blog - 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), - 'link' => 'index.php?option=com_content&view=category&layout=blog&id=8', - 'parent_id' => $menuIdsLevel1[0], - 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, - 'params' => array( - "page_subheading" => 'Subheading of Categories', - 'menu_text' => 1, - 'show_page_heading' => 1, - 'secure' => 0, - ), - ), array( // Category List 'menutype' => $menuTypes[0], @@ -675,8 +748,8 @@ public function onAjaxSampledataApplyStep2() // Article1 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=5', - 'parent_id' => $menuIdsLevel2[6], + 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[6], + 'parent_id' => $menuIdsLevel2[5], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, @@ -687,8 +760,8 @@ public function onAjaxSampledataApplyStep2() // Article2 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=6', - 'parent_id' => $menuIdsLevel2[6], + 'link' => 'index.php?option=com_content&view=article&id=' . (int) $articleIds[7], + 'parent_id' => $menuIdsLevel2[5], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, @@ -929,16 +1002,17 @@ public function onAjaxSampledataApplyStep3() 'module_tag' => 'search', ), ), + /** */ array( + // Unbublished module - ToDo decorative and meningful example for a module 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_TITLE'), - 'content' => '

', + 'content' => '

', 'ordering' => 1, 'position' => 'main-top', 'module' => 'mod_custom', 'showtitle' => 0, 'params' => array( 'prepare_content' => 1, - 'enabled' => 0, 'layout' => '_:default', 'cache' => 1, 'cache_time' => 900, From f005a3083834a18e0f232342e51cf2eb1c0612c0 Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 26 Aug 2020 11:31:18 +0200 Subject: [PATCH 09/11] Change menuItemtype for menuItem blog, fix multicolum params --- plugins/sampledata/blog/blog.php | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 1274037bdbb04..a5c6af73e98e6 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -454,26 +454,13 @@ public function onAjaxSampledataApplyStep2() array( 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE'), - 'link' => 'index.php?option=com_content&view=category&layout=blog&id=' . $catids[0], - 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'type' => 'heading', + 'link' => '', + 'component_id' => '', 'params' => array( - 'layout_type' => 'blog', - 'show_category_title' => 0, - 'num_leading_articles' => 4, - 'num_intro_articles' => 0, - 'num_links' => 2, - 'orderby_sec' => 'rdate', - 'order_date' => 'published', - 'show_pagination' => 2, - 'show_pagination_results' => 1, - 'show_category' => 0, - 'info_bloc_position' => 0, - 'show_publish_date' => 0, - 'show_hits' => 0, - 'show_feed_link' => 1, - 'menu_text' => 1, - 'show_page_heading' => 0, - 'secure' => 0, + 'menu_text' => 1, + 'show_show' => 1, + 'secure' => 0, ), ), array( @@ -517,8 +504,8 @@ public function onAjaxSampledataApplyStep2() 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'layout_type' => 'blog', - 'blog_class_leading' => 'column-1', - 'blog_class' => 'column-2', + 'blog_class_leading' => '', + 'blog_class' => 'boxed columns-2', 'show_category_title' => 0, 'num_leading_articles' => 1, 'num_intro_articles' => 2, From fc3ab06a2e9749426d83f77876e61c0d71df6f4c Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 26 Aug 2020 17:03:40 +0200 Subject: [PATCH 10/11] Add different lorem texts, make some text featured --- administrator/language/en-GB/plg_sampledata_blog.ini | 6 +++--- plugins/sampledata/blog/blog.php | 10 +++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index b49042920b350..8cd2f20f8a49d 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -25,13 +25,13 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="

Templates control the look and feel of your website.

This blog is installed with the Protostar template.

You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).

For example you can change the site background color, highlights color, site title, site description and title font used.

More options are available in the site administrator. You may also install a new template using the extension manager.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_TITLE="Your Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_FULLTEXT="" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="

Text Article1
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="

Text Article1
This will be a nice documentation on multi column Layouts in J4.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Lorem ipsum1" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

Text Article2
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

Text Article2
Cupcake ipsum dolor. Sit amet cotton candy ice cream sesame snaps cake marshmallow powder. Ice cream chocolate cake marshmallow halvah bonbon. Dragée carrot cake danish candy muffin brownie. Candy sugar plum ice cream chupa chups macaroon tiramisu soufflé oat cake. Topping cheesecake lollipop gummi bears icing sweet roll donut liquorice. Pie jelly-o candy donut oat cake cotton candy.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Lorem ipsum2" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

Text Article3
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

Text Article3
urnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Lorem ipsum3" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index a5c6af73e98e6..f3f2b437b452f 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -265,39 +265,48 @@ public function onAjaxSampledataApplyStep1() $articles = array( array( 'catid' => $catIds[1], + 'featured' => 0, 'ordering' => 2, ), array( 'catid' => $catIds[1], 'ordering' => 1, + 'featured' => 0, 'access' => 3, ), array( 'catid' => $catIds[0], + 'featured' => 1, 'ordering' => 2, ), array( 'catid' => $catIds[0], + 'featured' => 1, 'ordering' => 1, ), array( 'catid' => $catIds[0], + 'featured' => 1, 'ordering' => 0, ), array( 'catid' => $catIds[0], + 'featured' => 0, 'ordering' => 0, ), array( 'catid' => $catIds[2], + 'featured' => 0, 'ordering' => 0, ), array( 'catid' => $catIds[2], + 'featured' => 0, 'ordering' => 0, ), array( 'catid' => $catIds[2], + 'featured' => 0, 'ordering' => 0, ), ); @@ -333,7 +342,6 @@ public function onAjaxSampledataApplyStep1() $article['language'] = $language; $article['associations'] = array(); $article['state'] = 1; - $article['featured'] = 0; $article['images'] = ''; $article['metakey'] = ''; $article['metadesc'] = ''; From b7186a0d39a8fbc84e5b0b2d44f691af130866dd Mon Sep 17 00:00:00 2001 From: chmst Date: Fri, 28 Aug 2020 12:52:29 +0200 Subject: [PATCH 11/11] Fix parent_ids in menu, fix param show_page_heading --- plugins/sampledata/blog/blog.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index f3f2b437b452f..0cce810aa9afe 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -467,7 +467,7 @@ public function onAjaxSampledataApplyStep2() 'component_id' => '', 'params' => array( 'menu_text' => 1, - 'show_show' => 1, + 'show_page_heading' => 1, 'secure' => 0, ), ), @@ -504,7 +504,7 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), - // Blog withm colums + // Blog with 3 columns array( 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), @@ -647,7 +647,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_9_TITLE'), 'link' => 'index.php?option=com_config&view=config', - 'parent_id' => $menuIdsLevel1[0], + 'parent_id' => $menuIdsLevel1[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'access' => 6, 'params' => array( @@ -660,7 +660,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE'), 'link' => 'index.php?option=com_config&view=templates', - 'parent_id' => $menuIdsLevel1[0], + 'parent_id' => $menuIdsLevel1[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'params' => array( 'menu_text' => 1, @@ -691,7 +691,7 @@ public function onAjaxSampledataApplyStep2() 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_text' => 1, - 'show_show' => 1, + 'show_page_heading' => 1, 'secure' => 0, ), ), @@ -704,7 +704,7 @@ public function onAjaxSampledataApplyStep2() 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_text' => 1, - 'show_show' => 1, + 'show_page_heading' => 1, 'secure' => 0, ), ), @@ -718,7 +718,7 @@ public function onAjaxSampledataApplyStep2() 'component_id' => '', 'params' => array( 'menu_text' => 1, - 'show_show' => 1, + 'show_page_heading' => 1, 'secure' => 0, ), ), @@ -997,25 +997,25 @@ public function onAjaxSampledataApplyStep3() 'module_tag' => 'search', ), ), - /** */ array( - // Unbublished module - ToDo decorative and meningful example for a module + // Headder image 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_TITLE'), - 'content' => '

', + 'content' => '

' . Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_TITLE') . '

', 'ordering' => 1, - 'position' => 'main-top', + 'position' => 'none', 'module' => 'mod_custom', 'showtitle' => 0, 'params' => array( 'prepare_content' => 1, - 'layout' => '_:default', + 'backgroundimage' => 'images\/banners\/banner.jpg', + 'layout' => 'cassiopeia:banner', 'cache' => 1, 'cache_time' => 900, 'cachemode' => 'static', 'module_tag' => 'div', 'bootstrap_size' => 0, 'header_tag' => 'h3', - 'style' => 0, + 'style' => 'none', ), ), array(