From 29865e11caf6250c24a6201703e17a8c48909dd2 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Thu, 14 Oct 2021 16:31:11 +0200 Subject: [PATCH] update - v1.0.1 --- componentbuildersiteheaderstabs.php | 4 +- componentbuildersiteheaderstabs.xml | 6 +- forms/site_view.xml | 150 +++++++++++++----- ...ontent_componentbuildersiteheaderstabs.ini | 44 +++-- ...nt_componentbuildersiteheaderstabs.sys.ini | 44 +++-- rules/code.php | 2 +- script.php | 8 +- 7 files changed, 174 insertions(+), 84 deletions(-) diff --git a/componentbuildersiteheaderstabs.php b/componentbuildersiteheaderstabs.php index d5da472..567798a 100644 --- a/componentbuildersiteheaderstabs.php +++ b/componentbuildersiteheaderstabs.php @@ -5,7 +5,7 @@ * @created 30th April, 2015 * @author Llewellyn van der Merwe * @github Joomla Component Builder - * @copyright Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ @@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c * Content - Componentbuilder Site Headers Tabs plugin. * * @package ComponentbuilderSiteHeadersTabs - * @since 1.0.0 + * @since 1.0.1 */ class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin { diff --git a/componentbuildersiteheaderstabs.xml b/componentbuildersiteheaderstabs.xml index fd367e7..016ca75 100644 --- a/componentbuildersiteheaderstabs.xml +++ b/componentbuildersiteheaderstabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS - 8th December, 2020 + 20th February, 2021 Llewellyn van der Merwe llewellyn@joomlacomponentbuilder.com http://www.joomlacomponentbuilder.com - Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 1.0.0 + 1.0.1 PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION diff --git a/forms/site_view.xml b/forms/site_view.xml index c64528b..4398c7e 100644 --- a/forms/site_view.xml +++ b/forms/site_view.xml @@ -8,39 +8,6 @@ addfieldpath="/plugins/content/componentbuildersiteheaderstabs/fields" > - - - - - - - - - + @@ -89,12 +56,12 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini index e453a3f..1354a67 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini @@ -1,30 +1,42 @@ PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Site Headers Tabs (v.1.0.0)

This plugin is used to set site class custom headers.

Created by Llewellyn van der Merwe
Development started 8th December, 2020

" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Site Headers Tabs (v.1.0.1)

This plugin is used to set site class custom headers.

Created by Llewellyn van der Merwe
Development started 8th December, 2020

" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View
Controller Header" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header
-(site.view.controller)
-getItem" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View
Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header
(site.view.model)
getItem" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a getItem as your Main Get." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views
Controller Header" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header
-(site.views.controller)
-getListQuery" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_LABEL="Target Site View
Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_DESCRIPTION="Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_LABEL="Class Header
+(site.view)
+getItem" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_DESCRIPTION="The class header for site view. Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header
+(site.view.controller)
+getItem" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views
Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header
(site.views.model)
getListQuery" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a getListQuery as your Main Get." \ No newline at end of file +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_LABEL="Target Site Views
Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_LABEL="Class Header
+(site.views)
+getListQuery" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_DESCRIPTION="The class header for site views. Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views
Controller Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header
+(site.views.controller)
+getListQuery" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." \ No newline at end of file diff --git a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini index e453a3f..1354a67 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini @@ -1,30 +1,42 @@ PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Site Headers Tabs (v.1.0.0)

This plugin is used to set site class custom headers.

Created by Llewellyn van der Merwe
Development started 8th December, 2020

" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Site Headers Tabs (v.1.0.1)

This plugin is used to set site class custom headers.

Created by Llewellyn van der Merwe
Development started 8th December, 2020

" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View
Controller Header" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header
-(site.view.controller)
-getItem" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View
Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header
(site.view.model)
getItem" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a getItem as your Main Get." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views
Controller Header" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header
-(site.views.controller)
-getListQuery" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_LABEL="Target Site View
Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_DESCRIPTION="Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_LABEL="Class Header
+(site.view)
+getItem" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_DESCRIPTION="The class header for site view. Only use this option if you have a getItem as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header
+(site.view.controller)
+getItem" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a getItem as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views
Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header
(site.views.model)
getListQuery" -PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a getListQuery as your Main Get." \ No newline at end of file +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_LABEL="Target Site Views
Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_LABEL="Class Header
+(site.views)
+getListQuery" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_DESCRIPTION="The class header for site views. Only use this option if you have a getListQuery as your Main Get." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views
Controller Header" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header
+(site.views.controller)
+getListQuery" +PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a getListQuery as your Main Get, and have custom code in the PHP (controller methods) under the Custom Buttons tab." \ No newline at end of file diff --git a/rules/code.php b/rules/code.php index 0f97f97..24935da 100644 --- a/rules/code.php +++ b/rules/code.php @@ -5,7 +5,7 @@ * @created 30th April, 2015 * @author Llewellyn van der Merwe * @github Joomla Component Builder - * @copyright Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ diff --git a/script.php b/script.php index d812af3..81a1bfe 100644 --- a/script.php +++ b/script.php @@ -5,7 +5,7 @@ * @created 30th April, 2015 * @author Llewellyn van der Merwe * @github Joomla Component Builder - * @copyright Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ @@ -60,8 +60,8 @@ class plgContentComponentbuilderSiteHeadersTabsInstallerScript { // get the version $jcbVersion = explode('.', $manifest->version); - // check that we have JCB 2.11.7 or higher installed - if (count($jcbVersion) == 3 && $jcbVersion[0] >= 2 && $jcbVersion[1] >= 11 && (($jcbVersion[1] == 11 && $jcbVersion[2] >= 7) || ($jcbVersion[1] > 11))) + // check that we have JCB 2.12.6 or higher installed + if (count($jcbVersion) == 3 && $jcbVersion[0] >= 2 && (($jcbVersion[1] == 12 && $jcbVersion[2] >= 6) || $jcbVersion[1] > 12)) { $blockInstall = false; } @@ -69,7 +69,7 @@ class plgContentComponentbuilderSiteHeadersTabsInstallerScript // allow install if all conditions are met if ($blockInstall) { - $app->enqueueMessage('Please upgrade to JCB 2.12.1 or higher before installing this plugin.', 'error'); + $app->enqueueMessage('Please upgrade to JCB 2.12.6 or higher before installing this plugin.', 'error'); return false; } }