From 4f5bd64befb4541233664f3a4485d6da67ba16e0 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Thu, 16 Dec 2021 15:15:01 +0200 Subject: [PATCH] update - v1.0.0 --- componentbuilderfieldorderingtabs.php | 16 ++-- componentbuilderfieldorderingtabs.xml | 8 +- fields/adminlistvieworderfields.php | 78 +++++++++---------- fields/linkedviewsorderfields.php | 78 +++++++++---------- ...tent_componentbuilderfieldorderingtabs.ini | 2 +- ..._componentbuilderfieldorderingtabs.sys.ini | 2 +- script.php | 20 ++--- 7 files changed, 102 insertions(+), 102 deletions(-) diff --git a/componentbuilderfieldorderingtabs.php b/componentbuilderfieldorderingtabs.php index 872232d..45f6f76 100644 --- a/componentbuilderfieldorderingtabs.php +++ b/componentbuilderfieldorderingtabs.php @@ -1,12 +1,12 @@ - * @github Joomla Component Builder - * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @git Joomla Component Builder + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access to this file diff --git a/componentbuilderfieldorderingtabs.xml b/componentbuilderfieldorderingtabs.xml index a49fa52..4618181 100644 --- a/componentbuilderfieldorderingtabs.xml +++ b/componentbuilderfieldorderingtabs.xml @@ -1,10 +1,10 @@ - + PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS - 20th February, 2021 + 16th December, 2021 Llewellyn van der Merwe - llewellyn@joomlacomponentbuilder.com - http://www.joomlacomponentbuilder.com + 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.0 diff --git a/fields/adminlistvieworderfields.php b/fields/adminlistvieworderfields.php index 18b6e20..42d8bdb 100644 --- a/fields/adminlistvieworderfields.php +++ b/fields/adminlistvieworderfields.php @@ -1,40 +1,40 @@ - * @github Joomla Component Builder - * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt - */ - -// No direct access to this file -defined('_JEXEC') or die('Restricted access'); - -// import the list field type -jimport('joomla.form.helper'); -JFormHelper::loadFieldClass('list'); - -/** - * Adminlistvieworderfields Form Field class for the Componentbuilder component - */ -class JFormFieldAdminlistvieworderfields extends JFormFieldList -{ - /** - * The adminlistvieworderfields field type. - * - * @var string - */ - public $type = 'adminlistvieworderfields'; - - /** - * Method to get a list of options for a list input. - * - * @return array An array of JHtml options. - */ - protected function getOptions() - { +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @git Joomla Component Builder + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Adminlistvieworderfields Form Field class for the Componentbuilder component + */ +class JFormFieldAdminlistvieworderfields extends JFormFieldList +{ + /** + * The adminlistvieworderfields field type. + * + * @var string + */ + public $type = 'adminlistvieworderfields'; + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + protected function getOptions() + { // load the db object $db = JFactory::getDBO(); // get the input from url @@ -127,6 +127,6 @@ class JFormFieldAdminlistvieworderfields extends JFormFieldList return $options; } } - return false; - } -} + return false; + } +} diff --git a/fields/linkedviewsorderfields.php b/fields/linkedviewsorderfields.php index 599544f..9f1f53c 100644 --- a/fields/linkedviewsorderfields.php +++ b/fields/linkedviewsorderfields.php @@ -1,40 +1,40 @@ - * @github Joomla Component Builder - * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt - */ - -// No direct access to this file -defined('_JEXEC') or die('Restricted access'); - -// import the list field type -jimport('joomla.form.helper'); -JFormHelper::loadFieldClass('list'); - -/** - * Linkedviewsorderfields Form Field class for the Componentbuilder component - */ -class JFormFieldLinkedviewsorderfields extends JFormFieldList -{ - /** - * The linkedviewsorderfields field type. - * - * @var string - */ - public $type = 'linkedviewsorderfields'; - - /** - * Method to get a list of options for a list input. - * - * @return array An array of JHtml options. - */ - protected function getOptions() - { +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @git Joomla Component Builder + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Linkedviewsorderfields Form Field class for the Componentbuilder component + */ +class JFormFieldLinkedviewsorderfields extends JFormFieldList +{ + /** + * The linkedviewsorderfields field type. + * + * @var string + */ + public $type = 'linkedviewsorderfields'; + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + protected function getOptions() + { // load the db object $db = JFactory::getDBO(); // get the input from url @@ -94,6 +94,6 @@ class JFormFieldLinkedviewsorderfields extends JFormFieldList return $options; } } - return false; - } -} + return false; + } +} diff --git a/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.ini b/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.ini index 6711a01..3361c0e 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS="Content - Componentbuilder Field Ordering Tabs" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_DESCRIPTION="This plugin is used to set custom ordering to fields in the JCB list views." -PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="

Content - Componentbuilder Field Ordering Tabs (v.1.0.0)

This plugin is used to set custom ordering to fields in the JCB list views.

Created by Llewellyn van der Merwe
Development started 20th May, 2020

" +PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="

Content - Componentbuilder Field Ordering Tabs (v.1.0.0)

This plugin is used to set custom ordering to fields in the JCB list views.

Created by Llewellyn van der Merwe
Development started 20th May, 2020

" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_FIELD_ORDERING="Field Ordering" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_LABEL="Add Admin List View Ordering" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_DESCRIPTION="Select the ordering behavior, default is by id, and custom lets you select." diff --git a/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.sys.ini b/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.sys.ini index 6711a01..3361c0e 100644 --- a/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.sys.ini +++ b/language/en-GB/en-GB.plg_content_componentbuilderfieldorderingtabs.sys.ini @@ -1,6 +1,6 @@ PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS="Content - Componentbuilder Field Ordering Tabs" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_DESCRIPTION="This plugin is used to set custom ordering to fields in the JCB list views." -PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="

Content - Componentbuilder Field Ordering Tabs (v.1.0.0)

This plugin is used to set custom ordering to fields in the JCB list views.

Created by Llewellyn van der Merwe
Development started 20th May, 2020

" +PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="

Content - Componentbuilder Field Ordering Tabs (v.1.0.0)

This plugin is used to set custom ordering to fields in the JCB list views.

Created by Llewellyn van der Merwe
Development started 20th May, 2020

" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_FIELD_ORDERING="Field Ordering" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_LABEL="Add Admin List View Ordering" PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_DESCRIPTION="Select the ordering behavior, default is by id, and custom lets you select." diff --git a/script.php b/script.php index 11cf63f..d7899e7 100644 --- a/script.php +++ b/script.php @@ -1,12 +1,12 @@ - * @github Joomla Component Builder - * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @git Joomla Component Builder + * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access to this file @@ -47,7 +47,7 @@ class plgContentComponentbuilderFieldOrderingTabsInstallerScript $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 @@ -61,7 +61,7 @@ class plgContentComponentbuilderFieldOrderingTabsInstallerScript // get the version $jcbVersion = explode('.', $manifest->version); // check that we have JCB 2.11.1 or higher installed - if (count($jcbVersion) == 3 && $jcbVersion[0] >= 2 && $jcbVersion[1] >= 11 && (($jcbVersion[1] == 11 && $jcbVersion[2] >= 1) || ($jcbVersion[1] > 11))) + if (count($jcbVersion) == 3 && (($jcbVersion[0] == 2 && $jcbVersion[1] >= 11 && (($jcbVersion[1] == 11 && $jcbVersion[2] >= 1) || ($jcbVersion[1] > 11))) || $jcbVersion[0] >= 3)) { $blockInstall = false; }