update - v1.0.3
This commit is contained in:
parent
f80ef9e907
commit
83a560946d
@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
|
||||
* Content - Componentbuilder Admin Headers Tabs plugin.
|
||||
*
|
||||
* @package ComponentbuilderAdminHeadersTabs
|
||||
* @since 1.0.2
|
||||
* @since 1.0.3
|
||||
*/
|
||||
class PlgContentComponentbuilderAdminHeadersTabs extends CMSPlugin
|
||||
{
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="plugin" version="4" group="content" method="upgrade">
|
||||
<name>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS</name>
|
||||
<creationDate>3rd December, 2021</creationDate>
|
||||
<creationDate>8th December, 2021</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
<description>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION</description>
|
||||
|
||||
<!-- Scripts to run on installation -->
|
||||
|
@ -501,6 +501,50 @@
|
||||
showon="add_site_admin_view:1"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Add_ajax_model Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_ajax_model"
|
||||
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_AJAX_MODEL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES</option>
|
||||
<option value="0">
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_NO</option>
|
||||
</field>
|
||||
<!-- Ajax_model Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="ajax_model"
|
||||
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_LABEL"
|
||||
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="100px"
|
||||
cols="15"
|
||||
rows="10"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="false"
|
||||
validate="code"
|
||||
showon="add_ajax_model:1"
|
||||
/>
|
||||
<!-- Power_ajax_model Field. Type: Powers. (custom) -->
|
||||
<field
|
||||
type="powers"
|
||||
name="power_ajax_model"
|
||||
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL"
|
||||
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION"
|
||||
class="list_class span12"
|
||||
multiple="true"
|
||||
default="0"
|
||||
showon="add_ajax_model:1"
|
||||
button="true"
|
||||
/>
|
||||
</fields>
|
||||
</fieldset>
|
||||
</fields>
|
||||
|
@ -1,6 +1,6 @@
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_DESCRIPTION="This plugin is used to set admin class custom headers."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Admin Headers Tabs (v.1.0.2)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th October, 2020</small></p>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Admin Headers Tabs (v.1.0.3)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th October, 2020</small></p>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
||||
@ -80,4 +80,11 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Default Temp
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The default template header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_LABEL="Power Header<br />
|
||||
<small>(site.admin.view)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_DESCRIPTION="The power header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_DESCRIPTION="The power header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_AJAX_MODEL_LABEL="Target Ajax Model<br />Class Header"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_LABEL="Class Header<br />
|
||||
<small>(ajax.model)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_DESCRIPTION="The class header for Ajax model."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL="Power Header<br />
|
||||
<small>(ajax.model)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION="The power header for Ajax model."
|
@ -1,6 +1,6 @@
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_DESCRIPTION="This plugin is used to set admin class custom headers."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Admin Headers Tabs (v.1.0.2)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th October, 2020</small></p>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Admin Headers Tabs (v.1.0.3)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th October, 2020</small></p>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
||||
@ -80,4 +80,11 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Default Temp
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The default template header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_LABEL="Power Header<br />
|
||||
<small>(site.admin.view)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_DESCRIPTION="The power header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_DESCRIPTION="The power header for site admin view. So only use this if you have selected the admin edit view to be added to the site area."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_AJAX_MODEL_LABEL="Target Ajax Model<br />Class Header"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_LABEL="Class Header<br />
|
||||
<small>(ajax.model)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_AJAX_MODEL_DESCRIPTION="The class header for Ajax model."
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL="Power Header<br />
|
||||
<small>(ajax.model)</small>"
|
||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION="The power header for Ajax model."
|
@ -43,11 +43,12 @@ class plgContentComponentbuilderAdminHeadersTabsInstallerScript
|
||||
|
||||
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 <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;
|
||||
}
|
||||
// load the helper class
|
||||
@ -60,8 +61,8 @@ class plgContentComponentbuilderAdminHeadersTabsInstallerScript
|
||||
{
|
||||
// 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 plgContentComponentbuilderAdminHeadersTabsInstallerScript
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user