update - v1.0.0
This commit is contained in:
parent
7f1e4b976e
commit
4f5bd64bef
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 30th April, 2015
|
||||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder-Pro>
|
||||||
* @copyright Copyright (C) 2015 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
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="plugin" version="3.8" group="content" method="upgrade">
|
<extension type="plugin" version="4" group="content" method="upgrade">
|
||||||
<name>PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS</name>
|
<name>PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS</name>
|
||||||
<creationDate>20th February, 2021</creationDate>
|
<creationDate>16th December, 2021</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 30th April, 2015
|
||||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder-Pro>
|
||||||
* @copyright Copyright (C) 2015 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
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the list field type
|
// import the list field type
|
||||||
jimport('joomla.form.helper');
|
jimport('joomla.form.helper');
|
||||||
JFormHelper::loadFieldClass('list');
|
JFormHelper::loadFieldClass('list');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adminlistvieworderfields Form Field class for the Componentbuilder component
|
* Adminlistvieworderfields Form Field class for the Componentbuilder component
|
||||||
*/
|
*/
|
||||||
class JFormFieldAdminlistvieworderfields extends JFormFieldList
|
class JFormFieldAdminlistvieworderfields extends JFormFieldList
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The adminlistvieworderfields field type.
|
* The adminlistvieworderfields field type.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $type = 'adminlistvieworderfields';
|
public $type = 'adminlistvieworderfields';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a list of options for a list input.
|
* Method to get a list of options for a list input.
|
||||||
*
|
*
|
||||||
* @return array An array of JHtml options.
|
* @return array An array of JHtml options.
|
||||||
*/
|
*/
|
||||||
protected function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
// load the db object
|
// load the db object
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
// get the input from url
|
// get the input from url
|
||||||
@ -127,6 +127,6 @@ class JFormFieldAdminlistvieworderfields extends JFormFieldList
|
|||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 30th April, 2015
|
||||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder-Pro>
|
||||||
* @copyright Copyright (C) 2015 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
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// import the list field type
|
// import the list field type
|
||||||
jimport('joomla.form.helper');
|
jimport('joomla.form.helper');
|
||||||
JFormHelper::loadFieldClass('list');
|
JFormHelper::loadFieldClass('list');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Linkedviewsorderfields Form Field class for the Componentbuilder component
|
* Linkedviewsorderfields Form Field class for the Componentbuilder component
|
||||||
*/
|
*/
|
||||||
class JFormFieldLinkedviewsorderfields extends JFormFieldList
|
class JFormFieldLinkedviewsorderfields extends JFormFieldList
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The linkedviewsorderfields field type.
|
* The linkedviewsorderfields field type.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $type = 'linkedviewsorderfields';
|
public $type = 'linkedviewsorderfields';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a list of options for a list input.
|
* Method to get a list of options for a list input.
|
||||||
*
|
*
|
||||||
* @return array An array of JHtml options.
|
* @return array An array of JHtml options.
|
||||||
*/
|
*/
|
||||||
protected function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
// load the db object
|
// load the db object
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
// get the input from url
|
// get the input from url
|
||||||
@ -94,6 +94,6 @@ class JFormFieldLinkedviewsorderfields extends JFormFieldList
|
|||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS="Content - Componentbuilder Field Ordering Tabs"
|
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_DESCRIPTION="This plugin is used to set custom ordering to fields in the JCB list views."
|
||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Field Ordering Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom ordering to fields in the JCB list views.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 20th May, 2020</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Field Ordering Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom ordering to fields in the JCB list views.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 20th May, 2020</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_FIELD_ORDERING="Field Ordering"
|
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_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."
|
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_DESCRIPTION="Select the ordering behavior, default is by id, and custom lets you select."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS="Content - Componentbuilder Field Ordering Tabs"
|
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_DESCRIPTION="This plugin is used to set custom ordering to fields in the JCB list views."
|
||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Field Ordering Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom ordering to fields in the JCB list views.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 20th May, 2020</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Field Ordering Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom ordering to fields in the JCB list views.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 20th May, 2020</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_FIELD_ORDERING="Field Ordering"
|
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_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."
|
PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ADD_ADMIN_ORDERING_DESCRIPTION="Select the ordering behavior, default is by id, and custom lets you select."
|
||||||
|
20
script.php
20
script.php
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 30th April, 2015
|
||||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder-Pro>
|
||||||
* @copyright Copyright (C) 2015 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
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
@ -47,7 +47,7 @@ class plgContentComponentbuilderFieldOrderingTabsInstallerScript
|
|||||||
$pathToCore = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php';
|
$pathToCore = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php';
|
||||||
if (!JFile::exists($pathToCore))
|
if (!JFile::exists($pathToCore))
|
||||||
{
|
{
|
||||||
$app->enqueueMessage('Joomla Component Builder must first be installed from <a href="https://www.joomlacomponentbuilder.com/ " target="_blank">Joomla Component Builder</a>.', 'error');
|
$app->enqueueMessage('JCB must first be installed from <a href="https://git.vdm.dev/joomla/Component-Builder-Pro/" target="_blank">Joomla Component Builder</a>.', 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// load the helper class
|
// load the helper class
|
||||||
@ -61,7 +61,7 @@ class plgContentComponentbuilderFieldOrderingTabsInstallerScript
|
|||||||
// get the version
|
// get the version
|
||||||
$jcbVersion = explode('.', $manifest->version);
|
$jcbVersion = explode('.', $manifest->version);
|
||||||
// check that we have JCB 2.11.1 or higher installed
|
// 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;
|
$blockInstall = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user