From 075d9ee49ce82541805feb5d949acaad6c058efc Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Mon, 10 Jan 2022 16:10:56 +0200 Subject: [PATCH] update - v1.0.2 --- componentbuildercomponentheaderstabs.php | 5 +++-- componentbuildercomponentheaderstabs.xml | 4 ++-- ...g_content_componentbuildercomponentheaderstabs.ini | 2 +- ...ntent_componentbuildercomponentheaderstabs.sys.ini | 2 +- script.php | 11 ++++++++--- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/componentbuildercomponentheaderstabs.php b/componentbuildercomponentheaderstabs.php index 1602459..cde4f2f 100644 --- a/componentbuildercomponentheaderstabs.php +++ b/componentbuildercomponentheaderstabs.php @@ -21,10 +21,11 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c * Content - Componentbuilder Component Headers Tabs plugin. * * @package ComponentbuilderComponentHeadersTabs - * @since 1.0.1 + * @since 1.0.2 */ class PlgContentComponentbuilderComponentHeadersTabs extends CMSPlugin { + /** * Affects constructor behavior. If true, language files will be loaded automatically. * @@ -47,7 +48,7 @@ class PlgContentComponentbuilderComponentHeadersTabs extends CMSPlugin { $context = $form->getName(); - // When this is componentbuilder joomla component + // When this is componentbuilder joomla_component if (strpos($context, 'com_componentbuilder.joomla_component') === 0) { // Add the forms path diff --git a/componentbuildercomponentheaderstabs.xml b/componentbuildercomponentheaderstabs.xml index 4fbbb76..22643ba 100644 --- a/componentbuildercomponentheaderstabs.xml +++ b/componentbuildercomponentheaderstabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS - 7th January, 2022 + 10th January, 2022 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 1.0.1 + 1.0.2 PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION diff --git a/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.ini b/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.ini index 36a5f64..39abb49 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS="Content - Componentbuilder Component Headers Tabs" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_DESCRIPTION="This plugin is used to set component class custom headers." -PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Component Headers Tabs (v.1.0.1)

This plugin is used to set component class custom headers.

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

" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Component Headers Tabs (v.1.0.2)

This plugin is used to set component class custom headers.

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

" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_COMPONENT_LABEL="Admin Component
Header" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES="Yes" diff --git a/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.sys.ini index 36a5f64..39abb49 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildercomponentheaderstabs.sys.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS="Content - Componentbuilder Component Headers Tabs" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_DESCRIPTION="This plugin is used to set component class custom headers." -PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Component Headers Tabs (v.1.0.1)

This plugin is used to set component class custom headers.

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

" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Component Headers Tabs (v.1.0.2)

This plugin is used to set component class custom headers.

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

" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_COMPONENT_LABEL="Admin Component
Header" PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES="Yes" diff --git a/script.php b/script.php index 48b6a14..ba63a5f 100644 --- a/script.php +++ b/script.php @@ -61,8 +61,13 @@ class plgContentComponentbuilderComponentHeadersTabsInstallerScript { // get the version $jcbVersion = explode('.', $manifest->version); - // check that we have JCB 3 or higher installed - if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3) + // check that we have JCB 3.0.5 or higher installed + if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3 && + ( + ($jcbVersion[0] == 3 && $jcbVersion[1] == 0 && $jcbVersion[2] >= 5) || + ($jcbVersion[0] == 3 && $jcbVersion[1] > 0) || + $jcbVersion[0] > 3) + ) { $blockInstall = false; } @@ -70,7 +75,7 @@ class plgContentComponentbuilderComponentHeadersTabsInstallerScript // allow install if all conditions are met if ($blockInstall) { - $app->enqueueMessage('Please upgrade to JCB-Pro v3.0.0 or higher before installing this plugin.', 'error'); + $app->enqueueMessage('Please upgrade to JCB-Pro v3.0.5 or higher before installing this plugin.', 'error'); return false; } }