update - v2.0.0
This commit is contained in:
parent
15b883c14e
commit
caa6aece60
@ -21,7 +21,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
|
|||||||
* Content - Componentbuilder Custom Admin Headers Tabs plugin.
|
* Content - Componentbuilder Custom Admin Headers Tabs plugin.
|
||||||
*
|
*
|
||||||
* @package ComponentbuilderCustomAdminHeadersTabs
|
* @package ComponentbuilderCustomAdminHeadersTabs
|
||||||
* @since 1.0.5
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
class PlgContentComponentbuilderCustomAdminHeadersTabs extends CMSPlugin
|
class PlgContentComponentbuilderCustomAdminHeadersTabs extends CMSPlugin
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="plugin" version="4" group="content" method="upgrade">
|
<extension type="plugin" version="4" group="content" method="upgrade">
|
||||||
<name>PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS</name>
|
<name>PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS</name>
|
||||||
<creationDate>9th May, 2022</creationDate>
|
<creationDate>18th May, 2022</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>1.0.5</version>
|
<version>2.0.0</version>
|
||||||
<description>PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION</description>
|
<description>PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION</description>
|
||||||
|
|
||||||
<!-- Scripts to run on installation -->
|
<!-- Scripts to run on installation -->
|
||||||
@ -24,8 +24,6 @@
|
|||||||
<filename plugin="componentbuildercustomadminheaderstabs">componentbuildercustomadminheaderstabs.php</filename>
|
<filename plugin="componentbuildercustomadminheaderstabs">componentbuildercustomadminheaderstabs.php</filename>
|
||||||
<filename>index.html</filename>
|
<filename>index.html</filename>
|
||||||
<folder>language</folder>
|
<folder>language</folder>
|
||||||
<folder>fields</folder>
|
|
||||||
<folder>forms</folder>
|
<folder>forms</folder>
|
||||||
<folder>rules</folder>
|
|
||||||
</files>
|
</files>
|
||||||
</extension>
|
</extension>
|
@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@ -1,184 +0,0 @@
|
|||||||
<?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.guid','a.system_name','a.name','a.type','a.power_version'),array('guid','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->guid, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $options;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- default paths of custom_admin_view form points to componentbuilder -->
|
<!-- default paths of custom_admin_view form points to componentbuilder -->
|
||||||
<form>
|
<form
|
||||||
<fields name="params">
|
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||||
<!-- default paths of custom_admin_view_headers fieldset points to the plugin -->
|
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||||
<fieldset name="custom_admin_view_headers" label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS"
|
|
||||||
addrulepath="/plugins/content/componentbuildercustomadminheaderstabs/rules"
|
|
||||||
addfieldpath="/plugins/content/componentbuildercustomadminheaderstabs/fields"
|
|
||||||
>
|
>
|
||||||
|
<fields name="params">
|
||||||
|
<fieldset name="custom_admin_view_headers" label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS">
|
||||||
<fields name="custom_admin_view_headers">
|
<fields name="custom_admin_view_headers">
|
||||||
<!-- Add_custom_admin_view_model Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_view_model Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -41,19 +40,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_view_model:1"
|
showon="add_custom_admin_view_model:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_view_model Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_view_model Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_view_model"
|
name="power_custom_admin_view_model"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_view_model:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_view_model_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_view_model:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_view_html Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_view_html Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -87,19 +126,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_view_html:1"
|
showon="add_custom_admin_view_html:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_view_html Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_view_html Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_view_html"
|
name="power_custom_admin_view_html"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_HTML_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_HTML_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_view_html:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_view_html_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_view_html:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_view Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_view Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -133,19 +212,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_view:1"
|
showon="add_custom_admin_view:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_view Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_view Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_view"
|
name="power_custom_admin_view"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_view:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_view_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_view:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_view_controller Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_view_controller Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -179,19 +298,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_view_controller:1"
|
showon="add_custom_admin_view_controller:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_view_controller Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_view_controller Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_view_controller"
|
name="power_custom_admin_view_controller"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_CONTROLLER_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_CONTROLLER_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_CONTROLLER_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_CONTROLLER_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_view_controller:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_view_controller_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_view_controller:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_views_model Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_views_model Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -225,19 +384,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_views_model:1"
|
showon="add_custom_admin_views_model:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_views_model Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_views_model Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_views_model"
|
name="power_custom_admin_views_model"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_MODEL_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_MODEL_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_MODEL_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_MODEL_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_views_model:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_views_model_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_views_model:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_views_html Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_views_html Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -271,19 +470,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_views_html:1"
|
showon="add_custom_admin_views_html:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_views_html Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_views_html Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_views_html"
|
name="power_custom_admin_views_html"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_HTML_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_HTML_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_HTML_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_HTML_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_views_html:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_views_html_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_views_html:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_views Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_views Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -317,19 +556,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_views:1"
|
showon="add_custom_admin_views:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_views Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_views Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_views"
|
name="power_custom_admin_views"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_views:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_views_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_views:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_custom_admin_views_controller Field. Type: Radio. (joomla) -->
|
<!-- Add_custom_admin_views_controller Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -363,19 +642,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_custom_admin_views_controller:1"
|
showon="add_custom_admin_views_controller:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_custom_admin_views_controller Field. Type: Powers. (custom) -->
|
<!-- Power_custom_admin_views_controller Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_custom_admin_views_controller"
|
name="power_custom_admin_views_controller"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEWS_CONTROLLER_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_custom_admin_views_controller:1">
|
||||||
|
<form hidden="true" name="list_power_custom_admin_views_controller_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
required="false"
|
button="false"
|
||||||
showon="add_custom_admin_views_controller:1"
|
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
<!-- Add_ajax_model Field. Type: Radio. (joomla) -->
|
<!-- Add_ajax_model Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -408,18 +727,59 @@
|
|||||||
validate="code"
|
validate="code"
|
||||||
showon="add_ajax_model:1"
|
showon="add_ajax_model:1"
|
||||||
/>
|
/>
|
||||||
<!-- Power_ajax_model Field. Type: Powers. (custom) -->
|
<!-- Power_ajax_model Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="powers"
|
type="subform"
|
||||||
name="power_ajax_model"
|
name="power_ajax_model"
|
||||||
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL"
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_LABEL"
|
||||||
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION"
|
layout="joomla.form.field.subform.repeatable-table"
|
||||||
class="list_class span12"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
|
buttons="add,remove,move"
|
||||||
|
description="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_AJAX_MODEL_DESCRIPTION"
|
||||||
|
icon="list"
|
||||||
|
max="50"
|
||||||
|
showon="add_ajax_model:1">
|
||||||
|
<form hidden="true" name="list_power_ajax_model_modal" repeat="true">
|
||||||
|
<!-- Power Field. Type: Powers. (custom) -->
|
||||||
|
<field
|
||||||
|
type="powers"
|
||||||
|
name="power"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL"
|
||||||
|
class="list_class span12"
|
||||||
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
showon="add_ajax_model:1"
|
button="false"
|
||||||
button="true"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- As Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="as"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL"
|
||||||
|
size="10"
|
||||||
|
maxlength="50"
|
||||||
|
default="default"
|
||||||
|
class="text_area"
|
||||||
|
filter="STRING"
|
||||||
|
autocomplete="on"
|
||||||
|
/>
|
||||||
|
<!-- Build Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="build"
|
||||||
|
label="PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
default="2">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS</option>
|
||||||
|
<option value="2">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT</option>
|
||||||
|
<option value="6">
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE</option>
|
||||||
|
</field>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
</fields>
|
</fields>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.5)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom 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 8th December, 2020</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Custom Admin Headers Tabs (v.2.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom 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 8th December, 2020</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
@ -14,6 +14,13 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL
|
|||||||
<small>(custom.admin.view.model)</small><br />
|
<small>(custom.admin.view.model)</small><br />
|
||||||
<b>getItem</b>"
|
<b>getItem</b>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for custom admin view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for custom admin view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL="use"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER="Power"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL="as"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL="build"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS="Always"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT="Based on Component"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE="Exclude"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_LABEL="Target Custom Admin View<br />Class Header"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_LABEL="Target Custom Admin View<br />Class Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS="Content - Componentbuilder Custom Admin Headers Tabs"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_DESCRIPTION="This plugin is used to set custom admin class custom headers."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Custom Admin Headers Tabs (v.1.0.5)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom 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 8th December, 2020</small></p>"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Custom Admin Headers Tabs (v.2.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set custom 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 8th December, 2020</small></p>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CLASS_HEADERS="Class Headers"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View<br />Model Header"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_LABEL="Target Custom Admin View<br />Model Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
@ -14,6 +14,13 @@ PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL
|
|||||||
<small>(custom.admin.view.model)</small><br />
|
<small>(custom.admin.view.model)</small><br />
|
||||||
<b>getItem</b>"
|
<b>getItem</b>"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for custom admin view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_CUSTOM_ADMIN_VIEW_MODEL_DESCRIPTION="The power header for custom admin view model. Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER_LABEL="use"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_POWER="Power"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_AS_LABEL="as"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BUILD_LABEL="build"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ALWAYS="Always"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_BASED_ON_COMPONENT="Based on Component"
|
||||||
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_EXCLUDE="Exclude"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_LABEL="Target Custom Admin View<br />Class Header"
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_LABEL="Target Custom Admin View<br />Class Header"
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_ADD_CUSTOM_ADMIN_VIEW_HTML_DESCRIPTION="Only use this option if you have a <b>getItem</b> as your <b>Main Get</b>."
|
||||||
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
PLG_CONTENT_COMPONENTBUILDERCUSTOMADMINHEADERSTABS_CUSTOM_ADMIN_VIEW_HTML_LABEL="Class Header<br />
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
<?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('JPATH_PLATFORM') or die;
|
|
||||||
|
|
||||||
use Joomla\CMS\Form\Form;
|
|
||||||
use Joomla\CMS\Form\FormRule;
|
|
||||||
use Joomla\Registry\Registry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Form Rule (Code) class for the Joomla Platform.
|
|
||||||
*/
|
|
||||||
class JFormRuleCode extends FormRule
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Method to test the value.
|
|
||||||
*
|
|
||||||
* @param \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
|
|
||||||
* @param mixed $value The form field value to validate.
|
|
||||||
* @param string $group The field name group control value. This acts as an array container for the field.
|
|
||||||
* For example if the field has name="foo" and the group value is set to "bar" then the
|
|
||||||
* full field name would end up being "bar[foo]".
|
|
||||||
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
|
|
||||||
* @param Form $form The form object for which the field is being tested.
|
|
||||||
*
|
|
||||||
* @return boolean True if the value is valid, false otherwise.
|
|
||||||
*/
|
|
||||||
public function test(\SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null)
|
|
||||||
{
|
|
||||||
// This removes all validation (is dangerous) but needed to submit code via JCB
|
|
||||||
return true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* My idea is to add some kind of validation to improve JCB code (per/language)
|
|
||||||
*
|
|
||||||
* So at this time this code validation is used for JavaScript,CSS,HTML and PHP.
|
|
||||||
* We can see what language is being worked on with the syntax property in the $element. (in JCB)
|
|
||||||
* What complicates things is the placeholders, of both custom code, component, and view names.
|
|
||||||
* Ideally we could strip them and then validate the code to being syntactically correct.
|
|
||||||
* 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...)
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@ -61,10 +61,10 @@ class plgContentComponentbuilderCustomAdminHeadersTabsInstallerScript
|
|||||||
{
|
{
|
||||||
// get the version
|
// get the version
|
||||||
$jcbVersion = explode('.', $manifest->version);
|
$jcbVersion = explode('.', $manifest->version);
|
||||||
// check that we have JCB 3.0.11 or higher installed
|
// check that we have JCB 3.0.14 or higher installed
|
||||||
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3 &&
|
if (count($jcbVersion) == 3 && $jcbVersion[0] >= 3 &&
|
||||||
(
|
(
|
||||||
($jcbVersion[0] == 3 && $jcbVersion[1] == 0 && $jcbVersion[2] >= 11) ||
|
($jcbVersion[0] == 3 && $jcbVersion[1] == 0 && $jcbVersion[2] >= 14) ||
|
||||||
($jcbVersion[0] == 3 && $jcbVersion[1] > 0) ||
|
($jcbVersion[0] == 3 && $jcbVersion[1] > 0) ||
|
||||||
$jcbVersion[0] > 3)
|
$jcbVersion[0] > 3)
|
||||||
)
|
)
|
||||||
@ -75,7 +75,7 @@ class plgContentComponentbuilderCustomAdminHeadersTabsInstallerScript
|
|||||||
// allow install if all conditions are met
|
// allow install if all conditions are met
|
||||||
if ($blockInstall)
|
if ($blockInstall)
|
||||||
{
|
{
|
||||||
$app->enqueueMessage('Please upgrade to JCB-Pro v3.0.11 or higher before installing this plugin.', 'error');
|
$app->enqueueMessage('Please upgrade to JCB-Pro v3.0.14 or higher before installing this plugin.', 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user