diff --git a/componentbuildersiteheaderstabs.php b/componentbuildersiteheaderstabs.php index 768806c..d23c399 100644 --- a/componentbuildersiteheaderstabs.php +++ b/componentbuildersiteheaderstabs.php @@ -21,10 +21,11 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c * Content - Componentbuilder Site Headers Tabs plugin. * * @package ComponentbuilderSiteHeadersTabs - * @since 1.0.3 + * @since 1.0.4 */ class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin { + /** * Affects constructor behavior. If true, language files will be loaded automatically. * @@ -47,7 +48,7 @@ class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin { $context = $form->getName(); - // When this is componentbuilder site view + // When this is componentbuilder site_view if (strpos($context, 'com_componentbuilder.site_view') === 0) { // Add the forms path diff --git a/componentbuildersiteheaderstabs.xml b/componentbuildersiteheaderstabs.xml index 1f5e40b..2c7df31 100644 --- a/componentbuildersiteheaderstabs.xml +++ b/componentbuildersiteheaderstabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS - 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.3 + 1.0.4 PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION diff --git a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini index ff461f9..e6adec8 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.ini @@ -1,6 +1,6 @@ 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.3)

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.4)

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_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." 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 ff461f9..e6adec8 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildersiteheaderstabs.sys.ini @@ -1,6 +1,6 @@ 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.3)

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.4)

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_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." diff --git a/script.php b/script.php index d527f05..26aed05 100644 --- a/script.php +++ b/script.php @@ -61,8 +61,13 @@ class plgContentComponentbuilderSiteHeadersTabsInstallerScript { // 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 plgContentComponentbuilderSiteHeadersTabsInstallerScript // 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; } }