update - v1.0.2
This commit is contained in:
parent
4b9f6f43d2
commit
f80ef9e907
@ -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
|
||||||
@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
|
|||||||
* Content - Componentbuilder Admin Headers Tabs plugin.
|
* Content - Componentbuilder Admin Headers Tabs plugin.
|
||||||
*
|
*
|
||||||
* @package ComponentbuilderAdminHeadersTabs
|
* @package ComponentbuilderAdminHeadersTabs
|
||||||
* @since 1.0.1
|
* @since 1.0.2
|
||||||
*/
|
*/
|
||||||
class PlgContentComponentbuilderAdminHeadersTabs extends CMSPlugin
|
class PlgContentComponentbuilderAdminHeadersTabs extends CMSPlugin
|
||||||
{
|
{
|
||||||
|
@ -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="4" group="content" method="upgrade">
|
||||||
<name>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS</name>
|
<name>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS</name>
|
||||||
<creationDate>20th February, 2021</creationDate>
|
<creationDate>3rd 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.1</version>
|
<version>1.0.2</version>
|
||||||
<description>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION</description>
|
<description>PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_XML_DESCRIPTION</description>
|
||||||
|
|
||||||
<!-- Scripts to run on installation -->
|
<!-- Scripts to run on installation -->
|
||||||
|
184
fields/powers.php
Normal file
184
fields/powers.php
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Component.Builder
|
||||||
|
*
|
||||||
|
* @created 30th April, 2015
|
||||||
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder-Pro>
|
||||||
|
* @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');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Powers Form Field class for the Componentbuilder component
|
||||||
|
*/
|
||||||
|
class JFormFieldPowers extends JFormFieldList
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The powers field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $type = 'powers';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override to add new button
|
||||||
|
*
|
||||||
|
* @return string The field input markup.
|
||||||
|
*
|
||||||
|
* @since 3.2
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
// see if we should add buttons
|
||||||
|
$set_button = $this->getAttribute('button');
|
||||||
|
// get html
|
||||||
|
$html = parent::getInput();
|
||||||
|
// if true set button
|
||||||
|
if ($set_button === 'true')
|
||||||
|
{
|
||||||
|
$button = array();
|
||||||
|
$script = array();
|
||||||
|
$button_code_name = $this->getAttribute('name');
|
||||||
|
// get the input from url
|
||||||
|
$app = JFactory::getApplication();
|
||||||
|
$jinput = $app->input;
|
||||||
|
// get the view name & id
|
||||||
|
$values = $jinput->getArray(array(
|
||||||
|
'id' => 'int',
|
||||||
|
'view' => 'word'
|
||||||
|
));
|
||||||
|
// check if new item
|
||||||
|
$ref = '';
|
||||||
|
$refJ = '';
|
||||||
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
|
{
|
||||||
|
// only load referral if not new item.
|
||||||
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
|
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
|
// get the return value.
|
||||||
|
$_uri = (string) JUri::getInstance();
|
||||||
|
$_return = urlencode(base64_encode($_uri));
|
||||||
|
// load return value.
|
||||||
|
$ref .= '&return=' . $_return;
|
||||||
|
$refJ .= '&return=' . $_return;
|
||||||
|
}
|
||||||
|
// get button label
|
||||||
|
$button_label = trim($button_code_name);
|
||||||
|
$button_label = preg_replace('/_+/', ' ', $button_label);
|
||||||
|
$button_label = preg_replace('/\s+/', ' ', $button_label);
|
||||||
|
$button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
|
||||||
|
$button_label = ucfirst(strtolower($button_label));
|
||||||
|
// get user object
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
// only add if user allowed to create power
|
||||||
|
if ($user->authorise('power.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||||
|
{
|
||||||
|
// build Create button
|
||||||
|
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||||
|
href="index.php?option=com_componentbuilder&view=power&layout=edit'.$ref.'" >
|
||||||
|
<span class="icon-new icon-white"></span></a>';
|
||||||
|
}
|
||||||
|
// only add if user allowed to edit power
|
||||||
|
if ($user->authorise('power.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||||
|
{
|
||||||
|
// build edit button
|
||||||
|
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||||
|
<span class="icon-edit"></span></a>';
|
||||||
|
// build script
|
||||||
|
$script[] = "
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||||
|
".$button_code_name."Button(".$button_code_name."Value);
|
||||||
|
});
|
||||||
|
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||||
|
".$button_code_name."Button(".$button_code_name."Value);
|
||||||
|
});
|
||||||
|
function ".$button_code_name."Button(value) {
|
||||||
|
if (value > 0) {
|
||||||
|
// hide the create button
|
||||||
|
jQuery('#".$button_code_name."Create').hide();
|
||||||
|
// show edit button
|
||||||
|
jQuery('#".$button_code_name."Edit').show();
|
||||||
|
var url = 'index.php?option=com_componentbuilder&view=powers&task=power.edit&id='+value+'".$refJ."';
|
||||||
|
jQuery('#".$button_code_name."Edit').attr('href', url);
|
||||||
|
} else {
|
||||||
|
// show the create button
|
||||||
|
jQuery('#".$button_code_name."Create').show();
|
||||||
|
// hide edit button
|
||||||
|
jQuery('#".$button_code_name."Edit').hide();
|
||||||
|
}
|
||||||
|
}";
|
||||||
|
}
|
||||||
|
// check if button was created for power field.
|
||||||
|
if (is_array($button) && count($button) > 0)
|
||||||
|
{
|
||||||
|
// Load the needed script.
|
||||||
|
$document = JFactory::getDocument();
|
||||||
|
$document->addScriptDeclaration(implode(' ',$script));
|
||||||
|
// return the button attached to input field.
|
||||||
|
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get a list of options for a list input.
|
||||||
|
*
|
||||||
|
* @return array An array of JHtml options.
|
||||||
|
*/
|
||||||
|
protected function getOptions()
|
||||||
|
{
|
||||||
|
// Get the user object.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
// Get the databse object.
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
$query->select($db->quoteName(array('a.id','a.system_name','a.name','a.type','a.power_version'),array('id','power_admin_component_system_name','name','type','version')));
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||||
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
|
$query->order('a.system_name ASC');
|
||||||
|
$query->order('a.type ASC');
|
||||||
|
// Implement View Level Access (if set in table)
|
||||||
|
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
$columns = $db->getTableColumns('#__componentbuilder_power');
|
||||||
|
if(isset($columns['access']))
|
||||||
|
{
|
||||||
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$db->setQuery((string)$query);
|
||||||
|
$items = $db->loadObjectList();
|
||||||
|
$options = array();
|
||||||
|
// if none was found, we add this to set an alternative to set custom
|
||||||
|
if (!$items)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND'));
|
||||||
|
}
|
||||||
|
if ($items)
|
||||||
|
{
|
||||||
|
if ($this->multiple === false)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION'));
|
||||||
|
}
|
||||||
|
foreach($items as $item)
|
||||||
|
{
|
||||||
|
$options[] = JHtml::_('select.option', $item->id, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $options;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -40,6 +40,64 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_view_model:1"
|
showon="add_admin_view_model:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_view_model Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_view_model"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_view_model:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
|
<!-- Add_admin_view_html Field. Type: Radio. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="radio"
|
||||||
|
name="add_admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_HTML_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>
|
||||||
|
<!-- Admin_view_html Field. Type: Editor. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="editor"
|
||||||
|
name="admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="100px"
|
||||||
|
cols="15"
|
||||||
|
rows="10"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
|
filter="safehtml"
|
||||||
|
required="false"
|
||||||
|
validate="code"
|
||||||
|
showon="add_admin_view_html:1"
|
||||||
|
/>
|
||||||
|
<!-- Power_admin_view_html Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_view_html:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_admin_view Field. Type: Radio. (joomla) -->
|
<!-- Add_admin_view Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -72,6 +130,19 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_view:1"
|
showon="add_admin_view:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_view Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_view"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_view:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_admin_view_controller Field. Type: Radio. (joomla) -->
|
<!-- Add_admin_view_controller Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -104,6 +175,19 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_view_controller:1"
|
showon="add_admin_view_controller:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_view_controller Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_view_controller"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_view_controller:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_admin_views_model Field. Type: Radio. (joomla) -->
|
<!-- Add_admin_views_model Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -136,6 +220,64 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_views_model:1"
|
showon="add_admin_views_model:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_views_model Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_views_model"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_views_model:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
|
<!-- Add_admin_views_html Field. Type: Radio. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="radio"
|
||||||
|
name="add_admin_views_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_HTML_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>
|
||||||
|
<!-- Admin_views_html Field. Type: Editor. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="editor"
|
||||||
|
name="admin_views_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="100px"
|
||||||
|
cols="15"
|
||||||
|
rows="10"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
|
filter="raw"
|
||||||
|
required="false"
|
||||||
|
validate="code"
|
||||||
|
showon="add_admin_views_html:1"
|
||||||
|
/>
|
||||||
|
<!-- Power_admin_views_html Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_views_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_views_html:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_admin_views Field. Type: Radio. (joomla) -->
|
<!-- Add_admin_views Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -168,6 +310,19 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_views:1"
|
showon="add_admin_views:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_views Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_views"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_views:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_admin_views_controller Field. Type: Radio. (joomla) -->
|
<!-- Add_admin_views_controller Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -200,6 +355,19 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_admin_views_controller:1"
|
showon="add_admin_views_controller:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_admin_views_controller Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_admin_views_controller"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_admin_views_controller:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_site_admin_view_model Field. Type: Radio. (joomla) -->
|
<!-- Add_site_admin_view_model Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -232,6 +400,63 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_site_admin_view_model:1"
|
showon="add_site_admin_view_model:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_site_admin_view_model Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_site_admin_view_model"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
required="false"
|
||||||
|
showon="add_site_admin_view_model:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
|
<!-- Add_site_admin_view_html Field. Type: Radio. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="radio"
|
||||||
|
name="add_site_admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_HTML_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>
|
||||||
|
<!-- Site_admin_view_html Field. Type: Editor. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="editor"
|
||||||
|
name="site_admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="100px"
|
||||||
|
cols="15"
|
||||||
|
rows="10"
|
||||||
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
|
filter="safehtml"
|
||||||
|
required="false"
|
||||||
|
validate="code"
|
||||||
|
showon="add_site_admin_view_html:1"
|
||||||
|
/>
|
||||||
|
<!-- Power_site_admin_view_html Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_site_admin_view_html"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_HTML_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_HTML_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
showon="add_site_admin_view_html:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
<!-- Add_site_admin_view Field. Type: Radio. (joomla) -->
|
<!-- Add_site_admin_view Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -264,6 +489,18 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_site_admin_view:1"
|
showon="add_site_admin_view:1"
|
||||||
/>
|
/>
|
||||||
|
<!-- Power_site_admin_view Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power_site_admin_view"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_LABEL"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_DESCRIPTION"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="true"
|
||||||
|
default="0"
|
||||||
|
showon="add_site_admin_view:1"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
</fields>
|
</fields>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs"
|
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_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.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' 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.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_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
||||||
@ -8,31 +8,76 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_NO="No"
|
|||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
||||||
<small>(admin.view.model)</small>"
|
<small>(admin.view.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Class Header<br />
|
<small>(admin.view.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for admin view model."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_HTML_LABEL="Target Admin View<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_DESCRIPTION="The class header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_DESCRIPTION="The power header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Default Template Header<br />
|
||||||
<small>(admin.view)</small>"
|
<small>(admin.view)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The class header for admin view."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The default template header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_DESCRIPTION="The power header for admin view."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View<br />Controller Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View<br />Controller Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header<br />
|
||||||
<small>(admin.view.controller)</small>"
|
<small>(admin.view.controller)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view.controller)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The power header for admin view controller."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header<br />
|
||||||
<small>(admin.views.model)</small>"
|
<small>(admin.views.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Class Header<br />
|
<small>(admin.views.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_DESCRIPTION="The power header for admin views model."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_HTML_LABEL="Target Admin Views<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(admin.views.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_DESCRIPTION="The class header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_DESCRIPTION="The power header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Default Template Header<br />
|
||||||
<small>(admin.views)</small>"
|
<small>(admin.views)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The class header for admin views."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The default template header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_DESCRIPTION="The power header for admin views."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views<br />Controller Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views<br />Controller Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header<br />
|
||||||
<small>(admin.views.controller)</small>"
|
<small>(admin.views.controller)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views.controller)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for admin views controller."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
||||||
<small>(site.admin.view.model)</small>"
|
<small>(site.admin.view.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_LABEL="Target Site Admin View<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Class Header<br />
|
<small>(site.admin.view.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_HTML_LABEL="Target Site Admin View<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(site.admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_DESCRIPTION="The class 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_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(site.admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_HTML_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_SITE_ADMIN_VIEW_LABEL="Target Site Admin View<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Default Template Header<br />
|
||||||
<small>(site.admin.view)</small>"
|
<small>(site.admin.view)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The class 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_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."
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS="Content - Componentbuilder Admin Headers Tabs"
|
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_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.1)</h1> <div style='clear: both;'></div><p>This plugin is used to set admin class custom headers.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' 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.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_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_MODEL_LABEL="Target Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_YES="Yes"
|
||||||
@ -8,31 +8,76 @@ PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_NO="No"
|
|||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
||||||
<small>(admin.view.model)</small>"
|
<small>(admin.view.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for admin view model."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Class Header<br />
|
<small>(admin.view.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for admin view model."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_HTML_LABEL="Target Admin View<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_HTML_DESCRIPTION="The class header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_HTML_DESCRIPTION="The power header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_LABEL="Target Admin View<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_LABEL="Default Template Header<br />
|
||||||
<small>(admin.view)</small>"
|
<small>(admin.view)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The class header for admin view."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_DESCRIPTION="The default template header for admin view."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_DESCRIPTION="The power header for admin view."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View<br />Controller Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEW_CONTROLLER_LABEL="Target Admin View<br />Controller Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_LABEL="Class Header<br />
|
||||||
<small>(admin.view.controller)</small>"
|
<small>(admin.view.controller)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The class header for admin view controller."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_LABEL="Power Header<br />
|
||||||
|
<small>(admin.view.controller)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEW_CONTROLLER_DESCRIPTION="The power header for admin view controller."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_MODEL_LABEL="Target Admin Views<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_LABEL="Class Header<br />
|
||||||
<small>(admin.views.model)</small>"
|
<small>(admin.views.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_MODEL_DESCRIPTION="The class header for admin views model."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Class Header<br />
|
<small>(admin.views.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_MODEL_DESCRIPTION="The power header for admin views model."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_HTML_LABEL="Target Admin Views<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(admin.views.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_HTML_DESCRIPTION="The class header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_HTML_DESCRIPTION="The power header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_LABEL="Target Admin Views<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_LABEL="Default Template Header<br />
|
||||||
<small>(admin.views)</small>"
|
<small>(admin.views)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The class header for admin views."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_DESCRIPTION="The default template header for admin views."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_DESCRIPTION="The power header for admin views."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views<br />Controller Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_ADMIN_VIEWS_CONTROLLER_LABEL="Target Admin Views<br />Controller Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_LABEL="Class Header<br />
|
||||||
<small>(admin.views.controller)</small>"
|
<small>(admin.views.controller)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The class header for admin views controller."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_LABEL="Power Header<br />
|
||||||
|
<small>(admin.views.controller)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_ADMIN_VIEWS_CONTROLLER_DESCRIPTION="The power header for admin views controller."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_MODEL_LABEL="Target Site Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_LABEL="Class Header<br />
|
||||||
<small>(site.admin.view.model)</small>"
|
<small>(site.admin.view.model)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The class header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_LABEL="Target Site Admin View<br />Header"
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_LABEL="Power Header<br />
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Class Header<br />
|
<small>(site.admin.view.model)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for site admin view model. So only use this if you have selected the admin edit view to be added to the site area."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_ADD_SITE_ADMIN_VIEW_HTML_LABEL="Target Site Admin View<br />Class Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
<small>(site.admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_HTML_DESCRIPTION="The class 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_HTML_LABEL="Power Header<br />
|
||||||
|
<small>(site.admin.view.html)</small>"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_POWER_SITE_ADMIN_VIEW_HTML_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_SITE_ADMIN_VIEW_LABEL="Target Site Admin View<br />Default Template Header"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_LABEL="Default Template Header<br />
|
||||||
<small>(site.admin.view)</small>"
|
<small>(site.admin.view)</small>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERADMINHEADERSTABS_SITE_ADMIN_VIEW_DESCRIPTION="The class 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_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."
|
@ -1,25 +1,25 @@
|
|||||||
<?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('JPATH_PLATFORM') or die;
|
defined('JPATH_PLATFORM') or die;
|
||||||
|
|
||||||
use Joomla\CMS\Form\Form;
|
use Joomla\CMS\Form\Form;
|
||||||
use Joomla\CMS\Form\FormRule;
|
use Joomla\CMS\Form\FormRule;
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Form Rule (Code) class for the Joomla Platform.
|
* Form Rule (Code) class for the Joomla Platform.
|
||||||
*/
|
*/
|
||||||
class JFormRuleCode extends FormRule
|
class JFormRuleCode extends FormRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Method to test the value.
|
* Method to test the value.
|
||||||
@ -49,5 +49,5 @@ class JFormRuleCode extends FormRule
|
|||||||
* But since some of the placeholders form part of the class/function names and the more, it seems like we are pressed for a much more advance solution.
|
* But since some of the placeholders form part of the class/function names and the more, it seems like we are pressed for a much more advance solution.
|
||||||
* If you have any ideas to how we can go about to do this, then please open an issue on github and lets begin. (this is a nice to have, so don't break a leg...)
|
* If you have any ideas to how we can go about to do this, then please open an issue on github and lets begin. (this is a nice to have, so don't break a leg...)
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
18
script.php
18
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
|
||||||
@ -61,7 +61,7 @@ class plgContentComponentbuilderAdminHeadersTabsInstallerScript
|
|||||||
// get the version
|
// get the version
|
||||||
$jcbVersion = explode('.', $manifest->version);
|
$jcbVersion = explode('.', $manifest->version);
|
||||||
// check that we have JCB 2.12.6 or higher installed
|
// 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))
|
if (count($jcbVersion) == 3 && (($jcbVersion[0] == 2 && (($jcbVersion[1] == 12 && $jcbVersion[2] >= 6) || ($jcbVersion[1] > 12))) || $jcbVersion[0] >= 3))
|
||||||
{
|
{
|
||||||
$blockInstall = false;
|
$blockInstall = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user