From 199b3fde0a59271411896c1b857d0b06932020ca Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Mon, 9 May 2022 14:26:07 +0200 Subject: [PATCH] update --- componentbuildercomponentheaderstabs.xml | 6 +-- fields/powers.php | 12 +++--- forms/joomla_component.xml | 42 +++++++++---------- ...t_componentbuildercomponentheaderstabs.ini | 40 +++++++++--------- ...mponentbuildercomponentheaderstabs.sys.ini | 40 +++++++++--------- 5 files changed, 70 insertions(+), 70 deletions(-) diff --git a/componentbuildercomponentheaderstabs.xml b/componentbuildercomponentheaderstabs.xml index 5f802a3..743ee42 100644 --- a/componentbuildercomponentheaderstabs.xml +++ b/componentbuildercomponentheaderstabs.xml @@ -1,14 +1,14 @@ - PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS - 10th March, 2022 + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS + 9th May, 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.2 - PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_XML_DESCRIPTION script.php diff --git a/fields/powers.php b/fields/powers.php index 9e362c6..37c857a 100644 --- a/fields/powers.php +++ b/fields/powers.php @@ -82,7 +82,7 @@ class JFormFieldPowers extends JFormFieldList if ($user->authorise('power.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build Create button - $button[] = ' '; } @@ -90,7 +90,7 @@ class JFormFieldPowers extends JFormFieldList if ($user->authorise('power.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build edit button - $button[] = ''; // build script $script[] = " @@ -144,7 +144,7 @@ class JFormFieldPowers extends JFormFieldList // Get the databse object. $db = JFactory::getDBO(); $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.system_name','a.name','a.type','a.power_version'),array('id','power_admin_component_system_name','name','type','version'))); + $query->select($db->quoteName(array('a.guid','a.system_name','a.name','a.type','a.power_version'),array('guid','power_admin_component_system_name','name','type','version'))); $query->from($db->quoteName('#__componentbuilder_power', 'a')); $query->where($db->quoteName('a.published') . ' >= 1'); $query->order('a.system_name ASC'); @@ -165,17 +165,17 @@ class JFormFieldPowers extends JFormFieldList // if none was found, we add this to set an alternative to set custom if (!$items) { - $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND')); + $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND')); } if ($items) { if ($this->multiple === false) { - $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION')); + $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION')); } foreach($items as $item) { - $options[] = JHtml::_('select.option', $item->id, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')'); + $options[] = JHtml::_('select.option', $item->guid, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')'); } } return $options; diff --git a/forms/joomla_component.xml b/forms/joomla_component.xml index d15b1e9..f6b925a 100644 --- a/forms/joomla_component.xml +++ b/forms/joomla_component.xml @@ -3,7 +3,7 @@
-
@@ -12,21 +12,21 @@ + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NO (admin.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND="None found" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION="Select an option" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_COMPONENT_LABEL="Site Component
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_COMPONENT_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND="None found" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION="Select an option" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_COMPONENT_LABEL="Site Component
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_COMPONENT_LABEL="Header
(site.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_COMPONENT_LABEL="Powers Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_COMPONENT_LABEL="Powers Header
(site.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_HELPER_LABEL="Admin Helper
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_HELPER_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_HELPER_LABEL="Admin Helper
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_HELPER_LABEL="Header
(admin.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_HELPER_LABEL="Power Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_HELPER_LABEL="Power Header
(admin.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_HELPER_LABEL="Site Helper
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_HELPER_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_HELPER_LABEL="Site Helper
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_HELPER_LABEL="Header
(site.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_HELPER_LABEL="Power Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_HELPER_LABEL="Power Header
(site.helper)" \ No newline at end of file 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 88e4ef7..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,28 +1,28 @@ -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS="Content - Componentbuilder Component Headers Tabs" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_DESCRIPTION="This plugin is used to set component class custom headers." -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_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_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_CLASS_HEADERS="Class Headers" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_COMPONENT_LABEL="Admin Component
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_YES="Yes" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_NO="No" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_COMPONENT_LABEL="Header
+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.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" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NO="No" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_COMPONENT_LABEL="Header
(admin.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_COMPONENT_LABEL="Power Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_COMPONENT_LABEL="Power Header
(admin.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND="None found" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION="Select an option" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_COMPONENT_LABEL="Site Component
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_COMPONENT_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND="None found" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION="Select an option" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_COMPONENT_LABEL="Site Component
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_COMPONENT_LABEL="Header
(site.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_COMPONENT_LABEL="Powers Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_COMPONENT_LABEL="Powers Header
(site.component)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_HELPER_LABEL="Admin Helper
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_HELPER_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_ADMIN_HELPER_LABEL="Admin Helper
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADMIN_HELPER_LABEL="Header
(admin.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_HELPER_LABEL="Power Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_ADMIN_HELPER_LABEL="Power Header
(admin.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_HELPER_LABEL="Site Helper
Header" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_HELPER_LABEL="Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_ADD_SITE_HELPER_LABEL="Site Helper
Header" +PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SITE_HELPER_LABEL="Header
(site.helper)" -PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_HELPER_LABEL="Power Header
+PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_POWER_SITE_HELPER_LABEL="Power Header
(site.helper)" \ No newline at end of file