update - v1.0.1
This commit is contained in:
parent
371e452874
commit
a56e048a5c
@ -21,10 +21,11 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
|
|||||||
* Content - Componentbuilder Component Dashboard Headers Tabs plugin.
|
* Content - Componentbuilder Component Dashboard Headers Tabs plugin.
|
||||||
*
|
*
|
||||||
* @package ComponentbuilderComponentDashboardHeadersTabs
|
* @package ComponentbuilderComponentDashboardHeadersTabs
|
||||||
* @since 1.0.0
|
* @since 1.0.1
|
||||||
*/
|
*/
|
||||||
class PlgContentComponentbuilderComponentDashboardHeadersTabs extends CMSPlugin
|
class PlgContentComponentbuilderComponentDashboardHeadersTabs extends CMSPlugin
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Affects constructor behavior. If true, language files will be loaded automatically.
|
* Affects constructor behavior. If true, language files will be loaded automatically.
|
||||||
*
|
*
|
||||||
@ -47,7 +48,7 @@ class PlgContentComponentbuilderComponentDashboardHeadersTabs extends CMSPlugin
|
|||||||
{
|
{
|
||||||
$context = $form->getName();
|
$context = $form->getName();
|
||||||
|
|
||||||
// When this is componentbuilder admin view
|
// When this is componentbuilder component_dashboard
|
||||||
if (strpos($context, 'com_componentbuilder.component_dashboard') === 0)
|
if (strpos($context, 'com_componentbuilder.component_dashboard') === 0)
|
||||||
{
|
{
|
||||||
// Add the forms path
|
// Add the forms path
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="plugin" version="4" group="content" method="upgrade">
|
<extension type="plugin" version="4" group="content" method="upgrade">
|
||||||
<name>PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS</name>
|
<name>PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS</name>
|
||||||
<creationDate>7th January, 2022</creationDate>
|
<creationDate>10th January, 2022</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://dev.vdm.io</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.1</version>
|
||||||
<description>PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION</description>
|
<description>PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION</description>
|
||||||
|
|
||||||
<!-- Scripts to run on installation -->
|
<!-- Scripts to run on installation -->
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS="Content - Componentbuilder Component Dashboard Headers Tabs"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS="Content - Componentbuilder Component Dashboard Headers Tabs"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_DESCRIPTION="This plugin is used to set component dashboard class custom headers."
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_DESCRIPTION="This plugin is used to set component dashboard class custom headers."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Component Dashboard Headers Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set component dashboard class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 6th December, 2021</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Component Dashboard Headers Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set component dashboard class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 6th December, 2021</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_ADD_DASHBOARD_VIEW_LABEL="Target Dashboard View<br />Default Template Header"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_ADD_DASHBOARD_VIEW_LABEL="Target Dashboard View<br />Default Template Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES="Yes"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES="Yes"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS="Content - Componentbuilder Component Dashboard Headers Tabs"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS="Content - Componentbuilder Component Dashboard Headers Tabs"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_DESCRIPTION="This plugin is used to set component dashboard class custom headers."
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_DESCRIPTION="This plugin is used to set component dashboard class custom headers."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Component Dashboard Headers Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set component dashboard class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 6th December, 2021</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Component Dashboard Headers Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set component dashboard class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 6th December, 2021</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_ADD_DASHBOARD_VIEW_LABEL="Target Dashboard View<br />Default Template Header"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_ADD_DASHBOARD_VIEW_LABEL="Target Dashboard View<br />Default Template Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES="Yes"
|
PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES="Yes"
|
||||||
|
11
script.php
11
script.php
@ -61,8 +61,13 @@ class plgContentComponentbuilderComponentDashboardHeadersTabsInstallerScript
|
|||||||
{
|
{
|
||||||
// get the version
|
// get the version
|
||||||
$jcbVersion = explode('.', $manifest->version);
|
$jcbVersion = explode('.', $manifest->version);
|
||||||
// check that we have JCB 3 or higher installed
|
// check that we have JCB 3.0.5 or higher installed
|
||||||
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3)
|
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3 &&
|
||||||
|
(
|
||||||
|
($jcbVersion[0] == 3 && $jcbVersion[1] == 0 && $jcbVersion[2] >= 5) ||
|
||||||
|
($jcbVersion[0] == 3 && $jcbVersion[1] > 0) ||
|
||||||
|
$jcbVersion[0] > 3)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$blockInstall = false;
|
$blockInstall = false;
|
||||||
}
|
}
|
||||||
@ -70,7 +75,7 @@ class plgContentComponentbuilderComponentDashboardHeadersTabsInstallerScript
|
|||||||
// allow install if all conditions are met
|
// allow install if all conditions are met
|
||||||
if ($blockInstall)
|
if ($blockInstall)
|
||||||
{
|
{
|
||||||
$app->enqueueMessage('Please upgrade to JCB-Pro v3.0.0 or higher before installing this plugin.', 'error');
|
$app->enqueueMessage('Please upgrade to JCB-Pro v3.0.5 or higher before installing this plugin.', 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user