diff --git a/componentbuilderadminheaderstabs.php b/componentbuilderadminheaderstabs.php index 6ffe6fe..e57c89c 100644 --- a/componentbuilderadminheaderstabs.php +++ b/componentbuilderadminheaderstabs.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 Admin Headers Tabs plugin. * * @package ComponentbuilderAdminHeadersTabs - * @since 1.0.0 + * @since 1.0.1 */ class PlgContentComponentbuilderAdminHeadersTabs extends CMSPlugin { diff --git a/componentbuilderadminheaderstabs.xml b/componentbuilderadminheaderstabs.xml index c67a955..cabc980 100644 --- a/componentbuilderadminheaderstabs.xml +++ b/componentbuilderadminheaderstabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS - 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_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION diff --git a/forms/admin_view.xml b/forms/admin_view.xml index b8159b3..83a17a8 100644 --- a/forms/admin_view.xml +++ b/forms/admin_view.xml @@ -8,38 +8,6 @@ addfieldpath="/plugins/content/componentbuilderadminheaderstabs/fields" > - - - - - - - - - + @@ -86,12 +54,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.ini b/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.ini index d9fd701..68a7345 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.ini @@ -1,22 +1,38 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_DESCRIPTION="This plugin is used to set admin class custom headers." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Admin Headers Tabs (v.1.0.0)

This plugin is used to set admin class custom headers.

Created by Llewellyn van der Merwe
Development started 27th October, 2020

" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Admin Headers Tabs (v.1.0.1)

This plugin is used to set admin class custom headers.

Created by Llewellyn van der Merwe
Development started 27th October, 2020

" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_NO="No" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header
-(admin.view.controller)" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header
(admin.view.model)" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Class Header
+(admin.view)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The class header for admin view." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header
+(admin.view.controller)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views
Model Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header
+(admin.views.model)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Class Header
+(admin.views)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The class header for admin views." PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views
Controller Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header
(admin.views.controller)" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views
Model Header" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header
-(admin.views.model)" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model." \ No newline at end of file +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View
Model Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header
+(site.admin.view.model)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_LABEL="Target Site Admin View
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Class Header
+(site.admin.view)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The class header for site admin view. So only use this if you have selected the admin edit view to be added to the site area." \ No newline at end of file diff --git a/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.sys.ini index d9fd701..68a7345 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderadminheaderstabs.sys.ini @@ -1,22 +1,38 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_DESCRIPTION="This plugin is used to set admin class custom headers." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Admin Headers Tabs (v.1.0.0)

This plugin is used to set admin class custom headers.

Created by Llewellyn van der Merwe
Development started 27th October, 2020

" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Admin Headers Tabs (v.1.0.1)

This plugin is used to set admin class custom headers.

Created by Llewellyn van der Merwe
Development started 27th October, 2020

" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_NO="No" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header
-(admin.view.controller)" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header
(admin.view.model)" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Class Header
+(admin.view)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The class header for admin view." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View
Controller Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header
+(admin.view.controller)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views
Model Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header
+(admin.views.model)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Class Header
+(admin.views)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The class header for admin views." PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views
Controller Header" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header
(admin.views.controller)" PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller." -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views
Model Header" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header
-(admin.views.model)" -PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model." \ No newline at end of file +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View
Model Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header
+(site.admin.view.model)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area." +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_LABEL="Target Site Admin View
Header" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Class Header
+(site.admin.view)" +PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The class header for site admin view. So only use this if you have selected the admin edit view to be added to the site area." \ 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 1bb285b..7d40f47 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 plgContentComponentbuilderAdminHeadersTabsInstallerScript { // 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 plgContentComponentbuilderAdminHeadersTabsInstallerScript // 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; } }