52
0

update - v1.0.1

This commit is contained in:
Llewellyn van der Merwe 2021-10-14 16:31:11 +02:00
parent a719f74c23
commit 29865e11ca
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
7 changed files with 174 additions and 84 deletions

View File

@ -5,7 +5,7 @@
* @created 30th April, 2015 * @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com> * @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder> * @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2020 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
*/ */
@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
* Content - Componentbuilder Site Headers Tabs plugin. * Content - Componentbuilder Site Headers Tabs plugin.
* *
* @package ComponentbuilderSiteHeadersTabs * @package ComponentbuilderSiteHeadersTabs
* @since 1.0.0 * @since 1.0.1
*/ */
class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin class PlgContentComponentbuilderSiteHeadersTabs extends CMSPlugin
{ {

View File

@ -1,13 +1,13 @@
<?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="3.8" group="content" method="upgrade">
<name>PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS</name> <name>PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS</name>
<creationDate>8th December, 2020</creationDate> <creationDate>20th February, 2021</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail> <authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl> <authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
<copyright>Copyright (C) 2015 - 2020 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_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION</description> <description>PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION</description>
<!-- Scripts to run on installation --> <!-- Scripts to run on installation -->

View File

@ -8,39 +8,6 @@
addfieldpath="/plugins/content/componentbuildersiteheaderstabs/fields" addfieldpath="/plugins/content/componentbuildersiteheaderstabs/fields"
> >
<fields name="site_view_headers"> <fields name="site_view_headers">
<!-- Add_site_view_controller Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_site_view_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES</option>
<option value="0">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option>
</field>
<!-- Site_view_controller Field. Type: Editor. (joomla) -->
<field
type="editor"
name="site_view_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
showon="add_site_view_controller:1"
/>
<!-- Add_site_view_model Field. Type: Radio. (joomla) --> <!-- Add_site_view_model Field. Type: Radio. (joomla) -->
<field <field
type="radio" type="radio"
@ -74,12 +41,12 @@
validate="code" validate="code"
showon="add_site_view_model:1" showon="add_site_view_model:1"
/> />
<!-- Add_site_views_controller Field. Type: Radio. (joomla) --> <!-- Add_site_view Field. Type: Radio. (joomla) -->
<field <field
type="radio" type="radio"
name="add_site_views_controller" name="add_site_view"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL" label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION" description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_DESCRIPTION"
class="btn-group btn-group-yesno" class="btn-group btn-group-yesno"
default="0" default="0"
required="true"> required="true">
@ -89,12 +56,12 @@
<option value="0"> <option value="0">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option>
</field> </field>
<!-- Site_views_controller Field. Type: Editor. (joomla) --> <!-- Site_view Field. Type: Editor. (joomla) -->
<field <field
type="editor" type="editor"
name="site_views_controller" name="site_view"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL" label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION" description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_DESCRIPTION"
width="100%" width="100%"
height="100px" height="100px"
cols="15" cols="15"
@ -105,7 +72,40 @@
filter="raw" filter="raw"
required="false" required="false"
validate="code" validate="code"
showon="add_site_views_controller:1" showon="add_site_view:1"
/>
<!-- Add_site_view_controller Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_site_view_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES</option>
<option value="0">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option>
</field>
<!-- Site_view_controller Field. Type: Editor. (joomla) -->
<field
type="editor"
name="site_view_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
showon="add_site_view_controller:1"
/> />
<!-- Add_site_views_model Field. Type: Radio. (joomla) --> <!-- Add_site_views_model Field. Type: Radio. (joomla) -->
<field <field
@ -140,6 +140,72 @@
validate="code" validate="code"
showon="add_site_views_model:1" showon="add_site_views_model:1"
/> />
<!-- Add_site_views Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_site_views"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES</option>
<option value="0">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option>
</field>
<!-- Site_views Field. Type: Editor. (joomla) -->
<field
type="editor"
name="site_views"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
showon="add_site_views:1"
/>
<!-- Add_site_views_controller Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_site_views_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES</option>
<option value="0">
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO</option>
</field>
<!-- Site_views_controller Field. Type: Editor. (joomla) -->
<field
type="editor"
name="site_views_controller"
label="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
showon="add_site_views_controller:1"
/>
</fields> </fields>
</fieldset> </fieldset>
</fields> </fields>

View File

@ -1,30 +1,42 @@
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Site Headers Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set site class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 8th December, 2020</small></p>" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Site Headers Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set site class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 8th December, 2020</small></p>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header<br />
<small>(site.view.controller)</small><br />
<b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View<br />Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View<br />Model Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header<br />
<small>(site.view.model)</small><br /> <small>(site.view.model)</small><br />
<b>getItem</b>" <b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views<br />Controller Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_LABEL="Target Site View<br />Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_LABEL="Class Header<br />
<small>(site.views.controller)</small><br /> <small>(site.view)</small><br />
<b>getListQuery</b>" <b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_DESCRIPTION="The class header for site view. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header<br />
<small>(site.view.controller)</small><br />
<b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views<br />Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views<br />Model Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header<br />
<small>(site.views.model)</small><br /> <small>(site.views.model)</small><br />
<b>getListQuery</b>" <b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_LABEL="Target Site Views<br />Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_LABEL="Class Header<br />
<small>(site.views)</small><br />
<b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_DESCRIPTION="The class header for site views. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header<br />
<small>(site.views.controller)</small><br />
<b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."

View File

@ -1,30 +1,42 @@
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS="Content - Componentbuilder Site Headers Tabs"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_DESCRIPTION="This plugin is used to set site class custom headers."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Site Headers Tabs (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set site class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 8th December, 2020</small></p>" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Site Headers Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set site class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 8th December, 2020</small></p>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_CLASS_HEADERS="Class Headers"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header<br />
<small>(site.view.controller)</small><br />
<b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View<br />Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_LABEL="Target Site View<br />Model Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_LABEL="Class Header<br />
<small>(site.view.model)</small><br /> <small>(site.view.model)</small><br />
<b>getItem</b>" <b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_MODEL_DESCRIPTION="The class header for site view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views<br />Controller Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_LABEL="Target Site View<br />Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_LABEL="Class Header<br />
<small>(site.views.controller)</small><br /> <small>(site.view)</small><br />
<b>getListQuery</b>" <b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_DESCRIPTION="The class header for site view. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_LABEL="Target Site View<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEW_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_LABEL="Class Header<br />
<small>(site.view.controller)</small><br />
<b>getItem</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEW_CONTROLLER_DESCRIPTION="The class header for site view controller. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views<br />Model Header" PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_LABEL="Target Site Views<br />Model Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_MODEL_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header<br /> PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_LABEL="Class Header<br />
<small>(site.views.model)</small><br /> <small>(site.views.model)</small><br />
<b>getListQuery</b>" <b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>." PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_MODEL_DESCRIPTION="The class header for site views model. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_LABEL="Target Site Views<br />Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_LABEL="Class Header<br />
<small>(site.views)</small><br />
<b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_DESCRIPTION="The class header for site views. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_LABEL="Target Site Views<br />Controller Header"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_ADD_SITE_VIEWS_CONTROLLER_DESCRIPTION="Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_LABEL="Class Header<br />
<small>(site.views.controller)</small><br />
<b>getListQuery</b>"
PLG_CONTENT_COMPONENTBUILDERSITEHEADERSTABS_SITE_VIEWS_CONTROLLER_DESCRIPTION="The class header for site views controller. Only use this option if you have a <b>getListQuery</b> as your <b>Main Get</b>, and have custom code in the <b>PHP (controller methods)</b> under the Custom Buttons tab."

View File

@ -5,7 +5,7 @@
* @created 30th April, 2015 * @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com> * @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder> * @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2020 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
*/ */

View File

@ -5,7 +5,7 @@
* @created 30th April, 2015 * @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com> * @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder> * @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2020 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
*/ */
@ -60,8 +60,8 @@ class plgContentComponentbuilderSiteHeadersTabsInstallerScript
{ {
// get the version // get the version
$jcbVersion = explode('.', $manifest->version); $jcbVersion = explode('.', $manifest->version);
// check that we have JCB 2.11.7 or higher installed // check that we have JCB 2.12.6 or higher installed
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 2 && $jcbVersion[1] >= 11 && (($jcbVersion[1] == 11 && $jcbVersion[2] >= 7) || ($jcbVersion[1] > 11))) if (count($jcbVersion) == 3 && $jcbVersion[0] >= 2 && (($jcbVersion[1] == 12 && $jcbVersion[2] >= 6) || $jcbVersion[1] > 12))
{ {
$blockInstall = false; $blockInstall = false;
} }
@ -69,7 +69,7 @@ class plgContentComponentbuilderSiteHeadersTabsInstallerScript
// allow install if all conditions are met // allow install if all conditions are met
if ($blockInstall) if ($blockInstall)
{ {
$app->enqueueMessage('Please upgrade to JCB 2.12.1 or higher before installing this plugin.', 'error'); $app->enqueueMessage('Please upgrade to JCB 2.12.6 or higher before installing this plugin.', 'error');
return false; return false;
} }
} }