From 335d4b68d05a9fc67c8bf222359995a3438d4e62 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Wed, 8 Dec 2021 22:41:36 +0200 Subject: [PATCH] update - v1.0.3 --- componentbuildercustomadminheaderstabs.php | 2 +- componentbuildercustomadminheaderstabs.xml | 4 +- forms/custom_admin_view.xml | 44 +++++++++++++++++++ ...componentbuildercustomadminheaderstabs.ini | 11 ++++- ...onentbuildercustomadminheaderstabs.sys.ini | 11 ++++- script.php | 9 ++-- 6 files changed, 70 insertions(+), 11 deletions(-) diff --git a/componentbuildercustomadminheaderstabs.php b/componentbuildercustomadminheaderstabs.php index eb133bb..6d30536 100644 --- a/componentbuildercustomadminheaderstabs.php +++ b/componentbuildercustomadminheaderstabs.php @@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c * Content - Componentbuilder Custom Admin Headers Tabs plugin. * * @package ComponentbuilderCustomAdminHeadersTabs - * @since 1.0.2 + * @since 1.0.3 */ class PlgContentComponentbuilderCustomAdminHeadersTabs extends CMSPlugin { diff --git a/componentbuildercustomadminheaderstabs.xml b/componentbuildercustomadminheaderstabs.xml index dfbf350..30d7143 100644 --- a/componentbuildercustomadminheaderstabs.xml +++ b/componentbuildercustomadminheaderstabs.xml @@ -1,13 +1,13 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS - 3rd December, 2021 + 8th December, 2021 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.2 + 1.0.3 PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION diff --git a/forms/custom_admin_view.xml b/forms/custom_admin_view.xml index b0ce4da..baca7a8 100644 --- a/forms/custom_admin_view.xml +++ b/forms/custom_admin_view.xml @@ -376,6 +376,50 @@ showon="add_custom_admin_views_controller:1" button="true" /> + + + + + + + + + + diff --git a/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.ini b/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.ini index d48254e..7aab11b 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers." -PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.2)

This plugin is used to set custom admin class custom headers.

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

" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.3)

This plugin is used to set custom admin class custom headers.

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

" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a getItem as your Main Get." @@ -83,4 +83,11 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEWS_CONTROLLER PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_LABEL="Power Header
(custom.admin.views.controller)
getListQuery" -PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for custom admin 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 +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for custom admin 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_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_AJAX_MODEL_LABEL="Target Ajax Model
Class Header" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AJAX_MODEL_LABEL="Class Header
+(ajax.model)" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AJAX_MODEL_DESCRIPTION="The class header for Ajax model." +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL="Power Header
+(ajax.model)" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION="The power header for Ajax model." \ No newline at end of file diff --git a/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.sys.ini index d48254e..7aab11b 100644 --- a/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuildercustomadminheaderstabs.sys.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers." -PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.2)

This plugin is used to set custom admin class custom headers.

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

" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="

Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.3)

This plugin is used to set custom admin class custom headers.

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

" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View
Model Header" PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a getItem as your Main Get." @@ -83,4 +83,11 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEWS_CONTROLLER PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_LABEL="Power Header
(custom.admin.views.controller)
getListQuery" -PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for custom admin 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 +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for custom admin 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_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_AJAX_MODEL_LABEL="Target Ajax Model
Class Header" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AJAX_MODEL_LABEL="Class Header
+(ajax.model)" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AJAX_MODEL_DESCRIPTION="The class header for Ajax model." +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL="Power Header
+(ajax.model)" +PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION="The power header for Ajax model." \ No newline at end of file diff --git a/script.php b/script.php index dcd7d60..243d171 100644 --- a/script.php +++ b/script.php @@ -43,11 +43,12 @@ class plgContentComponentbuilderCustomAdminHeadersTabsInstallerScript if ('install' === $route) { + // check that componentbuilder is installed $pathToCore = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php'; if (!JFile::exists($pathToCore)) { - $app->enqueueMessage('Joomla Component Builder must first be installed from Joomla Component Builder.', 'error'); + $app->enqueueMessage('JCB must first be installed from Joomla Component Builder.', 'error'); return false; } // load the helper class @@ -60,8 +61,8 @@ class plgContentComponentbuilderCustomAdminHeadersTabsInstallerScript { // get the version $jcbVersion = explode('.', $manifest->version); - // 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))) || $jcbVersion[0] >= 3)) + // check that we have JCB 3 or higher installed + if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3) { $blockInstall = false; } @@ -69,7 +70,7 @@ class plgContentComponentbuilderCustomAdminHeadersTabsInstallerScript // allow install if all conditions are met if ($blockInstall) { - $app->enqueueMessage('Please upgrade to JCB 2.12.6 or higher before installing this plugin.', 'error'); + $app->enqueueMessage('Please upgrade to JCB-Pro v3.0.0 or higher before installing this plugin.', 'error'); return false; } }