Major Upgrade to JCB (stable) #244

Merged
Llewellyn merged 22 commits from staging into master 2018-03-19 03:47:09 +00:00
182 changed files with 21872 additions and 19024 deletions

View File

@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.17) with **ALL** its features and **ALL** concepts totally open-source and free!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.18) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@ -126,14 +126,14 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
+ *First Build*: 30th April, 2015
+ *Last Build*: 27th February, 2018
+ *Version*: 2.6.17
+ *Last Build*: 19th March, 2018
+ *Version*: 2.6.18
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **183098**
+ *Field count*: **1641**
+ *File count*: **1169**
+ *Folder count*: **188**
+ *Line count*: **186136**
+ *Field count*: **994**
+ *File count*: **1171**
+ *Folder count*: **189**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)

View File

@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.17) with **ALL** its features and **ALL** concepts totally open-source and free!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.18) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@ -126,14 +126,14 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
+ *First Build*: 30th April, 2015
+ *Last Build*: 27th February, 2018
+ *Version*: 2.6.17
+ *Last Build*: 19th March, 2018
+ *Version*: 2.6.18
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **183098**
+ *Field count*: **1641**
+ *File count*: **1169**
+ *Folder count*: **188**
+ *Line count*: **186136**
+ *Field count*: **994**
+ *File count*: **1171**
+ *Folder count*: **189**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)

View File

@ -473,9 +473,9 @@
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
<action name="fieldtype.access" title="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS" description="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC" />
<action name="fieldtype.edit.name" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC" />
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
<action name="fieldtype.edit.description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC" />
<action name="fieldtype.edit.short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC" />
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
</section>
<section name="language_translation">

View File

@ -24,6 +24,7 @@
/* CSS Document */
.fieldMedium {
width: 80px !important;
}

View File

@ -25,3 +25,6 @@
/* CSS Document */
#jform_dashboard_chzn {
width: 100% !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -48,6 +48,7 @@ class ###Component###Model###Component### extends JModelList
$viewGroups = array(
'main' => array(###DASHBOARDICONS###)
);###DASHBOARDICONACCESS###
// loop over the $views
foreach($viewGroups as $group => $views)
{
$i = 0;
@ -56,7 +57,22 @@ class ###Component###Model###Component### extends JModelList
foreach($views as $view)
{
$add = false;
if (strpos($view,'.') !== false)
// external views (links)
if (strpos($view,'||') !== false)
{
$dwd = explode('||', $view);
if (count($dwd) == 3)
{
list($type, $name, $url) = $dwd;
$viewName = $name;
$alt = $name;
$url = $url;
$image = $name.'.'.$type;
$name = 'COM_###COMPONENT###_DASHBOARD_'.###Component###Helper::safeString($name,'U');
}
}
// internal views
elseif (strpos($view,'.') !== false)
{
$dwd = explode('.', $view);
if (count($dwd) == 3)
@ -74,7 +90,7 @@ class ###Component###Model###Component### extends JModelList
switch($action)
{
case 'add':
$url ='index.php?option=com_###component###&view='.$name.'&layout=edit';
$url = 'index.php?option=com_###component###&view='.$name.'&layout=edit';
$image = $name.'_'.$action.'.'.$type;
$alt = $name.'&nbsp;'.$action;
$name = 'COM_###COMPONENT###_DASHBOARD_'.###Component###Helper::safeString($name,'U').'_ADD';

View File

@ -642,6 +642,13 @@ abstract class ###Component###Helper
}
/**
* Check if have an json string
*
* @input string The json string to check
*
* @returns bool true on success
**/
public static function checkJson($string)
{
if (self::checkString($string))
@ -652,15 +659,29 @@ abstract class ###Component###Helper
return false;
}
/**
* Check if have an object with a length
*
* @input object The object to check
*
* @returns bool true on success
**/
public static function checkObject($object)
{
if (isset($object) && is_object($object) && count($object) > 0)
if (isset($object) && is_object($object))
{
return true;
return count((array)$object) > 0;
}
return false;
}
/**
* Check if have an array with a length
*
* @input array The array to check
*
* @returns bool true on success
**/
public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
@ -682,6 +703,13 @@ abstract class ###Component###Helper
return false;
}
/**
* Check if have a string with a length
*
* @input string The string to check
*
* @returns bool true on success
**/
public static function checkString($string)
{
if (isset($string) && is_string($string) && strlen($string) > 0)
@ -716,6 +744,13 @@ abstract class ###Component###Helper
return $is_conn;
}
/**
* Merge an array of array's
*
* @input array The arrays you would like to merge
*
* @returns array on success
**/
public static function mergeArrays($arrays)
{
if(self::checkArray($arrays))
@ -739,6 +774,13 @@ abstract class ###Component###Helper
return self::shorten($string, $length, $addTip);
}
/**
* Shorten a string
*
* @input string The you would like to shorten
*
* @returns string on success
**/
public static function shorten($string, $length = 40, $addTip = true)
{
if (self::checkString($string))
@ -773,6 +815,13 @@ abstract class ###Component###Helper
return $string;
}
/**
* Making strings safe (various ways)
*
* @input string The you would like to make safe
*
* @returns string on success
**/
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
{
if ($replaceNumbers === true)

View File

@ -634,6 +634,13 @@ abstract class ###Component###Helper
return $result;
}
/**
* Check if have an json string
*
* @input string The json string to check
*
* @returns bool true on success
**/
public static function checkJson($string)
{
if (self::checkString($string))
@ -644,15 +651,29 @@ abstract class ###Component###Helper
return false;
}
/**
* Check if have an object with a length
*
* @input object The object to check
*
* @returns bool true on success
**/
public static function checkObject($object)
{
if (isset($object) && is_object($object) && count($object) > 0)
if (isset($object) && is_object($object))
{
return true;
return count((array)$object) > 0;
}
return false;
}
/**
* Check if have an array with a length
*
* @input array The array to check
*
* @returns bool true on success
**/
public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
@ -674,6 +695,13 @@ abstract class ###Component###Helper
return false;
}
/**
* Check if have a string with a length
*
* @input string The string to check
*
* @returns bool true on success
**/
public static function checkString($string)
{
if (isset($string) && is_string($string) && strlen($string) > 0)
@ -708,6 +736,13 @@ abstract class ###Component###Helper
return $is_conn;
}
/**
* Merge an array of array's
*
* @input array The arrays you would like to merge
*
* @returns array on success
**/
public static function mergeArrays($arrays)
{
if(self::checkArray($arrays))
@ -731,6 +766,13 @@ abstract class ###Component###Helper
return self::shorten($string, $length, $addTip);
}
/**
* Shorten a string
*
* @input string The you would like to shorten
*
* @returns string on success
**/
public static function shorten($string, $length = 40, $addTip = true)
{
if (self::checkString($string))
@ -765,6 +807,13 @@ abstract class ###Component###Helper
return $string;
}
/**
* Making strings safe (various ways)
*
* @input string The you would like to make safe
*
* @returns string on success
**/
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
{
if ($replaceNumbers === true)

View File

@ -37,6 +37,23 @@ jimport('joomla.application.component.controller');
*/
class ###Component###Controller extends JControllerLegacy
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.0
*/
public function __construct($config = array())
{
// set the default view
$config['default_view'] = '###DASHBOARDVIEW###';
parent::__construct($config);
}
/**
* display task
*
@ -45,7 +62,7 @@ class ###Component###Controller extends JControllerLegacy
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view', '###Component###');
$view = $this->input->getCmd('view', '###DASHBOARDVIEW###');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
@ -88,18 +105,22 @@ class ###Component###Controller extends JControllerLegacy
protected function getViewRelation($view)
{
// check the we have a value
if (###Component###Helper::checkString($view))
{
// the view relationships
$views = array(###VIEWARRAY###
);
// check if this is a list view
if (in_array($view,$views))
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view,$views))
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
}
}

View File

@ -38,18 +38,30 @@ jimport('joomla.application.component.controller');
class ###Component###Controller extends JControllerLegacy
{
/**
* display task
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached.
* @param boolean $urlparams An array of safe URL parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
*
* @return JController This object to support chaining.
*
* @return void
*/
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view', '###SITE_DEFAULT_VIEW###');
$this->input->set('view', $view);
$isEdit = $this->checkEditView($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
$cachable = true;
// $cachable = true; (TODO) working on a fix [gh-238](https://github.com/vdm-io/Joomla-Component-Builder/issues/238)
// insure that the view is not cashable if edit view or if user is logged in
$user = JFactory::getUser();
if ($user->get('id') || $isEdit)
{
$cachable = false;
}
// Check for edit form.
if($isEdit)
@ -82,7 +94,32 @@ class ###Component###Controller extends JControllerLegacy
}
}
return parent::display($cachable, $urlparams);
// we may need to make this more dynamic in the future. (TODO)
$safeurlparams = array(
'catid' => 'INT',
'id' => 'INT',
'cid' => 'ARRAY',
'year' => 'INT',
'month' => 'INT',
'limit' => 'UINT',
'limitstart' => 'UINT',
'showall' => 'INT',
'return' => 'BASE64',
'filter' => 'STRING',
'filter_order' => 'CMD',
'filter_order_Dir' => 'CMD',
'filter-search' => 'STRING',
'print' => 'BOOLEAN',
'lang' => 'CMD',
'Itemid' => 'INT');
// should these not merge?
if (###Component###Helper::checkArray($urlparams))
{
$safeurlparams = ###Component###Helper::mergeArrays(array($urlparams, $safeurlparams));
}
return parent::display($cachable, $safeurlparams);
}
protected function checkEditView($view)

View File

@ -71,7 +71,7 @@
<files folder="admin">
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>###ENCRYPT_FILE###
<filename>controller.php</filename>###WHMCS_ENCRYPT_FILE###
<filename>index.html</filename>
<filename>###component###.php</filename>###EXSTRA_ADMIN_FILES###
<folder>assets</folder>

View File

@ -111,6 +111,8 @@ class com_###component###InstallerScript
*/
function postflight($type, $parent)
{
// get application
$app = JFactory::getApplication();###MOVEFOLDERSSCRIPT###
// set the default component settings
if ($type == 'install')
{###POSTINSTALLSCRIPT###
@ -119,5 +121,5 @@ class com_###component###InstallerScript
if ($type == 'update')
{###POSTUPDATESCRIPT###
}
}
}###MOVEFOLDERSMETHOD###
}

View File

@ -216,10 +216,10 @@
},
"dynamic": {
"admin": {
"vdm.php": {
"whmcs.php": {
"path": "c0mp0n3nt/admin",
"rename": false,
"type": "encrypt"
"type": "whmcs"
},
"Helper_email.php": {
"path": "c0mp0n3nt/admin/helpers",

View File

@ -29,4 +29,4 @@ defined('_JEXEC') or die('Restricted access');
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
###VDM_ENCRYPTION_BODY###
###WHMCS_ENCRYPTION_BODY###

View File

@ -48,18 +48,22 @@
<field type="spacer" name="spacerHistory" hr="true" />
<!-- Minify Field. Type: Radio. (joomla) -->
<field type="radio"
<field
type="radio"
name="minify"
label="COM_COMPONENTBUILDER_CONFIG_MINIFY_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_MINIFY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CONFIG_YES</option>
<option value="0">COM_COMPONENTBUILDER_CONFIG_NO</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CONFIG_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CONFIG_NO</option>
</field>
<!-- Percentagelanguageadd Field. Type: Number. (joomla) -->
<field type="number"
<field
type="number"
name="percentagelanguageadd"
label="COM_COMPONENTBUILDER_CONFIG_PERCENTAGELANGUAGEADD_LABEL"
default="50"
@ -68,31 +72,53 @@
required="true"
min="10"
max="100"
step="10" />
<!-- Spacer_hr_a Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer"
name="spacer_hr_a"
hr="true"
class="spacer_hr_a" />
step="10"
/>
<!-- Spacer_hr_one Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_one" hr="true" class="spacer_hr_one" />
<!-- Compiler_field_builder_type Field. Type: List. (joomla) -->
<field
type="list"
name="compiler_field_builder_type"
label="COM_COMPONENTBUILDER_CONFIG_COMPILER_FIELD_BUILDER_TYPE_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_COMPILER_FIELD_BUILDER_TYPE_DESCRIPTION"
class="list_class"
filter="INT"
required="true"
default="2">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CONFIG_STRING_MANIPULATION</option>
<option value="2">
COM_COMPONENTBUILDER_CONFIG_SIMPLEXMLELEMENT_CLASS</option>
</field>
<!-- Spacer_hr_two Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_two" hr="true" class="spacer_hr_two" />
<!-- Api Field. Type: User. (joomla) -->
<field type="user"
<field
type="user"
name="api"
label="COM_COMPONENTBUILDER_CONFIG_API_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_API_DESCRIPTION" />
description="COM_COMPONENTBUILDER_CONFIG_API_DESCRIPTION"
/>
<!-- Set_browser_storage Field. Type: Radio. (joomla) -->
<field type="radio"
<field
type="radio"
name="set_browser_storage"
label="COM_COMPONENTBUILDER_CONFIG_SET_BROWSER_STORAGE_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_SET_BROWSER_STORAGE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CONFIG_ACTIVE</option>
<option value="0">COM_COMPONENTBUILDER_CONFIG_INACTIVE</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CONFIG_ACTIVE</option>
<option value="0">
COM_COMPONENTBUILDER_CONFIG_INACTIVE</option>
</field>
<!-- Storage_time_to_live Field. Type: List. (joomla) -->
<field type="list"
<field
type="list"
name="storage_time_to_live"
label="COM_COMPONENTBUILDER_CONFIG_STORAGE_TIME_TO_LIVE_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_STORAGE_TIME_TO_LIVE_DESCRIPTION"
@ -100,25 +126,34 @@
multiple="false"
default="global"
showon="set_browser_storage:1">
<!-- Option Set.-->
<option value="global">COM_COMPONENTBUILDER_CONFIG_EVERY_SESSION</option>
<option value="30">COM_COMPONENTBUILDER_CONFIG_EVERY_THIRTY_SECONDS</option>
<option value="60">COM_COMPONENTBUILDER_CONFIG_EVERY_MINUTE</option>
<option value="300">COM_COMPONENTBUILDER_CONFIG_EVERY_FIVE_MINUTES</option>
<option value="900">COM_COMPONENTBUILDER_CONFIG_EVERY_FIFTEEN_MINUTES</option>
<option value="1800">COM_COMPONENTBUILDER_CONFIG_EVERY_THIRTY_MINUTES</option>
<option value="3600">COM_COMPONENTBUILDER_CONFIG_EVERY_HOUR</option>
<option value="18000">COM_COMPONENTBUILDER_CONFIG_EVERY_FIVE_HOURS</option>
<option value="36000">COM_COMPONENTBUILDER_CONFIG_EVERY_TEN_HOURS</option>
<option value="86400">COM_COMPONENTBUILDER_CONFIG_EVERY_DAY</option>
<option value="604800">COM_COMPONENTBUILDER_CONFIG_EVERY_WEEK</option>
<option value="0">COM_COMPONENTBUILDER_CONFIG_NEVER_UPDATE</option>
<!-- Option Set. -->
<option value="global">
COM_COMPONENTBUILDER_CONFIG_EVERY_SESSION</option>
<option value="30">
COM_COMPONENTBUILDER_CONFIG_EVERY_THIRTY_SECONDS</option>
<option value="60">
COM_COMPONENTBUILDER_CONFIG_EVERY_MINUTE</option>
<option value="300">
COM_COMPONENTBUILDER_CONFIG_EVERY_FIVE_MINUTES</option>
<option value="900">
COM_COMPONENTBUILDER_CONFIG_EVERY_FIFTEEN_MINUTES</option>
<option value="1800">
COM_COMPONENTBUILDER_CONFIG_EVERY_THIRTY_MINUTES</option>
<option value="3600">
COM_COMPONENTBUILDER_CONFIG_EVERY_HOUR</option>
<option value="18000">
COM_COMPONENTBUILDER_CONFIG_EVERY_FIVE_HOURS</option>
<option value="36000">
COM_COMPONENTBUILDER_CONFIG_EVERY_TEN_HOURS</option>
<option value="86400">
COM_COMPONENTBUILDER_CONFIG_EVERY_DAY</option>
<option value="604800">
COM_COMPONENTBUILDER_CONFIG_EVERY_WEEK</option>
<option value="0">
COM_COMPONENTBUILDER_CONFIG_NEVER_UPDATE</option>
</field>
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer"
name="spacer_hr_b"
hr="true"
class="spacer_hr_b" />
<!-- Spacer_hr_three Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_three" hr="true" class="spacer_hr_three" />
<field name="autorTitle"
type="spacer"
label="COM_COMPONENTBUILDER_CONFIG_AUTHOR"
@ -541,25 +576,24 @@
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB">
<!-- Backupcronjob_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="backupcronjob_note"
label="COM_COMPONENTBUILDER_CONFIG_BACKUPCRONJOB_NOTE_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_BACKUPCRONJOB_NOTE_DESCRIPTION"
heading="h4"
class="backupcronjob_note" />
<field type="note" name="backupcronjob_note" label="COM_COMPONENTBUILDER_CONFIG_BACKUPCRONJOB_NOTE_LABEL" description="COM_COMPONENTBUILDER_CONFIG_BACKUPCRONJOB_NOTE_DESCRIPTION" heading="h4" class="backupcronjob_note" />
<!-- Cronjob_backup_type Field. Type: Radio. (joomla) -->
<field type="radio"
<field
type="radio"
name="cronjob_backup_type"
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_TYPE_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_TYPE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CONFIG_LOCAL_FOLDER</option>
<option value="2">COM_COMPONENTBUILDER_CONFIG_REMOTE_SERVER</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CONFIG_LOCAL_FOLDER</option>
<option value="2">
COM_COMPONENTBUILDER_CONFIG_REMOTE_SERVER</option>
</field>
<!-- Cronjob_backup_server Field. Type: Servers. (custom) -->
<field type="servers"
<field
type="servers"
name="cronjob_backup_server"
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_SERVER_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_SERVER_DESCRIPTION"
@ -567,9 +601,11 @@
multiple="false"
default="0"
showon="cronjob_backup_type:2"
button="true" />
button="true"
/>
<!-- Cronjob_backup_folder_path Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="cronjob_backup_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_LABEL"
size="70"
@ -582,9 +618,11 @@
filter="PATH"
message="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_CRONJOB_BACKUP_FOLDER_PATH_HINT"
showon="cronjob_backup_type:1" />
showon="cronjob_backup_type:1"
/>
<!-- Backup_email Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="backup_email"
label="COM_COMPONENTBUILDER_CONFIG_BACKUP_EMAIL_LABEL"
size="10"
@ -594,16 +632,13 @@
filter="STRING"
validate="email"
message="COM_COMPONENTBUILDER_CONFIG_BACKUP_EMAIL_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_EMAIL_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_EMAIL_HINT"
/>
<!-- Package_name_plaeholders Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="package_name_plaeholders"
label="COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_DESCRIPTION"
heading="h4"
class="package_name_plaeholders" />
<field type="note" name="package_name_plaeholders" label="COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_LABEL" description="COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_DESCRIPTION" heading="h4" class="package_name_plaeholders" />
<!-- Backup_package_name Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="backup_package_name"
label="COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_LABEL"
size="40"
@ -616,21 +651,18 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_HINT"
/>
</fieldset>
<fieldset
name="folder_paths_custom_config"
label="COM_COMPONENTBUILDER_CONFIG_FOLDER_PATHS">
<!-- Note_compiler_folder_path Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="note_compiler_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_compiler_folder_path" />
<field type="note" name="note_compiler_folder_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_compiler_folder_path" />
<!-- Compiler_folder_path Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="compiler_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_LABEL"
size="70"
@ -642,16 +674,13 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_HINT"
/>
<!-- Note_custom_folder_path Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="note_custom_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_FOLDER_PATH_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_FOLDER_PATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_custom_folder_path" />
<field type="note" name="note_custom_folder_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_FOLDER_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_FOLDER_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_custom_folder_path" />
<!-- Custom_folder_path Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="custom_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_LABEL"
size="70"
@ -663,16 +692,13 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_CUSTOM_FOLDER_PATH_HINT"
/>
<!-- Note_backup_folder_path Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="note_backup_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_NOTE_BACKUP_FOLDER_PATH_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_NOTE_BACKUP_FOLDER_PATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_backup_folder_path" />
<field type="note" name="note_backup_folder_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_BACKUP_FOLDER_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_BACKUP_FOLDER_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_backup_folder_path" />
<!-- Backup_folder_path Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="backup_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_LABEL"
size="70"
@ -684,16 +710,13 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_BACKUP_FOLDER_PATH_HINT"
/>
<!-- Note_git_folder_path Field. Type: Note. A None Database Field. (joomla) -->
<field type="note"
name="note_git_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_NOTE_GIT_FOLDER_PATH_LABEL"
description="COM_COMPONENTBUILDER_CONFIG_NOTE_GIT_FOLDER_PATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_git_folder_path" />
<field type="note" name="note_git_folder_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_GIT_FOLDER_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_GIT_FOLDER_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_git_folder_path" />
<!-- Git_folder_path Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="git_folder_path"
label="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_LABEL"
size="70"
@ -705,14 +728,16 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_GIT_FOLDER_PATH_HINT"
/>
</fieldset>
<fieldset
name="company_custom_config"
label="COM_COMPONENTBUILDER_CONFIG_COMPANY">
<!-- Export_company Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="export_company"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_COMPANY_LABEL"
size="40"
@ -724,9 +749,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_COMPANY_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_COMPANY_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_COMPANY_HINT"
/>
<!-- Export_owner Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="export_owner"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_OWNER_LABEL"
size="10"
@ -738,9 +765,11 @@
required="true"
filter="HTML"
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_OWNER_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_OWNER_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_OWNER_HINT"
/>
<!-- Export_email Field. Type: Text. (joomla) -->
<field type="text"
<field
type="text"
name="export_email"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_EMAIL_LABEL"
size="40"
@ -751,9 +780,11 @@
filter="STRING"
validate="email"
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_EMAIL_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_EMAIL_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_EMAIL_HINT"
/>
<!-- Export_website Field. Type: Url. (joomla) -->
<field type="url"
<field
type="url"
name="export_website"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_LABEL"
size="60"
@ -764,9 +795,11 @@
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_WEBSITE_HINT"
/>
<!-- Export_license Field. Type: Textarea. (joomla) -->
<field type="textarea"
<field
type="textarea"
name="export_license"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_LICENSE_LABEL"
rows="7"
@ -776,9 +809,11 @@
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_LICENSE_HINT"
required="true" />
required="true"
/>
<!-- Export_copyright Field. Type: Textarea. (joomla) -->
<field type="textarea"
<field
type="textarea"
name="export_copyright"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_COPYRIGHT_LABEL"
rows="7"
@ -788,9 +823,11 @@
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_COPYRIGHT_HINT"
required="true" />
required="true"
/>
<!-- Export_buy_link Field. Type: Url. (joomla) -->
<field type="url"
<field
type="url"
name="export_buy_link"
label="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_LABEL"
size="60"
@ -801,7 +838,8 @@
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_MESSAGE"
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_HINT" />
hint="COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_HINT"
/>
</fieldset>
<fieldset
name="permissions"

View File

@ -34,6 +34,23 @@ jimport('joomla.application.component.controller');
*/
class ComponentbuilderController extends JControllerLegacy
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.0
*/
public function __construct($config = array())
{
// set the default view
$config['default_view'] = 'componentbuilder';
parent::__construct($config);
}
/**
* display task
*
@ -42,7 +59,7 @@ class ComponentbuilderController extends JControllerLegacy
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view', 'Componentbuilder');
$view = $this->input->getCmd('view', 'componentbuilder');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
@ -85,8 +102,10 @@ class ComponentbuilderController extends JControllerLegacy
protected function getViewRelation($view)
{
// check the we have a value
if (ComponentbuilderHelper::checkString($view))
{
// the view relationships
$views = array(
'joomla_component' => 'joomla_components',
'admin_view' => 'admin_views',
@ -120,13 +139,15 @@ class ComponentbuilderController extends JControllerLegacy
'library_files_folders_urls' => 'libraries_files_folders_urls'
);
// check if this is a list view
if (in_array($view,$views))
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view,$views))
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
}
}

View File

@ -183,7 +183,9 @@ class Compiler extends Infusion
// the correct string
$externalCodeString = ($externalCount == 1) ? JText::_('code/string') : JText::_('code/strings');
// the notice
$this->app->enqueueMessage(JText::_('<hr /><h3>External Code Notice</h3>'), 'Notice');
$this->app->enqueueMessage(JText::sprintf('There has been <b>%s - %s</b> added to this component as EXTERNALCODE. To avoid shipping your component with malicious %s always make sure that the correct <b>code/string values</b> were used.', $externalCount, $externalCodeString, $externalCodeString), 'Notice');
$this->app->enqueueMessage('<hr />', 'Notice');
}
// end the timer here
$this->time_end = microtime(true);
@ -699,4 +701,5 @@ class Compiler extends Infusion
// any help to improve this is welcome...
}
}

View File

@ -11,7 +11,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.6.0
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage compiler.php
@ -247,10 +247,10 @@ class Get
* @var array
*/
public $langStringTargets = array(
'Joomla'.'.JText._(',
'JText:'.':script(',
'JText:'.':_(',
'JText:'.':sprintf('
'Joomla' . '.JText._(',
'JText:' . ':script(',
'JText:' . ':_(',
'JText:' . ':sprintf('
);
/**
@ -428,6 +428,37 @@ class Get
*/
private $_fieldData = array();
/**
* The field builder type
*
* 1 = StringManipulation
* 2 = SimpleXMLElement
*
* @var int
*/
public $fieldBuilderType;
/**
* Set unique Names
*
* @var array
*/
public $uniqueNames = array();
/**
* Set unique Names
*
* @var array
*/
protected $uniqueFieldNames = array();
/**
* Category other name bucket
*
* @var array
*/
public $catOtherName = array();
/**
* The linked admin view tabs
*
@ -471,11 +502,18 @@ class Get
public $layoutData = array();
/**
* The Advanced Encryption Switch
* The Encryption Types
*
* @var array
*/
public $cryptionTypes = array('basic', 'medium', 'whmcs');
/**
* The WHMCS Encryption Switch
*
* @var boolean
*/
public $advancedEncryption = false;
public $whmcsEncryption = false;
/**
* The Basic Encryption Switch
@ -484,6 +522,13 @@ class Get
*/
public $basicEncryption = false;
/**
* The Medium Encryption Switch
*
* @var boolean
*/
public $mediumEncryption = false;
/**
* The Custom field Switch per view
*
@ -575,6 +620,16 @@ class Get
$this->tidy = extension_loaded('Tidy');
// Set the params
$this->params = JComponentHelper::getParams('com_componentbuilder');
// set the field type builder
$this->fieldBuilderType = $this->params->get('compiler_field_builder_type', 2);
// check the field builder type logic
if (!$this->tidy && $this->fieldBuilderType == 2)
{
// we do not have the tidy extention set fall back to StringManipulation
$this->fieldBuilderType = 1;
// load the sugestion to use string manipulation
$this->app->enqueueMessage(JText::_('Since you do not have <b>Tidy</b> extentsion setup on your system, we could not use the SimpleXMLElement class. We instead used <b>string manipulation</b> to build all your fields, this is a faster method, you must inspect the xml files in your component package to see if you are satisfied with the result.<br />You can make this method your default by opening the global options of JCB and under the <b>Global</b> tab set the <b>Field Builder Type</b> to string manipulation.<hr />'), 'Notice');
}
// load the compiler path
$this->compilerPath = $this->params->get('compiler_folder_path', JPATH_COMPONENT_ADMINISTRATOR . '/compiler');
// set the component ID
@ -777,22 +832,22 @@ class Get
foreach ($addArrayF as $addTarget => $targetHere)
{
// set the add target data
$component->{'add'.$addTarget} = (isset($component->{'add'.$addTarget}) && ComponentbuilderHelper::checkJson($component->{'add'.$addTarget})) ? json_decode($component->{'add'.$addTarget}, true) : null;
if (ComponentbuilderHelper::checkArray($component->{'add'.$addTarget}))
$component->{'add' . $addTarget} = (isset($component->{'add' . $addTarget}) && ComponentbuilderHelper::checkJson($component->{'add' . $addTarget})) ? json_decode($component->{'add' . $addTarget}, true) : null;
if (ComponentbuilderHelper::checkArray($component->{'add' . $addTarget}))
{
if (isset($component->{$targetHere}) && ComponentbuilderHelper::checkArray($component->{$targetHere}))
{
foreach($component->{'add'.$addTarget} as $taget)
foreach ($component->{'add' . $addTarget} as $taget)
{
$component->{$targetHere}[] = $taget;
}
}
else
{
$component->{$targetHere} = array_values($component->{'add'.$addTarget});
$component->{$targetHere} = array_values($component->{'add' . $addTarget});
}
}
unset($component->{'add'.$addTarget});
unset($component->{'add' . $addTarget});
}
// set the uikit switch
@ -938,13 +993,32 @@ class Get
$component->addconfig = (isset($component->addconfig) && ComponentbuilderHelper::checkJson($component->addconfig)) ? json_decode($component->addconfig, true) : null;
if (ComponentbuilderHelper::checkArray($component->addconfig))
{
$component->config = array_map(function($array)
$component->config = array_map(function($field)
{
$array['alias'] = 0;
$array['title'] = 0;
$array['settings'] = $this->getFieldData($array['field']);
return $array;
// set hash
static $hash = 1;
// load hash
$field['hash'] = md5($field['field'] . $hash);
// increment hash
$hash++;
$field['alias'] = 0;
$field['title'] = 0;
// load the settings
$field['settings'] = $this->getFieldData($field['field']);
// set real field name
$field['base_name'] = $this->getFieldName($field);
// set unigue name keeper
$this->setUniqueNameCounter($this->getFieldName($field), 'configs');
// return field
return $field;
}, array_values($component->addconfig));
// do some house cleaning (for fields)
foreach ($component->config as $field)
{
// so first we lock the field name in
$this->getFieldName($field, 'configs');
}
// unset original value
unset($component->addconfig);
}
@ -1012,15 +1086,15 @@ class Get
foreach ($addGlobalCss as $area)
{
// add_css if found
if (isset($component->{'add_css_'.$area}) && $component->{'add_css_'.$area} == 1 && isset($component->{'css_'.$area}) && ComponentbuilderHelper::checkString($component->{'css_'.$area}))
if (isset($component->{'add_css_' . $area}) && $component->{'add_css_' . $area} == 1 && isset($component->{'css_' . $area}) && ComponentbuilderHelper::checkString($component->{'css_' . $area}))
{
$this->customScriptBuilder['component_css_'.$area] = base64_decode($component->{'css_'.$area});
$this->customScriptBuilder['component_css_' . $area] = base64_decode($component->{'css_' . $area});
}
else
{
$this->customScriptBuilder['component_css_'.$area] = '';
$this->customScriptBuilder['component_css_' . $area] = '';
}
unset($component->{'css_'.$area});
unset($component->{'css_' . $area});
}
// set the lang target
$this->lang = 'admin';
@ -1121,10 +1195,10 @@ class Get
{
$component->readme = '';
}
// set lang now
$nowLang = $this->lang;
$this->lang = 'admin';
// dashboard methods
$component->dashboard_tab = (isset($component->dashboard_tab) && ComponentbuilderHelper::checkJson($component->dashboard_tab)) ? json_decode($component->dashboard_tab, true) : null;
if (ComponentbuilderHelper::checkArray($component->dashboard_tab))
@ -1153,13 +1227,13 @@ class Get
$this->lang = $nowLang;
// add the update/sales server FTP details if that is the expected protocol
$serverArray = array('update_server','sales_server');
foreach($serverArray as $server)
$serverArray = array('update_server', 'sales_server');
foreach ($serverArray as $server)
{
if ($component->{'add_'.$server} == 1 && is_numeric($component->{$server}) && $component->{$server} > 0)
if ($component->{'add_' . $server} == 1 && is_numeric($component->{$server}) && $component->{$server} > 0)
{
// get the server protocol
$component->{$server.'_protocol'} = ComponentbuilderHelper::getVar('server', (int) $component->{$server}, 'id', 'protocol');
$component->{$server . '_protocol'} = ComponentbuilderHelper::getVar('server', (int) $component->{$server}, 'id', 'protocol');
}
else
{
@ -1167,9 +1241,9 @@ class Get
// only change this for sales server (update server can be added loacaly to the zip file)
if ('sales_server' === $server)
{
$component->{'add_'.$server} = 0;
$component->{'add_' . $server} = 0;
}
$component->{$server.'_protocol'} = 0;
$component->{$server . '_protocol'} = 0;
}
}
// set the ignore folders for repo if found
@ -1343,11 +1417,24 @@ class Get
if (ComponentbuilderHelper::checkArray($view->addfields))
{
// load the field data
$view->fields = array_map(function($array) use($name_single, $name_list)
$view->fields = array_map(function($field) use($name_single, $name_list)
{
$array['settings'] = $this->getFieldData($array['field'], $name_single, $name_list);
return $array;
// set hash
static $hash = 1;
// load hash
$field['hash'] = md5($field['field'] . $hash);
// increment hash
$hash++;
// set the settings
$field['settings'] = $this->getFieldData($field['field'], $name_single, $name_list);
// set real field name
$field['base_name'] = $this->getFieldName($field);
// set unigue name keeper
$this->setUniqueNameCounter($field['base_name'], $name_list);
// return field
return $field;
}, array_values($view->addfields));
// sort the fields acording to order
usort($view->fields, function($a, $b)
{
@ -1369,6 +1456,62 @@ class Get
}
return 0;
});
// do some house cleaning (for fields)
foreach ($view->fields as $field)
{
// so first we lock the field name in
$field_name = $this->getFieldName($field, $name_list);
// check if the field changed since the last compilation
if (ComponentbuilderHelper::checkObject($field['settings']->history))
{
// check if the datatype changed
if (isset($field['settings']->history->datatype))
{
$this->setUpdateSQL($field['settings']->history->datatype, $field['settings']->datatype, 'field.datatype', $name_single . '.' . $field_name);
}
// check if the datatype lenght changed
if (isset($field['settings']->history->datalenght) && isset($field['settings']->history->datalenght_other))
{
$this->setUpdateSQL($field['settings']->history->datalenght . $field['settings']->history->datalenght_other, $field['settings']->datalenght . $field['settings']->datalenght_other, 'field.lenght', $name_single . '.' . $field_name);
}
// check if the name changed
if (isset($field['settings']->history->xml) && ComponentbuilderHelper::checkJson($field['settings']->history->xml))
{
// only run if this is not an alias or a tag
if ((!isset($field['alias']) || !$field['alias']) && 'tag' !== $field['settings']->type_name)
{
// build temp field bucket
$tmpfield = array();
$tmpfield['settings'] = new stdClass();
// convert the xml json string to normal string
$tmpfield['settings']->xml = $this->setDynamicValues(json_decode($field['settings']->history->xml));
// add properties from current field as it is generic
$tmpfield['settings']->properties = $field['settings']->properties;
// add the old name
$tmpfield['settings']->name = $field['settings']->history->name;
// add the field type from current field since it is generic
$tmpfield['settings']->type_name = $field['settings']->type_name;
// get the old name
$old_field_name = $this->getFieldName($tmpfield);
// only run this if not a multi field
if (!isset($this->uniqueNames[$name_list]['names'][$field_name]))
{
// this only works when the field is not multiple of the same field
$this->setUpdateSQL($old_field_name, $field_name, 'field.name', $name_single . '.' . $field_name);
}
elseif ($old_field_name !== $field_name)
{
// give a notice atleast that the multi fields could have changed and no DB update was done
$this->app->enqueueMessage(JText::sprintf('You have a field called <b>%s</b> that has been added multiple times to the <b>%s</b> view, the name of that field has changed to <b>%s</b>. Normaly we would automaticly add the update SQL to your component, but with multiple fields this does not work automaticly since it could be that noting changed and it just seems like it did. Therefore you will have to do this manualy if it actualy did change!', $field_name, $name_single, $old_field_name), 'Notice');
}
// remove tmp
unset($tmpfield);
}
}
}
}
}
}
unset($view->addfields);
@ -1404,16 +1547,10 @@ class Get
$required = ($required == true) ? 'yes' : 'no';
$filter = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml, 'filter="', '"');
$filter = ComponentbuilderHelper::checkString($filter) ? $filter : 'none';
// get name
$name = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml, 'name="', '"');
$name = ComponentbuilderHelper::checkString($name) ? $name : $fieldValues['settings']->name;
// get type
$type = ComponentbuilderHelper::getBetween($fieldValues['settings']->xml, 'type="', '"');
$type = ComponentbuilderHelper::checkString($type) ? $type : $fieldValues['settings']->type_name;
// set the field name
$conditionValue['target_field'][$fieldKey] = array(
'name' => ComponentbuilderHelper::safeString($name),
'type' => ComponentbuilderHelper::safeString($type),
'name' => $this->getFieldName($fieldValues, $name_list),
'type' => $this->getFieldType($fieldValues),
'required' => $required,
'filter' => $filter
);
@ -1430,15 +1567,11 @@ class Get
{
if ((int) $fieldValue['field'] == (int) $conditionValue['match_field'])
{
// get name
$name = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'name="', '"');
$name = ComponentbuilderHelper::checkString($name) ? $name : $fieldValue['settings']->name;
// get type
$type = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'type="', '"');
$type = ComponentbuilderHelper::checkString($type) ? $type : $fieldValue['settings']->type_name;
// set the type
$type = $this->getFieldType($fieldValue);
// set the field details
$conditionValue['match_name'] = ComponentbuilderHelper::safeString($name);
$conditionValue['match_type'] = ComponentbuilderHelper::safeString($type);
$conditionValue['match_name'] = $this->getFieldName($fieldValue, $name_list);
$conditionValue['match_type'] = $type;
$conditionValue['match_xml'] = $fieldValue['settings']->xml;
// if custom field load field being extended
if (!ComponentbuilderHelper::typeField($type))
@ -1486,7 +1619,7 @@ class Get
}
$this->customScriptBuilder[$scripter_target][$name_single] = '';
}
$this->customScriptBuilder[$scripter_target][$name_single] .= $view->$scripter;
$this->customScriptBuilder[$scripter_target][$name_single] .= PHP_EOL . $view->$scripter;
if (strpos($view->$scripter, "token") !== false || strpos($view->$scripter, "task=ajax") !== false)
{
if (!$this->customScriptBuilder['token'][$name_single])
@ -1507,7 +1640,7 @@ class Get
{
$this->customScriptBuilder[$scripter][$name_single] = '';
}
$this->customScriptBuilder[$scripter][$name_single] .= base64_decode($view->$scripter);
$this->customScriptBuilder[$scripter][$name_single] .= PHP_EOL . base64_decode($view->$scripter);
unset($view->$scripter);
}
}
@ -1956,16 +2089,21 @@ class Get
{
$field->properties = array_values($field->properties);
}
// check if we have advanced encryption
if (4 == $field->store && (!isset($this->advancedEncryption) || !$this->advancedEncryption))
// check if we have WHMCS encryption
if (4 == $field->store && (!isset($this->whmcsEncryption) || !$this->whmcsEncryption))
{
$this->advancedEncryption = true;
$this->whmcsEncryption = true;
}
// check if we have basic encryption
elseif (3 == $field->store && (!isset($this->basicEncryption) || !$this->basicEncryption))
{
$this->basicEncryption = true;
}
// check if we have better encryption
elseif (5 == $field->store && (!isset($this->mediumEncryption) || !$this->mediumEncryption))
{
$this->mediumEncryption = true;
}
// get the last used version
$field->history = $this->getHistoryWatch('field', $id);
@ -2057,7 +2195,7 @@ class Get
$this->_fieldData[$id]->javascript_views_footer = $this->setDynamicValues(base64_decode($this->_fieldData[$id]->javascript_views_footer));
$this->_fieldData[$id]->javascript_views_footer_decoded = true;
}
$this->customScriptBuilder['views_footer'][$name_list] .= $this->_fieldData[$id]->javascript_views_footer;
$this->customScriptBuilder['views_footer'][$name_list] .= PHP_EOL . $this->_fieldData[$id]->javascript_views_footer;
if (strpos($this->_fieldData[$id]->javascript_views_footer, "token") !== false ||
strpos($this->_fieldData[$id]->javascript_views_footer, "task=ajax") !== false)
{
@ -2089,7 +2227,7 @@ class Get
$this->setCustomCodeData($this->_fieldData[$id]->css_views);
$this->_fieldData[$id]->css_views_decoded = true;
}
$this->customScriptBuilder['css_views'][$name_list] .= $this->_fieldData[$id]->css_views;
$this->customScriptBuilder['css_views'][$name_list] .= PHP_EOL . $this->_fieldData[$id]->css_views;
}
// add this only once to view.
@ -2104,6 +2242,213 @@ class Get
return false;
}
/**
* Get the field's actual type
*
* @param object $field The field object
*
* @return string Success returns field type
*
*/
public function getFieldType(&$field)
{
// set the type name
$type_name = ComponentbuilderHelper::safeString($field['settings']->type_name);
// check that we have the poperties
if (ComponentbuilderHelper::checkArray($field['settings']->properties))
{
foreach ($field['settings']->properties as $property)
{
if ($property['name'] === 'type')
{
if ($type_name === 'custom' || $type_name === 'customuser')
{
$type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"'));
}
// use field core type
elseif (ComponentbuilderHelper::checkString($type_name))
{
$type = $type_name;
}
// make sure none adjustable fields are set (should be same as above)
elseif (isset($property['example']) && ComponentbuilderHelper::checkString($property['example']) && $property['adjustable'] == 0)
{
$type = $property['example'];
}
// fall back on the xml settings (not ideal)
else
{
$type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($xml, 'type="', '"'));
}
// check if the value is set
if (ComponentbuilderHelper::checkString($type))
{
// add the value
return $type;
}
// exit foreach loop
break;
}
}
}
// fall back to text
return 'text';
}
/**
* Get the field's actual name
*
* @param object $field The field object
* @param string $listViewName The list view name
*
* @return string Success returns field name
*
*/
public function getFieldName(&$field, $listViewName = null)
{
// return the unique name if already set
if (ComponentbuilderHelper::checkString($listViewName) && isset($field['hash']) && isset($this->uniqueFieldNames[$listViewName . $field['hash']]))
{
return $this->uniqueFieldNames[$listViewName . $field['hash']];
}
// set the type name
$type_name = ComponentbuilderHelper::safeString($field['settings']->type_name);
// set the name of the field
$name = ComponentbuilderHelper::safeString($field['settings']->name);
// check that we have the poperties
if (ComponentbuilderHelper::checkArray($field['settings']->properties))
{
foreach ($field['settings']->properties as $property)
{
if ($property['name'] === 'name')
{
// if category then name must be catid (only one per view)
if ($type_name === 'category')
{
// quick check if this is a category linked to view page
$requeSt_id = ComponentbuilderHelper::getBetween($field['settings']->xml, 'name="', '"');
if (strpos($requeSt_id, '_request_id') !== false || strpos($requeSt_id, '_request_catid') !== false)
{
// keep it then, don't change
$name = $requeSt_id;
}
else
{
$name = 'catid';
}
// if list view name is set
if (ComponentbuilderHelper::checkString($listViewName))
{
// check if we should use another Text Name as this views name
$otherName = ComponentbuilderHelper::getBetween($field['settings']->xml, 'othername="', '"');
$otherViews = ComponentbuilderHelper::getBetween($field['settings']->xml, 'views="', '"');
$otherView = ComponentbuilderHelper::getBetween($field['settings']->xml, 'view="', '"');
if (ComponentbuilderHelper::checkString($otherName) && ComponentbuilderHelper::checkString($otherViews) && ComponentbuilderHelper::checkString($otherView))
{
$this->catOtherName[$listViewName] = array(
'name' => ComponentbuilderHelper::safeString($otherName),
'views' => ComponentbuilderHelper::safeString($otherViews),
'view' => ComponentbuilderHelper::safeString($otherView)
);
}
}
}
// if tag is set then enable all tag options for this view (only one per view)
elseif ($type_name === 'tag')
{
$name = 'tags';
}
// if the field is set as alias it must be called alias
elseif (isset($field['alias']) && $field['alias'])
{
$name = 'alias';
}
else
{
// get value from xml
$xml = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'name="', '"'));
// check if a value was found
if (ComponentbuilderHelper::checkString($xml))
{
$name = $xml;
}
}
// exit foreach loop
break;
}
}
}
// return the value unique
if (ComponentbuilderHelper::checkString($listViewName) && isset($field['hash']))
{
$this->uniqueFieldNames[$listViewName . $field['hash']] = $this->uniqueName($name, $listViewName);
// now return the unique name
return $this->uniqueFieldNames[$listViewName . $field['hash']];
}
// fall back to global
return $name;
}
/**
* Count how many times the same field is used per view
*
* @param string $name The name of the field
* @param string $view The name of the view
*
* @return void
*
*/
protected function setUniqueNameCounter($name, $view)
{
if (!isset($this->uniqueNames[$view]))
{
$this->uniqueNames[$view] = array();
$this->uniqueNames[$view]['counter'] = array();
$this->uniqueNames[$view]['names'] = array();
}
if (!isset($this->uniqueNames[$view]['counter'][$name]))
{
$this->uniqueNames[$view]['counter'][$name] = 1;
return;
}
// count how many times the field is used
$this->uniqueNames[$view]['counter'][$name] ++;
return;
}
/**
* Naming each field with an unique name
*
* @param string $name The name of the field
* @param string $view The name of the view
*
* @return string the name
*
*/
protected function uniqueName($name, $view)
{
// only increment if the field name is used multiple times
if (isset($this->uniqueNames[$view]['counter'][$name]) && $this->uniqueNames[$view]['counter'][$name] > 1)
{
$counter = 1;
// set the unique name
$uniqueName = ComponentbuilderHelper::safeString($name . '_' . $counter);
while (isset($this->uniqueNames[$view]['names'][$uniqueName]))
{
// increment the number
$counter++;
// try again
$uniqueName = ComponentbuilderHelper::safeString($name . '_' . $counter);
}
// set the new name number
$this->uniqueNames[$view]['names'][$uniqueName] = $counter;
// return the unique name
return $uniqueName;
}
return $name;
}
/**
* Set get Data
*
@ -2139,55 +2484,38 @@ class Get
{
$result->php_calculation = $this->setDynamicValues(base64_decode($result->php_calculation));
}
// add php custom scripting (php_before_getitem)
if ($result->add_php_before_getitem == 1 && ComponentbuilderHelper::checkString($result->php_before_getitem))
// The array of the php scripts that should be added to the script builder
$phpSripts = array('php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems', 'php_getlistquery');
// load the php scripts
foreach ($phpSripts as $script)
{
if (!isset($this->customScriptBuilder[$this->target . '_php_before_getitem'][$view_code]))
// add php script to the script builder
if (isset($result->{'add_' . $script}) && $result->{'add_' . $script} == 1 && isset($result->{$script}) && ComponentbuilderHelper::checkString($result->{$script}))
{
$this->customScriptBuilder[$this->target . '_php_before_getitem'][$view_code] = '';
// move all main gets out to the customscript builder
if ($result->gettype <= 2)
{
if (!isset($this->customScriptBuilder[$this->target . '_' . $script][$view_code]))
{
$this->customScriptBuilder[$this->target . '_' . $script][$view_code] = '';
}
$this->customScriptBuilder[$this->target . '_php_before_getitem'][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->php_before_getitem));
unset($result->php_before_getitem);
$this->customScriptBuilder[$this->target . '_' . $script][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->{$script}));
// remove from local item
unset($result->{$script});
unset($result->{'add_' . $script});
}
// add php custom scripting (php_after_getitem)
if ($result->add_php_after_getitem == 1 && ComponentbuilderHelper::checkString($result->php_after_getitem))
else
{
if (!isset($this->customScriptBuilder[$this->target . '_php_after_getitem'][$view_code]))
{
$this->customScriptBuilder[$this->target . '_php_after_getitem'][$view_code] = '';
// only for custom gets
$result->{$script} = $this->setDynamicValues(PHP_EOL . base64_decode($result->{$script}));
}
$this->customScriptBuilder[$this->target . '_php_after_getitem'][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->php_after_getitem));
unset($result->php_after_getitem);
}
// add php custom scripting (php_before_getitems)
if ($result->add_php_before_getitems == 1 && ComponentbuilderHelper::checkString($result->php_before_getitems))
else
{
if (!isset($this->customScriptBuilder[$this->target . '_php_before_getitems'][$view_code]))
{
$this->customScriptBuilder[$this->target . '_php_before_getitems'][$view_code] = '';
// remove from local item
unset($result->{$script});
unset($result->{'add_' . $script});
}
$this->customScriptBuilder[$this->target . '_php_before_getitems'][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->php_before_getitems));
unset($result->php_before_getitems);
}
// add php custom scripting (php_after_getitems)
if ($result->add_php_after_getitems == 1 && ComponentbuilderHelper::checkString($result->php_after_getitems))
{
if (!isset($this->customScriptBuilder[$this->target . '_php_after_getitems'][$view_code]))
{
$this->customScriptBuilder[$this->target . '_php_after_getitems'][$view_code] = '';
}
$this->customScriptBuilder[$this->target . '_php_after_getitems'][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->php_after_getitems));
unset($result->php_after_getitems);
}
// add php custom scripting (php_getlistquery)
if ($result->add_php_getlistquery == 1 && ComponentbuilderHelper::checkString($result->php_getlistquery))
{
if (!isset($this->customScriptBuilder[$this->target . '_php_getlistquery'][$view_code]))
{
$this->customScriptBuilder[$this->target . '_php_getlistquery'][$view_code] = '';
}
$this->customScriptBuilder[$this->target . '_php_getlistquery'][$view_code] .= $this->setDynamicValues(PHP_EOL . base64_decode($result->php_getlistquery));
unset($result->php_getlistquery);
}
// set the getmethod code name
$result->key = ComponentbuilderHelper::safeString($view_code . ' ' . $result->name . ' ' . $result->id);
@ -3091,22 +3419,22 @@ class Get
foreach ($addArray as $addTarget => $targetHere)
{
// set the add target data
$library->{'add'.$addTarget} = (isset($library->{'add'.$addTarget}) && ComponentbuilderHelper::checkJson($library->{'add'.$addTarget})) ? json_decode($library->{'add'.$addTarget}, true) : null;
if (ComponentbuilderHelper::checkArray($library->{'add'.$addTarget}))
$library->{'add' . $addTarget} = (isset($library->{'add' . $addTarget}) && ComponentbuilderHelper::checkJson($library->{'add' . $addTarget})) ? json_decode($library->{'add' . $addTarget}, true) : null;
if (ComponentbuilderHelper::checkArray($library->{'add' . $addTarget}))
{
if (isset($library->{$targetHere}) && ComponentbuilderHelper::checkArray($library->{$targetHere}))
{
foreach($library->{'add'.$addTarget} as $taget)
foreach ($library->{'add' . $addTarget} as $taget)
{
$library->{$targetHere}[] = $taget;
}
}
else
{
$library->{$targetHere} = array_values($library->{'add'.$addTarget});
$library->{$targetHere} = array_values($library->{'add' . $addTarget});
}
}
unset($library->{'add'.$addTarget});
unset($library->{'add' . $addTarget});
}
// add config fields only if needed
if ($library->how > 1)
@ -3188,10 +3516,10 @@ class Get
// insure string is not broken
$content = str_replace('COM_###COMPONENT###', $this->langPrefix, $content);
// first get the Joomla.JText._()
if (in_array('Joomla'.'.JText._(', $langStringTargets))
if (in_array('Joomla' . '.JText._(', $langStringTargets))
{
$jsTEXT[] = ComponentbuilderHelper::getAllBetween($content, "Joomla".".JText._('", "'");
$jsTEXT[] = ComponentbuilderHelper::getAllBetween($content, 'Joomla.'.'JText._("', '"');
$jsTEXT[] = ComponentbuilderHelper::getAllBetween($content, "Joomla" . ".JText._('", "'");
$jsTEXT[] = ComponentbuilderHelper::getAllBetween($content, 'Joomla.' . 'JText._("', '"');
// combine into one array
$jsTEXT = ComponentbuilderHelper::mergeArrays($jsTEXT);
// we need to add a check to insure these JavaScript lang matchup
@ -3203,10 +3531,10 @@ class Get
}
}
// now get the JText: :script()
if (in_array('JText:'.':script(', $langStringTargets))
if (in_array('JText:' . ':script(', $langStringTargets))
{
$scTEXT[] = ComponentbuilderHelper::getAllBetween($content, "JText:".":script('", "'");
$scTEXT[] = ComponentbuilderHelper::getAllBetween($content, 'JText:'.':script("', '"');
$scTEXT[] = ComponentbuilderHelper::getAllBetween($content, "JText:" . ":script('", "'");
$scTEXT[] = ComponentbuilderHelper::getAllBetween($content, 'JText:' . ':script("', '"');
// combine into one array
$scTEXT = ComponentbuilderHelper::mergeArrays($scTEXT);
// we need to add a check to insure these JavaScript lang matchup
@ -3221,7 +3549,7 @@ class Get
foreach ($langStringTargets as $langStringTarget)
{
// need some special treatment here
if ($langStringTarget === 'Joomla'.'.JText._(' || $langStringTarget === 'JText:'.':script(')
if ($langStringTarget === 'Joomla' . '.JText._(' || $langStringTarget === 'JText:' . ':script(')
{
continue;
}
@ -3691,19 +4019,21 @@ class Get
public function setExternalCodeString($string)
{
// check if content has custom code place holder
if (strpos($string, '[EXTERNA'.'LCODE=') !== false)
if (strpos($string, '[EXTERNA' . 'LCODE=') !== false)
{
// target content
$bucket = array();
$found = ComponentbuilderHelper::getAllBetween($string, '[EXTERNA'.'LCODE=', ']');
$found = ComponentbuilderHelper::getAllBetween($string, '[EXTERNA' . 'LCODE=', ']');
if (ComponentbuilderHelper::checkArray($found))
{
// build local bucket
foreach ($found as $target)
{
// check if user has permission to use EXTERNAL code (we may add a custom access switch - use ADMIN for now)
if ($this->user->authorise('core.admin', 'com_componentbuilder'))
{
// check if the target is valid URL or path
if ((!filter_var($target, FILTER_VALIDATE_URL) === false && ComponentbuilderHelper::urlExists($target))
|| (JPath::clean($target) === $target && JFile::exists($target)))
if ((!filter_var($target, FILTER_VALIDATE_URL) === false && ComponentbuilderHelper::urlExists($target)) || (JPath::clean($target) === $target && JFile::exists($target)))
{
$this->getExternalCodeString($target, $bucket);
}
@ -3711,9 +4041,21 @@ class Get
else
{
// set key
$key = '[EXTERNA'.'LCODE='.$target.']';
$key = '[EXTERNA' . 'LCODE=' . $target . ']';
// set the notice
$this->app->enqueueMessage(JText::_('<hr /><h3>External Code Warning</h3>'), 'Warning');
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> is not a valid url/path!', $key), 'Warning');
$this->app->enqueueMessage('<hr />', 'Warning');
// remove the placeholder
$bucket[$key] = '';
}
}
else
{
// set key
$key = '[EXTERNA' . 'LCODE=' . $target . ']';
// set the notice
$this->app->enqueueMessage(JText::sprintf('%s, you do not have permission to use <b>EXTERNALCODE</b> feature (so it was removed from the compilation), please contact you system administrator for more info!<br /><small>(admin access required)</small>', $this->user->get('name')), 'Error');
// remove the placeholder
$bucket[$key] = '';
}
@ -3740,7 +4082,7 @@ class Get
protected function getExternalCodeString($target, &$bucket)
{
// set key
$key = '[EXTERNA'.'LCODE=' . $target . ']';
$key = '[EXTERNA' . 'LCODE=' . $target . ']';
// set URL key
$targetKey = trim($target);
// check if we already fetched this
@ -3765,7 +4107,9 @@ class Get
// update local hash
$this->db->updateObject('#__componentbuilder_external_code', $object, 'target');
// give notice of the change
$this->app->enqueueMessage(JText::_('<hr /><h3>External Code Warning</h3>'), 'Warning');
$this->app->enqueueMessage(JText::sprintf('The code/string from <b>%s</b> has been <b>changed</b> since the last compilation, please investigate to insure the changes are safe!', $key), 'Warning');
$this->app->enqueueMessage('<hr />', 'Warning');
}
}
else
@ -3777,13 +4121,17 @@ class Get
// insert local hash
$this->db->insertObject('#__componentbuilder_external_code', $object);
// give notice the first time this is added
$this->app->enqueueMessage(JText::_('<hr /><h3>External Code Notice</h3>'), 'Notice');
$this->app->enqueueMessage(JText::sprintf('The code/string from <b>%s</b> has been added for the <b>first time</b>, please investigate to insure the correct code/string was used!', $key), 'Notice');
$this->app->enqueueMessage('<hr />', 'Notice');
}
}
else
{
// set notice that we could not get a valid string from the target
$this->app->enqueueMessage(JText::_('<hr /><h3>External Code Warning</h3>'), 'Warning');
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> returned an invalid string!', $key), 'Warning');
$this->app->enqueueMessage('<hr />', 'Warning');
}
}
// add to local bucket
@ -5079,6 +5427,13 @@ class Get
*/
public function setPlaceholders(&$data, &$placeholder, $action = 1)
{
// make sure the placeholders is an array
if (!ComponentbuilderHelper::checkArray($placeholder))
{
// This is an error, (TODO) actualy we need to add a kind of log here to know that this happened
return $data;
}
// continue with the work of replacement
if (1 == $action) // <-- just replace (default)
{
return str_replace(array_keys($placeholder), array_values($placeholder), $data);

View File

@ -306,6 +306,13 @@ class Structure extends Get
*/
public $addCheckin = false;
/**
* The Move Folders Switch
*
* @var boolean
*/
public $setMoveFolders = false;
/**
* The array of last modified dates
*
@ -313,6 +320,13 @@ class Structure extends Get
*/
protected $lastModifiedDate = array();
/**
* The default view switch
*
* @var bool/string
*/
public $dynamicDashboard = false;
/**
* Constructor
*/
@ -342,6 +356,8 @@ class Structure extends Get
$this->setLibaries();
// set the Joomla Version Data
$this->joomlaVersionData = $this->setJoomlaVersionData();
// set the dashboard
$this->setDynamicDashboard();
// set the new folders
if (!$this->setFolders())
{
@ -517,6 +533,84 @@ class Structure extends Get
}
}
/**
* set the dynamic dashboard if set
*
* @return void
*
*/
private function setDynamicDashboard()
{
// only add the dynamic dashboard if all checks out
if (isset($this->componentData->dashboard_type) && 2 == $this->componentData->dashboard_type && isset($this->componentData->dashboard) && ComponentbuilderHelper::checkString($this->componentData->dashboard) && strpos($this->componentData->dashboard, '_') !== false)
{
// set the default view
$getter = explode('_', $this->componentData->dashboard);
if (count($getter) == 2 && is_numeric($getter[1]))
{
// the pointers
$t = ComponentbuilderHelper::safeString($getter[0], 'U');
$id = (int) $getter[1];
// the dynamic stuff
$targets = array('A' => 'admin_views', 'C' => 'custom_admin_views');
$names = array('A' => 'admin view', 'C' => 'custom admin view');
$types = array('A' => 'adminview', 'C' => 'customadminview');
$keys = array('A' => 'name_list', 'C' => 'code');
// check the target values
if (isset($targets[$t]) && $id > 0)
{
// set the type name
$type_names = ComponentbuilderHelper::safeString($targets[$t], 'w');
// set the dynamic dash
if (isset($this->componentData->{$targets[$t]}) && ComponentbuilderHelper::checkArray($this->componentData->{$targets[$t]}))
{
// search the target views
$dashboard = (array) array_filter($this->componentData->{$targets[$t]}, function($view) use($id, $t, $types)
{
if (isset($view[$types[$t]]) && $id == $view[$types[$t]])
{
return true;
}
return false;
});
// check if view was found (this should be true)
if (count($dashboard) && isset($dashboard[0]['settings']) && isset($dashboard[0]['settings']->{$keys[$t]}))
{
$this->dynamicDashboard = ComponentbuilderHelper::safeString($dashboard[0]['settings']->{$keys[$t]});
}
else
{
// set massage that something is wrong
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> (<b>%s</b>) is not available in your component! Please insure to only used %s, for a dynamic dashboard, that are still linked to your component.', $names[$t], $this->componentData->dashboard, $type_names), 'Error');
}
}
else
{
// set massage that something is wrong
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> (<b>%s</b>) is not available in your component! Please insure to only used %s, for a dynamic dashboard, that are still linked to your component.', $names[$t], $this->componentData->dashboard, $type_names), 'Error');
}
}
else
{
// the target value is wrong
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> value for the dynamic dashboard is invalid.', $this->componentData->dashboard), 'Error');
}
}
else
{
// the target value is wrong
$this->app->enqueueMessage(JText::sprintf('The <b>%s</b> value for the dynamic dashboard is invalid.', $this->componentData->dashboard), 'Error');
}
// if default was changed to dynamic dashboard the remove default tab and methods
if (ComponentbuilderHelper::checkString($this->dynamicDashboard))
{
// dynamic dashboard is used
$this->componentData->dashboard_tab = '';
$this->componentData->php_dashboard_methods = '';
}
}
}
/**
* Write data to file
*
@ -682,6 +776,8 @@ class Structure extends Get
{
$README = true;
}
// set the standard folders
$stdFolders = array('site', 'admin', 'media');
// start moving
foreach ($this->joomlaVersionData->move->static as $ftem => $details)
{
@ -717,41 +813,59 @@ class Structure extends Get
$zipPath = str_replace('c0mp0n3nt/', '', $details->path);
$path = str_replace('c0mp0n3nt/', $this->componentPath . '/', $details->path);
// set the template folder path
$templatePath = (isset($details->custom) && $details->custom) ? (($details->custom !== 'full') ? $this->templatePathCustom.'/':'') : $this->templatePath.'/';
// now mov the file
$templatePath = (isset($details->custom) && $details->custom) ? (($details->custom !== 'full') ? $this->templatePathCustom . '/' : '') : $this->templatePath . '/';
// set the final paths
$currentFullPath = str_replace('//', '/', $templatePath . '/' . $item);
$packageFullPath = str_replace('//', '/', $path . '/' . $new);
$zipFullPath = str_replace('//', '/', $zipPath . '/' . $new);
// now move the file
if ($details->type === 'file')
{
if (!JFile::exists($templatePath . $item))
if (!JFile::exists($currentFullPath))
{
$this->app->enqueueMessage(JText::sprintf('The file path: <b>%s</b> does not exist, and was not added!', $templatePath . $item), 'Error');
$this->app->enqueueMessage(JText::sprintf('The file path: <b>%s</b> does not exist, and was not added!', $currentFullPath), 'Error');
}
else
{
// move the file to its place
JFile::copy($templatePath . $item, $path . '/' . $new);
JFile::copy($currentFullPath, $packageFullPath);
// count the file created
$this->fileCount++;
// store the new files
if (!in_array($ftem, $this->notNew))
{
$this->newFiles['static'][] = array('path' => $path . '/' . $new, 'name' => $new, 'zip' => $zipPath . '/' . $new);
$this->newFiles['static'][] = array('path' => $packageFullPath, 'name' => $new, 'zip' => $zipFullPath);
}
}
}
elseif ($details->type === 'folder')
{
if (!JFolder::exists($templatePath . $item))
if (!JFolder::exists($currentFullPath))
{
$this->app->enqueueMessage(JText::sprintf('The folder path: <b>%s</b> does not exist, and was not added!', $templatePath . $item), 'Error');
$this->app->enqueueMessage(JText::sprintf('The folder path: <b>%s</b> does not exist, and was not added!', $currentFullPath), 'Error');
}
else
{
// move the folder to its place
JFolder::copy($templatePath . $item, $path . '/' . $new);
JFolder::copy($currentFullPath, $packageFullPath);
// count the folder created
$this->folderCount++;
}
}
// check if we should add the dynamic folder moving script to the installer script
if (!$this->setMoveFolders)
{
$checker = explode('/', $zipFullPath);
// TODO <-- this may not be the best way, will keep an eye on this.
// We basicly only want to check if a folder is added that is not in the stdFolders array
if (isset($checker[0]) && ComponentbuilderHelper::checkString($checker[0]) && !in_array($checker[0], $stdFolders))
{
// add the setDynamicF0ld3rs() method to the install scipt.php file
$this->setMoveFolders = true;
// set message that this was done (will still add a tutorial link later)
$this->app->enqueueMessage(JText::sprintf('<p><b>Dynamic folder/s were detected.</b><br />A method (setDynamicF0ld3rs) was added to the install <b>script.php</b> of this package to insure that the folder/s are copied into the correct place when this componet is installed!</p>'), 'Notice');
}
}
}
return true;
}
@ -769,10 +883,13 @@ class Structure extends Get
$back = false;
$front = false;
if ((isset($this->joomlaVersionData->move->dynamic) && ComponentbuilderHelper::checkObject($this->joomlaVersionData->move->dynamic)) && (isset($this->componentData->admin_views) && ComponentbuilderHelper::checkArray($this->componentData->admin_views)))
{
if (!ComponentbuilderHelper::checkString($this->dynamicDashboard))
{
// setup dashboard
$target = array('admin' => $this->componentData->name_code);
$this->buildDynamique($target, 'dashboard');
}
// now the rest of the views
foreach ($this->componentData->admin_views as $nr => $view)
{
@ -1125,9 +1242,11 @@ class Structure extends Get
$custom['path'] = trim($custom['path'], '/');
}
// set full path if this is a full path folder
if(!isset($custom['folder']) && isset($custom['folderpath']))
if (!isset($custom['folder']) && isset($custom['folderpath']))
{
$custom['folder'] = '/'.trim($custom['folderpath'], '/');
$custom['folder'] = '/' . trim($custom['folderpath'], '/');
// update the dynamic path
$custom['folder'] = $this->updateDynamicPath($custom['folder']);
// remove the file path
unset($custom['folderpath']);
// triget fullpath
@ -1234,9 +1353,11 @@ class Structure extends Get
{
$customPath = 'custom';
// set full path if this is a full path file
if(!isset($custom['file']) && isset($custom['filepath']))
if (!isset($custom['file']) && isset($custom['filepath']))
{
$custom['file'] = '/'.trim($custom['filepath'], '/');
$custom['file'] = '/' . trim($custom['filepath'], '/');
// update the dynamic path
$custom['file'] = $this->updateDynamicPath($custom['file']);
// remove the file path
unset($custom['filepath']);
// triget fullpath
@ -1312,6 +1433,19 @@ class Structure extends Get
}
}
/**
* Update paths with real value
*
* @param string $path The full path
*
* @return string The updated path
*
*/
protected function updateDynamicPath($path)
{
return $this->setPlaceholders($path, ComponentbuilderHelper::$constantPaths);
}
/**
* Remove folders with files
*
@ -1325,4 +1459,5 @@ class Structure extends Get
{
return ComponentbuilderHelper::removeFolder($dir, $ignore);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -753,6 +753,12 @@ class Infusion extends Interpretation
// ###UPDATE_VERSION_MYSQL###
$this->setVersionController();
// only set these if default dashboard it used
if (!ComponentbuilderHelper::checkString($this->dynamicDashboard))
{
// ###DASHBOARDVIEW###
$this->fileContentStatic['###DASHBOARDVIEW###'] = $this->fileContentStatic['###component###'];
// ###DASHBOARDICONS###
$this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASHBOARDICONS###'] = $this->setDashboardIcons();
@ -767,6 +773,12 @@ class Infusion extends Interpretation
// ###DASH_DISPLAY_DATA###
$this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_DISPLAY_DATA###'] = $this->setDashboardDisplayData();
}
else
{
// ###DASHBOARDVIEW###
$this->fileContentStatic['###DASHBOARDVIEW###'] = $this->dynamicDashboard;
}
// add import
if (isset($this->addEximport) && $this->addEximport)
@ -1026,6 +1038,12 @@ class Infusion extends Interpretation
// ###UNINSTALLSCRIPT###
$this->fileContentStatic['###UNINSTALLSCRIPT###'] = $this->setUninstallScript();
// ###MOVEFOLDERSSCRIPT###
$this->fileContentStatic['###MOVEFOLDERSSCRIPT###'] = $this->setMoveFolderScript();
// ###MOVEFOLDERSMETHOD###
$this->fileContentStatic['###MOVEFOLDERSMETHOD###'] = $this->setMoveFolderMethod();
// ###HELPER_UIKIT###
$this->fileContentStatic['###HELPER_UIKIT###'] = $this->setUikitHelperMethods();

View File

@ -987,6 +987,57 @@ abstract class ComponentbuilderHelper
public static $snippetPath = 'https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder-Snippets/master/';
public static $snippetsPath = 'https://api.github.com/repos/vdm-io/Joomla-Component-Builder-Snippets/git/trees/master';
/**
* The array of constant paths
*
* JPATH_SITE is meant to represent the root path of the JSite application,
* just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.
*
* JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:
*
* JPATH_BASE == JPATH_ADMINISTRATOR
*
* If you are in the site application:
*
* JPATH_BASE == JPATH_SITE
*
* If you are in the installation application:
*
* JPATH_BASE == JPATH_INSTALLATION.
*
* JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.
*
* @var array
*/
public static $constantPaths = array(
// The path to the administrator folder.
'JPATH_ADMINISTRATOR' => JPATH_ADMINISTRATOR,
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.
'JPATH_BASE' => JPATH_BASE,
// The path to the cache folder.
'JPATH_CACHE' => JPATH_CACHE,
// The path to the administration folder of the current component being executed.
'JPATH_COMPONENT_ADMINISTRATOR' => JPATH_COMPONENT_ADMINISTRATOR,
// The path to the site folder of the current component being executed.
'JPATH_COMPONENT_SITE' => JPATH_COMPONENT_SITE,
// The path to the current component being executed.
'JPATH_COMPONENT' => JPATH_COMPONENT,
// The path to folder containing the configuration.php file.
'JPATH_CONFIGURATION' => JPATH_CONFIGURATION,
// The path to the installation folder.
'JPATH_INSTALLATION' => JPATH_INSTALLATION,
// The path to the libraries folder.
'JPATH_LIBRARIES' => JPATH_LIBRARIES,
// The path to the plugins folder.
'JPATH_PLUGINS' => JPATH_PLUGINS,
// The path to the installed Joomla! site.
'JPATH_ROOT' => JPATH_ROOT,
// The path to the installed Joomla! site.
'JPATH_SITE' => JPATH_SITE,
// The path to the templates folder.
'JPATH_THEMES' => JPATH_THEMES
);
/**
* Get the snippet contributor details
*
@ -1503,16 +1554,19 @@ abstract class ComponentbuilderHelper
}
/**
* get the localkey
* the basic localkey
**/
protected static $localkey = false;
/**
* get the localkey
**/
public static function getLocalKey()
{
if (!self::$localkey)
{
// get the main key
self::$localkey = md5(JComponentHelper::getParams('com_componentbuilder')->get('basic_key', 'localKey34fdWEkl'));
// get the basic key
self::$localkey = md5(self::getCryptKey('basic', 'localKey34fdWEkl'));
}
return self::$localkey;
}
@ -1586,7 +1640,17 @@ abstract class ComponentbuilderHelper
return false;
}
public static function getBetween($content,$start,$end)
/**
* get between
*
* @param string $content The content to search
* @param string $start The starting value
* @param string $end The ending value
*
* @return string On success / empty string on failure
*
*/
public static function getBetween($content, $start, $end)
{
$r = explode($start, $content);
if (isset($r[1]))
@ -1597,16 +1661,31 @@ abstract class ComponentbuilderHelper
return '';
}
public static function getAllBetween($content,$start,$end)
/**
* get all between
*
* @param string $content The content to search
* @param string $start The starting value
* @param string $end The ending value
*
* @return array On success
*
*/
public static function getAllBetween($content, $start, $end)
{
$buket = array();
// reset bucket
$bucket = array();
for ($i = 0; ; $i++)
{
// search for string
$found = self::getBetween($content,$start,$end);
if (self::checkString($found))
{
$buket[] = $found;
// add to bucket
$bucket[] = $found;
// build removal string
$remove = $start.$found.$end;
// remove from content
$content = str_replace($remove,'',$content);
}
else
@ -1619,7 +1698,8 @@ abstract class ComponentbuilderHelper
break;
}
}
return array_unique($buket);
// only return unique array of values
return array_unique($bucket);
}
public static function typeField($type,$option = 'default')
@ -1984,7 +2064,7 @@ abstract class ComponentbuilderHelper
if (!self::$composer)
{
// load the autoloader
require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/vendor/autoload.php';
require_once JPATH_SITE.'/libraries/vdm_io/vendor/autoload.php';
// do not load again
self::$composer = true;
}
@ -2094,7 +2174,7 @@ abstract class ComponentbuilderHelper
if (!class_exists('\phpseclib\Net\SFTP'))
{
// class not in place so send out error
JFactory::getApplication()->enqueueMessage(JText::_('COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_ADMINHELPERSVENDOR_FOLDER_OF_JCB_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO'), 'Error');
JFactory::getApplication()->enqueueMessage(JText::_('COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO'), 'Error');
return false;
}
// insure the port is set
@ -2409,6 +2489,41 @@ abstract class ComponentbuilderHelper
JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_THE_SERVER_DETAILS_FOR_BID_SB_COULD_NOT_BE_RETRIEVED', $serverID), 'Error');
return false;
}
/**
* the Crypt objects
**/
protected static $CRYPT = array();
/**
* get the Crypt object
*
* @return object on success with Crypt power
**/
public static function crypt($TYPE)
{
// check if it was already set
if (isset(self::$CRYPT[$TYPE]) && self::checkObject(self::$CRYPT[$TYPE]))
{
return self::$CRYPT[$TYPE];
}
// make sure we have the composer classes loaded
self::composerAutoload();
// build class name
$CLASS = '\phpseclib\Crypt\\'.$TYPE;
// make sure we have the phpseclib classes
if (!class_exists($CLASS))
{
// class not in place so send out error
JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO', $CLASS), 'Error');
return false;
}
// set the
self::$CRYPT[$TYPE] = new $CLASS();
// return the object
return self::$CRYPT[$TYPE];
}
/**
* Load the Component xml manifest.
**/
@ -3445,6 +3560,13 @@ abstract class ComponentbuilderHelper
}
/**
* Check if have an json string
*
* @input string The json string to check
*
* @returns bool true on success
**/
public static function checkJson($string)
{
if (self::checkString($string))
@ -3455,15 +3577,29 @@ abstract class ComponentbuilderHelper
return false;
}
/**
* Check if have an object with a length
*
* @input object The object to check
*
* @returns bool true on success
**/
public static function checkObject($object)
{
if (isset($object) && is_object($object) && count($object) > 0)
if (isset($object) && is_object($object))
{
return true;
return count((array)$object) > 0;
}
return false;
}
/**
* Check if have an array with a length
*
* @input array The array to check
*
* @returns bool true on success
**/
public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
@ -3485,6 +3621,13 @@ abstract class ComponentbuilderHelper
return false;
}
/**
* Check if have a string with a length
*
* @input string The string to check
*
* @returns bool true on success
**/
public static function checkString($string)
{
if (isset($string) && is_string($string) && strlen($string) > 0)
@ -3519,6 +3662,13 @@ abstract class ComponentbuilderHelper
return $is_conn;
}
/**
* Merge an array of array's
*
* @input array The arrays you would like to merge
*
* @returns array on success
**/
public static function mergeArrays($arrays)
{
if(self::checkArray($arrays))
@ -3542,6 +3692,13 @@ abstract class ComponentbuilderHelper
return self::shorten($string, $length, $addTip);
}
/**
* Shorten a string
*
* @input string The you would like to shorten
*
* @returns string on success
**/
public static function shorten($string, $length = 40, $addTip = true)
{
if (self::checkString($string))
@ -3576,6 +3733,13 @@ abstract class ComponentbuilderHelper
return $string;
}
/**
* Making strings safe (various ways)
*
* @input string The you would like to make safe
*
* @returns string on success
**/
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
{
if ($replaceNumbers === true)
@ -3813,18 +3977,29 @@ abstract class ComponentbuilderHelper
return implode($key);
}
public static function getCryptKey($type, $default = null)
{
if ('basic' === $type)
/**
* Get The Encryption Keys
*
* @param string $type The type of key
* @param string/bool $default The return value if no key was found
*
* @return string On success
*
**/
public static function getCryptKey($type, $default = false)
{
// Get the global params
$params = JComponentHelper::getParams('com_componentbuilder', true);
// Basic Encryption Type
if ('basic' === $type)
{
$basic_key = $params->get('basic_key', $default);
if ($basic_key)
if (self::checkString($basic_key))
{
return $basic_key;
}
}
return false;
return $default;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -2001,13 +2001,50 @@ COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_DESC="The date this C
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_LABEL="Modified Date"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NEW="A New Component Files & Folders"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_DESCRIPTION="You can add custom files to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here."
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />To see a list of constant paths please read the notes below. Example: JPATH_ROOT/file.php or JPATH_ROOT/components/com_yourcomponentname/helpers/file.php"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_LABEL="Adding Files"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_LABEL="Adding Custom Files"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_DESCRIPTION="You can add custom folders to the component, simply add the folders to the administrator/components/com_componentbuilder/custom folder and then select them here."
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />To see a list of constant paths please read the notes below. Example: JPATH_ROOT/folder or JPATH_ROOT/components/com_yourcomponentname/helpers/folder"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_LABEL="Adding Folders"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_LABEL="Adding Custom Folders"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_CONSTANT_PATHS_DESCRIPTION="<p>// The path to the administrator folder.<br />
<b>JPATH_ADMINISTRATOR</b><br />
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.<br />
<b>JPATH_BASE</b><br />
// The path to the cache folder.<br />
<b>JPATH_CACHE</b><br />
// The path to the administration folder of the current component being executed.<br />
<b>JPATH_COMPONENT_ADMINISTRATOR</b><br />
// The path to the site folder of the current component being executed.<br />
<b>JPATH_COMPONENT_SITE</b><br />
// The path to the current component being executed.<br />
<b>JPATH_COMPONENT</b><br />
// The path to folder containing the configuration.php file.<br />
<b>JPATH_CONFIGURATION</b><br />
// The path to the installation folder.<br />
<b>JPATH_INSTALLATION</b><br />
// The path to the libraries folder.<br />
<b>JPATH_LIBRARIES</b><br />
// The path to the plugins folder.<br />
<b>JPATH_PLUGINS</b><br />
// The path to the installed Joomla! site.<br />
<b>JPATH_ROOT</b><br />
// The path to the installed Joomla! site.<br />
<b>JPATH_SITE</b><br />
// The path to the templates folder.<br />
<b>JPATH_THEMES</b></p>
<p>JPATH_SITE is meant to represent the root path of the JSite application,<br />
just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.<br />
JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:<br />
JPATH_BASE == JPATH_ADMINISTRATOR<br />
If you are in the site application:<br />
JPATH_BASE == JPATH_SITE<br />
If you are in the installation application:<br />
JPATH_BASE == JPATH_INSTALLATION.<br />
JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.</p>"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_CONSTANT_PATHS_LABEL="Constant Paths"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION="Should file be updated."
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL="Update"
COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ORDERING_LABEL="Ordering"
@ -2221,8 +2258,8 @@ COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_HINT="JCB_Backup_[YEAR]_[MONTH]_
COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_LABEL="Package Name"
COM_COMPONENTBUILDER_CONFIG_BACKUP_PACKAGE_NAME_MESSAGE="Error! Please add name here."
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_DESC="Set the basic local key here."
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_LABEL="Basic Key <small>(basic encryption)</small>"
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_NOTE_DESC="When using the basic encryption please use a 32 character passphrase.<br />Never change this passphrase once it is set! <b>DATA WILL GET CORRUPTED IF YOU DO!</b>"
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_LABEL="Basic Key"
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_NOTE_DESC="When using the basic encryption please use set a 32 character passphrase.<br />Never change this passphrase once it is set! <b>DATA WILL GET CORRUPTED IF YOU DO!</b>"
COM_COMPONENTBUILDER_CONFIG_BASIC_KEY_NOTE_LABEL="Basic Encryption"
COM_COMPONENTBUILDER_CONFIG_CHECK_TIMER_DESC="Set the intervals for the auto checkin fuction of tables that checks out the items to an user."
COM_COMPONENTBUILDER_CONFIG_CHECK_TIMER_LABEL="Check in timer"
@ -2233,6 +2270,8 @@ COM_COMPONENTBUILDER_CONFIG_CHECK_TIMER_OPTION_SIX="Never"
COM_COMPONENTBUILDER_CONFIG_CHECK_TIMER_OPTION_THREE="Once a day"
COM_COMPONENTBUILDER_CONFIG_CHECK_TIMER_OPTION_TWO="Every twelve hours"
COM_COMPONENTBUILDER_CONFIG_COMPANY="Company"
COM_COMPONENTBUILDER_CONFIG_COMPILER_FIELD_BUILDER_TYPE_DESCRIPTION="Select the method to use when building the xml fields in the compiler. The <b>SimpleXMLElement Class</b> is best practice, and <b>String Manipulation</b> is faster and works without special extensions."
COM_COMPONENTBUILDER_CONFIG_COMPILER_FIELD_BUILDER_TYPE_LABEL="Field Builder Type<br /><small>(in compiler)</small>"
COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_DESCRIPTION="Here you can set the path to the compiler folder"
COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_HINT="/home/user/compiler"
COM_COMPONENTBUILDER_CONFIG_COMPILER_FOLDER_PATH_LABEL="Compiler Folder Path"
@ -2400,6 +2439,7 @@ COM_COMPONENTBUILDER_CONFIG_SENDMAIL_HINT="/usr/sbin/sendmail"
COM_COMPONENTBUILDER_CONFIG_SENDMAIL_LABEL="Sendmail Path"
COM_COMPONENTBUILDER_CONFIG_SET_BROWSER_STORAGE_DESCRIPTION="Select if browser storage should be used to save on Ajax calls and speed up this components site pages."
COM_COMPONENTBUILDER_CONFIG_SET_BROWSER_STORAGE_LABEL="Browser Storage"
COM_COMPONENTBUILDER_CONFIG_SIMPLEXMLELEMENT_CLASS="SimpleXMLElement Class"
COM_COMPONENTBUILDER_CONFIG_SMTP="SMTP"
COM_COMPONENTBUILDER_CONFIG_SMTPAUTH_DESCRIPTION="Select yes if your SMTP host requires SMTP Authentication."
COM_COMPONENTBUILDER_CONFIG_SMTPAUTH_LABEL="SMTP Authentication"
@ -2419,6 +2459,7 @@ COM_COMPONENTBUILDER_CONFIG_SMTPUSER_LABEL="SMTP Username"
COM_COMPONENTBUILDER_CONFIG_SSL="SSL"
COM_COMPONENTBUILDER_CONFIG_STORAGE_TIME_TO_LIVE_DESCRIPTION="How long should the data that is stored in the browser memory remain unchanged before it is removed and updated."
COM_COMPONENTBUILDER_CONFIG_STORAGE_TIME_TO_LIVE_LABEL="Update Cycle"
COM_COMPONENTBUILDER_CONFIG_STRING_MANIPULATION="String Manipulation"
COM_COMPONENTBUILDER_CONFIG_TLS="TLS"
COM_COMPONENTBUILDER_CONFIG_UIKIT_DESC="<b>The Parameters for the uikit are set here.</b><br />Uikit is a lightweight and modular front-end framework
for developing fast and powerful web interfaces. For more info visit <a href="https://getuikit.com/v2/" target="_blank">https://getuikit.com/v2/</a>"
@ -3144,6 +3185,7 @@ COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES="Fieldtypes<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES_CATID="Category &nbsp;For<br />Fieldtypes"
COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPE_ADD="Add&nbsp;Fieldtype<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_FIELD_ADD="Add&nbsp;Field<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_GETSNIPPETS="Get Snippets<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENTS="Help Documents<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENT_ADD="Add&nbsp;Help Document<br /><br />"
COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_COMPONENTS="Joomla Components<br /><br />"
@ -3681,9 +3723,8 @@ COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER="Add Javascript Views Foo
COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER_LABEL="Add JavaScript (views-footer)"
COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER="Add Javascript View Footer"
COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL="Add JavaScript (view-footer)"
COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY="Advance Encryption (WHMCS-key)"
COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR="base64"
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY="Basic Encryption (local-key)"
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY="Basic Encryption (local-DB-key)"
COM_COMPONENTBUILDER_FIELD_BIGINT="BIGINT"
COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION="select one of the following categories"
COM_COMPONENTBUILDER_FIELD_CATID_LABEL="Category"
@ -3752,6 +3793,7 @@ COM_COMPONENTBUILDER_FIELD_JSON="JSON"
COM_COMPONENTBUILDER_FIELD_KEY="KEY"
COM_COMPONENTBUILDER_FIELD_LONGTEXT="LONGTEXT"
COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT="MEDIUMTEXT"
COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY="Medium Encryption (local-file-key)"
COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_DESC="The last user that modified this Field."
COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_LABEL="Modified By"
COM_COMPONENTBUILDER_FIELD_MODIFIED_DATE_DESC="The date this Field was modified."
@ -3792,8 +3834,10 @@ COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION="<div class='form
<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>
</div>
</div>"
COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION="When using the VDM encryption you need to get a VDM public key from https://www.vdm.io/ "
COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL="The VDM Encryption"
COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION="<p>When using the WHMCS encryption you need to get a WHMCS key from:<br /><a href='https://www.vdm.io/support' target='_blank'>https://www.vdm.io</a>, or your own WHMCS install.</p><p>Please note that you will need to <b>enable the add-on</b> in the Joomla Component area (Add WHMCS)->Yes.</p><p>You can get more info about the WHMCS licensing add-on at the following links.</p><p><b>Helpful Links:</b><br />
<a href='https://www.whmcs.com/addons/licensing-addon/' target='_blank'>https://www.whmcs.com/addons/licensing-addon/</a><br />
<a href='http://docs.whmcs.com/Licensing_Addon/' target='_blank'>http://docs.whmcs.com/Licensing_Addon/</a></p>"
COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL="The WHMCS Encryption"
COM_COMPONENTBUILDER_FIELD_NOT_NULL="NOT NULL"
COM_COMPONENTBUILDER_FIELD_NOT_REQUIRED="Not Required"
COM_COMPONENTBUILDER_FIELD_NULL="NULL"
@ -3824,6 +3868,7 @@ COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY="UNIQUE KEY"
COM_COMPONENTBUILDER_FIELD_VARCHAR="VARCHAR"
COM_COMPONENTBUILDER_FIELD_VERSION_DESC="A count of the number of times this Field has been revised."
COM_COMPONENTBUILDER_FIELD_VERSION_LABEL="Revision"
COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION="WHMCS-key Encryption"
COM_COMPONENTBUILDER_FIELD_XML="Xml"
COM_COMPONENTBUILDER_FIELD_XML_DESCRIPTION="Text Area"
COM_COMPONENTBUILDER_FIELD_XML_HINT="Field XML Go Here"
@ -3831,8 +3876,10 @@ COM_COMPONENTBUILDER_FIELD_XML_LABEL="XML field definition (Please set the field
COM_COMPONENTBUILDER_FIELD_YES="Yes"
COM_COMPONENTBUILDER_FIELD_ZERO="0"
COM_COMPONENTBUILDER_FILE="File"
COM_COMPONENTBUILDER_FILE_BSB_WAS_NOT_MOVE_TO_S="File <b>%s</b> was not move to (%s)!"
COM_COMPONENTBUILDER_FILTER="Filter"
COM_COMPONENTBUILDER_FOLDER="Folder"
COM_COMPONENTBUILDER_FOLDER_BSB_WAS_NOT_MOVE_TO_S="Folder <b>%s</b> was not move to (%s)!"
COM_COMPONENTBUILDER_FORCE_LOCAL_UPDATE="Force Local Update"
COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab"
COM_COMPONENTBUILDER_GENERAL_OVERVIEW_OF_HOW_THINGS_WORK_BSB="General overview of how things work: <b>%s</b>"
@ -4111,8 +4158,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_FOOTABLE_VTWO="Add FooTable V2"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT="Add Javascript"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT_LABEL="Add Javascript"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE="Add License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION="Add the option to use a license in the component."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL="Add License (whmcs)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION="Add the option to use the whmcs license add-on in the component."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL="Add WHMCS<br /><small>(license add-on)</small>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN="Add Php Helper Admin"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN_LABEL="Add PHP (helper_admin Class)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_BOTH="Add Php Helper Both"
@ -4143,7 +4190,6 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTWO="Add Uikit v2"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER="Add Update Server"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL="Add Update Server"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADMIN_VIEWS="Admin Views"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADVANCED_ENCRYPTION_ONLY_TO_LOCK_DATA="Advanced encryption (only to lock data)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR="Author"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_DESCRIPTION="The Author's Name &amp; Surname."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT="Author Name &amp; Surname Here"
@ -4194,9 +4240,17 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_HINT="// CSS for the entire front
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL="CSS (site)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_ADMIN_VIEWS="Custom Admin Views"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE="Custom (used in custom code)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD="Dashboard"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_DESCRIPTION="Select a custom admin view that is already linked to this component as a dynamic dashboard."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_LABEL="Dynamic Dashboard<br /><small>(admin or custom admin view)</small>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE="Dashboard Type"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE_DESCRIPTION="Select the type of dashboard you would like to use."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE_LABEL="Dashboard Type"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASH_INSTALL="Dash & Install"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR="Debug Linenr"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR_DESCRIPTION="Add corresponding line numbers to the dynamic comments, so to see where in the compiler the lines of code was build. This will help if you need to get more technical with an issue on github."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR_LABEL="Debug (line numbers)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEFAULT="Default"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION="Description"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_DESCRIPTION="Add Description Here"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_HINT="Add Description Here"
@ -4269,9 +4323,9 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_CODE_HINT="codename"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_CODE_LABEL="Name in Code"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_CODE_MESSAGE="Error! Please add name in code here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_DESCRIPTION="Enter Name Here"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT="Name Here"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT="Component Name"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_LABEL="Name"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_MESSAGE="Error! Please add name here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_MESSAGE="Error! Please add component name here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NEW="A New Joomla Component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO="No"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NONE="None"
@ -4279,8 +4333,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_DESCRIPTION="You can add c
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_LABEL="Adding Custom Config Fields"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_DESCRIPTION="You can add custom menus to the component here. The normal Menus are already being added so only add custom Menus that you would like to use for custom scripts.<span id='jform_button_add_custom_menus'></span>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_LABEL="Adding Custom Menus"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION="<p>You can add more tabs to the component dashboard.</p><span id='jform_button_component_dashboard'></span>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL="Customize the Component Dashboard"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION="<p>The default dashboard has all the icons of the views you have selected as <b>Dashboard (add record)</b> or <b>Dashboard (list of records)</b>, to expand it you can add more tabs.</p><span id='jform_button_component_dashboard'></span>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL="Default Dashboard Option"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION="You can dynamically build the components back-end views and fields by adding a mySql table dump, that has all the tables, or some more tables with its columns and data types. A very basic and generic set of fields and tables will be created, and added to the existing fields and tables of this component."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL="Dynamic Builder (mySql) Option"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_DESCRIPTION="You can add custom files and folders to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here.<span id='jform_button_component_files_folders'></span>"
@ -4288,6 +4342,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_LABEL="Adding
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_ADMIN_VIEWS_DESCRIPTION="<h4>Linked Admin Views <span id='header_component_admin_views_buttons'></span></h4><div id='display_component_admin_views' >Display of the admin views will load here!</div>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_CUSTOM_ADMIN_VIEWS_DESCRIPTION="<h4>Linked Custom Admin Views <span id='header_component_custom_admin_views_buttons'></span></h4><div id='display_component_custom_admin_views' >Display of the custom admin views will load here!</div>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION="<h4>Linked Site Views <span id='header_component_site_views_buttons'></span></h4><div id='display_component_site_views' >Display of the site views will load here!</div>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_DESCRIPTION="The dynamic dashboard is basically the option of taking an <b>Admin View</b> or <b>Custom Admin View</b> that is already linked to this component, and making it the dashboard."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_LABEL="Dynamic Dashboard Option"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_DESCRIPTION="We have moved the views in to their own tabs for your convenience.<span id='jform_button_create_edit_views'></span>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_LABEL="To add views, please open the corresponding tab."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION="In each admin view you can add data from a MySQL Table (this is done in the admin view MySQL tab). Here you can limit that data in relation to this component. This feature is useful when an admin view with demo data is used in more then one component, and you would like to exclude some demo data without creating a new admin view.<span id='jform_button_mysql_tweak_options'></span>"
@ -4373,7 +4429,6 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NUMBER_LABEL="Number"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ORDERING_LABEL="Ordering"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER="Other"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PERMISSION="Permissions"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP="PHP"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT="Php Admin Event"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION="PHP script for the global helper admin event method."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_HINT="// add custom PHP script to the global helper admin event method."
@ -4451,8 +4506,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_HINT="Coma separated names of fol
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_LABEL="Repository Folders or Files to Ignore"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION="During compilation JCB deletes all files and folders from the repository folder, and then adds the newly created files and folders back into the repository folder. Yet there may be files or folders you may not want deleted, like the <b>.git</b> folder, since JCB does not dynamically create that folder and so it will not be placed back, but simply delete it, unless you add it in this text field below, so that it will be ignored, and therefore not deleted in the first place. You can add multiple folders and files, separated by commas. Like: <code>.git, .hg</code>"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_LABEL="Repository Folders or Files to Ignore"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION="Translation"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_USED_IN_JOOMLA_UPDATER="Updates (used in Joomla updater)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_NOT_READY="Updates (NOT READY!)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER="Update Server"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION="Select your update server for this component."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL="Update Server"
@ -4477,6 +4531,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_DESCRIPTION="Enter website address
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_HINT="http://www.example.com"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_LABEL="Website"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_MESSAGE="Error! Please add website here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_ENCRYPTION_ONLY_TO_LOCK_DATAFIELDS="WHMCS encryption (only to lock data/fields)"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY="Whmcs Key"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_DESCRIPTION="Add your WHMCS Secret Key here that is needed for this license"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT="Secret Key"
@ -5002,15 +5057,52 @@ COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC="The date thi
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL="Modified Date"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NEW="A New Library Files, Folders & URLs"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION="You can add custom files to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here."
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />To see a list of constant paths please read the notes below. Example: JPATH_ROOT/file.php or JPATH_ROOT/components/com_yourcomponentname/helpers/file.php"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL="Adding Files"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL="Adding Custom Files"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION="You can add custom folders to the component, simply add the folders to the administrator/components/com_componentbuilder/custom folder and then select them here."
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)<br /><b>Please note</b> that you can also <b>use constant paths in your full path</b> (directly without quotes), this is highly recommended to insure portability.<br />To see a list of constant paths please read the notes below. Example: JPATH_ROOT/folder or JPATH_ROOT/components/com_yourcomponentname/helpers/folder"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL="Adding Folders"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL="Adding Custom Folders"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION="You can add urls here, and it can be used in three ways. As a direct link <b>(default)</b> or to get the file content and add it to the component <b>(get)</b> or as both local and link <b>(dynamic)</b>"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL="Adding Urls"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION="<p>// The path to the administrator folder.<br />
<b>JPATH_ADMINISTRATOR</b><br />
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.<br />
<b>JPATH_BASE</b><br />
// The path to the cache folder.<br />
<b>JPATH_CACHE</b><br />
// The path to the administration folder of the current component being executed.<br />
<b>JPATH_COMPONENT_ADMINISTRATOR</b><br />
// The path to the site folder of the current component being executed.<br />
<b>JPATH_COMPONENT_SITE</b><br />
// The path to the current component being executed.<br />
<b>JPATH_COMPONENT</b><br />
// The path to folder containing the configuration.php file.<br />
<b>JPATH_CONFIGURATION</b><br />
// The path to the installation folder.<br />
<b>JPATH_INSTALLATION</b><br />
// The path to the libraries folder.<br />
<b>JPATH_LIBRARIES</b><br />
// The path to the plugins folder.<br />
<b>JPATH_PLUGINS</b><br />
// The path to the installed Joomla! site.<br />
<b>JPATH_ROOT</b><br />
// The path to the installed Joomla! site.<br />
<b>JPATH_SITE</b><br />
// The path to the templates folder.<br />
<b>JPATH_THEMES</b></p>
<p>JPATH_SITE is meant to represent the root path of the JSite application,<br />
just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.<br />
JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:<br />
JPATH_BASE == JPATH_ADMINISTRATOR<br />
If you are in the site application:<br />
JPATH_BASE == JPATH_SITE<br />
If you are in the installation application:<br />
JPATH_BASE == JPATH_INSTALLATION.<br />
JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.</p>"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL="Constant Paths"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION="Should file be updated."
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL="Update"
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ORDERING_LABEL="Ordering"
@ -5192,6 +5284,7 @@ COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs"
COM_COMPONENTBUILDER_SAVE_SUCCESS="Great! Item successfully saved."
COM_COMPONENTBUILDER_SAVE_WARNING="The value already existed so please select another."
COM_COMPONENTBUILDER_SEARCHABLE="Searchable"
COM_COMPONENTBUILDER_SELECT_AN_OPTION="Select an option"
COM_COMPONENTBUILDER_SELECT_A_SNIPPET="select a snippet"
COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE="Select the component to compile"
COM_COMPONENTBUILDER_SERVER="Server"
@ -5259,7 +5352,7 @@ COM_COMPONENTBUILDER_SERVER_FTP="FTP"
COM_COMPONENTBUILDER_SERVER_HOST="Host"
COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION="Add the server host name/IP here"
COM_COMPONENTBUILDER_SERVER_HOST_HINT="yourhost.com"
COM_COMPONENTBUILDER_SERVER_HOST_LABEL="Host/IP<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_HOST_LABEL="Host/IP<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE="Error! Please add server host name here."
COM_COMPONENTBUILDER_SERVER_ID="Id"
COM_COMPONENTBUILDER_SERVER_LINKED_COMPONENTS="Linked Components"
@ -5281,23 +5374,23 @@ COM_COMPONENTBUILDER_SERVER_NOT_REQUIRED="Not Required"
COM_COMPONENTBUILDER_SERVER_ORDERING_LABEL="Ordering"
COM_COMPONENTBUILDER_SERVER_PASSWORD="Password"
COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION="Enter the password."
COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL="Password<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL="Password<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_PATH="Path"
COM_COMPONENTBUILDER_SERVER_PATH_DESCRIPTION="Set the path to the remote destination folder. The user must have write permissions to this folder."
COM_COMPONENTBUILDER_SERVER_PATH_HINT="/home/username/folder/"
COM_COMPONENTBUILDER_SERVER_PATH_LABEL="Remote Destination Folder Path<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_PATH_LABEL="Remote Destination Folder Path<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_PATH_MESSAGE="Error! Please add destination path."
COM_COMPONENTBUILDER_SERVER_PERMISSION="Permissions"
COM_COMPONENTBUILDER_SERVER_PORT="Port"
COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION="The port number"
COM_COMPONENTBUILDER_SERVER_PORT_HINT="22"
COM_COMPONENTBUILDER_SERVER_PORT_LABEL="Port Number<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_PORT_LABEL="Port Number<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE="Error! Please add port number here."
COM_COMPONENTBUILDER_SERVER_PRIVATE="Private"
COM_COMPONENTBUILDER_SERVER_PRIVATE_DESCRIPTION="Set the path to the private key."
COM_COMPONENTBUILDER_SERVER_PRIVATE_HINT="/home/username/.ssh/id_rsa"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY="Private Key"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION="Add your private key here! Yes this field in encrypted in the DB, but if your DB gets compromised this key must also be considered compromised. The system path option is considered more secure and seen as best practice."
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION="Add your private key here! Yes this field is encrypted in the DB, but if your DB gets compromised this key must also be considered compromised! The system path option is considered more secure and seen as best practice."
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_FILE_PATH="Private Key - File Path"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT="-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDPF9uyDuHtD+sCYBaEIV34uAc+eRa62souVUcmsVwKUUBbk7sY
@ -5314,9 +5407,9 @@ MD4pm2tpMRV52YIRi07J70ex/PbLULd5cCTh6jgXAwz71AVSiBY/jTtKqV3YkzJo
09oGIZIcI/wzk1zLloqNAkB8qHxAtmUZFdo5sssaUDTOB82QAPfiHUqIFPaYuc0f
4NqtXZm+fv4liR3QJEo8zkiBs3NjBnm7Hh3BMSqGh3d+
-----END RSA PRIVATE KEY-----"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL="PRIVATE KEY<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL="PRIVATE KEY<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_TEXT_FIELD="Private Key - Text Field"
COM_COMPONENTBUILDER_SERVER_PRIVATE_LABEL="Private Key Path<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_PRIVATE_LABEL="Private Key Path<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_PRIVATE_MESSAGE="Error! Please add private key path."
COM_COMPONENTBUILDER_SERVER_PROTOCOL="Protocol"
COM_COMPONENTBUILDER_SERVER_PROTOCOL_DESCRIPTION="Select the protocol used to connect to this server."
@ -5325,7 +5418,7 @@ COM_COMPONENTBUILDER_SERVER_PUBLISHING="Publishing"
COM_COMPONENTBUILDER_SERVER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Server to customise the alias."
COM_COMPONENTBUILDER_SERVER_SECRET="Secret"
COM_COMPONENTBUILDER_SERVER_SECRET_DESCRIPTION="If private key file is encrypted (which it should be), the passphrase must be provided."
COM_COMPONENTBUILDER_SERVER_SECRET_LABEL="Passphrase<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_SECRET_LABEL="Passphrase<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION="Select an option"
COM_COMPONENTBUILDER_SERVER_SFTP="SFTP"
COM_COMPONENTBUILDER_SERVER_SIGNATURE="Signature"
@ -5337,7 +5430,7 @@ COM_COMPONENTBUILDER_SERVER_STATUS="Status"
COM_COMPONENTBUILDER_SERVER_USERNAME="Username"
COM_COMPONENTBUILDER_SERVER_USERNAME_DESCRIPTION="Enter the username."
COM_COMPONENTBUILDER_SERVER_USERNAME_HINT="root"
COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL="Username<br /><small>(basic encryption)</small>"
COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL="Username<br /><small>(encrypted field)</small>"
COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE="Error! Please add the username here."
COM_COMPONENTBUILDER_SERVER_VERSION_DESC="A count of the number of times this Server has been revised."
COM_COMPONENTBUILDER_SERVER_VERSION_LABEL="Revision"
@ -6160,9 +6253,10 @@ COM_COMPONENTBUILDER_THERE_ARE_NO_OUT_OF_DATE_SNIPPETS_AT_THIS_TIME="There are n
COM_COMPONENTBUILDER_THERE_ARE_NO_SNIPPETS_TO_UPDATE_AT_THIS_TIME="There are no snippets to update at this time"
COM_COMPONENTBUILDER_THERE_HAS_BEEN_AN_ERROR_IF_THIS_CONTINUES_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR_OF_A_TYPE_ERROR_IN_THE_FIELDS_DISPLAY_REQUEST="There has been an error, if this continues please inform your system administrator of a type error in the fields display request!"
COM_COMPONENTBUILDER_THERE_WAS_A_PROBLEM_BNO_VIEW_OR_ID_FOUND_IN_SESSION_OR_VIEW_NOT_ALLOWED_TO_ACCESS_AREAB_WE_COULD_NOT_LOAD_ANY_LINKED_TO_VALUES_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR="There was a problem, <b>no view or id found in session or view not allowed to access area</b>, we could not load any linked to values. Please inform your system administrator!"
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_ADMINHELPERSVENDOR_FOLDER_OF_JCB_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your admin/helpers/vendor folder of JCB. Please contact your system administrator for more info"
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info"
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info!"
COM_COMPONENTBUILDER_THE_BSB_LIBRARY_CAN_NOT_BE_DELETED_OR_THINGS_WILL_BREAK="The <b>%s</b> library can not be deleted, or things will break."
COM_COMPONENTBUILDER_THE_COMPONENT_ADMIN_VIEWS="The component admin views"
COM_COMPONENTBUILDER_THE_COMPONENT_CONFIG="The component config"
@ -6243,6 +6337,7 @@ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CON
COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_SHARE_THE_SNIPPETS_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to share the snippets, please contact your system administrator for more help."
COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then 50 %s is considered bad practice."
COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then 50 %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s."
COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE="You must first link an admin or a custom admin view to this component, then you can select it here"
COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT="You must select a component!"
COM_COMPONENTBUILDER_YOU_SHOULD_ADD_THE_CORRECT_OWNER_DETAILS="You should add the correct owner details."
COM_COMPONENTBUILDER_YOU_SHOULD_ONLY_CONTINUE_THIS_IMPORT_IF_YOU_HAVE_BACKUP_YOUR_COMPONENTS_AND_INSURED_THAT_THE_PACKAGE_OWNER_IS_REPUTABLE="You should only continue this import if you have backup your components, and insured that the package owner is reputable."

View File

@ -33,7 +33,8 @@ $fields = $displayData->get('fields') ?: array(
'note_add_files_fullpath',
'addfilesfullpath',
'note_add_folders_fullpath',
'addfoldersfullpath'
'addfoldersfullpath',
'note_constant_paths'
);
?>

View File

@ -41,7 +41,7 @@ $fields = $displayData->get('fields') ?: array(
'indexes',
'null_switch',
'store',
'note_vdm_encryption'
'note_whmcs_encryption'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();

View File

@ -28,7 +28,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->wadfields;
$items = $displayData->wacfields;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";

View File

@ -13,7 +13,7 @@
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage php_fullwidth.php
@subpackage dash_install_fullwidth.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved

View File

@ -13,7 +13,7 @@
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage php_left.php
@subpackage dash_install_left.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved
@ -30,7 +30,7 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'note_botton_component_dashboard'
'dashboard_type'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();

View File

@ -0,0 +1,56 @@
<?php
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage dash_install_right.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'note_dynamic_dashboard',
'dashboard',
'note_botton_component_dashboard'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -30,7 +30,7 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'spacer_hr_f',
'spacer_hr_six',
'note_on_contributors',
'addcontributors',
'emptycontributors',

View File

@ -31,11 +31,11 @@ $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'note_moved_views',
'spacer_hr_a',
'spacer_hr_one',
'note_mysql_tweak_options',
'spacer_hr_b',
'spacer_hr_two',
'note_add_custom_menus',
'spacer_hr_c',
'spacer_hr_three',
'note_add_config'
);

View File

@ -31,10 +31,10 @@ $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'note_component_files_folders',
'spacer_hr_d',
'spacer_hr_four',
'to_ignore_note',
'toignore',
'spacer_hr_e',
'spacer_hr_five',
'jcb_export_package_note',
'export_key',
'export_package_link',

View File

@ -1,108 +0,0 @@
<?php
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage translation_fullwidth.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwntranslation;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=language_translations&task=language_translation.edit";
?>
<div class="form-vertical">
<?php if (ComponentbuilderHelper::checkArray($items)): ?>
<table class="footable table data language_translations" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
<thead>
<tr>
<th data-type="html" data-sort-use="text">
<?php echo JText::_('COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_ENTRANSLATION_LABEL'); ?>
</th>
<th width="10" data-breakpoints="xs sm md">
<?php echo JText::_('COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_STATUS'); ?>
</th>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo JText::_('COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_ID'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($items as $i => $item): ?>
<?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = JFactory::getUser($item->checked_out);
$canDo = ComponentbuilderHelper::getActions('language_translation',$item,'language_translations');
?>
<tr>
<td class="nowrap">
<?php if ($canDo->get('language_translation.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=joomla_component&refid=<?php echo $id; ?>"><?php echo $item->entranslation; ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'language_translations.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $item->entranslation; ?></div>
<?php endif; ?>
</td>
<?php if ($item->published == 1):?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_COMPONENTBUILDER_PUBLISHED'); ?>">
<?php echo JText::_('COM_COMPONENTBUILDER_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0):?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_COMPONENTBUILDER_INACTIVE'); ?>">
<?php echo JText::_('COM_COMPONENTBUILDER_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2):?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_COMPONENTBUILDER_ARCHIVED'); ?>">
<?php echo JText::_('COM_COMPONENTBUILDER_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2):?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_COMPONENTBUILDER_TRASHED'); ?>">
<?php echo JText::_('COM_COMPONENTBUILDER_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
<td class="nowrap center hidden-phone">
<?php echo $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -33,7 +33,8 @@ $fields = $displayData->get('fields') ?: array(
'note_add_files_fullpath',
'addfilesfullpath',
'note_add_folders_fullpath',
'addfoldersfullpath'
'addfoldersfullpath',
'note_constant_paths'
);
?>

View File

@ -31,8 +31,8 @@ $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'snippet',
'note_uikit_snippet',
'note_snippet_usage'
'note_snippet_usage',
'note_uikit_snippet'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();

View File

@ -100,14 +100,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->addtables))
{
// Convert the addtables field to an array.
$addtables = new Registry;
$addtables->loadString($item->addtables);
$item->addtables = $addtables->toArray();
}
if (!empty($item->addpermissions))
{
// Convert the addpermissions field to an array.
@ -132,6 +124,14 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->addlinked_views = $addlinked_views->toArray();
}
if (!empty($item->addtables))
{
// Convert the addtables field to an array.
$addtables = new Registry;
$addtables->loadString($item->addtables);
$item->addtables = $addtables->toArray();
}
if (!empty($item->custom_button))
{
// Convert the custom_button field to an array.
@ -148,10 +148,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->ajax_input = $ajax_input->toArray();
}
if (!empty($item->php_import_headers))
if (!empty($item->php_import_save))
{
// base64 Decode php_import_headers.
$item->php_import_headers = base64_decode($item->php_import_headers);
// base64 Decode php_import_save.
$item->php_import_save = base64_decode($item->php_import_save);
}
if (!empty($item->html_import_view))
@ -160,16 +160,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->html_import_view = base64_decode($item->html_import_view);
}
if (!empty($item->php_import_save))
if (!empty($item->php_import_headers))
{
// base64 Decode php_import_save.
$item->php_import_save = base64_decode($item->php_import_save);
}
if (!empty($item->php_getitem))
{
// base64 Decode php_getitem.
$item->php_getitem = base64_decode($item->php_getitem);
// base64 Decode php_import_headers.
$item->php_import_headers = base64_decode($item->php_import_headers);
}
if (!empty($item->css_view))
@ -352,6 +346,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_import_ext = base64_decode($item->php_import_ext);
}
if (!empty($item->php_getitem))
{
// base64 Decode php_getitem.
$item->php_getitem = base64_decode($item->php_getitem);
}
if (empty($item->id))
{
@ -1184,19 +1184,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['system_name'] = $data['name_single'];
}
// Set the addtables items to data.
if (isset($data['addtables']) && is_array($data['addtables']))
{
$addtables = new JRegistry;
$addtables->loadArray($data['addtables']);
$data['addtables'] = (string) $addtables;
}
elseif (!isset($data['addtables']))
{
// Set the empty addtables to data
$data['addtables'] = '';
}
// Set the addpermissions items to data.
if (isset($data['addpermissions']) && is_array($data['addpermissions']))
{
@ -1236,6 +1223,19 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['addlinked_views'] = '';
}
// Set the addtables items to data.
if (isset($data['addtables']) && is_array($data['addtables']))
{
$addtables = new JRegistry;
$addtables->loadArray($data['addtables']);
$data['addtables'] = (string) $addtables;
}
elseif (!isset($data['addtables']))
{
// Set the empty addtables to data
$data['addtables'] = '';
}
// Set the custom_button items to data.
if (isset($data['custom_button']) && is_array($data['custom_button']))
{
@ -1262,10 +1262,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['ajax_input'] = '';
}
// Set the php_import_headers string to base64 string.
if (isset($data['php_import_headers']))
// Set the php_import_save string to base64 string.
if (isset($data['php_import_save']))
{
$data['php_import_headers'] = base64_encode($data['php_import_headers']);
$data['php_import_save'] = base64_encode($data['php_import_save']);
}
// Set the html_import_view string to base64 string.
@ -1274,16 +1274,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['html_import_view'] = base64_encode($data['html_import_view']);
}
// Set the php_import_save string to base64 string.
if (isset($data['php_import_save']))
// Set the php_import_headers string to base64 string.
if (isset($data['php_import_headers']))
{
$data['php_import_save'] = base64_encode($data['php_import_save']);
}
// Set the php_getitem string to base64 string.
if (isset($data['php_getitem']))
{
$data['php_getitem'] = base64_encode($data['php_getitem']);
$data['php_import_headers'] = base64_encode($data['php_import_headers']);
}
// Set the css_view string to base64 string.
@ -1466,6 +1460,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_import_ext'] = base64_encode($data['php_import_ext']);
}
// Set the php_getitem string to base64 string.
if (isset($data['php_getitem']))
{
$data['php_getitem'] = base64_encode($data['php_getitem']);
}
// Set the Params Items to data
if (isset($data['params']) && is_array($data['params']))
{

View File

@ -262,14 +262,12 @@ class ComponentbuilderModelAdmin_views extends JModelList
continue;
}
// decode php_import_headers
$item->php_import_headers = base64_decode($item->php_import_headers);
// decode html_import_view
$item->html_import_view = base64_decode($item->html_import_view);
// decode php_import_save
$item->php_import_save = base64_decode($item->php_import_save);
// decode php_getitem
$item->php_getitem = base64_decode($item->php_getitem);
// decode html_import_view
$item->html_import_view = base64_decode($item->html_import_view);
// decode php_import_headers
$item->php_import_headers = base64_decode($item->php_import_headers);
// decode css_view
$item->css_view = base64_decode($item->css_view);
// decode php_getitems
@ -330,6 +328,8 @@ class ComponentbuilderModelAdmin_views extends JModelList
$item->php_import_setdata = base64_decode($item->php_import_setdata);
// decode php_import_ext
$item->php_import_ext = base64_decode($item->php_import_ext);
// decode php_getitem
$item->php_getitem = base64_decode($item->php_getitem);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);

View File

@ -274,11 +274,13 @@ class ComponentbuilderModelAjax extends JModelList
{
// get the view name & id
$values = $this->getViewID();
// set the button ID
$css_class = 'control-group-'.ComponentbuilderHelper::safeString($type. '-' . $size, 'L', '-');
// check if new item
$ref = '';
if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']))
{
// only load referal if not new item.
// only load referral if not new item.
$ref = '&amp;ref=' . $values['a_view'] . '&amp;refid=' . $values['a_id'];
// get item id
if ($id = ComponentbuilderHelper::getVar($type, $values['a_id'], $values['a_view'], 'id'))
@ -299,7 +301,7 @@ class ComponentbuilderModelAjax extends JModelList
$button = array();
if (1 == $size)
{
$button[] = '<div class="control-group">';
$button[] = '<div class="control-group '.$css_class.'">';
$button[] = '<div class="control-label">';
$button[] = '<label>' . ComponentbuilderHelper::safeString($type, 'Ww') . '</label>';
$button[] = '</div>';
@ -326,7 +328,7 @@ class ComponentbuilderModelAjax extends JModelList
// only return notice if big button
if (1 == $size)
{
return '<div class="control-group"><div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '</div></div>';
return '<div class="control-group '.$css_class.'"><div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '</div></div>';
}
}
}

View File

@ -124,7 +124,7 @@ class ComponentbuilderModelCompiler extends JModelList
$_copyright = new stdClass();
$_copyright->text =& $item->copyright; // value must be in text
// Since all values are now in text (Joomla Limitation), we also add the field name (copyright) to context
$this->_dispatcher->trigger("onContentPrepare",array('com_componentbuilder.compiler.copyright',&$_copyright,&$this->params));
$this->_dispatcher->trigger("onContentPrepare", array('com_componentbuilder.compiler.copyright', &$_copyright, &$this->params, 0));
// Checking if copyright has uikit components that must be loaded.
$this->uikitComp = ComponentbuilderHelper::getUikitComp($item->copyright,$this->uikitComp);
}
@ -228,6 +228,8 @@ class ComponentbuilderModelCompiler extends JModelList
public function install($p_file)
{
$this->setState('action', 'install');
// Set FTP credentials, if given.
JClientHelper::setCredentialsFromRequest('ftp');
$app = JFactory::getApplication();
@ -246,7 +248,8 @@ class ComponentbuilderModelCompiler extends JModelList
{
return true;
}
elseif (in_array(false, $results, true))
if (in_array(false, $results, true))
{
return false;
}
@ -256,8 +259,10 @@ class ComponentbuilderModelCompiler extends JModelList
// Unpack the downloaded package file.
$package = JInstallerHelper::unpack($tmp_dest . '/' . $p_file, true);
// insure the install type is folder
// insure the install type is folder (JCB zip file is in the folder)
$installType = 'folder';
// This event allows a custom installation of the package or a customization of the package:
$results = $dispatcher->trigger('onInstallerBeforeInstaller', array($this, &$package));
@ -317,6 +322,16 @@ class ComponentbuilderModelCompiler extends JModelList
JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']);
// Clear the cached extension data and menu cache
$this->cleanCache('_system', 0);
$this->cleanCache('_system', 1);
$this->cleanCache('com_modules', 0);
$this->cleanCache('com_modules', 1);
$this->cleanCache('com_plugins', 0);
$this->cleanCache('com_plugins', 1);
$this->cleanCache('mod_menu', 0);
$this->cleanCache('mod_menu', 1);
return $result;
}
}

View File

@ -95,20 +95,12 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->addfiles))
if (!empty($item->addfoldersfullpath))
{
// Convert the addfiles field to an array.
$addfiles = new Registry;
$addfiles->loadString($item->addfiles);
$item->addfiles = $addfiles->toArray();
}
if (!empty($item->addfolders))
{
// Convert the addfolders field to an array.
$addfolders = new Registry;
$addfolders->loadString($item->addfolders);
$item->addfolders = $addfolders->toArray();
// Convert the addfoldersfullpath field to an array.
$addfoldersfullpath = new Registry;
$addfoldersfullpath->loadString($item->addfoldersfullpath);
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
}
if (!empty($item->addfilesfullpath))
@ -119,12 +111,20 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
$item->addfilesfullpath = $addfilesfullpath->toArray();
}
if (!empty($item->addfoldersfullpath))
if (!empty($item->addfolders))
{
// Convert the addfoldersfullpath field to an array.
$addfoldersfullpath = new Registry;
$addfoldersfullpath->loadString($item->addfoldersfullpath);
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
// Convert the addfolders field to an array.
$addfolders = new Registry;
$addfolders->loadString($item->addfolders);
$item->addfolders = $addfolders->toArray();
}
if (!empty($item->addfiles))
{
// Convert the addfiles field to an array.
$addfiles = new Registry;
$addfiles->loadString($item->addfiles);
$item->addfiles = $addfiles->toArray();
}
// update the fields
@ -838,30 +838,17 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
// Set the addfiles items to data.
if (isset($data['addfiles']) && is_array($data['addfiles']))
// Set the addfoldersfullpath items to data.
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
{
$addfiles = new JRegistry;
$addfiles->loadArray($data['addfiles']);
$data['addfiles'] = (string) $addfiles;
$addfoldersfullpath = new JRegistry;
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
}
elseif (!isset($data['addfiles']))
elseif (!isset($data['addfoldersfullpath']))
{
// Set the empty addfiles to data
$data['addfiles'] = '';
}
// Set the addfolders items to data.
if (isset($data['addfolders']) && is_array($data['addfolders']))
{
$addfolders = new JRegistry;
$addfolders->loadArray($data['addfolders']);
$data['addfolders'] = (string) $addfolders;
}
elseif (!isset($data['addfolders']))
{
// Set the empty addfolders to data
$data['addfolders'] = '';
// Set the empty addfoldersfullpath to data
$data['addfoldersfullpath'] = '';
}
// Set the addfilesfullpath items to data.
@ -877,17 +864,30 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
$data['addfilesfullpath'] = '';
}
// Set the addfoldersfullpath items to data.
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
// Set the addfolders items to data.
if (isset($data['addfolders']) && is_array($data['addfolders']))
{
$addfoldersfullpath = new JRegistry;
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
$addfolders = new JRegistry;
$addfolders->loadArray($data['addfolders']);
$data['addfolders'] = (string) $addfolders;
}
elseif (!isset($data['addfoldersfullpath']))
elseif (!isset($data['addfolders']))
{
// Set the empty addfoldersfullpath to data
$data['addfoldersfullpath'] = '';
// Set the empty addfolders to data
$data['addfolders'] = '';
}
// Set the addfiles items to data.
if (isset($data['addfiles']) && is_array($data['addfiles']))
{
$addfiles = new JRegistry;
$addfiles->loadArray($data['addfiles']);
$data['addfiles'] = (string) $addfiles;
}
elseif (!isset($data['addfiles']))
{
// Set the empty addfiles to data
$data['addfiles'] = '';
}
// Set the Params Items to data

View File

@ -43,7 +43,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList
$icons = array();
// view groups array
$viewGroups = array(
'main' => array('png.compiler', 'png.joomla_component.add', 'png.joomla_components', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.libraries', 'png.snippet.add', 'png.snippets', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtype.add', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_document.add', 'png.help_documents')
'main' => array('png.compiler', 'png.joomla_component.add', 'png.joomla_components', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.libraries', 'png.snippet.add', 'png.snippets', 'png||getsnippets||index.php?option=com_componentbuilder&view=get_snippets', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtype.add', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_document.add', 'png.help_documents')
);
// view access array
$viewAccess = array(
@ -176,6 +176,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList
'library_files_folders_urls.create' => 'library_files_folders_urls.create',
'libraries_files_folders_urls.access' => 'library_files_folders_urls.access',
'library_files_folders_urls.access' => 'library_files_folders_urls.access');
// loop over the $views
foreach($viewGroups as $group => $views)
{
$i = 0;
@ -184,7 +185,22 @@ class ComponentbuilderModelComponentbuilder extends JModelList
foreach($views as $view)
{
$add = false;
if (strpos($view,'.') !== false)
// external views (links)
if (strpos($view,'||') !== false)
{
$dwd = explode('||', $view);
if (count($dwd) == 3)
{
list($type, $name, $url) = $dwd;
$viewName = $name;
$alt = $name;
$url = $url;
$image = $name.'.'.$type;
$name = 'COM_COMPONENTBUILDER_DASHBOARD_'.ComponentbuilderHelper::safeString($name,'U');
}
}
// internal views
elseif (strpos($view,'.') !== false)
{
$dwd = explode('.', $view);
if (count($dwd) == 3)
@ -202,7 +218,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList
switch($action)
{
case 'add':
$url ='index.php?option=com_componentbuilder&view='.$name.'&layout=edit';
$url = 'index.php?option=com_componentbuilder&view='.$name.'&layout=edit';
$image = $name.'_'.$action.'.'.$type;
$alt = $name.'&nbsp;'.$action;
$name = 'COM_COMPONENTBUILDER_DASHBOARD_'.ComponentbuilderHelper::safeString($name,'U').'_ADD';

View File

@ -100,14 +100,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->libraries))
{
// Convert the libraries field to an array.
$libraries = new Registry;
$libraries->loadString($item->libraries);
$item->libraries = $libraries->toArray();
}
if (!empty($item->ajax_input))
{
// Convert the ajax_input field to an array.
@ -116,6 +108,14 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->ajax_input = $ajax_input->toArray();
}
if (!empty($item->libraries))
{
// Convert the libraries field to an array.
$libraries = new Registry;
$libraries->loadString($item->libraries);
$item->libraries = $libraries->toArray();
}
if (!empty($item->custom_get))
{
// Convert the custom_get field to an array.
@ -132,12 +132,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->custom_button = $custom_button->toArray();
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->php_jview_display))
{
// base64 Decode php_jview_display.
@ -150,10 +144,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_jview))
if (!empty($item->php_document))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->default))
@ -162,6 +156,12 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->default = base64_decode($item->default);
}
if (!empty($item->php_jview))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
@ -962,19 +962,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
// always reset the snippets
$data['snippet'] = 0;
// Set the libraries items to data.
if (isset($data['libraries']) && is_array($data['libraries']))
{
$libraries = new JRegistry;
$libraries->loadArray($data['libraries']);
$data['libraries'] = (string) $libraries;
}
elseif (!isset($data['libraries']))
{
// Set the empty libraries to data
$data['libraries'] = '';
}
// Set the ajax_input items to data.
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
{
@ -988,6 +975,19 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['ajax_input'] = '';
}
// Set the libraries items to data.
if (isset($data['libraries']) && is_array($data['libraries']))
{
$libraries = new JRegistry;
$libraries->loadArray($data['libraries']);
$data['libraries'] = (string) $libraries;
}
elseif (!isset($data['libraries']))
{
// Set the empty libraries to data
$data['libraries'] = '';
}
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
@ -1014,12 +1014,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_button'] = '';
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
@ -1032,10 +1026,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the default string to base64 string.
@ -1044,6 +1038,12 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['default'] = base64_encode($data['default']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{

View File

@ -266,16 +266,16 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
continue;
}
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode default
$item->default = base64_decode($item->default);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode javascript_file

View File

@ -100,14 +100,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->join_db_table))
{
// Convert the join_db_table field to an array.
$join_db_table = new Registry;
$join_db_table->loadString($item->join_db_table);
$item->join_db_table = $join_db_table->toArray();
}
if (!empty($item->filter))
{
// Convert the filter field to an array.
@ -148,6 +140,14 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->join_view_table = $join_view_table->toArray();
}
if (!empty($item->join_db_table))
{
// Convert the join_db_table field to an array.
$join_db_table = new Registry;
$join_db_table->loadString($item->join_db_table);
$item->join_db_table = $join_db_table->toArray();
}
if (!empty($item->php_custom_get))
{
// base64 Decode php_custom_get.
@ -966,19 +966,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
// Set the join_db_table items to data.
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
{
$join_db_table = new JRegistry;
$join_db_table->loadArray($data['join_db_table']);
$data['join_db_table'] = (string) $join_db_table;
}
elseif (!isset($data['join_db_table']))
{
// Set the empty join_db_table to data
$data['join_db_table'] = '';
}
// Set the filter items to data.
if (isset($data['filter']) && is_array($data['filter']))
{
@ -1044,6 +1031,19 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['join_view_table'] = '';
}
// Set the join_db_table items to data.
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
{
$join_db_table = new JRegistry;
$join_db_table->loadArray($data['join_db_table']);
$data['join_db_table'] = (string) $join_db_table;
}
elseif (!isset($data['join_db_table']))
{
// Set the empty join_db_table to data
$data['join_db_table'] = '';
}
// Set the php_custom_get string to base64 string.
if (isset($data['php_custom_get']))
{

View File

@ -239,8 +239,9 @@ class ComponentbuilderModelFields extends JModelList
0 => 'COM_COMPONENTBUILDER_FIELD_DEFAULT',
1 => 'COM_COMPONENTBUILDER_FIELD_JSON',
2 => 'COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR',
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY',
4 => 'COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY'
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY',
5 => 'COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY',
4 => 'COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION'
);
// Now check if value is found in this array
if (isset($storeArray[$value]) && ComponentbuilderHelper::checkString($storeArray[$value]))
@ -312,7 +313,7 @@ class ComponentbuilderModelFields extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.fieldtype LIKE '.$search.' OR g.name LIKE '.$search.' OR a.datatype LIKE '.$search.' OR a.indexes LIKE '.$search.' OR a.null_switch LIKE '.$search.' OR a.xml LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.store LIKE '.$search.')');
$query->where('(a.name LIKE '.$search.' OR a.fieldtype LIKE '.$search.' OR g.name LIKE '.$search.' OR a.datatype LIKE '.$search.' OR a.indexes LIKE '.$search.' OR a.null_switch LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.xml LIKE '.$search.' OR a.store LIKE '.$search.')');
}
}

View File

@ -0,0 +1,217 @@
<?php
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.6.x
@created 30th April, 2015
@package Component Builder
@subpackage dynamicdashboard.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import the list field type
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('list');
/**
* Dynamicdashboard Form Field class for the Componentbuilder component
*/
class JFormFieldDynamicdashboard extends JFormFieldList
{
/**
* The dynamicdashboard field type.
*
* @var string
*/
public $type = 'dynamicdashboard';
/**
* Override to add new button
*
* @return string The field input markup.
*
* @since 3.2
*/
protected function getInput()
{
// see if we should add buttons
$setButton = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
if ($setButton === 'true')
{
$button = array();
$script = array();
$buttonName = $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 referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
}
$user = JFactory::getUser();
// only add if user allowed to create custom_admin_view
if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
$buttonNamee = trim($buttonName);
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
$buttonNamee = ucfirst(strtolower($buttonNamee));
$button[] = '<a id="'.$buttonName.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', $buttonNamee).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
href="index.php?option=com_componentbuilder&amp;view=custom_admin_view&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span></a>';
}
// only add if user allowed to edit custom_admin_view
if (($buttonName === 'custom_admin_view' || $buttonName === 'custom_admin_views') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
$buttonNamee = trim($buttonName);
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
$buttonNamee = ucfirst(strtolower($buttonNamee));
$button[] = '<a id="'.$buttonName.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_EDIT_S', $buttonNamee).'" 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_".$buttonName."',function (e) {
e.preventDefault();
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
".$buttonName."Button(".$buttonName."Value);
});
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
".$buttonName."Button(".$buttonName."Value);
});
function ".$buttonName."Button(value) {
if (value > 0) {
// hide the create button
jQuery('#".$buttonName."Create').hide();
// show edit button
jQuery('#".$buttonName."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=custom_admin_views&task=custom_admin_view.edit&id='+value+'".$refJ."';
jQuery('#".$buttonName."Edit').attr('href', url);
} else {
// show the create button
jQuery('#".$buttonName."Create').show();
// hide edit button
jQuery('#".$buttonName."Edit').hide();
}
}";
}
// check if button was created for custom_admin_view 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.
*/
public function getOptions()
{
// load the db opbject
$db = JFactory::getDBO();
// get the input from url
$jinput = JFactory::getApplication()->input;
// get the id
$ID = $jinput->getInt('id', 0);
// set the targets
$targets = array('adminview' => 'admin_view', 'customadminview' => 'custom_admin_view');
$t = array('adminview' => 'A', 'customadminview' => 'C');
// rest the options
$options = array();
// reset the custom admin views array
$views = false;
if (is_numeric($ID) && $ID >= 1)
{
// get the linked back-end views
foreach ($targets as $target => $view)
{
if ($result = ComponentbuilderHelper::getVar('component_'.$view.'s', (int) $ID, 'joomla_component', 'add'.$view.'s'))
{
$views[$target] = $result;
}
}
}
else
{
// not linked so there is none available
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE')));
}
// check if we found any values
if (ComponentbuilderHelper::checkArray($views))
{
foreach ($targets as $target => $view)
{
if (isset($views[$target]) && ComponentbuilderHelper::checkJson($views[$target]))
{
// convert to an array
$value = json_decode($views[$target], true);
$type = ComponentbuilderHelper::safeString($view, 'w');
if (ComponentbuilderHelper::checkArray($value))
{
foreach ($value as $_view)
{
if (isset($_view[$target]) && is_numeric($_view[$target]))
{
// set the view to the selections if found
if ($name = ComponentbuilderHelper::getVar($view, (int) $_view[$target], 'id', 'system_name'))
{
$options[] = JHtml::_('select.option', $t[$target].'_'.$_view[$target], $name.' ['.$type.']');
}
}
}
}
}
}
}
// return found options
if (ComponentbuilderHelper::checkArray($options))
{
array_unshift($options , JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION')));
return $options;
}
// not linked so there is none available
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE')));
}
}

View File

@ -129,7 +129,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_componentbuilder.fieldtype');
}
}
$this->fieldtypevvvw = $item->id;
$this->fieldtypevvvv = $item->id;
return $item;
}
@ -139,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWadfields()
public function getWacfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -159,15 +159,15 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$query->select($db->quoteName('g.name','fieldtype_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'g') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by fieldtypevvvw global.
$fieldtypevvvw = $this->fieldtypevvvw;
if (is_numeric($fieldtypevvvw ))
// Filter by fieldtypevvvv global.
$fieldtypevvvv = $this->fieldtypevvvv;
if (is_numeric($fieldtypevvvv ))
{
$query->where('a.fieldtype = ' . (int) $fieldtypevvvw );
$query->where('a.fieldtype = ' . (int) $fieldtypevvvv );
}
elseif (is_string($fieldtypevvvw))
elseif (is_string($fieldtypevvvv))
{
$query->where('a.fieldtype = ' . $db->quote($fieldtypevvvw));
$query->where('a.fieldtype = ' . $db->quote($fieldtypevvvv));
}
else
{
@ -223,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationWacfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationWacfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationWacfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationWadfields($item->store, 'store');
$item->store = $this->selectionTranslationWacfields($item->store, 'store');
}
}
@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationWadfields($value,$name)
public function selectionTranslationWacfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')
@ -304,8 +304,9 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
0 => 'COM_COMPONENTBUILDER_FIELD_DEFAULT',
1 => 'COM_COMPONENTBUILDER_FIELD_JSON',
2 => 'COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR',
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY',
4 => 'COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY'
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY',
5 => 'COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY',
4 => 'COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION'
);
// Now check if value is found in this array
if (isset($storeArray[$value]) && ComponentbuilderHelper::checkString($storeArray[$value]))
@ -403,6 +404,22 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$form->setFieldAttribute('name', 'required', 'false');
}
}
// Modify the form based on Edit Properties access controls.
if ($id != 0 && (!$user->authorise('fieldtype.edit.properties', 'com_componentbuilder.fieldtype.' . (int) $id))
|| ($id == 0 && !$user->authorise('fieldtype.edit.properties', 'com_componentbuilder')))
{
// Disable fields for display.
$form->setFieldAttribute('properties', 'disabled', 'true');
// Disable fields for display.
$form->setFieldAttribute('properties', 'readonly', 'true');
if (!$form->getValue('properties'))
{
// Disable fields while saving.
$form->setFieldAttribute('properties', 'filter', 'unset');
// Disable fields while saving.
$form->setFieldAttribute('properties', 'required', 'false');
}
}
// Modify the form based on Edit Description access controls.
if ($id != 0 && (!$user->authorise('fieldtype.edit.description', 'com_componentbuilder.fieldtype.' . (int) $id))
|| ($id == 0 && !$user->authorise('fieldtype.edit.description', 'com_componentbuilder')))
@ -435,22 +452,6 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$form->setFieldAttribute('short_description', 'required', 'false');
}
}
// Modify the form based on Edit Properties access controls.
if ($id != 0 && (!$user->authorise('fieldtype.edit.properties', 'com_componentbuilder.fieldtype.' . (int) $id))
|| ($id == 0 && !$user->authorise('fieldtype.edit.properties', 'com_componentbuilder')))
{
// Disable fields for display.
$form->setFieldAttribute('properties', 'disabled', 'true');
// Disable fields for display.
$form->setFieldAttribute('properties', 'readonly', 'true');
if (!$form->getValue('properties'))
{
// Disable fields while saving.
$form->setFieldAttribute('properties', 'filter', 'unset');
// Disable fields while saving.
$form->setFieldAttribute('properties', 'required', 'false');
}
}
// Only load these values if no id is found
if (0 == $id)
{

View File

@ -45,10 +45,10 @@ class ComponentbuilderModelFieldtypes extends JModelList
'a.created_by','created_by',
'a.modified_by','modified_by',
'a.name','name',
'a.short_description','short_description',
'c.title','category_title',
'c.id', 'category_id',
'a.catid', 'catid',
'a.short_description','short_description'
'a.catid', 'catid'
);
}
@ -72,6 +72,9 @@ class ComponentbuilderModelFieldtypes extends JModelList
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
$this->setState('filter.name', $name);
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
$this->setState('filter.short_description', $short_description);
$category = $app->getUserStateFromRequest($this->context . '.filter.category', 'filter_category');
$this->setState('filter.category', $category);
@ -81,9 +84,6 @@ class ComponentbuilderModelFieldtypes extends JModelList
$catid = $app->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid');
$this->setState('filter.catid', $catid);
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
$this->setState('filter.short_description', $short_description);
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
@ -197,7 +197,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.description LIKE '.$search.' OR a.short_description LIKE '.$search.')');
$query->where('(a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.catid LIKE '.$search.')');
}
}
@ -351,10 +351,10 @@ class ComponentbuilderModelFieldtypes extends JModelList
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' . $this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.name');
$id .= ':' . $this->getState('filter.short_description');
$id .= ':' . $this->getState('filter.category');
$id .= ':' . $this->getState('filter.category_id');
$id .= ':' . $this->getState('filter.catid');
$id .= ':' . $this->getState('filter.short_description');
return parent::getStoreId($id);
}

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Admin_view Field. Type: Adminviewsreadonly. (custom)-->
<field type="adminviewsreadonly"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Admin_view Field. Type: Adminviewsreadonly. (custom) -->
<field
type="adminviewsreadonly"
name="admin_view"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ADMIN_VIEW_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ADMIN_VIEW_DESCRIPTION"
@ -88,16 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_on_views Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_views"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_views" />
<!-- Addfields Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addfields Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfields"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -105,28 +107,31 @@
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS_DESCRIPTION"
icon="list"
maximum="800">
<form hidden="true"
name="list_addfields_modal"
repeat="true">
<!-- Field Field. Type: Fields. (custom)-->
<field type="fields"
<form hidden="true" name="list_addfields_modal" repeat="true">
<!-- Field Field. Type: Fields. (custom) -->
<field
type="fields"
name="field"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELD_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_FIELD_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="false" />
<!-- List Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
button="false"
/>
<!-- List Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="list"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_LIST_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_LIST_DESCRIPTION"
class="inputbox" />
<!-- Order_list Field. Type: Integer. (joomla)-->
<field type="integer"
class="inputbox"
/>
<!-- Order_list Field. Type: Integer. (joomla) -->
<field
type="integer"
name="order_list"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_LIST_LABEL"
default="0"
@ -135,57 +140,71 @@
required="false"
first="0"
last="20"
step="1" />
<!-- Title Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
step="1"
/>
<!-- Title Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="title"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_TITLE_DESCRIPTION"
class="inputbox" />
<!-- Alias Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Alias Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="alias"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIAS_DESCRIPTION"
class="inputbox" />
<!-- Sort Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Sort Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="sort"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_SORT_DESCRIPTION"
class="inputbox" />
<!-- Search Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Search Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="search"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_SEARCH_DESCRIPTION"
class="inputbox" />
<!-- Filter Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Filter Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="filter"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_FILTER_DESCRIPTION"
class="inputbox" />
<!-- Link Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Link Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="link"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_LINK_DESCRIPTION"
class="inputbox" />
<!-- Tab Field. Type: Viewtabs. (custom)-->
<field type="viewtabs"
class="inputbox"
/>
<!-- Tab Field. Type: Viewtabs. (custom) -->
<field
type="viewtabs"
name="tab"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_TAB_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_TAB_DESCRIPTION"
@ -193,9 +212,11 @@
multiple="false"
default="1"
required="false"
button="false" />
<!-- Alignment Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Alignment Field. Type: List. (joomla) -->
<field
type="list"
name="alignment"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIGNMENT_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ALIGNMENT_DESCRIPTION"
@ -204,17 +225,25 @@
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_IN_TAB</option>
<option value="2">COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_IN_TAB</option>
<option value="3">COM_COMPONENTBUILDER_ADMIN_FIELDS_FULL_WIDTH_IN_TAB</option>
<option value="4">COM_COMPONENTBUILDER_ADMIN_FIELDS_ABOVE_TABS</option>
<option value="5">COM_COMPONENTBUILDER_ADMIN_FIELDS_UNDERNEATH_TABS</option>
<option value="6">COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_OF_TABS</option>
<option value="7">COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_OF_TABS</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_IN_TAB</option>
<option value="2">
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_IN_TAB</option>
<option value="3">
COM_COMPONENTBUILDER_ADMIN_FIELDS_FULL_WIDTH_IN_TAB</option>
<option value="4">
COM_COMPONENTBUILDER_ADMIN_FIELDS_ABOVE_TABS</option>
<option value="5">
COM_COMPONENTBUILDER_ADMIN_FIELDS_UNDERNEATH_TABS</option>
<option value="6">
COM_COMPONENTBUILDER_ADMIN_FIELDS_LEFT_OF_TABS</option>
<option value="7">
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_OF_TABS</option>
</field>
<!-- Order_edit Field. Type: Integer. (joomla)-->
<field type="integer"
<!-- Order_edit Field. Type: Integer. (joomla) -->
<field
type="integer"
name="order_edit"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_ORDER_EDIT_LABEL"
default="0"
@ -223,9 +252,11 @@
required="false"
first="0"
last="100"
step="1" />
<!-- Permission Field. Type: List. (joomla)-->
<field type="list"
step="1"
/>
<!-- Permission Field. Type: List. (joomla) -->
<field
type="list"
name="permission"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_PERMISSION_DESCRIPTION"
@ -233,12 +264,16 @@
multiple="false"
required="false"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_ADMIN_FIELDS_NONE</option>
<option value=" 1">COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING</option>
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_ADMIN_FIELDS_NONE</option>
<option value=" 1">
COM_COMPONENTBUILDER_ADMIN_FIELDS_EDITING</option>
</field>
</form>
</field>
<!-- Note_on_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_views" label="COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_NOTE_ON_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_views" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -24,6 +24,7 @@
function getFieldSelectOptions_server(fieldId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json";
if(token.length > 0 && fieldId > 0){

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Admin_view Field. Type: Adminviewsreadonly. (custom)-->
<field type="adminviewsreadonly"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Admin_view Field. Type: Adminviewsreadonly. (custom) -->
<field
type="adminviewsreadonly"
name="admin_view"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADMIN_VIEW_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADMIN_VIEW_DESCRIPTION"
@ -88,17 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_on_conditions Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_conditions"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_conditions"
close="true" />
<!-- Addconditions Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addconditions Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addconditions"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADDCONDITIONS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -106,20 +107,21 @@
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ADDCONDITIONS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addconditions_modal"
repeat="true">
<!-- Target_field Field. Type: Targetfields. (custom)-->
<field type="targetfields"
<form hidden="true" name="list_addconditions_modal" repeat="true">
<!-- Target_field Field. Type: Targetfields. (custom) -->
<field
type="targetfields"
name="target_field"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_DESCRIPTION"
class="fieldMedium"
multiple="true"
required="false"
button="false" />
<!-- Target_behavior Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Target_behavior Field. Type: List. (joomla) -->
<field
type="list"
name="target_behavior"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_BEHAVIOR_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_BEHAVIOR_DESCRIPTION"
@ -128,12 +130,15 @@
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_SHOW</option>
<option value="2">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_HIDE</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_SHOW</option>
<option value="2">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_HIDE</option>
</field>
<!-- Target_relation Field. Type: List. (joomla)-->
<field type="list"
<!-- Target_relation Field. Type: List. (joomla) -->
<field
type="list"
name="target_relation"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_RELATION_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_RELATION_DESCRIPTION"
@ -142,20 +147,25 @@
filter="INT"
required="false"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ISOLATE</option>
<option value="1">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CHAIN</option>
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ISOLATE</option>
<option value="1">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_CHAIN</option>
</field>
<!-- Match_field Field. Type: Matchfield. (custom)-->
<field type="matchfield"
<!-- Match_field Field. Type: Matchfield. (custom) -->
<field
type="matchfield"
name="match_field"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_FIELD_DESCRIPTION"
multiple="false"
required="false"
button="false" />
<!-- Match_behavior Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Match_behavior Field. Type: List. (joomla) -->
<field
type="list"
name="match_behavior"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_BEHAVIOR_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_BEHAVIOR_DESCRIPTION"
@ -164,22 +174,35 @@
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="2">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="3">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST</option>
<option value="4">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="5">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_UNACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="6">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="7">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="8">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="9">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="10">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="11">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="12">COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="2">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="3">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST</option>
<option value="4">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_ACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="5">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_UNACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="6">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="7">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="8">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="9">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="10">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="11">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="12">
COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
</field>
<!-- Match_options Field. Type: Textarea. (joomla)-->
<field type="textarea"
<!-- Match_options Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="match_options"
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_OPTIONS_LABEL"
rows="10"
@ -187,9 +210,12 @@
class="text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_MATCH_OPTIONS_HINT"
required="false" />
required="false"
/>
</form>
</field>
<!-- Note_on_conditions Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_conditions" label="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NOTE_ON_CONDITIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_conditions" close="true" />
</fieldset>
<!-- Access Control Fields. -->

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,16 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_on_admin_views Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_admin_views"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTE_ON_ADMIN_VIEWS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTE_ON_ADMIN_VIEWS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_admin_views" />
<!-- Addadmin_views Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addadmin_views Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addadmin_views"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADDADMIN_VIEWS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -105,327 +107,559 @@
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADDADMIN_VIEWS_DESCRIPTION"
icon="list"
maximum="50">
<form hidden="true"
name="list_addadmin_views_modal"
repeat="true">
<!-- Adminview Field. Type: Adminviews. (custom)-->
<field type="adminviews"
<form hidden="true" name="list_addadmin_views_modal" repeat="true">
<!-- Adminview Field. Type: Adminviews. (custom) -->
<field
type="adminviews"
name="adminview"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADMINVIEW_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADMINVIEW_DESCRIPTION"
class="fieldMedium"
multiple="false"
required="false"
button="false" />
<!-- Icomoon Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Icomoon Field. Type: List. (joomla) -->
<field
type="list"
name="icomoon"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ICOMOON_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ICOMOON_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
required="false">
<!-- Option Set.-->
<option value="joomla">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA</option>
<option value="address">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADDRESS</option>
<option value="pencil">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PENCIL</option>
<option value="archive">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARCHIVE</option>
<option value="arrow-down-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_TWO</option>
<option value="arrow-down-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_THREE</option>
<option value="arrow-down-4">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_FOUR</option>
<option value="arrow-first">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_FIRST</option>
<option value="arrow-last">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LAST</option>
<option value="arrow-left-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_TWO</option>
<option value="arrow-left-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_THREE</option>
<option value="arrow-left-4">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_FOUR</option>
<option value="arrow-right-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_TWO</option>
<option value="arrow-right-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_THREE</option>
<option value="arrow-right-4">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_FOUR</option>
<option value="arrow-up-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_TWO</option>
<option value="arrow-up-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_THREE</option>
<option value="arrow-up-4">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_FOUR</option>
<option value="attachment">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ATTACHMENT</option>
<option value="reply">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_REPLY</option>
<option value="backward-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BACKWARD_CIRCLE</option>
<option value="ban-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BAN_CIRCLE</option>
<option value="bars">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BARS</option>
<option value="basket">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BASKET</option>
<option value="book">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOK</option>
<option value="bookmark">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOKMARK</option>
<option value="bookmark-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOKMARK_TWO</option>
<option value="box-add">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOX_ADD</option>
<option value="box-remove">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOX_REMOVE</option>
<option value="briefcase">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BRIEFCASE</option>
<option value="wifi">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WIFI</option>
<option value="brush">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BRUSH</option>
<option value="calendar">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR</option>
<option value="calendar-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR_TWO</option>
<option value="calendar-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR_THREE</option>
<option value="camera">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CAMERA</option>
<option value="camera-2 / video">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CAMERA_TWO_VIDEO</option>
<option value="cancel-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CANCEL_CIRCLE</option>
<option value="cart">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CART</option>
<option value="chart">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHART</option>
<option value="checkbox-partial">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX_PARTIAL</option>
<option value="checkbox-unchecked">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX_UNCHECKED</option>
<option value="lock">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOCK</option>
<option value="checkbox">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX</option>
<option value="checkmark-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKMARK_TWO</option>
<option value="checkmark-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKMARK_CIRCLE</option>
<option value="arrow-down">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN</option>
<option value="arrow-left">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT</option>
<option value="arrow-right">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT</option>
<option value="arrow-up">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP</option>
<option value="circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CIRCLE</option>
<option value="clock">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CLOCK</option>
<option value="cogs">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COGS</option>
<option value="comment">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMMENT</option>
<option value="comments-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMMENTS_TWO</option>
<option value="compass">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMPASS</option>
<option value="contract">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CONTRACT</option>
<option value="contract-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CONTRACT_TWO</option>
<option value="credit">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREDIT</option>
<option value="credit-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREDIT_TWO</option>
<option value="cube">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CUBE</option>
<option value="dashboard">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD</option>
<option value="database">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DATABASE</option>
<option value="delete">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DELETE</option>
<option value="download">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DOWNLOAD</option>
<option value="enter">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENTER</option>
<option value="envelope">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENVELOPE</option>
<option value="envelope-opened">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENVELOPE_OPENED</option>
<option value="equalizer">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EQUALIZER</option>
<option value="exit">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXIT</option>
<option value="expand">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPAND</option>
<option value="expand-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPAND_TWO</option>
<option value="expired">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPIRED</option>
<option value="eye-close">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EYE_CLOSE</option>
<option value="eye-open">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EYE_OPEN</option>
<option value="featured">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FEATURED</option>
<option value="feed">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FEED</option>
<option value="file">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE</option>
<option value="file-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_TWO</option>
<option value="file-add">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_ADD</option>
<option value="file-check">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_CHECK</option>
<option value="file-minus">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_MINUS</option>
<option value="file-remove">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_REMOVE</option>
<option value="filter">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILTER</option>
<option value="first">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FIRST</option>
<option value="flag">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLAG</option>
<option value="flag-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLAG_THREE</option>
<option value="folder-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_THREE</option>
<option value="folder-close">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_CLOSE</option>
<option value="folder-minus">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_MINUS</option>
<option value="folder-open">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_OPEN</option>
<option value="folder-plus">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_PLUS</option>
<option value="folder-plus-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_PLUS_TWO</option>
<option value="folder-remove">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_REMOVE</option>
<option value="forward-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FORWARD_TWO</option>
<option value="forward-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FORWARD_CIRCLE</option>
<option value="grid">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GRID</option>
<option value="grid-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GRID_TWO</option>
<option value="health">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEALTH</option>
<option value="heart">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEART</option>
<option value="heart-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEART_TWO</option>
<option value="home">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HOME</option>
<option value="home-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HOME_TWO</option>
<option value="info">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_INFO</option>
<option value="info-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_INFO_CIRCLE</option>
<option value="key">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_KEY</option>
<option value="lamp">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAMP</option>
<option value="last">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAST</option>
<option value="flash">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLASH</option>
<option value="link">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LINK</option>
<option value="list">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LIST</option>
<option value="list-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LIST_TWO</option>
<option value="location">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOCATION</option>
<option value="loop">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOOP</option>
<option value="menu">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU</option>
<option value="menu-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU_TWO</option>
<option value="menu-3">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU_THREE</option>
<option value="minus">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MINUS</option>
<option value="minus-sign">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MINUS_SIGN</option>
<option value="mobile">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MOBILE</option>
<option value="move">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MOVE</option>
<option value="music">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MUSIC</option>
<option value="plus">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLUS</option>
<option value="next">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEXT</option>
<option value="notification">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTIFICATION</option>
<option value="notification-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTIFICATION_CIRCLE</option>
<option value="cog">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COG</option>
<option value="new-tab">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEW_TAB</option>
<option value="new-tab-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEW_TAB_TWO</option>
<option value="palette">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PALETTE</option>
<option value="paragraph-center">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_CENTER</option>
<option value="paragraph-justify">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_JUSTIFY</option>
<option value="paragraph-left">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_LEFT</option>
<option value="paragraph-right">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_RIGHT</option>
<option value="pause">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PAUSE</option>
<option value="pause-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PAUSE_CIRCLE</option>
<option value="pencil-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PENCIL_TWO</option>
<option value="warning">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WARNING</option>
<option value="phone">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PHONE</option>
<option value="phone-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PHONE_TWO</option>
<option value="image">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_IMAGE</option>
<option value="images">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_IMAGES</option>
<option value="pie">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PIE</option>
<option value="pin">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PIN</option>
<option value="play">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLAY</option>
<option value="youtube">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_YOUTUBE</option>
<option value="play-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLAY_CIRCLE</option>
<option value="plus-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLUS_CIRCLE</option>
<option value="power-cord">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_POWER_CORD</option>
<option value="previous">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PREVIOUS</option>
<option value="print">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PRINT</option>
<option value="publish">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PUBLISH</option>
<option value="purge">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PURGE</option>
<option value="puzzle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PUZZLE</option>
<option value="question">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUESTION</option>
<option value="question-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUESTION_TWO</option>
<option value="quotes-left">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUOTES_LEFT</option>
<option value="quotes-right">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUOTES_RIGHT</option>
<option value="bubble-quote">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BUBBLE_QUOTE</option>
<option value="generic">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GENERIC</option>
<option value="radio-unchecked">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_RADIO_UNCHECKED</option>
<option value="save-copy">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SAVE_COPY</option>
<option value="save-new">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SAVE_NEW</option>
<option value="scissors">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCISSORS</option>
<option value="screen">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCREEN</option>
<option value="screwdriver">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCREWDRIVER</option>
<option value="search">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SEARCH</option>
<option value="share">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHARE</option>
<option value="share-alt">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHARE_ALT</option>
<option value="shield">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHIELD</option>
<option value="shuffle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHUFFLE</option>
<option value="signup">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SIGNUP</option>
<option value="smiley">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY</option>
<option value="smiley-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_TWO</option>
<option value="smiley-neutral">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_NEUTRAL</option>
<option value="smiley-neutral-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_NEUTRAL_TWO</option>
<option value="smiley-sad">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_SAD</option>
<option value="smiley-sad-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_SAD_TWO</option>
<option value="square">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SQUARE</option>
<option value="stack">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STACK</option>
<option value="star-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STAR_TWO</option>
<option value="stop">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STOP</option>
<option value="stop-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STOP_CIRCLE</option>
<option value="support">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUPPORT</option>
<option value="switch">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SWITCH</option>
<option value="tablet">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TABLET</option>
<option value="tag">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAG</option>
<option value="tag-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAG_TWO</option>
<option value="tags">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAGS</option>
<option value="tags-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAGS_TWO</option>
<option value="thumbs-down">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_THUMBS_DOWN</option>
<option value="thumbs-up">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_THUMBS_UP</option>
<option value="tree">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TREE</option>
<option value="tree-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TREE_TWO</option>
<option value="unarchive">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNARCHIVE</option>
<option value="unblock">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNBLOCK</option>
<option value="undo">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNDO</option>
<option value="undo-2">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNDO_TWO</option>
<option value="unfeatured">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNFEATURED</option>
<option value="unlock">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNLOCK</option>
<option value="unpublish">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNPUBLISH</option>
<option value="upload">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UPLOAD</option>
<option value="user">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_USER</option>
<option value="users">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_USERS</option>
<option value="vcard">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_VCARD</option>
<option value="wand">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WAND</option>
<option value="warning-circle">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WARNING_CIRCLE</option>
<option value="wrench">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WRENCH</option>
<option value="zoom-in">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ZOOM_IN</option>
<option value="zoom-out">COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ZOOM_OUT</option>
<!-- Option Set. -->
<option value="joomla">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA</option>
<option value="address">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADDRESS</option>
<option value="pencil">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PENCIL</option>
<option value="archive">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARCHIVE</option>
<option value="arrow-down-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_TWO</option>
<option value="arrow-down-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_THREE</option>
<option value="arrow-down-4">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN_FOUR</option>
<option value="arrow-first">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_FIRST</option>
<option value="arrow-last">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LAST</option>
<option value="arrow-left-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_TWO</option>
<option value="arrow-left-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_THREE</option>
<option value="arrow-left-4">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT_FOUR</option>
<option value="arrow-right-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_TWO</option>
<option value="arrow-right-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_THREE</option>
<option value="arrow-right-4">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT_FOUR</option>
<option value="arrow-up-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_TWO</option>
<option value="arrow-up-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_THREE</option>
<option value="arrow-up-4">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP_FOUR</option>
<option value="attachment">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ATTACHMENT</option>
<option value="reply">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_REPLY</option>
<option value="backward-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BACKWARD_CIRCLE</option>
<option value="ban-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BAN_CIRCLE</option>
<option value="bars">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BARS</option>
<option value="basket">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BASKET</option>
<option value="book">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOK</option>
<option value="bookmark">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOKMARK</option>
<option value="bookmark-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOOKMARK_TWO</option>
<option value="box-add">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOX_ADD</option>
<option value="box-remove">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BOX_REMOVE</option>
<option value="briefcase">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BRIEFCASE</option>
<option value="wifi">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WIFI</option>
<option value="brush">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BRUSH</option>
<option value="calendar">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR</option>
<option value="calendar-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR_TWO</option>
<option value="calendar-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CALENDAR_THREE</option>
<option value="camera">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CAMERA</option>
<option value="camera-2 / video">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CAMERA_TWO_VIDEO</option>
<option value="cancel-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CANCEL_CIRCLE</option>
<option value="cart">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CART</option>
<option value="chart">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHART</option>
<option value="checkbox-partial">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX_PARTIAL</option>
<option value="checkbox-unchecked">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX_UNCHECKED</option>
<option value="lock">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOCK</option>
<option value="checkbox">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKBOX</option>
<option value="checkmark-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKMARK_TWO</option>
<option value="checkmark-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKMARK_CIRCLE</option>
<option value="arrow-down">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_DOWN</option>
<option value="arrow-left">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_LEFT</option>
<option value="arrow-right">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_RIGHT</option>
<option value="arrow-up">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ARROW_UP</option>
<option value="circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CIRCLE</option>
<option value="clock">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CLOCK</option>
<option value="cogs">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COGS</option>
<option value="comment">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMMENT</option>
<option value="comments-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMMENTS_TWO</option>
<option value="compass">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COMPASS</option>
<option value="contract">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CONTRACT</option>
<option value="contract-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CONTRACT_TWO</option>
<option value="credit">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREDIT</option>
<option value="credit-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CREDIT_TWO</option>
<option value="cube">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CUBE</option>
<option value="dashboard">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD</option>
<option value="database">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DATABASE</option>
<option value="delete">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DELETE</option>
<option value="download">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DOWNLOAD</option>
<option value="enter">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENTER</option>
<option value="envelope">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENVELOPE</option>
<option value="envelope-opened">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ENVELOPE_OPENED</option>
<option value="equalizer">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EQUALIZER</option>
<option value="exit">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXIT</option>
<option value="expand">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPAND</option>
<option value="expand-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPAND_TWO</option>
<option value="expired">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EXPIRED</option>
<option value="eye-close">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EYE_CLOSE</option>
<option value="eye-open">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EYE_OPEN</option>
<option value="featured">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FEATURED</option>
<option value="feed">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FEED</option>
<option value="file">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE</option>
<option value="file-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_TWO</option>
<option value="file-add">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_ADD</option>
<option value="file-check">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_CHECK</option>
<option value="file-minus">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_MINUS</option>
<option value="file-remove">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILE_REMOVE</option>
<option value="filter">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FILTER</option>
<option value="first">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FIRST</option>
<option value="flag">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLAG</option>
<option value="flag-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLAG_THREE</option>
<option value="folder-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_THREE</option>
<option value="folder-close">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_CLOSE</option>
<option value="folder-minus">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_MINUS</option>
<option value="folder-open">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_OPEN</option>
<option value="folder-plus">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_PLUS</option>
<option value="folder-plus-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_PLUS_TWO</option>
<option value="folder-remove">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FOLDER_REMOVE</option>
<option value="forward-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FORWARD_TWO</option>
<option value="forward-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FORWARD_CIRCLE</option>
<option value="grid">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GRID</option>
<option value="grid-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GRID_TWO</option>
<option value="health">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEALTH</option>
<option value="heart">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEART</option>
<option value="heart-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HEART_TWO</option>
<option value="home">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HOME</option>
<option value="home-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HOME_TWO</option>
<option value="info">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_INFO</option>
<option value="info-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_INFO_CIRCLE</option>
<option value="key">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_KEY</option>
<option value="lamp">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAMP</option>
<option value="last">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAST</option>
<option value="flash">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_FLASH</option>
<option value="link">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LINK</option>
<option value="list">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LIST</option>
<option value="list-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LIST_TWO</option>
<option value="location">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOCATION</option>
<option value="loop">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LOOP</option>
<option value="menu">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU</option>
<option value="menu-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU_TWO</option>
<option value="menu-3">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MENU_THREE</option>
<option value="minus">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MINUS</option>
<option value="minus-sign">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MINUS_SIGN</option>
<option value="mobile">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MOBILE</option>
<option value="move">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MOVE</option>
<option value="music">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MUSIC</option>
<option value="plus">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLUS</option>
<option value="next">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEXT</option>
<option value="notification">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTIFICATION</option>
<option value="notification-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTIFICATION_CIRCLE</option>
<option value="cog">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_COG</option>
<option value="new-tab">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEW_TAB</option>
<option value="new-tab-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEW_TAB_TWO</option>
<option value="palette">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PALETTE</option>
<option value="paragraph-center">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_CENTER</option>
<option value="paragraph-justify">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_JUSTIFY</option>
<option value="paragraph-left">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_LEFT</option>
<option value="paragraph-right">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PARAGRAPH_RIGHT</option>
<option value="pause">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PAUSE</option>
<option value="pause-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PAUSE_CIRCLE</option>
<option value="pencil-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PENCIL_TWO</option>
<option value="warning">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WARNING</option>
<option value="phone">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PHONE</option>
<option value="phone-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PHONE_TWO</option>
<option value="image">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_IMAGE</option>
<option value="images">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_IMAGES</option>
<option value="pie">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PIE</option>
<option value="pin">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PIN</option>
<option value="play">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLAY</option>
<option value="youtube">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_YOUTUBE</option>
<option value="play-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLAY_CIRCLE</option>
<option value="plus-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PLUS_CIRCLE</option>
<option value="power-cord">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_POWER_CORD</option>
<option value="previous">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PREVIOUS</option>
<option value="print">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PRINT</option>
<option value="publish">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PUBLISH</option>
<option value="purge">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PURGE</option>
<option value="puzzle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PUZZLE</option>
<option value="question">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUESTION</option>
<option value="question-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUESTION_TWO</option>
<option value="quotes-left">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUOTES_LEFT</option>
<option value="quotes-right">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_QUOTES_RIGHT</option>
<option value="bubble-quote">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_BUBBLE_QUOTE</option>
<option value="generic">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_GENERIC</option>
<option value="radio-unchecked">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_RADIO_UNCHECKED</option>
<option value="save-copy">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SAVE_COPY</option>
<option value="save-new">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SAVE_NEW</option>
<option value="scissors">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCISSORS</option>
<option value="screen">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCREEN</option>
<option value="screwdriver">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SCREWDRIVER</option>
<option value="search">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SEARCH</option>
<option value="share">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHARE</option>
<option value="share-alt">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHARE_ALT</option>
<option value="shield">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHIELD</option>
<option value="shuffle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SHUFFLE</option>
<option value="signup">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SIGNUP</option>
<option value="smiley">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY</option>
<option value="smiley-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_TWO</option>
<option value="smiley-neutral">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_NEUTRAL</option>
<option value="smiley-neutral-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_NEUTRAL_TWO</option>
<option value="smiley-sad">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_SAD</option>
<option value="smiley-sad-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SMILEY_SAD_TWO</option>
<option value="square">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SQUARE</option>
<option value="stack">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STACK</option>
<option value="star-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STAR_TWO</option>
<option value="stop">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STOP</option>
<option value="stop-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_STOP_CIRCLE</option>
<option value="support">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUPPORT</option>
<option value="switch">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SWITCH</option>
<option value="tablet">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TABLET</option>
<option value="tag">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAG</option>
<option value="tag-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAG_TWO</option>
<option value="tags">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAGS</option>
<option value="tags-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TAGS_TWO</option>
<option value="thumbs-down">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_THUMBS_DOWN</option>
<option value="thumbs-up">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_THUMBS_UP</option>
<option value="tree">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TREE</option>
<option value="tree-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_TREE_TWO</option>
<option value="unarchive">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNARCHIVE</option>
<option value="unblock">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNBLOCK</option>
<option value="undo">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNDO</option>
<option value="undo-2">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNDO_TWO</option>
<option value="unfeatured">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNFEATURED</option>
<option value="unlock">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNLOCK</option>
<option value="unpublish">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UNPUBLISH</option>
<option value="upload">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_UPLOAD</option>
<option value="user">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_USER</option>
<option value="users">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_USERS</option>
<option value="vcard">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_VCARD</option>
<option value="wand">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WAND</option>
<option value="warning-circle">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WARNING_CIRCLE</option>
<option value="wrench">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_WRENCH</option>
<option value="zoom-in">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ZOOM_IN</option>
<option value="zoom-out">
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ZOOM_OUT</option>
</field>
<!-- Mainmenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
<!-- Mainmenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="mainmenu"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MAINMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_MAINMENU_DESCRIPTION"
class="inputbox" />
<!-- Dashboard_add Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Dashboard_add Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="dashboard_add"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_ADD_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_ADD_DESCRIPTION"
class="inputbox" />
<!-- Dashboard_list Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Dashboard_list Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="dashboard_list"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox" />
<!-- Submenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Submenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="submenu"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUBMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_SUBMENU_DESCRIPTION"
class="inputbox" />
<!-- Checkin Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Checkin Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="checkin"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKIN_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_CHECKIN_DESCRIPTION"
class="inputbox" />
<!-- History Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- History Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="history"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HISTORY_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HISTORY_DESCRIPTION"
class="inputbox" />
<!-- Metadata Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Metadata Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="metadata"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_METADATA_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_METADATA_DESCRIPTION"
class="inputbox" />
<!-- Access Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Access Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="access"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ACCESS_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ACCESS_DESCRIPTION"
class="inputbox" />
<!-- Port Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Port Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="port"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PORT_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_PORT_DESCRIPTION"
class="inputbox" />
<!-- Edit_create_site_view Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Edit_create_site_view Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="edit_create_site_view"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EDIT_CREATE_SITE_VIEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EDIT_CREATE_SITE_VIEW_DESCRIPTION"
class="inputbox" />
<!-- Order Field. Type: Integer. (joomla)-->
<field type="integer"
class="inputbox"
/>
<!-- Order Field. Type: Integer. (joomla) -->
<field
type="integer"
name="order"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ORDER_LABEL"
default="0"
@ -434,9 +668,12 @@
required="false"
first="0"
last="400"
step="1" />
step="1"
/>
</form>
</field>
<!-- Note_on_admin_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_admin_views" label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTE_ON_ADMIN_VIEWS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NOTE_ON_ADMIN_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_admin_views" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,9 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Addconfig Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addconfig Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addconfig"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_ADDCONFIG_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -98,20 +107,21 @@
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_ADDCONFIG_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addconfig_modal"
repeat="true">
<!-- Field Field. Type: Fields. (custom)-->
<field type="fields"
<form hidden="true" name="list_addconfig_modal" repeat="true">
<!-- Field Field. Type: Fields. (custom) -->
<field
type="fields"
name="field"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_FIELD_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_FIELD_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="false" />
<!-- Custom_value Field. Type: Textarea. (joomla)-->
<field type="textarea"
button="false"
/>
<!-- Custom_value Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="custom_value"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CUSTOM_VALUE_LABEL"
rows="2"
@ -121,9 +131,11 @@
hint="COM_COMPONENTBUILDER_COMPONENT_CONFIG_CUSTOM_VALUE_HINT"
required="false"
readonly="false"
disabled="false" />
<!-- Tabname Field. Type: Text. (joomla)-->
<field type="text"
disabled="false"
/>
<!-- Tabname Field. Type: Text. (joomla) -->
<field
type="text"
name="tabname"
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_TABNAME_LABEL"
size="40"
@ -136,7 +148,8 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_CONFIG_TABNAME_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CONFIG_TABNAME_HINT" />
hint="COM_COMPONENTBUILDER_COMPONENT_CONFIG_TABNAME_HINT"
/>
</form>
</field>
</fieldset>

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,20 +95,21 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Addcustommenus Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addcustommenus Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addcustommenus"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_ADDCUSTOMMENUS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
icon="list"
maximum="50">
<form hidden="true"
name="list_addcustommenus_modal"
repeat="true">
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
<form hidden="true" name="list_addcustommenus_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_LABEL"
size="40"
@ -113,9 +121,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_HINT" />
<!-- Name_code Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_HINT"
/>
<!-- Name_code Field. Type: Text. (joomla) -->
<field
type="text"
name="name_code"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_LABEL"
size="40"
@ -125,9 +135,11 @@
required="false"
filter="CMD"
message="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_HINT" />
<!-- Link Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NAME_CODE_HINT"
/>
<!-- Link Field. Type: Text. (joomla) -->
<field
type="text"
name="link"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_LINK_LABEL"
size="50"
@ -139,50 +151,61 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_LINK_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_LINK_HINT" />
<!-- Icon Field. Type: Filelist. (joomla)-->
<field type="filelist"
hint="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_LINK_HINT"
/>
<!-- Icon Field. Type: Filelist. (joomla) -->
<field
type="filelist"
name="icon"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_ICON_LABEL"
directory="images"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_ICON_DESCRIPTION"
hide_default="true" />
<!-- Mainmenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
hide_default="true"
/>
<!-- Mainmenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="mainmenu"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MAINMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_MAINMENU_DESCRIPTION"
class="inputbox" />
<!-- Dashboard_list Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Dashboard_list Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="dashboard_list"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox" />
<!-- Submenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Submenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="submenu"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_SUBMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_SUBMENU_DESCRIPTION"
class="inputbox" />
<!-- Before Field. Type: Componentadminmenus. (custom)-->
<field type="componentadminmenus"
class="inputbox"
/>
<!-- Before Field. Type: Componentadminmenus. (custom) -->
<field
type="componentadminmenus"
name="before"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_BEFORE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_BEFORE_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
required="false"
button="false" />
button="false"
/>
</form>
</field>
</fieldset>

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,319 +95,541 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_on_custom_admin_views Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_custom_admin_views"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTE_ON_CUSTOM_ADMIN_VIEWS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTE_ON_CUSTOM_ADMIN_VIEWS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_custom_admin_views" />
<!-- Addcustom_admin_views Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addcustom_admin_views Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addcustom_admin_views"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADDCUSTOM_ADMIN_VIEWS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
icon="list"
maximum="50">
<form hidden="true"
name="list_addcustom_admin_views_modal"
repeat="true">
<!-- Customadminview Field. Type: Customadminviews. (custom)-->
<field type="customadminviews"
<form hidden="true" name="list_addcustom_admin_views_modal" repeat="true">
<!-- Customadminview Field. Type: Customadminviews. (custom) -->
<field
type="customadminviews"
name="customadminview"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUSTOMADMINVIEW_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUSTOMADMINVIEW_DESCRIPTION"
class="fieldMedium"
multiple="false"
required="false"
button="false" />
<!-- Icomoon Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Icomoon Field. Type: List. (joomla) -->
<field
type="list"
name="icomoon"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ICOMOON_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ICOMOON_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
required="false">
<!-- Option Set.-->
<option value="joomla">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA</option>
<option value="address">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADDRESS</option>
<option value="pencil">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PENCIL</option>
<option value="archive">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARCHIVE</option>
<option value="arrow-down-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_TWO</option>
<option value="arrow-down-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_THREE</option>
<option value="arrow-down-4">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_FOUR</option>
<option value="arrow-first">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_FIRST</option>
<option value="arrow-last">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LAST</option>
<option value="arrow-left-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_TWO</option>
<option value="arrow-left-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_THREE</option>
<option value="arrow-left-4">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_FOUR</option>
<option value="arrow-right-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_TWO</option>
<option value="arrow-right-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_THREE</option>
<option value="arrow-right-4">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_FOUR</option>
<option value="arrow-up-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_TWO</option>
<option value="arrow-up-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_THREE</option>
<option value="arrow-up-4">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_FOUR</option>
<option value="attachment">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ATTACHMENT</option>
<option value="reply">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_REPLY</option>
<option value="backward-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BACKWARD_CIRCLE</option>
<option value="ban-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BAN_CIRCLE</option>
<option value="bars">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BARS</option>
<option value="basket">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BASKET</option>
<option value="book">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOK</option>
<option value="bookmark">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOKMARK</option>
<option value="bookmark-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOKMARK_TWO</option>
<option value="box-add">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOX_ADD</option>
<option value="box-remove">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOX_REMOVE</option>
<option value="briefcase">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BRIEFCASE</option>
<option value="wifi">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WIFI</option>
<option value="brush">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BRUSH</option>
<option value="calendar">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR</option>
<option value="calendar-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR_TWO</option>
<option value="calendar-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR_THREE</option>
<option value="camera">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CAMERA</option>
<option value="camera-2 / video">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CAMERA_TWO_VIDEO</option>
<option value="cancel-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CANCEL_CIRCLE</option>
<option value="cart">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CART</option>
<option value="chart">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHART</option>
<option value="checkbox-partial">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX_PARTIAL</option>
<option value="checkbox-unchecked">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX_UNCHECKED</option>
<option value="lock">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOCK</option>
<option value="checkbox">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX</option>
<option value="checkmark-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKMARK_TWO</option>
<option value="checkmark-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKMARK_CIRCLE</option>
<option value="arrow-down">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN</option>
<option value="arrow-left">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT</option>
<option value="arrow-right">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT</option>
<option value="arrow-up">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP</option>
<option value="circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CIRCLE</option>
<option value="clock">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CLOCK</option>
<option value="cogs">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COGS</option>
<option value="comment">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMMENT</option>
<option value="comments-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMMENTS_TWO</option>
<option value="compass">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMPASS</option>
<option value="contract">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CONTRACT</option>
<option value="contract-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CONTRACT_TWO</option>
<option value="credit">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREDIT</option>
<option value="credit-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREDIT_TWO</option>
<option value="cube">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUBE</option>
<option value="dashboard">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD</option>
<option value="database">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DATABASE</option>
<option value="delete">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DELETE</option>
<option value="download">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DOWNLOAD</option>
<option value="enter">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENTER</option>
<option value="envelope">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENVELOPE</option>
<option value="envelope-opened">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENVELOPE_OPENED</option>
<option value="equalizer">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EQUALIZER</option>
<option value="exit">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXIT</option>
<option value="expand">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPAND</option>
<option value="expand-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPAND_TWO</option>
<option value="expired">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPIRED</option>
<option value="eye-close">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EYE_CLOSE</option>
<option value="eye-open">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EYE_OPEN</option>
<option value="featured">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FEATURED</option>
<option value="feed">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FEED</option>
<option value="file">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE</option>
<option value="file-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_TWO</option>
<option value="file-add">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_ADD</option>
<option value="file-check">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_CHECK</option>
<option value="file-minus">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_MINUS</option>
<option value="file-remove">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_REMOVE</option>
<option value="filter">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILTER</option>
<option value="first">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FIRST</option>
<option value="flag">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLAG</option>
<option value="flag-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLAG_THREE</option>
<option value="folder-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_THREE</option>
<option value="folder-close">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_CLOSE</option>
<option value="folder-minus">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_MINUS</option>
<option value="folder-open">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_OPEN</option>
<option value="folder-plus">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_PLUS</option>
<option value="folder-plus-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_PLUS_TWO</option>
<option value="folder-remove">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_REMOVE</option>
<option value="forward-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FORWARD_TWO</option>
<option value="forward-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FORWARD_CIRCLE</option>
<option value="grid">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GRID</option>
<option value="grid-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GRID_TWO</option>
<option value="health">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEALTH</option>
<option value="heart">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEART</option>
<option value="heart-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEART_TWO</option>
<option value="home">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HOME</option>
<option value="home-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HOME_TWO</option>
<option value="info">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_INFO</option>
<option value="info-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_INFO_CIRCLE</option>
<option value="key">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_KEY</option>
<option value="lamp">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LAMP</option>
<option value="last">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LAST</option>
<option value="flash">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLASH</option>
<option value="link">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LINK</option>
<option value="list">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LIST</option>
<option value="list-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LIST_TWO</option>
<option value="location">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOCATION</option>
<option value="loop">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOOP</option>
<option value="menu">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU</option>
<option value="menu-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU_TWO</option>
<option value="menu-3">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU_THREE</option>
<option value="minus">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MINUS</option>
<option value="minus-sign">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MINUS_SIGN</option>
<option value="mobile">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MOBILE</option>
<option value="move">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MOVE</option>
<option value="music">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MUSIC</option>
<option value="plus">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLUS</option>
<option value="next">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEXT</option>
<option value="notification">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTIFICATION</option>
<option value="notification-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTIFICATION_CIRCLE</option>
<option value="cog">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COG</option>
<option value="new-tab">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEW_TAB</option>
<option value="new-tab-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEW_TAB_TWO</option>
<option value="palette">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PALETTE</option>
<option value="paragraph-center">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_CENTER</option>
<option value="paragraph-justify">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_JUSTIFY</option>
<option value="paragraph-left">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_LEFT</option>
<option value="paragraph-right">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_RIGHT</option>
<option value="pause">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PAUSE</option>
<option value="pause-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PAUSE_CIRCLE</option>
<option value="pencil-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PENCIL_TWO</option>
<option value="warning">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WARNING</option>
<option value="phone">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PHONE</option>
<option value="phone-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PHONE_TWO</option>
<option value="image">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_IMAGE</option>
<option value="images">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_IMAGES</option>
<option value="pie">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PIE</option>
<option value="pin">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PIN</option>
<option value="play">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLAY</option>
<option value="youtube">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_YOUTUBE</option>
<option value="play-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLAY_CIRCLE</option>
<option value="plus-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLUS_CIRCLE</option>
<option value="power-cord">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_POWER_CORD</option>
<option value="previous">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PREVIOUS</option>
<option value="print">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PRINT</option>
<option value="publish">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PUBLISH</option>
<option value="purge">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PURGE</option>
<option value="puzzle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PUZZLE</option>
<option value="question">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUESTION</option>
<option value="question-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUESTION_TWO</option>
<option value="quotes-left">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUOTES_LEFT</option>
<option value="quotes-right">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUOTES_RIGHT</option>
<option value="bubble-quote">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BUBBLE_QUOTE</option>
<option value="generic">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GENERIC</option>
<option value="radio-unchecked">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_RADIO_UNCHECKED</option>
<option value="save-copy">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SAVE_COPY</option>
<option value="save-new">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SAVE_NEW</option>
<option value="scissors">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCISSORS</option>
<option value="screen">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCREEN</option>
<option value="screwdriver">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCREWDRIVER</option>
<option value="search">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SEARCH</option>
<option value="share">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHARE</option>
<option value="share-alt">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHARE_ALT</option>
<option value="shield">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHIELD</option>
<option value="shuffle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHUFFLE</option>
<option value="signup">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SIGNUP</option>
<option value="smiley">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY</option>
<option value="smiley-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_TWO</option>
<option value="smiley-neutral">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_NEUTRAL</option>
<option value="smiley-neutral-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_NEUTRAL_TWO</option>
<option value="smiley-sad">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_SAD</option>
<option value="smiley-sad-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_SAD_TWO</option>
<option value="square">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SQUARE</option>
<option value="stack">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STACK</option>
<option value="star-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STAR_TWO</option>
<option value="stop">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STOP</option>
<option value="stop-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STOP_CIRCLE</option>
<option value="support">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUPPORT</option>
<option value="switch">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SWITCH</option>
<option value="tablet">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TABLET</option>
<option value="tag">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAG</option>
<option value="tag-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAG_TWO</option>
<option value="tags">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAGS</option>
<option value="tags-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAGS_TWO</option>
<option value="thumbs-down">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_THUMBS_DOWN</option>
<option value="thumbs-up">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_THUMBS_UP</option>
<option value="tree">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TREE</option>
<option value="tree-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TREE_TWO</option>
<option value="unarchive">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNARCHIVE</option>
<option value="unblock">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNBLOCK</option>
<option value="undo">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNDO</option>
<option value="undo-2">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNDO_TWO</option>
<option value="unfeatured">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNFEATURED</option>
<option value="unlock">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNLOCK</option>
<option value="unpublish">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNPUBLISH</option>
<option value="upload">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UPLOAD</option>
<option value="user">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_USER</option>
<option value="users">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_USERS</option>
<option value="vcard">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_VCARD</option>
<option value="wand">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WAND</option>
<option value="warning-circle">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WARNING_CIRCLE</option>
<option value="wrench">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WRENCH</option>
<option value="zoom-in">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ZOOM_IN</option>
<option value="zoom-out">COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ZOOM_OUT</option>
<!-- Option Set. -->
<option value="joomla">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA</option>
<option value="address">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADDRESS</option>
<option value="pencil">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PENCIL</option>
<option value="archive">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARCHIVE</option>
<option value="arrow-down-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_TWO</option>
<option value="arrow-down-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_THREE</option>
<option value="arrow-down-4">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN_FOUR</option>
<option value="arrow-first">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_FIRST</option>
<option value="arrow-last">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LAST</option>
<option value="arrow-left-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_TWO</option>
<option value="arrow-left-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_THREE</option>
<option value="arrow-left-4">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT_FOUR</option>
<option value="arrow-right-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_TWO</option>
<option value="arrow-right-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_THREE</option>
<option value="arrow-right-4">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT_FOUR</option>
<option value="arrow-up-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_TWO</option>
<option value="arrow-up-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_THREE</option>
<option value="arrow-up-4">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP_FOUR</option>
<option value="attachment">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ATTACHMENT</option>
<option value="reply">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_REPLY</option>
<option value="backward-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BACKWARD_CIRCLE</option>
<option value="ban-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BAN_CIRCLE</option>
<option value="bars">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BARS</option>
<option value="basket">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BASKET</option>
<option value="book">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOK</option>
<option value="bookmark">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOKMARK</option>
<option value="bookmark-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOOKMARK_TWO</option>
<option value="box-add">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOX_ADD</option>
<option value="box-remove">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BOX_REMOVE</option>
<option value="briefcase">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BRIEFCASE</option>
<option value="wifi">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WIFI</option>
<option value="brush">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BRUSH</option>
<option value="calendar">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR</option>
<option value="calendar-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR_TWO</option>
<option value="calendar-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CALENDAR_THREE</option>
<option value="camera">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CAMERA</option>
<option value="camera-2 / video">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CAMERA_TWO_VIDEO</option>
<option value="cancel-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CANCEL_CIRCLE</option>
<option value="cart">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CART</option>
<option value="chart">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHART</option>
<option value="checkbox-partial">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX_PARTIAL</option>
<option value="checkbox-unchecked">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX_UNCHECKED</option>
<option value="lock">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOCK</option>
<option value="checkbox">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKBOX</option>
<option value="checkmark-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKMARK_TWO</option>
<option value="checkmark-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CHECKMARK_CIRCLE</option>
<option value="arrow-down">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_DOWN</option>
<option value="arrow-left">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_LEFT</option>
<option value="arrow-right">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_RIGHT</option>
<option value="arrow-up">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ARROW_UP</option>
<option value="circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CIRCLE</option>
<option value="clock">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CLOCK</option>
<option value="cogs">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COGS</option>
<option value="comment">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMMENT</option>
<option value="comments-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMMENTS_TWO</option>
<option value="compass">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COMPASS</option>
<option value="contract">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CONTRACT</option>
<option value="contract-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CONTRACT_TWO</option>
<option value="credit">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREDIT</option>
<option value="credit-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CREDIT_TWO</option>
<option value="cube">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUBE</option>
<option value="dashboard">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD</option>
<option value="database">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DATABASE</option>
<option value="delete">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DELETE</option>
<option value="download">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DOWNLOAD</option>
<option value="enter">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENTER</option>
<option value="envelope">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENVELOPE</option>
<option value="envelope-opened">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ENVELOPE_OPENED</option>
<option value="equalizer">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EQUALIZER</option>
<option value="exit">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXIT</option>
<option value="expand">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPAND</option>
<option value="expand-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPAND_TWO</option>
<option value="expired">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EXPIRED</option>
<option value="eye-close">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EYE_CLOSE</option>
<option value="eye-open">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EYE_OPEN</option>
<option value="featured">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FEATURED</option>
<option value="feed">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FEED</option>
<option value="file">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE</option>
<option value="file-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_TWO</option>
<option value="file-add">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_ADD</option>
<option value="file-check">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_CHECK</option>
<option value="file-minus">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_MINUS</option>
<option value="file-remove">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILE_REMOVE</option>
<option value="filter">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FILTER</option>
<option value="first">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FIRST</option>
<option value="flag">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLAG</option>
<option value="flag-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLAG_THREE</option>
<option value="folder-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_THREE</option>
<option value="folder-close">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_CLOSE</option>
<option value="folder-minus">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_MINUS</option>
<option value="folder-open">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_OPEN</option>
<option value="folder-plus">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_PLUS</option>
<option value="folder-plus-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_PLUS_TWO</option>
<option value="folder-remove">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FOLDER_REMOVE</option>
<option value="forward-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FORWARD_TWO</option>
<option value="forward-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FORWARD_CIRCLE</option>
<option value="grid">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GRID</option>
<option value="grid-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GRID_TWO</option>
<option value="health">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEALTH</option>
<option value="heart">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEART</option>
<option value="heart-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HEART_TWO</option>
<option value="home">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HOME</option>
<option value="home-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_HOME_TWO</option>
<option value="info">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_INFO</option>
<option value="info-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_INFO_CIRCLE</option>
<option value="key">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_KEY</option>
<option value="lamp">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LAMP</option>
<option value="last">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LAST</option>
<option value="flash">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_FLASH</option>
<option value="link">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LINK</option>
<option value="list">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LIST</option>
<option value="list-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LIST_TWO</option>
<option value="location">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOCATION</option>
<option value="loop">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_LOOP</option>
<option value="menu">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU</option>
<option value="menu-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU_TWO</option>
<option value="menu-3">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MENU_THREE</option>
<option value="minus">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MINUS</option>
<option value="minus-sign">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MINUS_SIGN</option>
<option value="mobile">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MOBILE</option>
<option value="move">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MOVE</option>
<option value="music">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MUSIC</option>
<option value="plus">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLUS</option>
<option value="next">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEXT</option>
<option value="notification">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTIFICATION</option>
<option value="notification-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTIFICATION_CIRCLE</option>
<option value="cog">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_COG</option>
<option value="new-tab">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEW_TAB</option>
<option value="new-tab-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEW_TAB_TWO</option>
<option value="palette">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PALETTE</option>
<option value="paragraph-center">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_CENTER</option>
<option value="paragraph-justify">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_JUSTIFY</option>
<option value="paragraph-left">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_LEFT</option>
<option value="paragraph-right">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PARAGRAPH_RIGHT</option>
<option value="pause">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PAUSE</option>
<option value="pause-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PAUSE_CIRCLE</option>
<option value="pencil-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PENCIL_TWO</option>
<option value="warning">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WARNING</option>
<option value="phone">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PHONE</option>
<option value="phone-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PHONE_TWO</option>
<option value="image">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_IMAGE</option>
<option value="images">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_IMAGES</option>
<option value="pie">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PIE</option>
<option value="pin">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PIN</option>
<option value="play">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLAY</option>
<option value="youtube">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_YOUTUBE</option>
<option value="play-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLAY_CIRCLE</option>
<option value="plus-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PLUS_CIRCLE</option>
<option value="power-cord">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_POWER_CORD</option>
<option value="previous">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PREVIOUS</option>
<option value="print">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PRINT</option>
<option value="publish">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PUBLISH</option>
<option value="purge">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PURGE</option>
<option value="puzzle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_PUZZLE</option>
<option value="question">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUESTION</option>
<option value="question-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUESTION_TWO</option>
<option value="quotes-left">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUOTES_LEFT</option>
<option value="quotes-right">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_QUOTES_RIGHT</option>
<option value="bubble-quote">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BUBBLE_QUOTE</option>
<option value="generic">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_GENERIC</option>
<option value="radio-unchecked">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_RADIO_UNCHECKED</option>
<option value="save-copy">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SAVE_COPY</option>
<option value="save-new">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SAVE_NEW</option>
<option value="scissors">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCISSORS</option>
<option value="screen">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCREEN</option>
<option value="screwdriver">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SCREWDRIVER</option>
<option value="search">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SEARCH</option>
<option value="share">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHARE</option>
<option value="share-alt">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHARE_ALT</option>
<option value="shield">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHIELD</option>
<option value="shuffle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SHUFFLE</option>
<option value="signup">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SIGNUP</option>
<option value="smiley">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY</option>
<option value="smiley-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_TWO</option>
<option value="smiley-neutral">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_NEUTRAL</option>
<option value="smiley-neutral-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_NEUTRAL_TWO</option>
<option value="smiley-sad">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_SAD</option>
<option value="smiley-sad-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SMILEY_SAD_TWO</option>
<option value="square">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SQUARE</option>
<option value="stack">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STACK</option>
<option value="star-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STAR_TWO</option>
<option value="stop">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STOP</option>
<option value="stop-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_STOP_CIRCLE</option>
<option value="support">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUPPORT</option>
<option value="switch">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SWITCH</option>
<option value="tablet">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TABLET</option>
<option value="tag">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAG</option>
<option value="tag-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAG_TWO</option>
<option value="tags">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAGS</option>
<option value="tags-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TAGS_TWO</option>
<option value="thumbs-down">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_THUMBS_DOWN</option>
<option value="thumbs-up">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_THUMBS_UP</option>
<option value="tree">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TREE</option>
<option value="tree-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_TREE_TWO</option>
<option value="unarchive">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNARCHIVE</option>
<option value="unblock">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNBLOCK</option>
<option value="undo">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNDO</option>
<option value="undo-2">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNDO_TWO</option>
<option value="unfeatured">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNFEATURED</option>
<option value="unlock">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNLOCK</option>
<option value="unpublish">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UNPUBLISH</option>
<option value="upload">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_UPLOAD</option>
<option value="user">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_USER</option>
<option value="users">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_USERS</option>
<option value="vcard">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_VCARD</option>
<option value="wand">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WAND</option>
<option value="warning-circle">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WARNING_CIRCLE</option>
<option value="wrench">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_WRENCH</option>
<option value="zoom-in">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ZOOM_IN</option>
<option value="zoom-out">
COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ZOOM_OUT</option>
</field>
<!-- Mainmenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
<!-- Mainmenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="mainmenu"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MAINMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_MAINMENU_DESCRIPTION"
class="inputbox" />
<!-- Dashboard_list Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Dashboard_list Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="dashboard_list"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESCRIPTION"
class="inputbox" />
<!-- Submenu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Submenu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="submenu"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUBMENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_SUBMENU_DESCRIPTION"
class="inputbox" />
<!-- Metadata Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Metadata Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="metadata"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_METADATA_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_METADATA_DESCRIPTION"
class="inputbox" />
<!-- Access Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Access Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="access"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ACCESS_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ACCESS_DESCRIPTION"
class="inputbox" />
<!-- Adminviews Field. Type: Adminsviews. (custom)-->
<field type="adminsviews"
class="inputbox"
/>
<!-- Adminviews Field. Type: Adminsviews. (custom) -->
<field
type="adminsviews"
name="adminviews"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADMINVIEWS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_ADMINVIEWS_DESCRIPTION"
class="fieldMedium"
multiple="true"
required="false"
button="false" />
<!-- Before Field. Type: Componentadminmenus. (custom)-->
<field type="componentadminmenus"
button="false"
/>
<!-- Before Field. Type: Componentadminmenus. (custom) -->
<field
type="componentadminmenus"
name="before"
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BEFORE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_BEFORE_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
required="false"
button="false" />
button="false"
/>
</form>
</field>
<!-- Note_on_custom_admin_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_custom_admin_views" label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTE_ON_CUSTOM_ADMIN_VIEWS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NOTE_ON_CUSTOM_ADMIN_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_custom_admin_views" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,20 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Php_dashboard_methods Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_dashboard_methods"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_HINT"
required="false" />
<!-- Dashboard_tab Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Dashboard_tab Field. Type: Subform. (joomla) -->
<field
type="subform"
name="dashboard_tab"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_DASHBOARD_TAB_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -109,11 +107,10 @@
icon="list"
maximum="10"
filter="raw">
<form hidden="true"
name="list_dashboard_tab_modal"
repeat="true">
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
<form hidden="true" name="list_dashboard_tab_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_LABEL"
size="40"
@ -125,9 +122,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_HINT" />
<!-- Header Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NAME_HINT"
/>
<!-- Header Field. Type: Text. (joomla) -->
<field
type="text"
name="header"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_LABEL"
size="40"
@ -139,9 +138,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_HINT" />
<!-- Html Field. Type: Textarea. (joomla)-->
<field type="textarea"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HEADER_HINT"
/>
<!-- Html Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="html"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_LABEL"
rows="20"
@ -149,9 +150,23 @@
class="text_area tab_html"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_HINT"
required="false" />
required="false"
/>
</form>
</field>
<!-- Php_dashboard_methods Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_dashboard_methods"
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_PHP_DASHBOARD_METHODS_HINT"
required="false"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,176 +95,13 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders_fullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders_fullpath" />
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files_fullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files_fullpath" />
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders" />
<!-- Addfiles Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfiles"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILES_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfiles_modal"
repeat="true">
<!-- File Field. Type: Customfilelist. (custom)-->
<field type="customfilelist"
name="file"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Addfolders Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfolders_modal"
repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom)-->
<field type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
<!-- Addfilesfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfilesfullpath_modal"
repeat="true">
<!-- Filepath Field. Type: Text. (joomla)-->
<field type="text"
name="filepath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files" />
<!-- Addfoldersfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_constant_paths" label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_CONSTANT_PATHS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_CONSTANT_PATHS_DESCRIPTION" heading="h4" class="alert alert-info note_constant_paths" />
<!-- Addfoldersfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -265,11 +109,10 @@
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERSFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfoldersfullpath_modal"
repeat="true">
<!-- Folderpath Field. Type: Text. (joomla)-->
<field type="text"
<form hidden="true" name="list_addfoldersfullpath_modal" repeat="true">
<!-- Folderpath Field. Type: Text. (joomla) -->
<field
type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_LABEL"
size="70"
@ -279,9 +122,11 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
@ -293,16 +138,181 @@
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders_fullpath" label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders_fullpath" />
<!-- Addfilesfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfilesfullpath_modal" repeat="true">
<!-- Filepath Field. Type: Text. (joomla) -->
<field
type="text"
name="filepath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files_fullpath" label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_files_fullpath" />
<!-- Addfolders Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfolders_modal" repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom) -->
<field
type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
required="false"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders" label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders" />
<!-- Addfiles Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfiles"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILES_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfiles_modal" repeat="true">
<!-- File Field. Type: Customfilelist. (custom) -->
<field
type="customfilelist"
name="file"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,9 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Sql_tweak Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Sql_tweak Field. Type: Subform. (joomla) -->
<field
type="subform"
name="sql_tweak"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_SQL_TWEAK_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -98,20 +107,21 @@
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_SQL_TWEAK_DESCRIPTION"
icon="list"
maximum="50">
<form hidden="true"
name="list_sql_tweak_modal"
repeat="true">
<!-- Adminview Field. Type: Componentadminviews. (custom)-->
<field type="componentadminviews"
<form hidden="true" name="list_sql_tweak_modal" repeat="true">
<!-- Adminview Field. Type: Componentadminviews. (custom) -->
<field
type="componentadminviews"
name="adminview"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADMINVIEW_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADMINVIEW_DESCRIPTION"
class="list_class fieldMedium"
multiple="false"
required="false"
button="false" />
<!-- Add_sql Field. Type: List. (joomla)-->
<field type="list"
button="false"
/>
<!-- Add_sql Field. Type: List. (joomla) -->
<field
type="list"
name="add_sql"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADD_SQL_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADD_SQL_DESCRIPTION"
@ -120,12 +130,15 @@
filter="INT"
required="false"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_NO_DONT_ADD_ANY</option>
<option value="1">COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_YES_INCLUDE_BASED_ON_OPTIONS</option>
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_NO_DONT_ADD_ANY</option>
<option value="1">
COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_YES_INCLUDE_BASED_ON_OPTIONS</option>
</field>
<!-- Add_sql_options Field. Type: List. (joomla)-->
<field type="list"
<!-- Add_sql_options Field. Type: List. (joomla) -->
<field
type="list"
name="add_sql_options"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADD_SQL_OPTIONS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ADD_SQL_OPTIONS_DESCRIPTION"
@ -133,13 +146,17 @@
multiple="false"
filter="INT"
required="false">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_SELECT_AN_OPTION</option>
<option value="1">COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ALL</option>
<option value="2">COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ID_BASED</option>
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_SELECT_AN_OPTION</option>
<option value="1">
COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ALL</option>
<option value="2">
COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_ID_BASED</option>
</field>
<!-- Ids Field. Type: Textarea. (joomla)-->
<field type="textarea"
<!-- Ids Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="ids"
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_LABEL"
rows="20"
@ -148,7 +165,8 @@
class="text_area ids_selection"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_HINT"
required="false" />
required="false"
/>
</form>
</field>
</fieldset>

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,16 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Note_on_site_views Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_site_views"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_NOTE_ON_SITE_VIEWS_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_NOTE_ON_SITE_VIEWS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_site_views" />
<!-- Addsite_views Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Addsite_views Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addsite_views"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ADDSITE_VIEWS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -105,63 +107,75 @@
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ADDSITE_VIEWS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addsite_views_modal"
repeat="true">
<!-- Siteview Field. Type: Siteviews. (custom)-->
<field type="siteviews"
<form hidden="true" name="list_addsite_views_modal" repeat="true">
<!-- Siteview Field. Type: Siteviews. (custom) -->
<field
type="siteviews"
name="siteview"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_SITEVIEW_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_SITEVIEW_DESCRIPTION"
class="fieldMedium"
multiple="false"
required="false"
button="false" />
<!-- Menu Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
button="false"
/>
<!-- Menu Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="menu"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MENU_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_MENU_DESCRIPTION"
class="inputbox" />
<!-- Metadata Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Metadata Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="metadata"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_METADATA_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_METADATA_DESCRIPTION"
class="inputbox" />
<!-- Default_view Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Default_view Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="default_view"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_DEFAULT_VIEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_DEFAULT_VIEW_DESCRIPTION"
class="inputbox" />
<!-- Access Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Access Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="access"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ACCESS_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ACCESS_DESCRIPTION"
class="inputbox" />
<!-- Public_access Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Public_access Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="public_access"
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_DESCRIPTION"
class="inputbox" />
class="inputbox"
/>
</form>
</field>
<!-- Note_on_site_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_site_views" label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_NOTE_ON_SITE_VIEWS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_NOTE_ON_SITE_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_site_views" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom)-->
<field type="joomlacomponents"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="joomla_component"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_DESCRIPTION"
@ -88,9 +95,11 @@
multiple="false"
required="true"
readonly="true"
button="false" />
<!-- Version_update Field. Type: Subform. (joomla)-->
<field type="subform"
button="false"
/>
<!-- Version_update Field. Type: Subform. (joomla) -->
<field
type="subform"
name="version_update"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_UPDATE_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -98,11 +107,10 @@
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_UPDATE_DESCRIPTION"
icon="list"
maximum="300">
<form hidden="true"
name="list_version_update_modal"
repeat="true">
<!-- Version Field. Type: Text. (joomla)-->
<field type="text"
<form hidden="true" name="list_version_update_modal" repeat="true">
<!-- Version Field. Type: Text. (joomla) -->
<field
type="text"
name="version"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_LABEL"
size="10"
@ -114,9 +122,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_HINT" />
<!-- Mysql Field. Type: Textarea. (joomla)-->
<field type="textarea"
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_VERSION_HINT"
/>
<!-- Mysql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="mysql"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_LABEL"
rows="30"
@ -125,9 +135,11 @@
class="text_area mysql_update"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_HINT"
required="false" />
<!-- Url Field. Type: Url. (joomla)-->
<field type="url"
required="false"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_URL_LABEL"
size="60"
@ -138,7 +150,8 @@
filter="raw"
validated="url"
message="COM_COMPONENTBUILDER_COMPONENT_UPDATES_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_URL_HINT" />
hint="COM_COMPONENTBUILDER_COMPONENT_UPDATES_URL_HINT"
/>
</form>
</field>
</fieldset>

View File

@ -23,294 +23,294 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvybvxx_required = false;
jform_vvvvvycvxy_required = false;
jform_vvvvvydvxz_required = false;
jform_vvvvvyevya_required = false;
jform_vvvvvyfvyb_required = false;
jform_vvvvvygvyc_required = false;
jform_vvvvvyhvyd_required = false;
jform_vvvvvyivye_required = false;
jform_vvvvvyivyf_required = false;
jform_vvvvvyjvyg_required = false;
jform_vvvvvykvyh_required = false;
jform_vvvvvydvxw_required = false;
jform_vvvvvyevxx_required = false;
jform_vvvvvyfvxy_required = false;
jform_vvvvvygvxz_required = false;
jform_vvvvvyhvya_required = false;
jform_vvvvvyivyb_required = false;
jform_vvvvvyjvyc_required = false;
jform_vvvvvykvyd_required = false;
jform_vvvvvykvye_required = false;
jform_vvvvvylvyf_required = false;
jform_vvvvvymvyg_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyb(add_php_view_vvvvvyb);
var add_php_view_vvvvvyd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyd(add_php_view_vvvvvyd);
var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyc(add_php_jview_display_vvvvvyc);
var add_php_jview_display_vvvvvye = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvye(add_php_jview_display_vvvvvye);
var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyd(add_php_jview_vvvvvyd);
var add_php_jview_vvvvvyf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyf(add_php_jview_vvvvvyf);
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvye(add_php_document_vvvvvye);
var add_php_document_vvvvvyg = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyg(add_php_document_vvvvvyg);
var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyf(add_css_document_vvvvvyf);
var add_css_document_vvvvvyh = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyh(add_css_document_vvvvvyh);
var add_javascript_file_vvvvvyg = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvyg(add_javascript_file_vvvvvyg);
var add_javascript_file_vvvvvyi = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvyi(add_javascript_file_vvvvvyi);
var add_js_document_vvvvvyh = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyh(add_js_document_vvvvvyh);
var add_js_document_vvvvvyj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyj(add_js_document_vvvvvyj);
var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyi(add_custom_button_vvvvvyi);
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyk(add_custom_button_vvvvvyk);
var add_css_vvvvvyj = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyj(add_css_vvvvvyj);
var add_css_vvvvvyl = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyl(add_css_vvvvvyl);
var add_php_ajax_vvvvvyk = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyk(add_php_ajax_vvvvvyk);
var add_php_ajax_vvvvvym = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvym(add_php_ajax_vvvvvym);
});
// the vvvvvyb function
function vvvvvyb(add_php_view_vvvvvyb)
// the vvvvvyd function
function vvvvvyd(add_php_view_vvvvvyd)
{
// set the function logic
if (add_php_view_vvvvvyb == 1)
if (add_php_view_vvvvvyd == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvybvxx_required)
if (jform_vvvvvydvxw_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvybvxx_required = false;
jform_vvvvvydvxw_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvybvxx_required)
if (!jform_vvvvvydvxw_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvybvxx_required = true;
jform_vvvvvydvxw_required = true;
}
}
}
// the vvvvvyc function
function vvvvvyc(add_php_jview_display_vvvvvyc)
// the vvvvvye function
function vvvvvye(add_php_jview_display_vvvvvye)
{
// set the function logic
if (add_php_jview_display_vvvvvyc == 1)
if (add_php_jview_display_vvvvvye == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvycvxy_required)
if (jform_vvvvvyevxx_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvycvxy_required = false;
jform_vvvvvyevxx_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvycvxy_required)
if (!jform_vvvvvyevxx_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvycvxy_required = true;
jform_vvvvvyevxx_required = true;
}
}
}
// the vvvvvyd function
function vvvvvyd(add_php_jview_vvvvvyd)
// the vvvvvyf function
function vvvvvyf(add_php_jview_vvvvvyf)
{
// set the function logic
if (add_php_jview_vvvvvyd == 1)
if (add_php_jview_vvvvvyf == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvydvxz_required)
if (jform_vvvvvyfvxy_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_vvvvvydvxz_required = false;
jform_vvvvvyfvxy_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvydvxz_required)
if (!jform_vvvvvyfvxy_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvydvxz_required = true;
jform_vvvvvyfvxy_required = true;
}
}
}
// the vvvvvye function
function vvvvvye(add_php_document_vvvvvye)
// the vvvvvyg function
function vvvvvyg(add_php_document_vvvvvyg)
{
// set the function logic
if (add_php_document_vvvvvye == 1)
if (add_php_document_vvvvvyg == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvyevya_required)
if (jform_vvvvvygvxz_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_vvvvvyevya_required = false;
jform_vvvvvygvxz_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvyevya_required)
if (!jform_vvvvvygvxz_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_vvvvvyevya_required = true;
jform_vvvvvygvxz_required = true;
}
}
}
// the vvvvvyf function
function vvvvvyf(add_css_document_vvvvvyf)
// the vvvvvyh function
function vvvvvyh(add_css_document_vvvvvyh)
{
// set the function logic
if (add_css_document_vvvvvyf == 1)
if (add_css_document_vvvvvyh == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvyfvyb_required)
if (jform_vvvvvyhvya_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_vvvvvyfvyb_required = false;
jform_vvvvvyhvya_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvyfvyb_required)
if (!jform_vvvvvyhvya_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_vvvvvyfvyb_required = true;
jform_vvvvvyhvya_required = true;
}
}
}
// the vvvvvyg function
function vvvvvyg(add_javascript_file_vvvvvyg)
// the vvvvvyi function
function vvvvvyi(add_javascript_file_vvvvvyi)
{
// set the function logic
if (add_javascript_file_vvvvvyg == 1)
if (add_javascript_file_vvvvvyi == 1)
{
jQuery('#jform_javascript_file').closest('.control-group').show();
if (jform_vvvvvygvyc_required)
if (jform_vvvvvyivyb_required)
{
updateFieldRequired('javascript_file',0);
jQuery('#jform_javascript_file').prop('required','required');
jQuery('#jform_javascript_file').attr('aria-required',true);
jQuery('#jform_javascript_file').addClass('required');
jform_vvvvvygvyc_required = false;
jform_vvvvvyivyb_required = false;
}
}
else
{
jQuery('#jform_javascript_file').closest('.control-group').hide();
if (!jform_vvvvvygvyc_required)
if (!jform_vvvvvyivyb_required)
{
updateFieldRequired('javascript_file',1);
jQuery('#jform_javascript_file').removeAttr('required');
jQuery('#jform_javascript_file').removeAttr('aria-required');
jQuery('#jform_javascript_file').removeClass('required');
jform_vvvvvygvyc_required = true;
jform_vvvvvyivyb_required = true;
}
}
}
// the vvvvvyh function
function vvvvvyh(add_js_document_vvvvvyh)
// the vvvvvyj function
function vvvvvyj(add_js_document_vvvvvyj)
{
// set the function logic
if (add_js_document_vvvvvyh == 1)
if (add_js_document_vvvvvyj == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvyhvyd_required)
if (jform_vvvvvyjvyc_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvyhvyd_required = false;
jform_vvvvvyjvyc_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvyhvyd_required)
if (!jform_vvvvvyjvyc_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvyhvyd_required = true;
jform_vvvvvyjvyc_required = true;
}
}
}
// the vvvvvyi function
function vvvvvyi(add_custom_button_vvvvvyi)
// the vvvvvyk function
function vvvvvyk(add_custom_button_vvvvvyk)
{
// set the function logic
if (add_custom_button_vvvvvyi == 1)
if (add_custom_button_vvvvvyk == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvyivye_required)
if (jform_vvvvvykvyd_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvyivye_required = false;
jform_vvvvvykvyd_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvyivyf_required)
if (jform_vvvvvykvye_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvyivyf_required = false;
jform_vvvvvykvye_required = false;
}
}
@ -318,72 +318,72 @@ function vvvvvyi(add_custom_button_vvvvvyi)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvyivye_required)
if (!jform_vvvvvykvyd_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvyivye_required = true;
jform_vvvvvykvyd_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvyivyf_required)
if (!jform_vvvvvykvye_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvyivyf_required = true;
jform_vvvvvykvye_required = true;
}
}
}
// the vvvvvyj function
function vvvvvyj(add_css_vvvvvyj)
// the vvvvvyl function
function vvvvvyl(add_css_vvvvvyl)
{
// set the function logic
if (add_css_vvvvvyj == 1)
if (add_css_vvvvvyl == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvyjvyg_required)
if (jform_vvvvvylvyf_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvyjvyg_required = false;
jform_vvvvvylvyf_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvyjvyg_required)
if (!jform_vvvvvylvyf_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvyjvyg_required = true;
jform_vvvvvylvyf_required = true;
}
}
}
// the vvvvvyk function
function vvvvvyk(add_php_ajax_vvvvvyk)
// the vvvvvym function
function vvvvvym(add_php_ajax_vvvvvym)
{
// set the function logic
if (add_php_ajax_vvvvvyk == 1)
if (add_php_ajax_vvvvvym == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_vvvvvykvyh_required)
if (jform_vvvvvymvyg_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_vvvvvykvyh_required = false;
jform_vvvvvymvyg_required = false;
}
}
@ -391,13 +391,13 @@ function vvvvvyk(add_php_ajax_vvvvvyk)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_vvvvvykvyh_required)
if (!jform_vvvvvymvyg_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_vvvvvykvyh_required = true;
jform_vvvvvymvyg_required = true;
}
}
}
@ -438,6 +438,7 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
// get the linked details

File diff suppressed because it is too large Load Diff

View File

@ -23,43 +23,43 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvzxvzp_required = false;
jform_vvvvvzyvzq_required = false;
jform_vvvvvzyvzr_required = false;
jform_vvvvvzyvzs_required = false;
jform_vvvvvzzvzo_required = false;
jform_vvvvwaavzp_required = false;
jform_vvvvwaavzq_required = false;
jform_vvvvwaavzr_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzx(target_vvvvvzx);
var target_vvvvvzy = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzy(target_vvvvvzy);
var target_vvvvvzz = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzz = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzz(target_vvvvvzz,type_vvvvvzz);
vvvvvzz(target_vvvvvzz);
var type_vvvvwaa = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaa(type_vvvvwaa,target_vvvvwaa);
vvvvwaa(target_vvvvwaa);
var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwab(target_vvvvwab,type_vvvvwab);
var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwac(type_vvvvwac,target_vvvvwac);
});
// the vvvvvzx function
function vvvvvzx(target_vvvvvzx)
// the vvvvvzz function
function vvvvvzz(target_vvvvvzz)
{
// set the function logic
if (target_vvvvvzx == 2)
if (target_vvvvvzz == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
if (jform_vvvvvzxvzp_required)
if (jform_vvvvvzzvzo_required)
{
updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required');
jform_vvvvvzxvzp_required = false;
jform_vvvvvzzvzo_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@ -68,99 +68,99 @@ function vvvvvzx(target_vvvvvzx)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
if (!jform_vvvvvzxvzp_required)
if (!jform_vvvvvzzvzo_required)
{
updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required');
jform_vvvvvzxvzp_required = true;
jform_vvvvvzzvzo_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvvzy function
function vvvvvzy(target_vvvvvzy)
// the vvvvwaa function
function vvvvwaa(target_vvvvwaa)
{
// set the function logic
if (target_vvvvvzy == 1)
if (target_vvvvwaa == 1)
{
jQuery('#jform_component').closest('.control-group').show();
if (jform_vvvvvzyvzq_required)
if (jform_vvvvwaavzp_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvvzyvzq_required = false;
jform_vvvvwaavzp_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvvzyvzr_required)
if (jform_vvvvwaavzq_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvvzyvzr_required = false;
jform_vvvvwaavzq_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
if (jform_vvvvvzyvzs_required)
if (jform_vvvvwaavzr_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvvzyvzs_required = false;
jform_vvvvwaavzr_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
if (!jform_vvvvvzyvzq_required)
if (!jform_vvvvwaavzp_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvvzyvzq_required = true;
jform_vvvvwaavzp_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvvzyvzr_required)
if (!jform_vvvvwaavzq_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvvzyvzr_required = true;
jform_vvvvwaavzq_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
if (!jform_vvvvvzyvzs_required)
if (!jform_vvvvwaavzr_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvvzyvzs_required = true;
jform_vvvvwaavzr_required = true;
}
}
}
// the vvvvvzz function
function vvvvvzz(target_vvvvvzz,type_vvvvvzz)
// the vvvvwab function
function vvvvwab(target_vvvvwab,type_vvvvwab)
{
// set the function logic
if (target_vvvvvzz == 1 && type_vvvvvzz == 1)
if (target_vvvvwab == 1 && type_vvvvwab == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -172,11 +172,11 @@ function vvvvvzz(target_vvvvvzz,type_vvvvvzz)
}
}
// the vvvvwaa function
function vvvvwaa(type_vvvvwaa,target_vvvvwaa)
// the vvvvwac function
function vvvvwac(type_vvvvwac,target_vvvvwac)
{
// set the function logic
if (type_vvvvwaa == 1 && target_vvvvwaa == 1)
if (type_vvvvwac == 1 && target_vvvvwac == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -224,6 +224,7 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
var target = jQuery("#jform_target input[type='radio']:checked").val();

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_CUSTOM_CODE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Component Field. Type: Component. (custom)-->
<field type="component"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Component Field. Type: Component. (custom) -->
<field
type="component"
name="component"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_COMPONENT_LABEL"
description="JFIELD_TITLE_DESC"
@ -88,9 +95,11 @@
multiple="false"
default="0"
required="true"
button="true" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
button="true"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_PATH_LABEL"
size="100"
@ -100,55 +109,85 @@
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_PATH_HINT" />
<!-- Target Field. Type: Radio. (joomla)-->
<field type="radio"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_PATH_HINT"
/>
<!-- Target Field. Type: Radio. (joomla) -->
<field
type="radio"
name="target"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_TARGET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_TARGET_DESCRIPTION"
class="btn-group btn-group-yesno"
default="2">
<!-- Option Set.-->
<option value="2">COM_COMPONENTBUILDER_CUSTOM_CODE_JCB_MANUAL</option>
<option value="1">COM_COMPONENTBUILDER_CUSTOM_CODE_HASH_AUTOMATION</option>
<!-- Option Set. -->
<option value="2">
COM_COMPONENTBUILDER_CUSTOM_CODE_JCB_MANUAL</option>
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_CODE_HASH_AUTOMATION</option>
</field>
<!-- Type Field. Type: Radio. (joomla)-->
<field type="radio"
<!-- Type Field. Type: Radio. (joomla) -->
<field
type="radio"
name="type"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_TYPE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_TYPE_DESCRIPTION"
class="btn-group btn-group-yesno"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_CODE_REPLACEMENT</option>
<option value="2">COM_COMPONENTBUILDER_CUSTOM_CODE_INSERTION</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_CODE_REPLACEMENT</option>
<option value="2">
COM_COMPONENTBUILDER_CUSTOM_CODE_INSERTION</option>
</field>
<!-- Comment_type Field. Type: Radio. (joomla)-->
<field type="radio"
<!-- Comment_type Field. Type: Radio. (joomla) -->
<field
type="radio"
name="comment_type"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_COMMENT_TYPE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_COMMENT_TYPE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_CODE_PHPJS</option>
<option value="2">COM_COMPONENTBUILDER_CUSTOM_CODE_HTML</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_CODE_PHPJS</option>
<option value="2">
COM_COMPONENTBUILDER_CUSTOM_CODE_HTML</option>
</field>
<!-- Hashtarget Field. Type: Text. (joomla)-->
<field type="text"
name="hashtarget"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_LABEL"
size="50"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_DESCRIPTION"
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Function_name Field. Type: Text. (joomla) -->
<field
type="text"
name="function_name"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_FUNCTION_NAME_LABEL"
size="40"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_FUNCTION_NAME_DESCRIPTION"
class="input-large-text"
required="true"
/>
<!-- System_name Field. Type: Text. (joomla) -->
<field
type="text"
name="system_name"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_DESCRIPTION"
class="text_area"
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT" />
<!-- Code Field. Type: Textarea. (joomla)-->
<field type="textarea"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_HINT"
/>
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_placeholders_explained" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION" heading="h4" class="note_placeholders_explained" />
<!-- Code Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="code"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL"
rows="30"
@ -157,9 +196,13 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_HINT"
required="true" />
<!-- Hashendtarget Field. Type: Text. (joomla)-->
<field type="text"
required="true"
/>
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_jcb_placeholder" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION" heading="h4" class="span12 note_jcb_placeholder" />
<!-- Hashendtarget Field. Type: Text. (joomla) -->
<field
type="text"
name="hashendtarget"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_LABEL"
size="50"
@ -169,9 +212,11 @@
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_HINT" />
<!-- To_line Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_HINT"
/>
<!-- To_line Field. Type: Text. (joomla) -->
<field
type="text"
name="to_line"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_TO_LINE_LABEL"
size="10"
@ -181,24 +226,11 @@
filter="FLOAT"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_TO_LINE_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_TO_LINE_HINT"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};" />
<!-- Function_name Field. Type: Text. (joomla)-->
<field type="text"
name="function_name"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_FUNCTION_NAME_LABEL"
size="40"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_FUNCTION_NAME_DESCRIPTION"
class="input-large-text"
required="true" />
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_placeholders_explained"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION"
heading="h4"
class="note_placeholders_explained" />
<!-- From_line Field. Type: Text. (joomla)-->
<field type="text"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};"
/>
<!-- From_line Field. Type: Text. (joomla) -->
<field
type="text"
name="from_line"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_FROM_LINE_LABEL"
size="10"
@ -208,29 +240,22 @@
filter="FLOAT"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_FROM_LINE_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_FROM_LINE_HINT"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};" />
<!-- System_name Field. Type: Text. (joomla)-->
<field type="text"
name="system_name"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_DESCRIPTION"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};"
/>
<!-- Hashtarget Field. Type: Text. (joomla) -->
<field
type="text"
name="hashtarget"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_LABEL"
size="50"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_DESCRIPTION"
class="text_area"
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_HINT" />
<!-- Note_jcb_placeholder Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_jcb_placeholder"
label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION"
heading="h4"
class="span12 note_jcb_placeholder" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
message="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -23,210 +23,96 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwajvzv_required = false;
jform_vvvvwakvzw_required = false;
jform_vvvvwalvzx_required = false;
jform_vvvvwamvzy_required = false;
jform_vvvvwapvzz_required = false;
jform_vvvvwaqwaa_required = false;
jform_vvvvwarwab_required = false;
jform_vvvvwaswac_required = false;
jform_vvvvwalvzu_required = false;
jform_vvvvwamvzv_required = false;
jform_vvvvwanvzw_required = false;
jform_vvvvwaovzx_required = false;
jform_vvvvwarvzy_required = false;
jform_vvvvwasvzz_required = false;
jform_vvvvwatwaa_required = false;
jform_vvvvwauwab_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvwaj = jQuery("#jform_datalenght").val();
vvvvwaj(datalenght_vvvvwaj);
var datalenght_vvvvwal = jQuery("#jform_datalenght").val();
vvvvwal(datalenght_vvvvwal);
var datadefault_vvvvwak = jQuery("#jform_datadefault").val();
vvvvwak(datadefault_vvvvwak);
var datadefault_vvvvwam = jQuery("#jform_datadefault").val();
vvvvwam(datadefault_vvvvwam);
var datatype_vvvvwal = jQuery("#jform_datatype").val();
vvvvwal(datatype_vvvvwal);
var datatype_vvvvwam = jQuery("#jform_datatype").val();
vvvvwam(datatype_vvvvwam);
var store_vvvvwan = jQuery("#jform_store").val();
var datatype_vvvvwan = jQuery("#jform_datatype").val();
vvvvwan(store_vvvvwan,datatype_vvvvwan);
vvvvwan(datatype_vvvvwan);
var add_css_view_vvvvwap = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwap(add_css_view_vvvvwap);
var datatype_vvvvwao = jQuery("#jform_datatype").val();
vvvvwao(datatype_vvvvwao);
var add_css_views_vvvvwaq = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaq(add_css_views_vvvvwaq);
var store_vvvvwap = jQuery("#jform_store").val();
var datatype_vvvvwap = jQuery("#jform_datatype").val();
vvvvwap(store_vvvvwap,datatype_vvvvwap);
var add_javascript_view_footer_vvvvwar = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwar(add_javascript_view_footer_vvvvwar);
var add_css_view_vvvvwar = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwar(add_css_view_vvvvwar);
var add_javascript_views_footer_vvvvwas = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwas(add_javascript_views_footer_vvvvwas);
var add_css_views_vvvvwas = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwas(add_css_views_vvvvwas);
var add_javascript_view_footer_vvvvwat = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwat(add_javascript_view_footer_vvvvwat);
var add_javascript_views_footer_vvvvwau = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwau(add_javascript_views_footer_vvvvwau);
});
// the vvvvwaj function
function vvvvwaj(datalenght_vvvvwaj)
// the vvvvwal function
function vvvvwal(datalenght_vvvvwal)
{
if (isSet(datalenght_vvvvwaj) && datalenght_vvvvwaj.constructor !== Array)
if (isSet(datalenght_vvvvwal) && datalenght_vvvvwal.constructor !== Array)
{
var temp_vvvvwaj = datalenght_vvvvwaj;
var datalenght_vvvvwaj = [];
datalenght_vvvvwaj.push(temp_vvvvwaj);
var temp_vvvvwal = datalenght_vvvvwal;
var datalenght_vvvvwal = [];
datalenght_vvvvwal.push(temp_vvvvwal);
}
else if (!isSet(datalenght_vvvvwaj))
else if (!isSet(datalenght_vvvvwal))
{
var datalenght_vvvvwaj = [];
var datalenght_vvvvwal = [];
}
var datalenght = datalenght_vvvvwaj.some(datalenght_vvvvwaj_SomeFunc);
var datalenght = datalenght_vvvvwal.some(datalenght_vvvvwal_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_vvvvwajvzv_required)
if (jform_vvvvwalvzu_required)
{
updateFieldRequired('datalenght_other',0);
jQuery('#jform_datalenght_other').prop('required','required');
jQuery('#jform_datalenght_other').attr('aria-required',true);
jQuery('#jform_datalenght_other').addClass('required');
jform_vvvvwajvzv_required = false;
jform_vvvvwalvzu_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvwajvzv_required)
if (!jform_vvvvwalvzu_required)
{
updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required');
jform_vvvvwajvzv_required = true;
}
}
}
// the vvvvwaj Some function
function datalenght_vvvvwaj_SomeFunc(datalenght_vvvvwaj)
{
// set the function logic
if (datalenght_vvvvwaj == 'Other')
{
return true;
}
return false;
}
// the vvvvwak function
function vvvvwak(datadefault_vvvvwak)
{
if (isSet(datadefault_vvvvwak) && datadefault_vvvvwak.constructor !== Array)
{
var temp_vvvvwak = datadefault_vvvvwak;
var datadefault_vvvvwak = [];
datadefault_vvvvwak.push(temp_vvvvwak);
}
else if (!isSet(datadefault_vvvvwak))
{
var datadefault_vvvvwak = [];
}
var datadefault = datadefault_vvvvwak.some(datadefault_vvvvwak_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwakvzw_required)
{
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwakvzw_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwakvzw_required)
{
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwakvzw_required = true;
}
}
}
// the vvvvwak Some function
function datadefault_vvvvwak_SomeFunc(datadefault_vvvvwak)
{
// set the function logic
if (datadefault_vvvvwak == 'Other')
{
return true;
}
return false;
}
// the vvvvwal function
function vvvvwal(datatype_vvvvwal)
{
if (isSet(datatype_vvvvwal) && datatype_vvvvwal.constructor !== Array)
{
var temp_vvvvwal = datatype_vvvvwal;
var datatype_vvvvwal = [];
datatype_vvvvwal.push(temp_vvvvwal);
}
else if (!isSet(datatype_vvvvwal))
{
var datatype_vvvvwal = [];
}
var datatype = datatype_vvvvwal.some(datatype_vvvvwal_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwalvzx_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwalvzx_required = false;
}
}
else
{
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
if (!jform_vvvvwalvzx_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwalvzx_required = true;
jform_vvvvwalvzu_required = true;
}
}
}
// the vvvvwal Some function
function datatype_vvvvwal_SomeFunc(datatype_vvvvwal)
function datalenght_vvvvwal_SomeFunc(datalenght_vvvvwal)
{
// set the function logic
if (datatype_vvvvwal == 'CHAR' || datatype_vvvvwal == 'VARCHAR' || datatype_vvvvwal == 'DATETIME' || datatype_vvvvwal == 'DATE' || datatype_vvvvwal == 'TIME' || datatype_vvvvwal == 'INT' || datatype_vvvvwal == 'TINYINT' || datatype_vvvvwal == 'BIGINT' || datatype_vvvvwal == 'FLOAT' || datatype_vvvvwal == 'DECIMAL' || datatype_vvvvwal == 'DOUBLE')
if (datalenght_vvvvwal == 'Other')
{
return true;
}
@ -234,54 +120,54 @@ function datatype_vvvvwal_SomeFunc(datatype_vvvvwal)
}
// the vvvvwam function
function vvvvwam(datatype_vvvvwam)
function vvvvwam(datadefault_vvvvwam)
{
if (isSet(datatype_vvvvwam) && datatype_vvvvwam.constructor !== Array)
if (isSet(datadefault_vvvvwam) && datadefault_vvvvwam.constructor !== Array)
{
var temp_vvvvwam = datatype_vvvvwam;
var datatype_vvvvwam = [];
datatype_vvvvwam.push(temp_vvvvwam);
var temp_vvvvwam = datadefault_vvvvwam;
var datadefault_vvvvwam = [];
datadefault_vvvvwam.push(temp_vvvvwam);
}
else if (!isSet(datatype_vvvvwam))
else if (!isSet(datadefault_vvvvwam))
{
var datatype_vvvvwam = [];
var datadefault_vvvvwam = [];
}
var datatype = datatype_vvvvwam.some(datatype_vvvvwam_SomeFunc);
var datadefault = datadefault_vvvvwam.some(datadefault_vvvvwam_SomeFunc);
// set this function logic
if (datatype)
if (datadefault)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvwamvzy_required)
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwamvzv_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwamvzy_required = false;
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwamvzv_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvwamvzy_required)
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwamvzv_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwamvzy_required = true;
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwamvzv_required = true;
}
}
}
// the vvvvwam Some function
function datatype_vvvvwam_SomeFunc(datatype_vvvvwam)
function datadefault_vvvvwam_SomeFunc(datadefault_vvvvwam)
{
// set the function logic
if (datatype_vvvvwam == 'CHAR' || datatype_vvvvwam == 'VARCHAR' || datatype_vvvvwam == 'TEXT' || datatype_vvvvwam == 'MEDIUMTEXT' || datatype_vvvvwam == 'LONGTEXT')
if (datadefault_vvvvwam == 'Other')
{
return true;
}
@ -289,20 +175,8 @@ function datatype_vvvvwam_SomeFunc(datatype_vvvvwam)
}
// the vvvvwan function
function vvvvwan(store_vvvvwan,datatype_vvvvwan)
function vvvvwan(datatype_vvvvwan)
{
if (isSet(store_vvvvwan) && store_vvvvwan.constructor !== Array)
{
var temp_vvvvwan = store_vvvvwan;
var store_vvvvwan = [];
store_vvvvwan.push(temp_vvvvwan);
}
else if (!isSet(store_vvvvwan))
{
var store_vvvvwan = [];
}
var store = store_vvvvwan.some(store_vvvvwan_SomeFunc);
if (isSet(datatype_vvvvwan) && datatype_vvvvwan.constructor !== Array)
{
var temp_vvvvwan = datatype_vvvvwan;
@ -317,32 +191,97 @@ function vvvvwan(store_vvvvwan,datatype_vvvvwan)
// set this function logic
if (store && datatype)
if (datatype)
{
jQuery('.note_vdm_encryption').closest('.control-group').show();
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwanvzw_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwanvzw_required = false;
}
}
else
{
jQuery('.note_vdm_encryption').closest('.control-group').hide();
}
}
// the vvvvwan Some function
function store_vvvvwan_SomeFunc(store_vvvvwan)
{
// set the function logic
if (store_vvvvwan == 4)
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
if (!jform_vvvvwanvzw_required)
{
return true;
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwanvzw_required = true;
}
}
return false;
}
// the vvvvwan Some function
function datatype_vvvvwan_SomeFunc(datatype_vvvvwan)
{
// set the function logic
if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'TEXT' || datatype_vvvvwan == 'MEDIUMTEXT' || datatype_vvvvwan == 'LONGTEXT')
if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'DATETIME' || datatype_vvvvwan == 'DATE' || datatype_vvvvwan == 'TIME' || datatype_vvvvwan == 'INT' || datatype_vvvvwan == 'TINYINT' || datatype_vvvvwan == 'BIGINT' || datatype_vvvvwan == 'FLOAT' || datatype_vvvvwan == 'DECIMAL' || datatype_vvvvwan == 'DOUBLE')
{
return true;
}
return false;
}
// the vvvvwao function
function vvvvwao(datatype_vvvvwao)
{
if (isSet(datatype_vvvvwao) && datatype_vvvvwao.constructor !== Array)
{
var temp_vvvvwao = datatype_vvvvwao;
var datatype_vvvvwao = [];
datatype_vvvvwao.push(temp_vvvvwao);
}
else if (!isSet(datatype_vvvvwao))
{
var datatype_vvvvwao = [];
}
var datatype = datatype_vvvvwao.some(datatype_vvvvwao_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvwaovzx_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwaovzx_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvwaovzx_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwaovzx_required = true;
}
}
}
// the vvvvwao Some function
function datatype_vvvvwao_SomeFunc(datatype_vvvvwao)
{
// set the function logic
if (datatype_vvvvwao == 'CHAR' || datatype_vvvvwao == 'VARCHAR' || datatype_vvvvwao == 'TEXT' || datatype_vvvvwao == 'MEDIUMTEXT' || datatype_vvvvwao == 'LONGTEXT')
{
return true;
}
@ -350,125 +289,186 @@ function datatype_vvvvwan_SomeFunc(datatype_vvvvwan)
}
// the vvvvwap function
function vvvvwap(add_css_view_vvvvwap)
function vvvvwap(store_vvvvwap,datatype_vvvvwap)
{
if (isSet(store_vvvvwap) && store_vvvvwap.constructor !== Array)
{
var temp_vvvvwap = store_vvvvwap;
var store_vvvvwap = [];
store_vvvvwap.push(temp_vvvvwap);
}
else if (!isSet(store_vvvvwap))
{
var store_vvvvwap = [];
}
var store = store_vvvvwap.some(store_vvvvwap_SomeFunc);
if (isSet(datatype_vvvvwap) && datatype_vvvvwap.constructor !== Array)
{
var temp_vvvvwap = datatype_vvvvwap;
var datatype_vvvvwap = [];
datatype_vvvvwap.push(temp_vvvvwap);
}
else if (!isSet(datatype_vvvvwap))
{
var datatype_vvvvwap = [];
}
var datatype = datatype_vvvvwap.some(datatype_vvvvwap_SomeFunc);
// set this function logic
if (store && datatype)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
}
else
{
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
}
}
// the vvvvwap Some function
function store_vvvvwap_SomeFunc(store_vvvvwap)
{
// set the function logic
if (add_css_view_vvvvwap == 1)
if (store_vvvvwap == 4)
{
return true;
}
return false;
}
// the vvvvwap Some function
function datatype_vvvvwap_SomeFunc(datatype_vvvvwap)
{
// set the function logic
if (datatype_vvvvwap == 'CHAR' || datatype_vvvvwap == 'VARCHAR' || datatype_vvvvwap == 'TEXT' || datatype_vvvvwap == 'MEDIUMTEXT' || datatype_vvvvwap == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvwar function
function vvvvwar(add_css_view_vvvvwar)
{
// set the function logic
if (add_css_view_vvvvwar == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_vvvvwapvzz_required)
if (jform_vvvvwarvzy_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
jform_vvvvwapvzz_required = false;
jform_vvvvwarvzy_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvwapvzz_required)
if (!jform_vvvvwarvzy_required)
{
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_vvvvwapvzz_required = true;
jform_vvvvwarvzy_required = true;
}
}
}
// the vvvvwaq function
function vvvvwaq(add_css_views_vvvvwaq)
// the vvvvwas function
function vvvvwas(add_css_views_vvvvwas)
{
// set the function logic
if (add_css_views_vvvvwaq == 1)
if (add_css_views_vvvvwas == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvwaqwaa_required)
if (jform_vvvvwasvzz_required)
{
updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required');
jform_vvvvwaqwaa_required = false;
jform_vvvvwasvzz_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvwaqwaa_required)
if (!jform_vvvvwasvzz_required)
{
updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required');
jform_vvvvwaqwaa_required = true;
jform_vvvvwasvzz_required = true;
}
}
}
// the vvvvwar function
function vvvvwar(add_javascript_view_footer_vvvvwar)
// the vvvvwat function
function vvvvwat(add_javascript_view_footer_vvvvwat)
{
// set the function logic
if (add_javascript_view_footer_vvvvwar == 1)
if (add_javascript_view_footer_vvvvwat == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvwarwab_required)
if (jform_vvvvwatwaa_required)
{
updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required');
jform_vvvvwarwab_required = false;
jform_vvvvwatwaa_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_vvvvwarwab_required)
if (!jform_vvvvwatwaa_required)
{
updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required');
jform_vvvvwarwab_required = true;
jform_vvvvwatwaa_required = true;
}
}
}
// the vvvvwas function
function vvvvwas(add_javascript_views_footer_vvvvwas)
// the vvvvwau function
function vvvvwau(add_javascript_views_footer_vvvvwau)
{
// set the function logic
if (add_javascript_views_footer_vvvvwas == 1)
if (add_javascript_views_footer_vvvvwau == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_vvvvwaswac_required)
if (jform_vvvvwauwab_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
jform_vvvvwaswac_required = false;
jform_vvvvwauwab_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_vvvvwaswac_required)
if (!jform_vvvvwauwab_required)
{
updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required');
jform_vvvvwaswac_required = true;
jform_vvvvwauwab_required = true;
}
}
}
@ -509,6 +509,7 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
// get the linked details

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_FIELD_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_FIELD_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELD_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_FIELD_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_FIELD_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_FIELD_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_FIELD_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_FIELD_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_FIELD_VERSION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELD_NAME_LABEL"
size="40"
@ -92,42 +99,61 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_NAME_HINT" />
<!-- Fieldtype Field. Type: Fieldtypes. (custom)-->
<field type="fieldtypes"
hint="COM_COMPONENTBUILDER_FIELD_NAME_HINT"
/>
<!-- Fieldtype Field. Type: Fieldtypes. (custom) -->
<field
type="fieldtypes"
name="fieldtype"
label="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true"
button="true" />
<!-- Datatype Field. Type: List. (joomla)-->
<field type="list"
button="true"
/>
<!-- Datatype Field. Type: List. (joomla) -->
<field
type="list"
name="datatype"
label="COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true">
<!-- Option Set.-->
<option value="CHAR">COM_COMPONENTBUILDER_FIELD_CHAR</option>
<option value="VARCHAR">COM_COMPONENTBUILDER_FIELD_VARCHAR</option>
<option value="TEXT">COM_COMPONENTBUILDER_FIELD_TEXT</option>
<option value="MEDIUMTEXT">COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT</option>
<option value="LONGTEXT">COM_COMPONENTBUILDER_FIELD_LONGTEXT</option>
<option value="DATETIME">COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="DATE">COM_COMPONENTBUILDER_FIELD_DATE</option>
<option value="TIME">COM_COMPONENTBUILDER_FIELD_TIME</option>
<option value="INT">COM_COMPONENTBUILDER_FIELD_INT</option>
<option value="TINYINT">COM_COMPONENTBUILDER_FIELD_TINYINT</option>
<option value="BIGINT">COM_COMPONENTBUILDER_FIELD_BIGINT</option>
<option value="FLOAT">COM_COMPONENTBUILDER_FIELD_FLOAT</option>
<option value="DECIMAL">COM_COMPONENTBUILDER_FIELD_DECIMAL</option>
<option value="DOUBLE">COM_COMPONENTBUILDER_FIELD_DOUBLE</option>
<!-- Option Set. -->
<option value="CHAR">
COM_COMPONENTBUILDER_FIELD_CHAR</option>
<option value="VARCHAR">
COM_COMPONENTBUILDER_FIELD_VARCHAR</option>
<option value="TEXT">
COM_COMPONENTBUILDER_FIELD_TEXT</option>
<option value="MEDIUMTEXT">
COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT</option>
<option value="LONGTEXT">
COM_COMPONENTBUILDER_FIELD_LONGTEXT</option>
<option value="DATETIME">
COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="DATE">
COM_COMPONENTBUILDER_FIELD_DATE</option>
<option value="TIME">
COM_COMPONENTBUILDER_FIELD_TIME</option>
<option value="INT">
COM_COMPONENTBUILDER_FIELD_INT</option>
<option value="TINYINT">
COM_COMPONENTBUILDER_FIELD_TINYINT</option>
<option value="BIGINT">
COM_COMPONENTBUILDER_FIELD_BIGINT</option>
<option value="FLOAT">
COM_COMPONENTBUILDER_FIELD_FLOAT</option>
<option value="DECIMAL">
COM_COMPONENTBUILDER_FIELD_DECIMAL</option>
<option value="DOUBLE">
COM_COMPONENTBUILDER_FIELD_DOUBLE</option>
</field>
<!-- Indexes Field. Type: List. (joomla)-->
<field type="list"
<!-- Indexes Field. Type: List. (joomla) -->
<field
type="list"
name="indexes"
label="COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL"
class="btn-group"
@ -135,64 +161,164 @@
filter="INT"
required="true"
default="0">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY</option>
<option value="2">COM_COMPONENTBUILDER_FIELD_KEY</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NONE</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY</option>
<option value="2">
COM_COMPONENTBUILDER_FIELD_KEY</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NONE</option>
</field>
<!-- Null_switch Field. Type: Radio. (joomla)-->
<field type="radio"
<!-- Null_switch Field. Type: Radio. (joomla) -->
<field
type="radio"
name="null_switch"
label="COM_COMPONENTBUILDER_FIELD_NULL_SWITCH_LABEL"
class="btn-group btn-group-yesno"
default="NOT NULL"
required="true">
<!-- Option Set.-->
<option value="NULL">COM_COMPONENTBUILDER_FIELD_NULL</option>
<option value="NOT NULL">COM_COMPONENTBUILDER_FIELD_NOT_NULL</option>
<!-- Option Set. -->
<option value="NULL">
COM_COMPONENTBUILDER_FIELD_NULL</option>
<option value="NOT NULL">
COM_COMPONENTBUILDER_FIELD_NOT_NULL</option>
</field>
<!-- Datalenght_other Field. Type: Text. (joomla)-->
<field type="text"
name="datalenght_other"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT" />
<!-- Datadefault Field. Type: List. (joomla)-->
<field type="list"
name="datadefault"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_FIELD_NONE</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_ZERO</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="CURRENT_TIMESTAMP">COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP</option>
<option value="DATETIME">COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="Other">COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Add_css_view Field. Type: Radio. (joomla)-->
<field type="radio"
<!-- Add_css_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_view"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Datadefault_other Field. Type: Text. (joomla)-->
<field type="text"
<!-- Css_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_view"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT"
required="true"
/>
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_filter_information" description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION" class="note_filter_information" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELD_CATID_LABEL"
extension="com_componentbuilder.fields"
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
class="inputbox"
/>
<!-- Xml Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="xml"
label="COM_COMPONENTBUILDER_FIELD_XML_LABEL"
rows="17"
cols="720"
description="COM_COMPONENTBUILDER_FIELD_XML_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_XML_HINT"
required="true"
/>
<!-- Add_javascript_view_footer Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Add_javascript_views_footer Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Add_css_views Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_views"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Datalenght Field. Type: List. (joomla) -->
<field
type="list"
name="datalenght"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_FIELD_NONE_SET</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="7">
COM_COMPONENTBUILDER_FIELD_SEVEN</option>
<option value="10">
COM_COMPONENTBUILDER_FIELD_TEN</option>
<option value="11">
COM_COMPONENTBUILDER_FIELD_ELEVEN</option>
<option value="50">
COM_COMPONENTBUILDER_FIELD_FIFTY</option>
<option value="64">
COM_COMPONENTBUILDER_FIELD_SIXTY_FOUR</option>
<option value="100">
COM_COMPONENTBUILDER_FIELD_ONE_HUNDRED</option>
<option value="255">
COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE</option>
<option value="1024">
COM_COMPONENTBUILDER_FIELD_ONE_THOUSAND_AND_TWENTY_FOUR</option>
<option value="2048">
COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT</option>
<option value="Other">
COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Datadefault_other Field. Type: Text. (joomla) -->
<field
type="text"
name="datadefault_other"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_LABEL"
size="10"
@ -204,106 +330,49 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT" />
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_filter_information"
description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION"
class="note_filter_information" />
<!-- Datalenght Field. Type: List. (joomla)-->
<field type="list"
name="datalenght"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION"
hint="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT"
/>
<!-- Datadefault Field. Type: List. (joomla) -->
<field
type="list"
name="datadefault"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_FIELD_NONE_SET</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="7">COM_COMPONENTBUILDER_FIELD_SEVEN</option>
<option value="10">COM_COMPONENTBUILDER_FIELD_TEN</option>
<option value="11">COM_COMPONENTBUILDER_FIELD_ELEVEN</option>
<option value="50">COM_COMPONENTBUILDER_FIELD_FIFTY</option>
<option value="64">COM_COMPONENTBUILDER_FIELD_SIXTY_FOUR</option>
<option value="100">COM_COMPONENTBUILDER_FIELD_ONE_HUNDRED</option>
<option value="255">COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE</option>
<option value="1024">COM_COMPONENTBUILDER_FIELD_ONE_THOUSAND_AND_TWENTY_FOUR</option>
<option value="2048">COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT</option>
<option value="Other">COM_COMPONENTBUILDER_FIELD_OTHER</option>
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_FIELD_NONE</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_ZERO</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="CURRENT_TIMESTAMP">
COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP</option>
<option value="DATETIME">
COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="Other">
COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Add_css_views Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css_views"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Add_javascript_view_footer Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Xml Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="xml"
label="COM_COMPONENTBUILDER_FIELD_XML_LABEL"
rows="17"
cols="720"
description="COM_COMPONENTBUILDER_FIELD_XML_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_XML_HINT"
required="true" />
<!-- Add_javascript_views_footer Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Catid Field. Type: Category. (joomla)-->
<field type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELD_CATID_LABEL"
extension="com_componentbuilder.fields"
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
class="inputbox" />
<!-- Css_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_view"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT"
required="true" />
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="helpnote"
label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL"
class="helpNote helpnote" />
<!-- Css_views Field. Type: Textarea. (joomla)-->
<field type="textarea"
<!-- Datalenght_other Field. Type: Text. (joomla) -->
<field
type="text"
name="datalenght_other"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT"
/>
<!-- Css_views Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_views"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL"
rows="30"
@ -312,9 +381,11 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_HINT"
required="true" />
<!-- Store Field. Type: List. (joomla)-->
<field type="list"
required="true"
/>
<!-- Store Field. Type: List. (joomla) -->
<field
type="list"
name="store"
label="COM_COMPONENTBUILDER_FIELD_STORE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_STORE_DESCRIPTION"
@ -323,15 +394,23 @@
filter="INT"
required="true"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_FIELD_DEFAULT</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_JSON</option>
<option value="2">COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR</option>
<option value="3">COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY</option>
<option value="4">COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY</option>
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_FIELD_DEFAULT</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_JSON</option>
<option value="2">
COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR</option>
<option value="3">
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY</option>
<option value="5">
COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY</option>
<option value="4">
COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION</option>
</field>
<!-- Javascript_view_footer Field. Type: Textarea. (joomla)-->
<field type="textarea"
<!-- Javascript_view_footer Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
rows="30"
@ -340,17 +419,13 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT"
required="true" />
<!-- Note_vdm_encryption Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_vdm_encryption"
label="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION"
heading="h4"
class="alert alert-success note_vdm_encryption"
close="true" />
<!-- Javascript_views_footer Field. Type: Textarea. (joomla)-->
<field type="textarea"
required="true"
/>
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_whmcs_encryption" label="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_encryption" />
<!-- Javascript_views_footer Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
rows="30"
@ -359,7 +434,10 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_HINT"
required="true" />
required="true"
/>
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="helpnote" label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL" class="helpNote helpnote" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_FIELDTYPE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_FIELDTYPE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL"
size="40"
@ -92,45 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELDTYPE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT" />
<!-- Note_on_fields Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_on_fields"
label="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_DESCRIPTION"
heading="h4"
class="alert alert-info note_on_fields" />
<!-- Catid Field. Type: Category. (joomla)-->
<field type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELDTYPE_CATID_LABEL"
extension="com_componentbuilder.fieldtypes"
description="COM_COMPONENTBUILDER_FIELDTYPE_CATID_DESCRIPTION"
class="inputbox" />
<!-- Description Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="description"
label="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT" />
<!-- Short_description Field. Type: Text. (joomla)-->
<field type="text"
name="short_description"
label="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION"
class="text_area"
required="true"
filter="HTML"
message="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT" />
<!-- Properties Field. Type: Subform. (joomla)-->
<field type="subform"
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
/>
<!-- Properties Field. Type: Subform. (joomla) -->
<field
type="subform"
name="properties"
label="COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -138,11 +111,10 @@
description="COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_properties_modal"
repeat="true">
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
<form hidden="true" name="list_properties_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL"
size="40"
@ -154,9 +126,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELDTYPE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT" />
<!-- Example Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
/>
<!-- Example Field. Type: Text. (joomla) -->
<field
type="text"
name="example"
label="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL"
size="40"
@ -167,33 +141,41 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT" />
<!-- Adjustable Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
hint="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT"
/>
<!-- Adjustable Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="adjustable"
label="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_DESCRIPTION"
class="inputbox" />
<!-- Mandatory Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Mandatory Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="mandatory"
label="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_DESCRIPTION"
class="inputbox" />
<!-- Translatable Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
class="inputbox"
/>
<!-- Translatable Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="translatable"
label="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION"
class="inputbox" />
<!-- Description Field. Type: Textarea. (joomla)-->
<field type="textarea"
class="inputbox"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL"
rows="5"
@ -202,9 +184,47 @@
class="text_area"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
required="false" />
required="false"
/>
</form>
</field>
<!-- Note_on_fields Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_fields" label="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_LABEL" description="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_DESCRIPTION" heading="h4" class="alert alert-info note_on_fields" />
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
/>
<!-- Short_description Field. Type: Text. (joomla) -->
<field
type="text"
name="short_description"
label="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION"
class="text_area"
required="true"
filter="HTML"
message="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT"
/>
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELDTYPE_CATID_LABEL"
extension="com_componentbuilder.fieldtypes"
description="COM_COMPONENTBUILDER_FIELDTYPE_CATID_DESCRIPTION"
class="inputbox"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,207 +23,97 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwbdwan_required = false;
jform_vvvvwbewao_required = false;
jform_vvvvwbfwap_required = false;
jform_vvvvwbgwaq_required = false;
jform_vvvvwbhwar_required = false;
jform_vvvvwbiwas_required = false;
jform_vvvvwbfwan_required = false;
jform_vvvvwbgwao_required = false;
jform_vvvvwbhwap_required = false;
jform_vvvvwbiwaq_required = false;
jform_vvvvwbjwar_required = false;
jform_vvvvwbkwas_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwbd = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbd(location_vvvvwbd);
var location_vvvvwbf = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbf(location_vvvvwbf);
var location_vvvvwbe = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbe(location_vvvvwbe);
var type_vvvvwbf = jQuery("#jform_type").val();
vvvvwbf(type_vvvvwbf);
var type_vvvvwbg = jQuery("#jform_type").val();
vvvvwbg(type_vvvvwbg);
var location_vvvvwbg = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbg(location_vvvvwbg);
var type_vvvvwbh = jQuery("#jform_type").val();
vvvvwbh(type_vvvvwbh);
var target_vvvvwbi = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbi(target_vvvvwbi);
var type_vvvvwbi = jQuery("#jform_type").val();
vvvvwbi(type_vvvvwbi);
var type_vvvvwbj = jQuery("#jform_type").val();
vvvvwbj(type_vvvvwbj);
var target_vvvvwbk = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbk(target_vvvvwbk);
});
// the vvvvwbd function
function vvvvwbd(location_vvvvwbd)
// the vvvvwbf function
function vvvvwbf(location_vvvvwbf)
{
// set the function logic
if (location_vvvvwbd == 1)
if (location_vvvvwbf == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
if (jform_vvvvwbdwan_required)
if (jform_vvvvwbfwan_required)
{
updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required');
jform_vvvvwbdwan_required = false;
jform_vvvvwbfwan_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwbdwan_required)
if (!jform_vvvvwbfwan_required)
{
updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required');
jform_vvvvwbdwan_required = true;
jform_vvvvwbfwan_required = true;
}
}
}
// the vvvvwbe function
function vvvvwbe(location_vvvvwbe)
// the vvvvwbg function
function vvvvwbg(location_vvvvwbg)
{
// set the function logic
if (location_vvvvwbe == 2)
if (location_vvvvwbg == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
if (jform_vvvvwbewao_required)
if (jform_vvvvwbgwao_required)
{
updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required');
jform_vvvvwbewao_required = false;
jform_vvvvwbgwao_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
if (!jform_vvvvwbewao_required)
if (!jform_vvvvwbgwao_required)
{
updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required');
jform_vvvvwbewao_required = true;
jform_vvvvwbgwao_required = true;
}
}
}
// the vvvvwbf function
function vvvvwbf(type_vvvvwbf)
{
if (isSet(type_vvvvwbf) && type_vvvvwbf.constructor !== Array)
{
var temp_vvvvwbf = type_vvvvwbf;
var type_vvvvwbf = [];
type_vvvvwbf.push(temp_vvvvwbf);
}
else if (!isSet(type_vvvvwbf))
{
var type_vvvvwbf = [];
}
var type = type_vvvvwbf.some(type_vvvvwbf_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwbfwap_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwbfwap_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwbfwap_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwbfwap_required = true;
}
}
}
// the vvvvwbf Some function
function type_vvvvwbf_SomeFunc(type_vvvvwbf)
{
// set the function logic
if (type_vvvvwbf == 3)
{
return true;
}
return false;
}
// the vvvvwbg function
function vvvvwbg(type_vvvvwbg)
{
if (isSet(type_vvvvwbg) && type_vvvvwbg.constructor !== Array)
{
var temp_vvvvwbg = type_vvvvwbg;
var type_vvvvwbg = [];
type_vvvvwbg.push(temp_vvvvwbg);
}
else if (!isSet(type_vvvvwbg))
{
var type_vvvvwbg = [];
}
var type = type_vvvvwbg.some(type_vvvvwbg_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwbgwaq_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwbgwaq_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwbgwaq_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwbgwaq_required = true;
}
}
}
// the vvvvwbg Some function
function type_vvvvwbg_SomeFunc(type_vvvvwbg)
{
// set the function logic
if (type_vvvvwbg == 1)
{
return true;
}
return false;
}
// the vvvvwbh function
function vvvvwbh(type_vvvvwbh)
{
@ -243,27 +133,27 @@ function vvvvwbh(type_vvvvwbh)
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwbhwar_required)
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwbhwap_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwbhwar_required = false;
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwbhwap_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwbhwar_required)
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwbhwap_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwbhwar_required = true;
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwbhwap_required = true;
}
}
}
@ -272,7 +162,7 @@ function vvvvwbh(type_vvvvwbh)
function type_vvvvwbh_SomeFunc(type_vvvvwbh)
{
// set the function logic
if (type_vvvvwbh == 2)
if (type_vvvvwbh == 3)
{
return true;
}
@ -280,32 +170,142 @@ function type_vvvvwbh_SomeFunc(type_vvvvwbh)
}
// the vvvvwbi function
function vvvvwbi(target_vvvvwbi)
function vvvvwbi(type_vvvvwbi)
{
if (isSet(type_vvvvwbi) && type_vvvvwbi.constructor !== Array)
{
var temp_vvvvwbi = type_vvvvwbi;
var type_vvvvwbi = [];
type_vvvvwbi.push(temp_vvvvwbi);
}
else if (!isSet(type_vvvvwbi))
{
var type_vvvvwbi = [];
}
var type = type_vvvvwbi.some(type_vvvvwbi_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwbiwaq_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwbiwaq_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwbiwaq_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwbiwaq_required = true;
}
}
}
// the vvvvwbi Some function
function type_vvvvwbi_SomeFunc(type_vvvvwbi)
{
// set the function logic
if (target_vvvvwbi == 1)
if (type_vvvvwbi == 1)
{
return true;
}
return false;
}
// the vvvvwbj function
function vvvvwbj(type_vvvvwbj)
{
if (isSet(type_vvvvwbj) && type_vvvvwbj.constructor !== Array)
{
var temp_vvvvwbj = type_vvvvwbj;
var type_vvvvwbj = [];
type_vvvvwbj.push(temp_vvvvwbj);
}
else if (!isSet(type_vvvvwbj))
{
var type_vvvvwbj = [];
}
var type = type_vvvvwbj.some(type_vvvvwbj_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwbjwar_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwbjwar_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwbjwar_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwbjwar_required = true;
}
}
}
// the vvvvwbj Some function
function type_vvvvwbj_SomeFunc(type_vvvvwbj)
{
// set the function logic
if (type_vvvvwbj == 2)
{
return true;
}
return false;
}
// the vvvvwbk function
function vvvvwbk(target_vvvvwbk)
{
// set the function logic
if (target_vvvvwbk == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_vvvvwbiwas_required)
if (jform_vvvvwbkwas_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwbiwas_required = false;
jform_vvvvwbkwas_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_vvvvwbiwas_required)
if (!jform_vvvvwbkwas_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwbiwas_required = true;
jform_vvvvwbkwas_required = true;
}
}
}

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Title Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Title Field. Type: Text. (joomla) -->
<field
type="text"
name="title"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_LABEL"
size="40"
@ -92,94 +99,102 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_MESSAGE"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_HINT" />
<!-- Type Field. Type: List. (joomla)-->
<field type="list"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_HINT"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
required="true">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_HELP_DOCUMENT_SELECT_AN_OPTION</option>
<option value="1">COM_COMPONENTBUILDER_HELP_DOCUMENT_JOOMLA_ARTICLE</option>
<option value="2">COM_COMPONENTBUILDER_HELP_DOCUMENT_TEXT</option>
<option value="3">COM_COMPONENTBUILDER_HELP_DOCUMENT_URL</option>
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SELECT_AN_OPTION</option>
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_JOOMLA_ARTICLE</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_TEXT</option>
<option value="3">
COM_COMPONENTBUILDER_HELP_DOCUMENT_URL</option>
</field>
<!-- Groups Field. Type: Usergroup. (joomla)-->
<field type="usergroup"
<!-- Groups Field. Type: Usergroup. (joomla) -->
<field
type="usergroup"
name="groups"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_GROUPS_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_GROUPS_DESCRIPTION"
required="true"
multiple="true" />
<!-- Location Field. Type: Radio. (joomla)-->
<field type="radio"
multiple="true"
/>
<!-- Location Field. Type: Radio. (joomla) -->
<field
type="radio"
name="location"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_DESCRIPTION"
class="btn-group"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN</option>
<option value="2">COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE</option>
</field>
<!-- Admin_view Field. Type: Adminviewfolderlist. (custom)-->
<field type="adminviewfolderlist"
<!-- Admin_view Field. Type: Adminviewfolderlist. (custom) -->
<field
type="adminviewfolderlist"
name="admin_view"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION"
class="list_class"
multiple="false"
required="true"
button="false" />
<!-- Site_view Field. Type: Siteviewfolderlist. (custom)-->
<field type="siteviewfolderlist"
button="false"
/>
<!-- Site_view Field. Type: Siteviewfolderlist. (custom) -->
<field
type="siteviewfolderlist"
name="site_view"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION"
class="list_class"
multiple="false"
required="true"
button="false" />
<!-- Target Field. Type: Radio. (joomla)-->
<field type="radio"
name="target"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_DESCRIPTION"
class="btn-group"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_HELP_DOCUMENT_SOME</option>
<option value="2">COM_COMPONENTBUILDER_HELP_DOCUMENT_ALL</option>
</field>
<!-- Content Field. Type: Editor. (joomla)-->
<field type="editor"
button="false"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Content Field. Type: Editor. (joomla) -->
<field
type="editor"
name="content"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CONTENT_LABEL"
width="100%"
height="300 px"
buttons="false"
filter="safehtml"
required="true" />
<!-- Alias Field. Type: Text. (joomla)-->
<field type="text"
name="alias"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
filter="STRING"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_ALIAS_HINT" />
<!-- Article Field. Type: Articles. (custom)-->
<field type="articles"
required="true"
/>
<!-- Article Field. Type: Articles. (custom) -->
<field
type="articles"
name="article"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ARTICLE_LABEL"
class="list_class"
multiple="false"
default="0"
required="true" />
<!-- Url Field. Type: Url. (joomla)-->
<field type="url"
required="true"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_LABEL"
size="60"
@ -190,11 +205,31 @@
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_HINT" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_HINT"
/>
<!-- Target Field. Type: Radio. (joomla) -->
<field
type="radio"
name="target"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_DESCRIPTION"
class="btn-group"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SOME</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_ALL</option>
</field>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
filter="STRING"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_ALIAS_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -126,6 +126,12 @@ jQuery(document).ready(function()
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
vvvvvww(buildcomp_vvvvvww);
var dashboard_type_vvvvvwx = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
vvvvvwx(dashboard_type_vvvvvwx);
var dashboard_type_vvvvvwy = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
vvvvvwy(dashboard_type_vvvvvwy);
});
// the vvvvvvv function
@ -808,6 +814,36 @@ function vvvvvww(buildcomp_vvvvvww)
}
}
// the vvvvvwx function
function vvvvvwx(dashboard_type_vvvvvwx)
{
// set the function logic
if (dashboard_type_vvvvvwx == 2)
{
jQuery('#jform_dashboard').closest('.control-group').show();
jQuery('.note_dynamic_dashboard').closest('.control-group').show();
}
else
{
jQuery('#jform_dashboard').closest('.control-group').hide();
jQuery('.note_dynamic_dashboard').closest('.control-group').hide();
}
}
// the vvvvvwy function
function vvvvvwy(dashboard_type_vvvvvwy)
{
// set the function logic
if (dashboard_type_vvvvvwy == 1)
{
jQuery('.note_botton_component_dashboard').closest('.control-group').show();
}
else
{
jQuery('.note_botton_component_dashboard').closest('.control-group').hide();
}
}
// update required fields
function updateFieldRequired(name,status)
{
@ -844,11 +880,14 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
// check what is the dashboard switch
var dasboard_type = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
dasboardSwitch(dasboard_type);
// set buttons
function setButtons1() {
addButtonID('component_dashboard','button_component_dashboard', 1);
addButtonID('component_files_folders','button_component_files_folders', 1);
addButtonID('component_site_views','button_create_edit_views', 1);
}
@ -915,6 +954,20 @@ function addData(result, where){
jQuery(result).insertAfter(jQuery(where).closest('.control-group'));
}
function dasboardSwitch(value){
// hide if default
if (2 == value) {
jQuery('.control-group-componentdashboard-one').hide();
} else {
// default behaviour
if (jQuery('div.control-group-componentdashboard-one').length) {
jQuery('.control-group-componentdashboard-one').show();
} else {
addButtonID('component_dashboard','button_component_dashboard', 1);
}
}
}
function addButtonID_server(type, size){
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButtonID&format=json&vdm="+vastDevMod);

File diff suppressed because it is too large Load Diff

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LANGUAGE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LANGUAGE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LANGUAGE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LANGUAGE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_LANGUAGE_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_LANGUAGE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_LANGUAGE_NAME_HINT" />
<!-- Langtag Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_LANGUAGE_NAME_HINT"
/>
<!-- Langtag Field. Type: Text. (joomla) -->
<field
type="text"
name="langtag"
label="COM_COMPONENTBUILDER_LANGUAGE_LANGTAG_LABEL"
size="10"
@ -103,7 +112,8 @@
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_LANGUAGE_LANGTAG_MESSAGE"
hint="COM_COMPONENTBUILDER_LANGUAGE_LANGTAG_HINT" />
hint="COM_COMPONENTBUILDER_LANGUAGE_LANGTAG_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -24,6 +24,7 @@
jQuery(document).ready(function($)
{
// set button to add more languages

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Entranslation Field. Type: Textarea. (joomla)-->
<field type="textarea"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Entranslation Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="entranslation"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_ENTRANSLATION_LABEL"
rows="4"
@ -91,9 +98,22 @@
filter="STRING"
hint="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_ENTRANSLATION_HINT"
readonly="true"
disabled="true" />
<!-- Translation Field. Type: Subform. (joomla)-->
<field type="subform"
disabled="true"
/>
<!-- Components Field. Type: Components. (custom) -->
<field
type="components"
name="components"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_COMPONENTS_LABEL"
class="list_class"
multiple="true"
default="0"
required="true"
button="false"
/>
<!-- Translation Field. Type: Subform. (joomla) -->
<field
type="subform"
name="translation"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -101,11 +121,10 @@
description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_DESCRIPTION"
icon="list"
maximum="200">
<form hidden="true"
name="list_translation_modal"
repeat="true">
<!-- Translation Field. Type: Textarea. (joomla)-->
<field type="textarea"
<form hidden="true" name="list_translation_modal" repeat="true">
<!-- Translation Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="translation"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_LABEL"
rows="4"
@ -114,27 +133,21 @@
class="text_area translation_text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_TRANSLATION_HINT"
required="false" />
<!-- Language Field. Type: Lang. (custom)-->
<field type="lang"
required="false"
/>
<!-- Language Field. Type: Lang. (custom) -->
<field
type="lang"
name="language"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_LANGUAGE_LABEL"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
button="false"
/>
</form>
</field>
<!-- Components Field. Type: Components. (custom)-->
<field type="components"
name="components"
label="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_COMPONENTS_LABEL"
class="list_class"
multiple="true"
default="0"
required="true"
button="false" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyxvyu_required = false;
jform_vvvvvyzvyt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyx = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyx(add_php_view_vvvvvyx);
var add_php_view_vvvvvyz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyz(add_php_view_vvvvvyz);
});
// the vvvvvyx function
function vvvvvyx(add_php_view_vvvvvyx)
// the vvvvvyz function
function vvvvvyz(add_php_view_vvvvvyz)
{
// set the function logic
if (add_php_view_vvvvvyx == 1)
if (add_php_view_vvvvvyz == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvyxvyu_required)
if (jform_vvvvvyzvyt_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvyxvyu_required = false;
jform_vvvvvyzvyt_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyxvyu_required)
if (!jform_vvvvvyzvyt_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyxvyu_required = true;
jform_vvvvvyzvyt_required = true;
}
}
}
@ -100,6 +100,7 @@ function isSet(val)
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LAYOUT_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LAYOUT_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LAYOUT_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LAYOUT_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LAYOUT_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_LAYOUT_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_LAYOUT_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_LAYOUT_NAME_HINT" />
<!-- Alias Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_LAYOUT_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL"
size="40"
@ -103,9 +112,11 @@
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_LAYOUT_ALIAS_MESSAGE"
hint="COM_COMPONENTBUILDER_LAYOUT_ALIAS_HINT" />
<!-- Description Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_LAYOUT_ALIAS_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_LABEL"
size="80"
@ -117,94 +128,32 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_HINT" />
<!-- Dynamic_get Field. Type: Dynamicget. (custom)-->
<field type="dynamicget"
hint="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_HINT"
/>
<!-- Dynamic_get Field. Type: Dynamicget. (custom) -->
<field
type="dynamicget"
name="dynamic_get"
label="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
button="true" />
<!-- Snippet Field. Type: Snippets. (custom)-->
<field type="snippets"
button="true"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_LAYOUT_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_SNIPPET_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="true" />
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_libraries_selection"
label="COM_COMPONENTBUILDER_LAYOUT_NOTE_LIBRARIES_SELECTION_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_libraries_selection" />
<!-- Layout Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="layout"
label="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_HINT"
required="true" />
<!-- Add_php_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_LAYOUT_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_LAYOUT_YES</option>
<option value="0">COM_COMPONENTBUILDER_LAYOUT_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_language_string"
label="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
heading="h4"
class="note_add_language_string" />
<!-- Libraries Field. Type: Libraries. (custom)-->
<field type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_snippet_usage"
label="COM_COMPONENTBUILDER_LAYOUT_NOTE_SNIPPET_USAGE_LABEL"
heading="h4"
class="snippet-usage note_snippet_usage" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="dynamic_values"
label="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_DESCRIPTION"
heading="h4"
class="dynamic_values" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_LAYOUT_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Php_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_LABEL"
rows="17"
@ -213,7 +162,62 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_HINT"
required="true" />
required="true"
/>
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_LAYOUT_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LAYOUT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_LAYOUT_NO</option>
</field>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Layout Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="layout"
label="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true"
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,18 +23,12 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwacvzt_required = false;
jform_vvvvwaivzu_required = false;
jform_vvvvwaevzs_required = false;
jform_vvvvwakvzt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var how_vvvvwab = jQuery("#jform_how").val();
vvvvwab(how_vvvvwab);
var how_vvvvwac = jQuery("#jform_how").val();
vvvvwac(how_vvvvwac);
var how_vvvvwad = jQuery("#jform_how").val();
vvvvwad(how_vvvvwad);
@ -50,103 +44,16 @@ jQuery(document).ready(function()
var how_vvvvwah = jQuery("#jform_how").val();
vvvvwah(how_vvvvwah);
var type_vvvvwai = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwai(type_vvvvwai);
var how_vvvvwai = jQuery("#jform_how").val();
vvvvwai(how_vvvvwai);
var how_vvvvwaj = jQuery("#jform_how").val();
vvvvwaj(how_vvvvwaj);
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwak(type_vvvvwak);
});
// the vvvvwab function
function vvvvwab(how_vvvvwab)
{
if (isSet(how_vvvvwab) && how_vvvvwab.constructor !== Array)
{
var temp_vvvvwab = how_vvvvwab;
var how_vvvvwab = [];
how_vvvvwab.push(temp_vvvvwab);
}
else if (!isSet(how_vvvvwab))
{
var how_vvvvwab = [];
}
var how = how_vvvvwab.some(how_vvvvwab_SomeFunc);
// set this function logic
if (how)
{
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
// the vvvvwab Some function
function how_vvvvwab_SomeFunc(how_vvvvwab)
{
// set the function logic
if (how_vvvvwab == 2)
{
return true;
}
return false;
}
// the vvvvwac function
function vvvvwac(how_vvvvwac)
{
if (isSet(how_vvvvwac) && how_vvvvwac.constructor !== Array)
{
var temp_vvvvwac = how_vvvvwac;
var how_vvvvwac = [];
how_vvvvwac.push(temp_vvvvwac);
}
else if (!isSet(how_vvvvwac))
{
var how_vvvvwac = [];
}
var how = how_vvvvwac.some(how_vvvvwac_SomeFunc);
// set this function logic
if (how)
{
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvwacvzt_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwacvzt_required = false;
}
}
else
{
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvwacvzt_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwacvzt_required = true;
}
}
}
// the vvvvwac Some function
function how_vvvvwac_SomeFunc(how_vvvvwac)
{
// set the function logic
if (how_vvvvwac == 3)
{
return true;
}
return false;
}
// the vvvvwad function
function vvvvwad(how_vvvvwad)
{
@ -166,11 +73,11 @@ function vvvvwad(how_vvvvwad)
// set this function logic
if (how)
{
jQuery('.note_display_library_config').closest('.control-group').show();
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('.note_display_library_config').closest('.control-group').hide();
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
@ -178,7 +85,7 @@ function vvvvwad(how_vvvvwad)
function how_vvvvwad_SomeFunc(how_vvvvwad)
{
// set the function logic
if (how_vvvvwad == 2 || how_vvvvwad == 3)
if (how_vvvvwad == 2)
{
return true;
}
@ -204,11 +111,28 @@ function vvvvwae(how_vvvvwae)
// set this function logic
if (how)
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvwaevzs_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwaevzs_required = false;
}
}
else
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvwaevzs_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwaevzs_required = true;
}
}
}
@ -216,7 +140,7 @@ function vvvvwae(how_vvvvwae)
function how_vvvvwae_SomeFunc(how_vvvvwae)
{
// set the function logic
if (how_vvvvwae == 1 || how_vvvvwae == 2 || how_vvvvwae == 3)
if (how_vvvvwae == 3)
{
return true;
}
@ -242,15 +166,11 @@ function vvvvwaf(how_vvvvwaf)
// set this function logic
if (how)
{
jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
jQuery('.note_display_library_config').closest('.control-group').show();
}
else
{
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
jQuery('.note_display_library_config').closest('.control-group').hide();
}
}
@ -258,7 +178,7 @@ function vvvvwaf(how_vvvvwaf)
function how_vvvvwaf_SomeFunc(how_vvvvwaf)
{
// set the function logic
if (how_vvvvwaf == 0)
if (how_vvvvwaf == 2 || how_vvvvwaf == 3)
{
return true;
}
@ -284,13 +204,11 @@ function vvvvwag(how_vvvvwag)
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
}
}
@ -298,7 +216,7 @@ function vvvvwag(how_vvvvwag)
function how_vvvvwag_SomeFunc(how_vvvvwag)
{
// set the function logic
if (how_vvvvwag == 1)
if (how_vvvvwag == 1 || how_vvvvwag == 2 || how_vvvvwag == 3)
{
return true;
}
@ -321,6 +239,88 @@ function vvvvwah(how_vvvvwah)
var how = how_vvvvwah.some(how_vvvvwah_SomeFunc);
// set this function logic
if (how)
{
jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
}
}
// the vvvvwah Some function
function how_vvvvwah_SomeFunc(how_vvvvwah)
{
// set the function logic
if (how_vvvvwah == 0)
{
return true;
}
return false;
}
// the vvvvwai function
function vvvvwai(how_vvvvwai)
{
if (isSet(how_vvvvwai) && how_vvvvwai.constructor !== Array)
{
var temp_vvvvwai = how_vvvvwai;
var how_vvvvwai = [];
how_vvvvwai.push(temp_vvvvwai);
}
else if (!isSet(how_vvvvwai))
{
var how_vvvvwai = [];
}
var how = how_vvvvwai.some(how_vvvvwai_SomeFunc);
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
}
}
// the vvvvwai Some function
function how_vvvvwai_SomeFunc(how_vvvvwai)
{
// set the function logic
if (how_vvvvwai == 1)
{
return true;
}
return false;
}
// the vvvvwaj function
function vvvvwaj(how_vvvvwaj)
{
if (isSet(how_vvvvwaj) && how_vvvvwaj.constructor !== Array)
{
var temp_vvvvwaj = how_vvvvwaj;
var how_vvvvwaj = [];
how_vvvvwaj.push(temp_vvvvwaj);
}
else if (!isSet(how_vvvvwaj))
{
var how_vvvvwaj = [];
}
var how = how_vvvvwaj.some(how_vvvvwaj_SomeFunc);
// set this function logic
if (how)
{
@ -336,44 +336,44 @@ function vvvvwah(how_vvvvwah)
}
}
// the vvvvwah Some function
function how_vvvvwah_SomeFunc(how_vvvvwah)
// the vvvvwaj Some function
function how_vvvvwaj_SomeFunc(how_vvvvwaj)
{
// set the function logic
if (how_vvvvwah == 4)
if (how_vvvvwaj == 4)
{
return true;
}
return false;
}
// the vvvvwai function
function vvvvwai(type_vvvvwai)
// the vvvvwak function
function vvvvwak(type_vvvvwak)
{
// set the function logic
if (type_vvvvwai == 2)
if (type_vvvvwak == 2)
{
jQuery('#jform_libraries').closest('.control-group').show();
if (jform_vvvvwaivzu_required)
if (jform_vvvvwakvzt_required)
{
updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required');
jform_vvvvwaivzu_required = false;
jform_vvvvwakvzt_required = false;
}
}
else
{
jQuery('#jform_libraries').closest('.control-group').hide();
if (!jform_vvvvwaivzu_required)
if (!jform_vvvvwakvzt_required)
{
updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required');
jform_vvvvwaivzu_required = true;
jform_vvvvwakvzt_required = true;
}
}
}
@ -414,6 +414,7 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
// get the linked details

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LIBRARY_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LIBRARY_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LIBRARY_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LIBRARY_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_LIBRARY_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_LIBRARY_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_NAME_HINT" />
<!-- Description Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_LIBRARY_NAME_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_LABEL"
size="80"
@ -106,9 +115,11 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_HINT" />
<!-- How Field. Type: Filebehaviour. (custom)-->
<field type="filebehaviour"
hint="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_HINT"
/>
<!-- How Field. Type: Filebehaviour. (custom) -->
<field
type="filebehaviour"
name="how"
label="COM_COMPONENTBUILDER_LIBRARY_HOW_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_HOW_DESCRIPTION"
@ -116,148 +127,60 @@
multiple="false"
default="1"
required="true"
button="false" />
<!-- Type Field. Type: Radio. (joomla)-->
<field type="radio"
button="false"
/>
<!-- Type Field. Type: Radio. (joomla) -->
<field
type="radio"
name="type"
label="COM_COMPONENTBUILDER_LIBRARY_TYPE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_TYPE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_LIBRARY_MAIN</option>
<option value="2">COM_COMPONENTBUILDER_LIBRARY_BUNDLE</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LIBRARY_MAIN</option>
<option value="2">
COM_COMPONENTBUILDER_LIBRARY_BUNDLE</option>
</field>
<!-- Note_yes_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_yes_behaviour_one"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_DESCRIPTION"
heading="h4"
class="alert alert-success note_yes_behaviour_one" />
<!-- Note_display_library_files_folders_urls Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_display_library_files_folders_urls"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_FILES_FOLDERS_URLS_DESCRIPTION"
class="note_display_library_files_folders_urls" />
<!-- Note_build_in_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_build_in_behaviour_one"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_DESCRIPTION"
heading="h4"
class="alert alert-success note_build_in_behaviour_one" />
<!-- Note_no_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_no_behaviour_three"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_DESCRIPTION"
heading="h4"
class="alert alert-error note_no_behaviour_three" />
<!-- Addconditions Field. Type: Subform. (joomla)-->
<field type="subform"
name="addconditions"
label="COM_COMPONENTBUILDER_LIBRARY_ADDCONDITIONS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_ADDCONDITIONS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addconditions_modal"
repeat="true">
<!-- File Field. Type: Libraryfiles. (custom)-->
<field type="libraryfiles"
name="file"
label="COM_COMPONENTBUILDER_LIBRARY_FILE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILE_DESCRIPTION"
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_build_in_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_two" />
<!-- Note_no_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_no_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-error note_no_behaviour_two" />
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_yes_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_two" />
<!-- Note_build_in_behaviour_three Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_build_in_behaviour_three" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_three" />
<!-- Note_display_library_files_folders_urls Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_display_library_files_folders_urls" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_FILES_FOLDERS_URLS_DESCRIPTION" class="note_display_library_files_folders_urls" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Note_no_behaviour_three Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_no_behaviour_three" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_DESCRIPTION" heading="h4" class="alert alert-error note_no_behaviour_three" />
<!-- Note_display_library_config Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_display_library_config" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_CONFIG_DESCRIPTION" class="note_display_library_config" />
<!-- Libraries Field. Type: Librariesx. (custom) -->
<field
type="librariesx"
name="libraries"
label="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="false" />
<!-- Target_behavior Field. Type: List. (joomla)-->
<field type="list"
name="target_behavior"
label="COM_COMPONENTBUILDER_LIBRARY_TARGET_BEHAVIOR_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_TARGET_BEHAVIOR_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_LIBRARY_INCLUDE</option>
<option value="2">COM_COMPONENTBUILDER_LIBRARY_EXCLUDE</option>
</field>
<!-- Target_relation Field. Type: List. (joomla)-->
<field type="list"
name="target_relation"
label="COM_COMPONENTBUILDER_LIBRARY_TARGET_RELATION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_TARGET_RELATION_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_LIBRARY_ISOLATE</option>
<option value="1">COM_COMPONENTBUILDER_LIBRARY_CHAIN</option>
</field>
<!-- Option_field Field. Type: Libconfigfield. (custom)-->
<field type="libconfigfield"
name="option_field"
label="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_DESCRIPTION"
multiple="false"
required="false"
button="false" />
<!-- Option_behaviour Field. Type: List. (joomla)-->
<field type="list"
name="option_behaviour"
label="COM_COMPONENTBUILDER_LIBRARY_OPTION_BEHAVIOUR_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_OPTION_BEHAVIOUR_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_LIBRARY_IS_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="2">COM_COMPONENTBUILDER_LIBRARY_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="3">COM_COMPONENTBUILDER_LIBRARY_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST</option>
<option value="4">COM_COMPONENTBUILDER_LIBRARY_ACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="5">COM_COMPONENTBUILDER_LIBRARY_UNACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="6">COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="7">COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="8">COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="9">COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="10">COM_COMPONENTBUILDER_LIBRARY_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="11">COM_COMPONENTBUILDER_LIBRARY_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="12">COM_COMPONENTBUILDER_LIBRARY_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
</field>
<!-- Field_options Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="field_options"
label="COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_LABEL"
rows="10"
cols="5"
class="text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_HINT"
required="false" />
</form>
</field>
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_yes_behaviour_two"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION"
heading="h4"
class="alert alert-success note_yes_behaviour_two" />
<!-- Php_setdocument Field. Type: Textarea. (joomla)-->
<field type="textarea"
button="true"
/>
<!-- Note_no_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_no_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-error note_no_behaviour_one" />
<!-- Php_setdocument Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_setdocument"
label="COM_COMPONENTBUILDER_LIBRARY_PHP_SETDOCUMENT_LABEL"
rows="30"
@ -266,68 +189,134 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LIBRARY_PHP_SETDOCUMENT_HINT"
required="true" />
<!-- Note_no_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_no_behaviour_one"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION"
heading="h4"
class="alert alert-error note_no_behaviour_one" />
<!-- Libraries Field. Type: Librariesx. (custom)-->
<field type="librariesx"
name="libraries"
label="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_DESCRIPTION"
required="true"
/>
<!-- Addconditions Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addconditions"
label="COM_COMPONENTBUILDER_LIBRARY_ADDCONDITIONS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_ADDCONDITIONS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addconditions_modal" repeat="true">
<!-- File Field. Type: Libraryfiles. (custom) -->
<field
type="libraryfiles"
name="file"
label="COM_COMPONENTBUILDER_LIBRARY_FILE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILE_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true" />
<!-- Note_build_in_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_build_in_behaviour_three"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_DESCRIPTION"
heading="h4"
class="alert alert-success note_build_in_behaviour_three" />
<!-- Note_library_instruction Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_library_instruction"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_library_instruction" />
<!-- Note_no_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_no_behaviour_two"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_DESCRIPTION"
heading="h4"
class="alert alert-error note_no_behaviour_two" />
<!-- Note_display_library_config Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_display_library_config"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_CONFIG_DESCRIPTION"
class="note_display_library_config" />
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_build_in_behaviour_two"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION"
heading="h4"
class="alert alert-success note_build_in_behaviour_two" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_linked_to_notice"
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_DESCRIPTION"
heading="h4"
class="note_linked_to_notice" />
button="false"
/>
<!-- Target_behavior Field. Type: List. (joomla) -->
<field
type="list"
name="target_behavior"
label="COM_COMPONENTBUILDER_LIBRARY_TARGET_BEHAVIOR_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_TARGET_BEHAVIOR_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LIBRARY_INCLUDE</option>
<option value="2">
COM_COMPONENTBUILDER_LIBRARY_EXCLUDE</option>
</field>
<!-- Target_relation Field. Type: List. (joomla) -->
<field
type="list"
name="target_relation"
label="COM_COMPONENTBUILDER_LIBRARY_TARGET_RELATION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_TARGET_RELATION_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="0">
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_LIBRARY_ISOLATE</option>
<option value="1">
COM_COMPONENTBUILDER_LIBRARY_CHAIN</option>
</field>
<!-- Option_field Field. Type: Libconfigfield. (custom) -->
<field
type="libconfigfield"
name="option_field"
label="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_OPTION_FIELD_DESCRIPTION"
multiple="false"
required="false"
button="false"
/>
<!-- Option_behaviour Field. Type: List. (joomla) -->
<field
type="list"
name="option_behaviour"
label="COM_COMPONENTBUILDER_LIBRARY_OPTION_BEHAVIOUR_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_OPTION_BEHAVIOUR_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="false"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LIBRARY_IS_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="2">
COM_COMPONENTBUILDER_LIBRARY_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES</option>
<option value="3">
COM_COMPONENTBUILDER_LIBRARY_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST</option>
<option value="4">
COM_COMPONENTBUILDER_LIBRARY_ACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="5">
COM_COMPONENTBUILDER_LIBRARY_UNACTIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="6">
COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ALL_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="7">
COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="8">
COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ALL_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="9">
COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ANY_CASEINSENSITIVE_ONLY_FOUR_TEXT_FIELD</option>
<option value="10">
COM_COMPONENTBUILDER_LIBRARY_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="11">
COM_COMPONENTBUILDER_LIBRARY_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
<option value="12">
COM_COMPONENTBUILDER_LIBRARY_EXACT_LENGTH_ONLY_FOUR_TEXT_FIELD</option>
</field>
<!-- Field_options Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="field_options"
label="COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_LABEL"
rows="10"
cols="5"
class="text_area"
filter="STRING"
hint="COM_COMPONENTBUILDER_LIBRARY_FIELD_OPTIONS_HINT"
required="false"
/>
</form>
</field>
<!-- Note_build_in_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_build_in_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_one" />
<!-- Note_yes_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_yes_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_one" />
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Note_library_instruction Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_library_instruction" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_DESCRIPTION" heading="h4" class="alert alert-info note_library_instruction" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Library Field. Type: Libraryreadonly. (custom)-->
<field type="libraryreadonly"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Library Field. Type: Libraryreadonly. (custom) -->
<field
type="libraryreadonly"
name="library"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_LIBRARY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_LIBRARY_DESCRIPTION"
@ -88,9 +95,11 @@
multiple="false"
default="0"
required="true"
readonly="true" />
<!-- Addconfig Field. Type: Subform. (joomla)-->
<field type="subform"
readonly="true"
/>
<!-- Addconfig Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addconfig"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_ADDCONFIG_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -98,20 +107,21 @@
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_ADDCONFIG_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addconfig_modal"
repeat="true">
<!-- Field Field. Type: Fields. (custom)-->
<field type="fields"
<form hidden="true" name="list_addconfig_modal" repeat="true">
<!-- Field Field. Type: Fields. (custom) -->
<field
type="fields"
name="field"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_FIELD_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_CONFIG_FIELD_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="false" />
<!-- Custom_value Field. Type: Textarea. (joomla)-->
<field type="textarea"
button="false"
/>
<!-- Custom_value Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="custom_value"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CUSTOM_VALUE_LABEL"
rows="2"
@ -121,9 +131,11 @@
hint="COM_COMPONENTBUILDER_LIBRARY_CONFIG_CUSTOM_VALUE_HINT"
required="false"
readonly="false"
disabled="false" />
<!-- Tabname Field. Type: Text. (joomla)-->
<field type="text"
disabled="false"
/>
<!-- Tabname Field. Type: Text. (joomla) -->
<field
type="text"
name="tabname"
label="COM_COMPONENTBUILDER_LIBRARY_CONFIG_TABNAME_LABEL"
size="40"
@ -136,7 +148,8 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_LIBRARY_CONFIG_TABNAME_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_CONFIG_TABNAME_HINT" />
hint="COM_COMPONENTBUILDER_LIBRARY_CONFIG_TABNAME_HINT"
/>
</form>
</field>
</fieldset>

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Library Field. Type: Libraryreadonly. (custom)-->
<field type="libraryreadonly"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Library Field. Type: Libraryreadonly. (custom) -->
<field
type="libraryreadonly"
name="library"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LIBRARY_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LIBRARY_DESCRIPTION"
@ -88,16 +95,227 @@
multiple="false"
default="0"
required="true"
readonly="true" />
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders_fullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders_fullpath" />
<!-- Addurls Field. Type: Subform. (joomla)-->
<field type="subform"
readonly="true"
/>
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_constant_paths" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION" heading="h4" class="alert alert-info note_constant_paths" />
<!-- Addfoldersfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfoldersfullpath_modal" repeat="true">
<!-- Folderpath Field. Type: Text. (joomla) -->
<field
type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders_fullpath" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders_fullpath" />
<!-- Addfilesfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfilesfullpath_modal" repeat="true">
<!-- Filepath Field. Type: Text. (joomla) -->
<field
type="text"
name="filepath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files_fullpath" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_files_fullpath" />
<!-- Addfolders Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfolders_modal" repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom) -->
<field
type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders" />
<!-- Addfiles Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfiles"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true" name="list_addfiles_modal" repeat="true">
<!-- File Field. Type: Customfilelist. (custom) -->
<field
type="customfilelist"
name="file"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" />
<!-- Addurls Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addurls"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDURLS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
@ -105,11 +323,10 @@
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDURLS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addurls_modal"
repeat="true">
<!-- Url Field. Type: Url. (joomla)-->
<field type="url"
<form hidden="true" name="list_addurls_modal" repeat="true">
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_LABEL"
size="150"
@ -120,9 +337,11 @@
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_HINT" />
<!-- Type Field. Type: List. (joomla)-->
<field type="list"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_URL_HINT"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_TYPE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_TYPE_DESCRIPTION"
@ -131,227 +350,18 @@
filter="INT"
required="false"
default="1">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_DEFAULT_LINK</option>
<option value="2">COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LOCAL_GET</option>
<option value="3">COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC</option>
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_DEFAULT_LINK</option>
<option value="2">
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LOCAL_GET</option>
<option value="3">
COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC</option>
</field>
</form>
</field>
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files_fullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files_fullpath" />
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files" />
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_urls"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_urls" />
<!-- Addfiles Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfiles"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfiles_modal"
repeat="true">
<!-- File Field. Type: Customfilelist. (custom)-->
<field type="customfilelist"
name="file"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILE_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders" />
<!-- Addfilesfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfilesfullpath_modal"
repeat="true">
<!-- Filepath Field. Type: Text. (joomla)-->
<field type="text"
name="filepath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Addfolders Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfolders_modal"
repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom)-->
<field type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
<!-- Addfoldersfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfoldersfullpath_modal"
repeat="true">
<!-- Folderpath Field. Type: Text. (joomla)-->
<field type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_urls" label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION" heading="h4" class="alert alert-info note_add_urls" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,27 +23,24 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwatwae_required = false;
jform_vvvvwatwaf_required = false;
jform_vvvvwatwag_required = false;
jform_vvvvwatwah_required = false;
jform_vvvvwatwai_required = false;
jform_vvvvwauwaj_required = false;
jform_vvvvwavwak_required = false;
jform_vvvvwaxwal_required = false;
jform_vvvvwavwad_required = false;
jform_vvvvwavwae_required = false;
jform_vvvvwavwaf_required = false;
jform_vvvvwavwag_required = false;
jform_vvvvwavwah_required = false;
jform_vvvvwawwai_required = false;
jform_vvvvwaxwaj_required = false;
jform_vvvvwazwak_required = false;
jform_vvvvwbbwal_required = false;
// Initial Script
jQuery(document).ready(function()
{
var protocol_vvvvwat = jQuery("#jform_protocol").val();
vvvvwat(protocol_vvvvwat);
var protocol_vvvvwau = jQuery("#jform_protocol").val();
vvvvwau(protocol_vvvvwau);
var protocol_vvvvwav = jQuery("#jform_protocol").val();
var authentication_vvvvwav = jQuery("#jform_authentication").val();
vvvvwav(protocol_vvvvwav,authentication_vvvvwav);
vvvvwav(protocol_vvvvwav);
var protocol_vvvvwaw = jQuery("#jform_protocol").val();
vvvvwaw(protocol_vvvvwaw);
var protocol_vvvvwax = jQuery("#jform_protocol").val();
var authentication_vvvvwax = jQuery("#jform_authentication").val();
@ -56,200 +53,14 @@ jQuery(document).ready(function()
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
});
// the vvvvwat function
function vvvvwat(protocol_vvvvwat)
{
if (isSet(protocol_vvvvwat) && protocol_vvvvwat.constructor !== Array)
{
var temp_vvvvwat = protocol_vvvvwat;
var protocol_vvvvwat = [];
protocol_vvvvwat.push(temp_vvvvwat);
}
else if (!isSet(protocol_vvvvwat))
{
var protocol_vvvvwat = [];
}
var protocol = protocol_vvvvwat.some(protocol_vvvvwat_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('#jform_authentication').closest('.control-group').show();
if (jform_vvvvwatwae_required)
{
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwatwae_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
if (jform_vvvvwatwaf_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwatwaf_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
if (jform_vvvvwatwag_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwatwag_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwatwah_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwatwah_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
if (jform_vvvvwatwai_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwatwai_required = false;
}
}
else
{
jQuery('#jform_authentication').closest('.control-group').hide();
if (!jform_vvvvwatwae_required)
{
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwatwae_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
if (!jform_vvvvwatwaf_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwatwaf_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
if (!jform_vvvvwatwag_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwatwag_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwatwah_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwatwah_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
if (!jform_vvvvwatwai_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwatwai_required = true;
}
}
}
// the vvvvwat Some function
function protocol_vvvvwat_SomeFunc(protocol_vvvvwat)
{
// set the function logic
if (protocol_vvvvwat == 2)
{
return true;
}
return false;
}
// the vvvvwau function
function vvvvwau(protocol_vvvvwau)
{
if (isSet(protocol_vvvvwau) && protocol_vvvvwau.constructor !== Array)
{
var temp_vvvvwau = protocol_vvvvwau;
var protocol_vvvvwau = [];
protocol_vvvvwau.push(temp_vvvvwau);
}
else if (!isSet(protocol_vvvvwau))
{
var protocol_vvvvwau = [];
}
var protocol = protocol_vvvvwau.some(protocol_vvvvwau_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
if (jform_vvvvwauwaj_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwauwaj_required = false;
}
}
else
{
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
if (!jform_vvvvwauwaj_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwauwaj_required = true;
}
}
}
// the vvvvwau Some function
function protocol_vvvvwau_SomeFunc(protocol_vvvvwau)
{
// set the function logic
if (protocol_vvvvwau == 1)
{
return true;
}
return false;
}
// the vvvvwav function
function vvvvwav(protocol_vvvvwav,authentication_vvvvwav)
function vvvvwav(protocol_vvvvwav)
{
if (isSet(protocol_vvvvwav) && protocol_vvvvwav.constructor !== Array)
{
@ -263,43 +74,109 @@ function vvvvwav(protocol_vvvvwav,authentication_vvvvwav)
}
var protocol = protocol_vvvvwav.some(protocol_vvvvwav_SomeFunc);
if (isSet(authentication_vvvvwav) && authentication_vvvvwav.constructor !== Array)
{
var temp_vvvvwav = authentication_vvvvwav;
var authentication_vvvvwav = [];
authentication_vvvvwav.push(temp_vvvvwav);
}
else if (!isSet(authentication_vvvvwav))
{
var authentication_vvvvwav = [];
}
var authentication = authentication_vvvvwav.some(authentication_vvvvwav_SomeFunc);
// set this function logic
if (protocol && authentication)
if (protocol)
{
jQuery('#jform_password').closest('.control-group').show();
if (jform_vvvvwavwak_required)
jQuery('#jform_authentication').closest('.control-group').show();
if (jform_vvvvwavwad_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwavwak_required = false;
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwavwad_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
if (jform_vvvvwavwae_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwavwae_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
if (jform_vvvvwavwaf_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwavwaf_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwavwag_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwavwag_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
if (jform_vvvvwavwah_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwavwah_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
if (!jform_vvvvwavwak_required)
jQuery('#jform_authentication').closest('.control-group').hide();
if (!jform_vvvvwavwad_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwavwak_required = true;
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwavwad_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
if (!jform_vvvvwavwae_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwavwae_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
if (!jform_vvvvwavwaf_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwavwaf_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwavwag_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwavwag_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
if (!jform_vvvvwavwah_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwavwah_required = true;
}
}
}
@ -315,11 +192,57 @@ function protocol_vvvvwav_SomeFunc(protocol_vvvvwav)
return false;
}
// the vvvvwav Some function
function authentication_vvvvwav_SomeFunc(authentication_vvvvwav)
// the vvvvwaw function
function vvvvwaw(protocol_vvvvwaw)
{
if (isSet(protocol_vvvvwaw) && protocol_vvvvwaw.constructor !== Array)
{
var temp_vvvvwaw = protocol_vvvvwaw;
var protocol_vvvvwaw = [];
protocol_vvvvwaw.push(temp_vvvvwaw);
}
else if (!isSet(protocol_vvvvwaw))
{
var protocol_vvvvwaw = [];
}
var protocol = protocol_vvvvwaw.some(protocol_vvvvwaw_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
if (jform_vvvvwawwai_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwawwai_required = false;
}
}
else
{
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
if (!jform_vvvvwawwai_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwawwai_required = true;
}
}
}
// the vvvvwaw Some function
function protocol_vvvvwaw_SomeFunc(protocol_vvvvwaw)
{
// set the function logic
if (authentication_vvvvwav == 1 || authentication_vvvvwav == 3 || authentication_vvvvwav == 5)
if (protocol_vvvvwaw == 1)
{
return true;
}
@ -357,27 +280,27 @@ function vvvvwax(protocol_vvvvwax,authentication_vvvvwax)
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_private').closest('.control-group').show();
if (jform_vvvvwaxwal_required)
jQuery('#jform_password').closest('.control-group').show();
if (jform_vvvvwaxwaj_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwaxwal_required = false;
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwaxwaj_required = false;
}
}
else
{
jQuery('#jform_private').closest('.control-group').hide();
if (!jform_vvvvwaxwal_required)
jQuery('#jform_password').closest('.control-group').hide();
if (!jform_vvvvwaxwaj_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwaxwal_required = true;
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwaxwaj_required = true;
}
}
}
@ -397,7 +320,7 @@ function protocol_vvvvwax_SomeFunc(protocol_vvvvwax)
function authentication_vvvvwax_SomeFunc(authentication_vvvvwax)
{
// set the function logic
if (authentication_vvvvwax == 2 || authentication_vvvvwax == 3)
if (authentication_vvvvwax == 1 || authentication_vvvvwax == 3 || authentication_vvvvwax == 5)
{
return true;
}
@ -435,11 +358,28 @@ function vvvvwaz(protocol_vvvvwaz,authentication_vvvvwaz)
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_private_key').closest('.control-group').show();
jQuery('#jform_private').closest('.control-group').show();
if (jform_vvvvwazwak_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwazwak_required = false;
}
}
else
{
jQuery('#jform_private_key').closest('.control-group').hide();
jQuery('#jform_private').closest('.control-group').hide();
if (!jform_vvvvwazwak_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwazwak_required = true;
}
}
}
@ -458,7 +398,7 @@ function protocol_vvvvwaz_SomeFunc(protocol_vvvvwaz)
function authentication_vvvvwaz_SomeFunc(authentication_vvvvwaz)
{
// set the function logic
if (authentication_vvvvwaz == 4 || authentication_vvvvwaz == 5)
if (authentication_vvvvwaz == 2 || authentication_vvvvwaz == 3)
{
return true;
}
@ -496,11 +436,28 @@ function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb)
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_secret').closest('.control-group').show();
jQuery('#jform_private_key').closest('.control-group').show();
if (jform_vvvvwbbwal_required)
{
updateFieldRequired('private_key',0);
jQuery('#jform_private_key').prop('required','required');
jQuery('#jform_private_key').attr('aria-required',true);
jQuery('#jform_private_key').addClass('required');
jform_vvvvwbbwal_required = false;
}
}
else
{
jQuery('#jform_secret').closest('.control-group').hide();
jQuery('#jform_private_key').closest('.control-group').hide();
if (!jform_vvvvwbbwal_required)
{
updateFieldRequired('private_key',1);
jQuery('#jform_private_key').removeAttr('required');
jQuery('#jform_private_key').removeAttr('aria-required');
jQuery('#jform_private_key').removeClass('required');
jform_vvvvwbbwal_required = true;
}
}
}
@ -519,7 +476,68 @@ function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
function authentication_vvvvwbb_SomeFunc(authentication_vvvvwbb)
{
// set the function logic
if (authentication_vvvvwbb == 2 || authentication_vvvvwbb == 3 || authentication_vvvvwbb == 4 || authentication_vvvvwbb == 5)
if (authentication_vvvvwbb == 4 || authentication_vvvvwbb == 5)
{
return true;
}
return false;
}
// the vvvvwbd function
function vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd)
{
if (isSet(protocol_vvvvwbd) && protocol_vvvvwbd.constructor !== Array)
{
var temp_vvvvwbd = protocol_vvvvwbd;
var protocol_vvvvwbd = [];
protocol_vvvvwbd.push(temp_vvvvwbd);
}
else if (!isSet(protocol_vvvvwbd))
{
var protocol_vvvvwbd = [];
}
var protocol = protocol_vvvvwbd.some(protocol_vvvvwbd_SomeFunc);
if (isSet(authentication_vvvvwbd) && authentication_vvvvwbd.constructor !== Array)
{
var temp_vvvvwbd = authentication_vvvvwbd;
var authentication_vvvvwbd = [];
authentication_vvvvwbd.push(temp_vvvvwbd);
}
else if (!isSet(authentication_vvvvwbd))
{
var authentication_vvvvwbd = [];
}
var authentication = authentication_vvvvwbd.some(authentication_vvvvwbd_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_secret').closest('.control-group').show();
}
else
{
jQuery('#jform_secret').closest('.control-group').hide();
}
}
// the vvvvwbd Some function
function protocol_vvvvwbd_SomeFunc(protocol_vvvvwbd)
{
// set the function logic
if (protocol_vvvvwbd == 2)
{
return true;
}
return false;
}
// the vvvvwbd Some function
function authentication_vvvvwbd_SomeFunc(authentication_vvvvwbd)
{
// set the function logic
if (authentication_vvvvwbd == 2 || authentication_vvvvwbd == 3 || authentication_vvvvwbd == 4 || authentication_vvvvwbd == 5)
{
return true;
}

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_SERVER_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SERVER_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_SERVER_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_SERVER_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_SERVER_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_SERVER_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SERVER_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_SERVER_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_SERVER_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_SERVER_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_SERVER_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_SERVER_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_SERVER_VERSION_LABEL"
description="COM_COMPONENTBUILDER_SERVER_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_SERVER_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_NAME_HINT" />
<!-- Protocol Field. Type: List. (joomla)-->
<field type="list"
hint="COM_COMPONENTBUILDER_SERVER_NAME_HINT"
/>
<!-- Protocol Field. Type: List. (joomla) -->
<field
type="list"
name="protocol"
label="COM_COMPONENTBUILDER_SERVER_PROTOCOL_LABEL"
description="COM_COMPONENTBUILDER_SERVER_PROTOCOL_DESCRIPTION"
@ -102,103 +111,27 @@
multiple="false"
filter="INT"
required="true">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
<option value="1">COM_COMPONENTBUILDER_SERVER_FTP</option>
<option value="2">COM_COMPONENTBUILDER_SERVER_SFTP</option>
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
<option value="1">
COM_COMPONENTBUILDER_SERVER_FTP</option>
<option value="2">
COM_COMPONENTBUILDER_SERVER_SFTP</option>
</field>
<!-- Note_ftp_signature Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_ftp_signature"
label="COM_COMPONENTBUILDER_SERVER_NOTE_FTP_SIGNATURE_LABEL"
description="COM_COMPONENTBUILDER_SERVER_NOTE_FTP_SIGNATURE_DESCRIPTION"
heading="h4"
class="alert alert-success note_ftp_signature" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_SERVER_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_SERVER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_PATH_HINT" />
<!-- Port Field. Type: Text. (joomla)-->
<field type="text"
name="port"
label="COM_COMPONENTBUILDER_SERVER_PORT_LABEL"
size="10"
maxlength="50"
default="22"
description="COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION"
class="text_area"
required="true"
filter="INT"
message="COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_PORT_HINT"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};" />
<!-- Authentication Field. Type: List. (joomla)-->
<field type="list"
name="authentication"
label="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_LABEL"
description="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
<option value="1">COM_COMPONENTBUILDER_SERVER_PASSWORD</option>
<option value="2">COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_FILE_PATH</option>
<option value="3">COM_COMPONENTBUILDER_SERVER_BOTH_PASSWORD_PRIVATE_KEY_FILE_PATH</option>
<option value="4">COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_TEXT_FIELD</option>
<option value="5">COM_COMPONENTBUILDER_SERVER_BOTH_PASSWORD_PRIVATE_KEY_TEXT_FIELD</option>
</field>
<!-- Note_ssh_security Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_ssh_security"
label="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_LABEL"
description="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_DESCRIPTION"
heading="h4"
class="alert alert-info note_ssh_security" />
<!-- Password Field. Type: Password. (joomla)-->
<field type="password"
name="password"
label="COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL"
size="60"
description="COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION"
message="Error! Please add the password here."
class="text_area"
required="true"
filter="raw" />
<!-- Secret Field. Type: Password. (joomla)-->
<field type="password"
name="secret"
label="COM_COMPONENTBUILDER_SERVER_SECRET_LABEL"
size="60"
description="COM_COMPONENTBUILDER_SERVER_SECRET_DESCRIPTION"
message="Error! Please add the passphrase here."
class="text_area"
filter="raw" />
<!-- Host Field. Type: Text. (joomla)-->
<field type="text"
name="host"
label="COM_COMPONENTBUILDER_SERVER_HOST_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION"
class="text_area"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_HOST_HINT" />
<!-- Signature Field. Type: Text. (joomla)-->
<field type="text"
<!-- Note_ssh_security Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_ssh_security" label="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_LABEL" description="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_DESCRIPTION" heading="h4" class="alert alert-info note_ssh_security" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Note_ftp_signature Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_ftp_signature" label="COM_COMPONENTBUILDER_SERVER_NOTE_FTP_SIGNATURE_LABEL" description="COM_COMPONENTBUILDER_SERVER_NOTE_FTP_SIGNATURE_DESCRIPTION" heading="h4" class="alert alert-success note_ftp_signature" />
<!-- Signature Field. Type: Text. (joomla) -->
<field
type="text"
name="signature"
label="COM_COMPONENTBUILDER_SERVER_SIGNATURE_LABEL"
size="250"
@ -209,25 +142,46 @@
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_SIGNATURE_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_SIGNATURE_HINT"
autocomplete="off" />
<!-- Username Field. Type: Text. (joomla)-->
<field type="text"
name="username"
label="COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL"
autocomplete="off"
/>
<!-- Private_key Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="private_key"
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL"
rows="15"
cols="5"
description="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION"
class="input-xxlarge span12"
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT"
required="true"
/>
<!-- Secret Field. Type: Password. (joomla) -->
<field
type="password"
name="secret"
label="COM_COMPONENTBUILDER_SERVER_SECRET_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_USERNAME_DESCRIPTION"
description="COM_COMPONENTBUILDER_SERVER_SECRET_DESCRIPTION"
message="Error! Please add the passphrase here."
class="text_area"
filter="raw"
/>
<!-- Password Field. Type: Password. (joomla) -->
<field
type="password"
name="password"
label="COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL"
size="60"
description="COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION"
message="Error! Please add the password here."
class="text_area"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_USERNAME_HINT" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Private Field. Type: Text. (joomla)-->
<field type="text"
filter="raw"
/>
<!-- Private Field. Type: Text. (joomla) -->
<field
type="text"
name="private"
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_LABEL"
size="50"
@ -239,16 +193,92 @@
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_SERVER_PRIVATE_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_HINT" />
<!-- Private_key Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="private_key"
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL"
rows="15"
cols="5"
description="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION"
class="input-xxlarge span12"
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT" />
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_HINT"
/>
<!-- Authentication Field. Type: List. (joomla) -->
<field
type="list"
name="authentication"
label="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_LABEL"
description="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true">
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
<option value="1">
COM_COMPONENTBUILDER_SERVER_PASSWORD</option>
<option value="2">
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_FILE_PATH</option>
<option value="3">
COM_COMPONENTBUILDER_SERVER_BOTH_PASSWORD_PRIVATE_KEY_FILE_PATH</option>
<option value="4">
COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_TEXT_FIELD</option>
<option value="5">
COM_COMPONENTBUILDER_SERVER_BOTH_PASSWORD_PRIVATE_KEY_TEXT_FIELD</option>
</field>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_SERVER_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_SERVER_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_PATH_HINT"
/>
<!-- Port Field. Type: Text. (joomla) -->
<field
type="text"
name="port"
label="COM_COMPONENTBUILDER_SERVER_PORT_LABEL"
size="10"
maxlength="50"
default="22"
description="COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION"
class="text_area"
required="true"
filter="INT"
message="COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_PORT_HINT"
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};"
/>
<!-- Host Field. Type: Text. (joomla) -->
<field
type="text"
name="host"
label="COM_COMPONENTBUILDER_SERVER_HOST_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION"
class="text_area"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_HOST_HINT"
/>
<!-- Username Field. Type: Text. (joomla) -->
<field
type="text"
name="username"
label="COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_SERVER_USERNAME_DESCRIPTION"
class="text_area"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SERVER_USERNAME_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,318 +23,318 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvylvyi_required = false;
jform_vvvvvymvyj_required = false;
jform_vvvvvynvyk_required = false;
jform_vvvvvyovyl_required = false;
jform_vvvvvypvym_required = false;
jform_vvvvvyqvyn_required = false;
jform_vvvvvyrvyo_required = false;
jform_vvvvvysvyp_required = false;
jform_vvvvvytvyq_required = false;
jform_vvvvvyuvyr_required = false;
jform_vvvvvyuvys_required = false;
jform_vvvvvynvyh_required = false;
jform_vvvvvyovyi_required = false;
jform_vvvvvypvyj_required = false;
jform_vvvvvyqvyk_required = false;
jform_vvvvvyrvyl_required = false;
jform_vvvvvysvym_required = false;
jform_vvvvvytvyn_required = false;
jform_vvvvvyuvyo_required = false;
jform_vvvvvyvvyp_required = false;
jform_vvvvvywvyq_required = false;
jform_vvvvvywvyr_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyl(add_php_view_vvvvvyl);
var add_php_view_vvvvvyn = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyn(add_php_view_vvvvvyn);
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvym(add_php_jview_display_vvvvvym);
var add_php_jview_display_vvvvvyo = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyo(add_php_jview_display_vvvvvyo);
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyn(add_php_jview_vvvvvyn);
var add_php_jview_vvvvvyp = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyp(add_php_jview_vvvvvyp);
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyo(add_php_document_vvvvvyo);
var add_php_document_vvvvvyq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyq(add_php_document_vvvvvyq);
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyp(add_css_document_vvvvvyp);
var add_css_document_vvvvvyr = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyr(add_css_document_vvvvvyr);
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvyq(add_javascript_file_vvvvvyq);
var add_javascript_file_vvvvvys = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvys(add_javascript_file_vvvvvys);
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyr(add_js_document_vvvvvyr);
var add_js_document_vvvvvyt = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyt(add_js_document_vvvvvyt);
var add_css_vvvvvys = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvys(add_css_vvvvvys);
var add_css_vvvvvyu = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyu(add_css_vvvvvyu);
var add_php_ajax_vvvvvyt = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyt(add_php_ajax_vvvvvyt);
var add_php_ajax_vvvvvyv = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyv(add_php_ajax_vvvvvyv);
var add_custom_button_vvvvvyu = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyu(add_custom_button_vvvvvyu);
var add_custom_button_vvvvvyw = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyw(add_custom_button_vvvvvyw);
var button_position_vvvvvyv = jQuery("#jform_button_position").val();
vvvvvyv(button_position_vvvvvyv);
var button_position_vvvvvyx = jQuery("#jform_button_position").val();
vvvvvyx(button_position_vvvvvyx);
});
// the vvvvvyl function
function vvvvvyl(add_php_view_vvvvvyl)
// the vvvvvyn function
function vvvvvyn(add_php_view_vvvvvyn)
{
// set the function logic
if (add_php_view_vvvvvyl == 1)
if (add_php_view_vvvvvyn == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvylvyi_required)
if (jform_vvvvvynvyh_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvylvyi_required = false;
jform_vvvvvynvyh_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvylvyi_required)
if (!jform_vvvvvynvyh_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvylvyi_required = true;
jform_vvvvvynvyh_required = true;
}
}
}
// the vvvvvym function
function vvvvvym(add_php_jview_display_vvvvvym)
// the vvvvvyo function
function vvvvvyo(add_php_jview_display_vvvvvyo)
{
// set the function logic
if (add_php_jview_display_vvvvvym == 1)
if (add_php_jview_display_vvvvvyo == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvymvyj_required)
if (jform_vvvvvyovyi_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvymvyj_required = false;
jform_vvvvvyovyi_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvymvyj_required)
if (!jform_vvvvvyovyi_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvymvyj_required = true;
jform_vvvvvyovyi_required = true;
}
}
}
// the vvvvvyn function
function vvvvvyn(add_php_jview_vvvvvyn)
// the vvvvvyp function
function vvvvvyp(add_php_jview_vvvvvyp)
{
// set the function logic
if (add_php_jview_vvvvvyn == 1)
if (add_php_jview_vvvvvyp == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvynvyk_required)
if (jform_vvvvvypvyj_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_vvvvvynvyk_required = false;
jform_vvvvvypvyj_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvynvyk_required)
if (!jform_vvvvvypvyj_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvynvyk_required = true;
jform_vvvvvypvyj_required = true;
}
}
}
// the vvvvvyo function
function vvvvvyo(add_php_document_vvvvvyo)
// the vvvvvyq function
function vvvvvyq(add_php_document_vvvvvyq)
{
// set the function logic
if (add_php_document_vvvvvyo == 1)
if (add_php_document_vvvvvyq == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvyovyl_required)
if (jform_vvvvvyqvyk_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_vvvvvyovyl_required = false;
jform_vvvvvyqvyk_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvyovyl_required)
if (!jform_vvvvvyqvyk_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_vvvvvyovyl_required = true;
jform_vvvvvyqvyk_required = true;
}
}
}
// the vvvvvyp function
function vvvvvyp(add_css_document_vvvvvyp)
// the vvvvvyr function
function vvvvvyr(add_css_document_vvvvvyr)
{
// set the function logic
if (add_css_document_vvvvvyp == 1)
if (add_css_document_vvvvvyr == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvypvym_required)
if (jform_vvvvvyrvyl_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_vvvvvypvym_required = false;
jform_vvvvvyrvyl_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvypvym_required)
if (!jform_vvvvvyrvyl_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_vvvvvypvym_required = true;
jform_vvvvvyrvyl_required = true;
}
}
}
// the vvvvvyq function
function vvvvvyq(add_javascript_file_vvvvvyq)
// the vvvvvys function
function vvvvvys(add_javascript_file_vvvvvys)
{
// set the function logic
if (add_javascript_file_vvvvvyq == 1)
if (add_javascript_file_vvvvvys == 1)
{
jQuery('#jform_javascript_file').closest('.control-group').show();
if (jform_vvvvvyqvyn_required)
if (jform_vvvvvysvym_required)
{
updateFieldRequired('javascript_file',0);
jQuery('#jform_javascript_file').prop('required','required');
jQuery('#jform_javascript_file').attr('aria-required',true);
jQuery('#jform_javascript_file').addClass('required');
jform_vvvvvyqvyn_required = false;
jform_vvvvvysvym_required = false;
}
}
else
{
jQuery('#jform_javascript_file').closest('.control-group').hide();
if (!jform_vvvvvyqvyn_required)
if (!jform_vvvvvysvym_required)
{
updateFieldRequired('javascript_file',1);
jQuery('#jform_javascript_file').removeAttr('required');
jQuery('#jform_javascript_file').removeAttr('aria-required');
jQuery('#jform_javascript_file').removeClass('required');
jform_vvvvvyqvyn_required = true;
jform_vvvvvysvym_required = true;
}
}
}
// the vvvvvyr function
function vvvvvyr(add_js_document_vvvvvyr)
// the vvvvvyt function
function vvvvvyt(add_js_document_vvvvvyt)
{
// set the function logic
if (add_js_document_vvvvvyr == 1)
if (add_js_document_vvvvvyt == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvyrvyo_required)
if (jform_vvvvvytvyn_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvyrvyo_required = false;
jform_vvvvvytvyn_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvyrvyo_required)
if (!jform_vvvvvytvyn_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvyrvyo_required = true;
jform_vvvvvytvyn_required = true;
}
}
}
// the vvvvvys function
function vvvvvys(add_css_vvvvvys)
// the vvvvvyu function
function vvvvvyu(add_css_vvvvvyu)
{
// set the function logic
if (add_css_vvvvvys == 1)
if (add_css_vvvvvyu == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvysvyp_required)
if (jform_vvvvvyuvyo_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvysvyp_required = false;
jform_vvvvvyuvyo_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvysvyp_required)
if (!jform_vvvvvyuvyo_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvysvyp_required = true;
jform_vvvvvyuvyo_required = true;
}
}
}
// the vvvvvyt function
function vvvvvyt(add_php_ajax_vvvvvyt)
// the vvvvvyv function
function vvvvvyv(add_php_ajax_vvvvvyv)
{
// set the function logic
if (add_php_ajax_vvvvvyt == 1)
if (add_php_ajax_vvvvvyv == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_vvvvvytvyq_required)
if (jform_vvvvvyvvyp_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_vvvvvytvyq_required = false;
jform_vvvvvyvvyp_required = false;
}
}
@ -342,42 +342,42 @@ function vvvvvyt(add_php_ajax_vvvvvyt)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_vvvvvytvyq_required)
if (!jform_vvvvvyvvyp_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_vvvvvytvyq_required = true;
jform_vvvvvyvvyp_required = true;
}
}
}
// the vvvvvyu function
function vvvvvyu(add_custom_button_vvvvvyu)
// the vvvvvyw function
function vvvvvyw(add_custom_button_vvvvvyw)
{
// set the function logic
if (add_custom_button_vvvvvyu == 1)
if (add_custom_button_vvvvvyw == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvyuvyr_required)
if (jform_vvvvvywvyq_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvyuvyr_required = false;
jform_vvvvvywvyq_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvyuvys_required)
if (jform_vvvvvywvyr_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvyuvys_required = false;
jform_vvvvvywvyr_required = false;
}
}
@ -385,40 +385,40 @@ function vvvvvyu(add_custom_button_vvvvvyu)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvyuvyr_required)
if (!jform_vvvvvywvyq_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvyuvyr_required = true;
jform_vvvvvywvyq_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvyuvys_required)
if (!jform_vvvvvywvyr_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvyuvys_required = true;
jform_vvvvvywvyr_required = true;
}
}
}
// the vvvvvyv function
function vvvvvyv(button_position_vvvvvyv)
// the vvvvvyx function
function vvvvvyx(button_position_vvvvvyx)
{
if (isSet(button_position_vvvvvyv) && button_position_vvvvvyv.constructor !== Array)
if (isSet(button_position_vvvvvyx) && button_position_vvvvvyx.constructor !== Array)
{
var temp_vvvvvyv = button_position_vvvvvyv;
var button_position_vvvvvyv = [];
button_position_vvvvvyv.push(temp_vvvvvyv);
var temp_vvvvvyx = button_position_vvvvvyx;
var button_position_vvvvvyx = [];
button_position_vvvvvyx.push(temp_vvvvvyx);
}
else if (!isSet(button_position_vvvvvyv))
else if (!isSet(button_position_vvvvvyx))
{
var button_position_vvvvvyv = [];
var button_position_vvvvvyx = [];
}
var button_position = button_position_vvvvvyv.some(button_position_vvvvvyv_SomeFunc);
var button_position = button_position_vvvvvyx.some(button_position_vvvvvyx_SomeFunc);
// set this function logic
@ -432,11 +432,11 @@ function vvvvvyv(button_position_vvvvvyv)
}
}
// the vvvvvyv Some function
function button_position_vvvvvyv_SomeFunc(button_position_vvvvvyv)
// the vvvvvyx Some function
function button_position_vvvvvyx_SomeFunc(button_position_vvvvvyx)
{
// set the function logic
if (button_position_vvvvvyv == 5)
if (button_position_vvvvvyx == 5)
{
return true;
}
@ -479,6 +479,7 @@ function isSet(val)
return false;
}
jQuery(document).ready(function()
{
// get the linked details

File diff suppressed because it is too large Load Diff

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_SNIPPET_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_SNIPPET_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_SNIPPET_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_SNIPPET_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_VERSION_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_SNIPPET_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_NAME_HINT" />
<!-- Url Field. Type: Url. (joomla)-->
<field type="url"
hint="COM_COMPONENTBUILDER_SNIPPET_NAME_HINT"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_SNIPPET_URL_LABEL"
size="60"
@ -105,18 +114,22 @@
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_SNIPPET_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_URL_HINT" />
<!-- Type Field. Type: Snippettype. (custom)-->
<field type="snippettype"
hint="COM_COMPONENTBUILDER_SNIPPET_URL_HINT"
/>
<!-- Type Field. Type: Snippettype. (custom) -->
<field
type="snippettype"
name="type"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="true" />
<!-- Heading Field. Type: Text. (joomla)-->
<field type="text"
required="true"
/>
<!-- Heading Field. Type: Text. (joomla) -->
<field
type="text"
name="heading"
label="COM_COMPONENTBUILDER_SNIPPET_HEADING_LABEL"
size="40"
@ -126,9 +139,11 @@
required="true"
filter="HTML"
message="COM_COMPONENTBUILDER_SNIPPET_HEADING_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_HEADING_HINT" />
<!-- Library Field. Type: Library. (custom)-->
<field type="library"
hint="COM_COMPONENTBUILDER_SNIPPET_HEADING_HINT"
/>
<!-- Library Field. Type: Library. (custom) -->
<field
type="library"
name="library"
label="COM_COMPONENTBUILDER_SNIPPET_LIBRARY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_LIBRARY_DESCRIPTION"
@ -136,9 +151,13 @@
multiple="false"
default="0"
required="true"
button="true" />
<!-- Contributor_email Field. Type: Text. (joomla)-->
<field type="text"
button="true"
/>
<!-- Note_contributor_details Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_contributor_details" label="COM_COMPONENTBUILDER_SNIPPET_NOTE_CONTRIBUTOR_DETAILS_LABEL" description="COM_COMPONENTBUILDER_SNIPPET_NOTE_CONTRIBUTOR_DETAILS_DESCRIPTION" heading="h4" class="alert alert-info note_contributor_details" />
<!-- Contributor_email Field. Type: Text. (joomla) -->
<field
type="text"
name="contributor_email"
label="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_EMAIL_LABEL"
size="10"
@ -148,51 +167,11 @@
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_EMAIL_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_EMAIL_HINT" />
<!-- Contributor_website Field. Type: Text. (joomla)-->
<field type="text"
name="contributor_website"
label="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_DESCRIPTION"
class="text_area"
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_HINT" />
<!-- Usage Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="usage"
label="COM_COMPONENTBUILDER_SNIPPET_USAGE_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_USAGE_DESCRIPTION"
class="text_area span12"
filter="STRING"
hint="COM_COMPONENTBUILDER_SNIPPET_USAGE_HINT" />
<!-- Snippet Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="snippet"
label="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_LABEL"
rows="27"
cols="10"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_HINT"
required="true" />
<!-- Description Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="description"
label="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_HINT" />
<!-- Contributor_name Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_EMAIL_HINT"
/>
<!-- Contributor_name Field. Type: Text. (joomla) -->
<field
type="text"
name="contributor_name"
label="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_NAME_LABEL"
size="10"
@ -202,9 +181,25 @@
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_NAME_HINT" />
<!-- Contributor_company Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_NAME_HINT"
/>
<!-- Contributor_website Field. Type: Text. (joomla) -->
<field
type="text"
name="contributor_website"
label="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_DESCRIPTION"
class="text_area"
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_WEBSITE_HINT"
/>
<!-- Contributor_company Field. Type: Text. (joomla) -->
<field
type="text"
name="contributor_company"
label="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_COMPANY_LABEL"
size="10"
@ -214,14 +209,44 @@
readonly="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_COMPANY_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_COMPANY_HINT" />
<!-- Note_contributor_details Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_contributor_details"
label="COM_COMPONENTBUILDER_SNIPPET_NOTE_CONTRIBUTOR_DETAILS_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_NOTE_CONTRIBUTOR_DETAILS_DESCRIPTION"
heading="h4"
class="alert alert-info note_contributor_details" />
hint="COM_COMPONENTBUILDER_SNIPPET_CONTRIBUTOR_COMPANY_HINT"
/>
<!-- Snippet Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="snippet"
label="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_LABEL"
rows="27"
cols="10"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_HINT"
required="true"
/>
<!-- Usage Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="usage"
label="COM_COMPONENTBUILDER_SNIPPET_USAGE_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_USAGE_DESCRIPTION"
class="text_area span12"
filter="STRING"
hint="COM_COMPONENTBUILDER_SNIPPET_USAGE_HINT"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_TYPE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_NAME_HINT" />
<!-- Description Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_NAME_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_LABEL"
size="80"
@ -106,7 +115,8 @@
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_HINT" />
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvywvyt_required = false;
jform_vvvvvyyvys_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyw(add_php_view_vvvvvyw);
var add_php_view_vvvvvyy = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyy(add_php_view_vvvvvyy);
});
// the vvvvvyw function
function vvvvvyw(add_php_view_vvvvvyw)
// the vvvvvyy function
function vvvvvyy(add_php_view_vvvvvyy)
{
// set the function logic
if (add_php_view_vvvvvyw == 1)
if (add_php_view_vvvvvyy == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvywvyt_required)
if (jform_vvvvvyyvys_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvywvyt_required = false;
jform_vvvvvyyvys_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvywvyt_required)
if (!jform_vvvvvyyvys_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvywvyt_required = true;
jform_vvvvvyyvys_required = true;
}
}
}
@ -100,6 +100,7 @@ function isSet(val)
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){

View File

@ -4,83 +4,90 @@
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields.-->
<!-- Id Field. Type: Text (joomla)-->
<field name="id"
type="text"
class="readonly"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
size="10"
default="0" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_TEMPLATE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Created Field. Type: User (joomla)-->
<field name="created_by"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_TEMPLATE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
description="COM_COMPONENTBUILDER_TEMPLATE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla)-->
<field name="modified"
type="calendar"
class="readonly"
label="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_DATE_DESC"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc" />
<!-- User Modified Field. Type: User (joomla)-->
<field name="modified_by"
type="user"
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset" />
<!-- Access Field. Type: Accesslevel (joomla)-->
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false" />
<!-- Ordering Field. Type: Numbers (joomla)-->
<field name="ordering"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_TEMPLATE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_TEMPLATE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_TEMPLATE_NAME_LABEL"
size="40"
@ -92,9 +99,11 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_TEMPLATE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_NAME_HINT" />
<!-- Alias Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_TEMPLATE_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL"
size="40"
@ -103,9 +112,11 @@
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_HINT" />
<!-- Description Field. Type: Text. (joomla)-->
<field type="text"
hint="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_LABEL"
size="80"
@ -117,94 +128,22 @@
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_HINT" />
<!-- Snippet Field. Type: Snippets. (custom)-->
<field type="snippets"
hint="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="true" />
<!-- Dynamic_get Field. Type: Dynamicget. (custom)-->
<field type="dynamicget"
name="dynamic_get"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
button="true" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_language_string"
label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
heading="h4"
class="note_add_language_string" />
<!-- Libraries Field. Type: Libraries. (custom)-->
<field type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Add_php_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_TEMPLATE_YES</option>
<option value="0">COM_COMPONENTBUILDER_TEMPLATE_NO</option>
</field>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_libraries_selection"
label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_LIBRARIES_SELECTION_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_libraries_selection" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_snippet_usage"
label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_SNIPPET_USAGE_LABEL"
heading="h4"
class="snippet-usage note_snippet_usage" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="dynamic_values"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_DESCRIPTION"
heading="h4"
class="dynamic_values" />
<!-- Template Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="template"
label="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT"
required="true" />
<!-- Php_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_LABEL"
rows="17"
@ -213,7 +152,72 @@
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_HINT"
required="true" />
required="true"
/>
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_TEMPLATE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_TEMPLATE_NO</option>
</field>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Dynamic_get Field. Type: Dynamicget. (custom) -->
<field
type="dynamicget"
name="dynamic_get"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
button="true"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Template Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="template"
label="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true"
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -767,7 +767,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
protected function moveSmartStuff()
{
// make sure to first unlock files
$this->unLockFiles($this->dir);
$this->unLockFiles();
// set params
$params = JComponentHelper::getParams('com_componentbuilder');
// set custom folder path
@ -796,6 +796,43 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$success = false;
}
}
// now move the dynamic files if found
$dynamicDir = str_replace('//', '/', $this->dir . '/dynamic');
if (JFolder::exists($dynamicDir))
{
// get a list of folders
$folders = JFolder::folders($dynamicDir);
// check if we have files
if(ComponentbuilderHelper::checkArray($folders))
{
foreach ($folders as $folder)
{
$destination = $this->setDynamicPath($folder);
$fullPath = str_replace('//', '/', $dynamicDir . '/' . $folder);
if (!JFolder::exists($fullPath) || !JFolder::copy($fullPath, $destination,'',true))
{
$this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_FOLDER_BSB_WAS_NOT_MOVE_TO_S', $folder, $destination), 'error');
$success = false;
}
}
}
// get a list of files
$files = JFolder::files($dynamicDir);
// check if we have files
if(ComponentbuilderHelper::checkArray($files))
{
foreach ($files as $file)
{
$destination = $this->setDynamicPath($file);
$fullPath = str_replace('//', '/', $dynamicDir . '/' . $file);
if (!JFile::exists($fullPath) || !JFile::copy($fullPath, $destination))
{
$this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_FILE_BSB_WAS_NOT_MOVE_TO_S', $file, $destination), 'error');
$success = false;
}
}
}
}
return $success;
}
@ -812,19 +849,17 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$unlocker = new FOFEncryptAes($this->sleutle, 128);
// we must first store the current working directory
$joomla = getcwd();
// setup the type path
$customPath = str_replace('//', '/', $this->dir . '/custom');
// go to the custom folder if found
if (JFolder::exists($customPath))
// to avoid that it decrypt the db and info file again we must move per/folder
$folders = array('images', 'custom', 'dynamic');
// loop the folders
foreach ($folders as $folder)
{
$this->unlock($customPath, $unlocker);
$subPath = str_replace('//', '/', $this->dir . '/' . $folder);
// go to the package sub folder if found
if (JFolder::exists($subPath))
{
$this->unlock($subPath, $unlocker);
}
// setup the type path
$imagesPath = str_replace('//', '/', $this->dir . '/images');
// go to the custom folder if found
if (JFolder::exists($imagesPath))
{
$this->unlock($imagesPath, $unlocker);
}
// change back to working dir
chdir($joomla);
@ -983,10 +1018,10 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
foreach($values as $value)
{
// first check if exist (only add if it does not)
if (!$this->getLocalItem($value, $table, 1))
if (!$this->getLocalItem($value, $table, 1, 1, true))
{
// add the diverged data
$this->addLocalItem($value, $table);
$this->addLocalItem($value, $table, true);
}
}
}
@ -1226,12 +1261,13 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
* @param object $item The item to prep
* @param string $type The type of values
* @param string $action The action (add/update)
* @param bool $diverged The diverged data switch
*
* @return mixed false on failure
* object on success
*
**/
protected function prepItem($item, &$type, $action)
protected function prepItem($item, &$type, $action, $diverged = false)
{
// remove access
if (isset($item->access))
@ -1528,8 +1564,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$item = ComponentbuilderHelper::convertRepeatableFields($item, $updaterR);
break;
case 'component_admin_views':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1546,8 +1586,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_admin_views', $updaterT);
break;
case 'component_site_views':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1564,8 +1608,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_site_views', $updaterT);
break;
case 'component_custom_admin_views':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1582,8 +1630,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_custom_admin_views', $updaterT);
break;
case 'component_updates':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1593,8 +1645,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$item = ComponentbuilderHelper::convertRepeatableFields($item, $updaterR);
break;
case 'component_mysql_tweaks':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1611,8 +1667,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_mysql_tweaks', $updaterT);
break;
case 'component_custom_admin_menus':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1629,8 +1689,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_custom_admin_menus', $updaterT);
break;
case 'component_config':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1647,8 +1711,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->updateSubformsIDs($item, 'component_config', $updaterT);
break;
case 'component_dashboard':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1658,8 +1726,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$item = ComponentbuilderHelper::convertRepeatableFields($item, $updaterR);
break;
case 'component_files_folders':
// diverged id already updated
if (!$diverged)
{
// update the joomla_component ID where needed
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
}
// repeatable fields to update
$updaterR = array(
// repeatablefield => checker
@ -1784,8 +1856,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
break;
case 'admin_fields':
case 'admin_fields_conditions':
// diverged id already updated
if (!$diverged)
{
// update the admin_view ID where needed
$item = $this->setNewID($item, 'admin_view', 'admin_view', $type);
}
// set the updater
if ('admin_fields' === $type)
{
@ -2008,15 +2084,16 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
*
* @param object $item The item to update
* @param string $type The type of values
* @param bool $diverged The diverged data switch
*
* @return mixed false on failure
* ID int on success
*
**/
protected function addLocalItem(&$item, &$type)
protected function addLocalItem(&$item, &$type, $diverged = false)
{
// prep the item
if ($add = $this->prepItem($item, $type, 'add'))
if ($add = $this->prepItem($item, $type, 'add', $diverged))
{
// insert/add the item
if ($result = $this->_db->insertObject('#__componentbuilder_' . $type, $add))
@ -2038,12 +2115,13 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
* @param string $type The type of values
* @param bool $retry The retry switch
* @param bool $get The query get switch
* @param bool $diverged The diverged data switch
*
* @return mixed false on failure
* ID int on success
*
**/
protected function getLocalItem(&$item, &$type, $retry = false, $get = 1)
protected function getLocalItem(&$item, &$type, $retry = false, $get = 1, $diverged = false)
{
$query = $this->_db->getQuery(true);
$query->select('a.*');
@ -2154,7 +2232,15 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
// get by admin_view (since there should only be one of each name)
$getter = array('admin_view');
$this->specialValue = array();
// Yet if diverged it makes sense that the ID is updated.
if ($diverged)
{
$this->specialValue['admin_view'] = (int) $item->admin_view;
}
elseif (isset($this->newID['admin_view'][(int) $item->admin_view]))
{
$this->specialValue['admin_view'] = $this->newID['admin_view'][(int) $item->admin_view];
}
break;
case 'fieldtype':
// get by name (since there should only be one of each name)
@ -2304,10 +2390,23 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
case 'component_config':
case 'component_dashboard':
case 'component_files_folders':
// get by admin_view (since there should only be one of each name)
// get by joomla_component (since there should only be one of each component)
$getter = array('joomla_component');
$this->specialValue = array();
// Yet if diverged it makes sense that the ID is updated.
if ($diverged)
{
$this->specialValue['joomla_component'] = (int) $item->joomla_component;
}
elseif (isset($this->newID['joomla_component'][(int) $item->joomla_component]))
{
$this->specialValue['joomla_component'] = $this->newID['joomla_component'][(int) $item->joomla_component];
}
// (TODO) I have seen this happen, seems dangerous!
else
{
return false;
}
break;
case 'language_translation':
// get by English translation since there should just be one
@ -2545,6 +2644,34 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
return false;
}
/**
* Update constant path with real full path value
*
* @param string $path The full path
*
* @return string The updated path
*
*/
protected function setFullPath($path)
{
return str_replace(array_keys(ComponentbuilderHelper::$constantPaths), array_values(ComponentbuilderHelper::$constantPaths), $path);
}
/**
* Convert the name to a path
*
* @param string $path The path name
*
* @return string The full path *
*/
protected function setDynamicPath($path)
{
// now convert to path
$path = str_replace('__v_d_m__', '/', $path);
// add the full path if possible
return str_replace('//', '/', $this->setFullPath($path));
}
protected function getAlias($name,$type = false)
{
// sanitize the name to an alias

View File

@ -108,28 +108,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->addcontributors = $addcontributors->toArray();
}
if (!empty($item->readme))
if (!empty($item->php_postflight_update))
{
// base64 Decode readme.
$item->readme = base64_decode($item->readme);
}
if (!empty($item->php_postflight_install))
{
// base64 Decode php_postflight_install.
$item->php_postflight_install = base64_decode($item->php_postflight_install);
}
if (!empty($item->php_preflight_install))
{
// base64 Decode php_preflight_install.
$item->php_preflight_install = base64_decode($item->php_preflight_install);
}
if (!empty($item->php_method_uninstall))
{
// base64 Decode php_method_uninstall.
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
// base64 Decode php_postflight_update.
$item->php_postflight_update = base64_decode($item->php_postflight_update);
}
if (!empty($item->php_preflight_update))
@ -138,10 +120,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->php_preflight_update = base64_decode($item->php_preflight_update);
}
if (!empty($item->php_postflight_update))
if (!empty($item->javascript))
{
// base64 Decode php_postflight_update.
$item->php_postflight_update = base64_decode($item->php_postflight_update);
// base64 Decode javascript.
$item->javascript = base64_decode($item->javascript);
}
if (!empty($item->css_site))
{
// base64 Decode css_site.
$item->css_site = base64_decode($item->css_site);
}
if (!empty($item->sql))
@ -150,52 +138,64 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->sql = base64_decode($item->sql);
}
if (!empty($item->php_helper_both))
{
// base64 Decode php_helper_both.
$item->php_helper_both = base64_decode($item->php_helper_both);
}
if (!empty($item->php_helper_admin))
{
// base64 Decode php_helper_admin.
$item->php_helper_admin = base64_decode($item->php_helper_admin);
}
if (!empty($item->php_admin_event))
{
// base64 Decode php_admin_event.
$item->php_admin_event = base64_decode($item->php_admin_event);
}
if (!empty($item->php_helper_site))
{
// base64 Decode php_helper_site.
$item->php_helper_site = base64_decode($item->php_helper_site);
}
if (!empty($item->php_helper_both))
{
// base64 Decode php_helper_both.
$item->php_helper_both = base64_decode($item->php_helper_both);
}
if (!empty($item->php_admin_event))
{
// base64 Decode php_admin_event.
$item->php_admin_event = base64_decode($item->php_admin_event);
}
if (!empty($item->php_site_event))
{
// base64 Decode php_site_event.
$item->php_site_event = base64_decode($item->php_site_event);
}
if (!empty($item->javascript))
{
// base64 Decode javascript.
$item->javascript = base64_decode($item->javascript);
}
if (!empty($item->css_admin))
{
// base64 Decode css_admin.
$item->css_admin = base64_decode($item->css_admin);
}
if (!empty($item->css_site))
if (!empty($item->php_preflight_install))
{
// base64 Decode css_site.
$item->css_site = base64_decode($item->css_site);
// base64 Decode php_preflight_install.
$item->php_preflight_install = base64_decode($item->php_preflight_install);
}
if (!empty($item->php_postflight_install))
{
// base64 Decode php_postflight_install.
$item->php_postflight_install = base64_decode($item->php_postflight_install);
}
if (!empty($item->php_method_uninstall))
{
// base64 Decode php_method_uninstall.
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
}
if (!empty($item->readme))
{
// base64 Decode readme.
$item->readme = base64_decode($item->readme);
}
if (!empty($item->buildcompsql))
@ -207,7 +207,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
// Get the basic encryption.
$basickey = ComponentbuilderHelper::getCryptKey('basic');
// Get the encryption object.
$basic = new FOFEncryptAes($basickey, 128);
$basic = new FOFEncryptAes($basickey);
if (!empty($item->whmcs_key) && $basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
{
@ -279,194 +279,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_component');
}
}
$this->componentsvvvv = $item->id;
return $item;
}
/**
* Method to get list data.
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVwntranslation()
{
// Get the user object.
$user = JFactory::getUser();
// Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// Select some fields
$query->select('a.*');
// From the componentbuilder_language_translation table
$query->from($db->quoteName('#__componentbuilder_language_translation', 'a'));
// Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// Implement View Level Access
if (!$user->authorise('core.options', 'com_componentbuilder'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// Order the results by ordering
$query->order('a.published ASC');
$query->order('a.ordering ASC');
// Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// set values to display correctly.
if (ComponentbuilderHelper::checkArray($items))
{
// get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
$access = ($user->authorise('language_translation.access', 'com_componentbuilder.language_translation.' . (int) $item->id) && $user->authorise('language_translation.access', 'com_componentbuilder'));
if (!$access)
{
unset($items[$nr]);
continue;
}
}
}
// Filter by componentsvvvv Array Field
$componentsvvvv = $this->componentsvvvv;
if (ComponentbuilderHelper::checkArray($items) && $componentsvvvv)
{
foreach ($items as $nr => &$item)
{
if (ComponentbuilderHelper::checkJson($item->components))
{
$item->components = json_decode($item->components, true);
}
elseif (!isset($item->components) || !ComponentbuilderHelper::checkArray($item->components))
{
unset($items[$nr]);
continue;
}
if (!in_array($componentsvvvv,$item->components))
{
unset($items[$nr]);
continue;
}
}
}
else
{
return false;
}
// show all languages that are already set for this string
if (!isset($_export) && ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
$langBucket = array();
if (ComponentbuilderHelper::checkJson($item->translation))
{
$translations = json_decode($item->translation, true);
if (ComponentbuilderHelper::checkArray($translations))
{
foreach ($translations as $language)
{
if (isset($language['translation']) && ComponentbuilderHelper::checkString($language['translation'])
&& isset($language['language']) && ComponentbuilderHelper::checkString($language['language']))
{
$langBucket[$language['language']] = $language['language'];
}
}
}
}
// set how many component use this string
$componentCounter = '';
if (ComponentbuilderHelper::checkJson($item->components))
{
$item->components = json_decode($item->components, true);
}
if (ComponentbuilderHelper::checkArray($item->components))
{
$componentCounter = ' - <small>' . JText::_('COM_COMPONENTBUILDER_USED_IN') . ' ' . count($item->components) . '</small>';
}
// load the languages to the string
if (ComponentbuilderHelper::checkArray($langBucket))
{
$item->entranslation = '<small><em>(' . implode(', ', $langBucket) . ')</em></small> ' . ComponentbuilderHelper::htmlEscape($item->entranslation, 'UTF-8', true, 150) . $componentCounter;
}
else
{
$item->entranslation = '<small><em>(' . JText::_('COM_COMPONENTBUILDER_NOTRANSLATION') . ')</em></small> ' . ComponentbuilderHelper::htmlEscape($item->entranslation, 'UTF-8', true, 150) . $componentCounter;
}
}
}
// prep the lang strings for export
if (isset($_export) && $_export && ComponentbuilderHelper::checkArray($items))
{
// insure we have the same order in the languages
$languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag');
foreach ($items as $nr => &$item)
{
// remove some values completely
unset($item->components);
unset($item->params);
unset($item->published);
unset($item->created_by);
unset($item->modified_by);
unset($item->created);
unset($item->modified);
unset($item->version);
unset($item->hits);
unset($item->access);
unset($item->ordering);
// set the lang order
if ($nr != 0)
{
foreach ($languages as $lanTag)
{
$item->{$lanTag} = '';
}
// now adapt the entranslation
if (isset($item->translation) && ComponentbuilderHelper::checkJson($item->translation))
{
$translations = json_decode($item->translation, true);
if (ComponentbuilderHelper::checkArray($translations))
{
foreach ($translations as $language)
{
if (isset($language['translation']) && ComponentbuilderHelper::checkString($language['translation'])
&& isset($language['language']) && ComponentbuilderHelper::checkString($language['language']))
{
$item->{$language['language']} = $language['translation'];
}
}
}
}
}
// remove translation
unset($item->translation);
}
}
return $items;
}
return false;
}
/**
* Method to get the record form.
*
@ -1247,28 +1063,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['addcontributors'] = '';
}
// Set the readme string to base64 string.
if (isset($data['readme']))
// Set the php_postflight_update string to base64 string.
if (isset($data['php_postflight_update']))
{
$data['readme'] = base64_encode($data['readme']);
}
// Set the php_postflight_install string to base64 string.
if (isset($data['php_postflight_install']))
{
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
}
// Set the php_preflight_install string to base64 string.
if (isset($data['php_preflight_install']))
{
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
}
// Set the php_method_uninstall string to base64 string.
if (isset($data['php_method_uninstall']))
{
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
}
// Set the php_preflight_update string to base64 string.
@ -1277,10 +1075,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
}
// Set the php_postflight_update string to base64 string.
if (isset($data['php_postflight_update']))
// Set the javascript string to base64 string.
if (isset($data['javascript']))
{
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
$data['javascript'] = base64_encode($data['javascript']);
}
// Set the css_site string to base64 string.
if (isset($data['css_site']))
{
$data['css_site'] = base64_encode($data['css_site']);
}
// Set the sql string to base64 string.
@ -1289,52 +1093,64 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['sql'] = base64_encode($data['sql']);
}
// Set the php_helper_both string to base64 string.
if (isset($data['php_helper_both']))
{
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
}
// Set the php_helper_admin string to base64 string.
if (isset($data['php_helper_admin']))
{
$data['php_helper_admin'] = base64_encode($data['php_helper_admin']);
}
// Set the php_admin_event string to base64 string.
if (isset($data['php_admin_event']))
{
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
}
// Set the php_helper_site string to base64 string.
if (isset($data['php_helper_site']))
{
$data['php_helper_site'] = base64_encode($data['php_helper_site']);
}
// Set the php_helper_both string to base64 string.
if (isset($data['php_helper_both']))
{
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
}
// Set the php_admin_event string to base64 string.
if (isset($data['php_admin_event']))
{
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
}
// Set the php_site_event string to base64 string.
if (isset($data['php_site_event']))
{
$data['php_site_event'] = base64_encode($data['php_site_event']);
}
// Set the javascript string to base64 string.
if (isset($data['javascript']))
{
$data['javascript'] = base64_encode($data['javascript']);
}
// Set the css_admin string to base64 string.
if (isset($data['css_admin']))
{
$data['css_admin'] = base64_encode($data['css_admin']);
}
// Set the css_site string to base64 string.
if (isset($data['css_site']))
// Set the php_preflight_install string to base64 string.
if (isset($data['php_preflight_install']))
{
$data['css_site'] = base64_encode($data['css_site']);
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
}
// Set the php_postflight_install string to base64 string.
if (isset($data['php_postflight_install']))
{
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
}
// Set the php_method_uninstall string to base64 string.
if (isset($data['php_method_uninstall']))
{
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
}
// Set the readme string to base64 string.
if (isset($data['readme']))
{
$data['readme'] = base64_encode($data['readme']);
}
// Set the buildcompsql string to base64 string.
@ -1346,7 +1162,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
// Get the basic encryption key.
$basickey = ComponentbuilderHelper::getCryptKey('basic');
// Get the encryption object
$basic = new FOFEncryptAes($basickey, 128);
$basic = new FOFEncryptAes($basickey);
// Encrypt data whmcs_key.
if (isset($data['whmcs_key']) && $basickey)

View File

@ -216,6 +216,18 @@ class ComponentbuilderModelJoomla_components extends JModelList
unset($items[$nr]);
continue;
}
// make sure old fields are not exported any more
unset($item->addconfig);
unset($item->addadmin_views);
unset($item->addcustom_admin_views);
unset($item->addsite_views);
unset($item->version_update);
unset($item->sql_tweak);
unset($item->addcustommenus);
unset($item->dashboard_tab);
unset($item->php_dashboard_methods);
unset($item->addfiles);
unset($item->addfolders);
// build information data set
$this->info['name'][$item->id] = $item->name;
$this->info['short_description'][$item->id] = $item->short_description;
@ -273,17 +285,24 @@ class ComponentbuilderModelJoomla_components extends JModelList
// add to pks
$pks[] = $item->id;
}
// array of tables linked to joomla_component
$linkedTables = array(
'custom_code' => 'component',
'component_files_folders' => 'joomla_component',
'component_admin_views' => 'joomla_component',
'component_config' => 'joomla_component',
'component_site_views' => 'joomla_component',
'component_custom_admin_views' => 'joomla_component',
'component_updates' => 'joomla_component',
'component_mysql_tweaks' => 'joomla_component',
'component_custom_admin_menus' => 'joomla_component',
'component_dashboard' => 'joomla_component' );
// load all tables linked to joomla_component
$this->setData('custom_code', $pks, 'component');
$this->setData('component_files_folders', $pks, 'joomla_component');
$this->setData('component_admin_views', $pks, 'joomla_component');
$this->setData('component_config', $pks, 'joomla_component');
$this->setData('component_site_views', $pks, 'joomla_component');
$this->setData('component_custom_admin_views', $pks, 'joomla_component');
$this->setData('component_updates', $pks, 'joomla_component');
$this->setData('component_mysql_tweaks', $pks, 'joomla_component');
$this->setData('component_custom_admin_menus', $pks, 'joomla_component');
$this->setData('component_dashboard', $pks, 'joomla_component');
foreach($linkedTables as $table => $field)
{
$this->setData($table, $pks, $field);
}
// add fields and conditions
if (isset($this->exportIDs['admin_view']) && ComponentbuilderHelper::checkArray($this->exportIDs['admin_view']))
{
@ -320,7 +339,8 @@ class ComponentbuilderModelJoomla_components extends JModelList
{
$this->setData('custom_code', array_values($this->exportIDs['custom_code']), 'id');
}
// has any data been set
// has any data been set for this component
if (isset($this->smartExport['joomla_component']) && ComponentbuilderHelper::checkArray($this->smartExport['joomla_component']))
{
// set the folder and move the files of each component to the folder
@ -553,6 +573,10 @@ class ComponentbuilderModelJoomla_components extends JModelList
$this->moveIt($this->getValues($item->addfiles, 'subform', 'file', null), 'file');
// build folders
$this->moveIt($this->getValues($item->addfolders, 'subform', 'folder', null), 'folder');
// build full path files
$this->moveIt($this->getValues($item->addfilesfullpath, 'subform', 'filepath', null), 'file', true);
// build full path folders
$this->moveIt($this->getValues($item->addfoldersfullpath, 'subform', 'folderpath', null), 'folder', true);
}
// actions to take if table is component_config
if ('component_config' === $table)
@ -596,6 +620,13 @@ class ComponentbuilderModelJoomla_components extends JModelList
// add fields
$this->setData('field', $this->getValues($item->addfields, 'subform', 'field'), 'id');
}
// actions to take if table is admin_fields_conditions
if ('admin_fields_conditions' === $table)
{
// add fields
$this->setData('field', $this->getValues($item->addconditions, 'subform', 'target_field'), 'id');
$this->setData('field', $this->getValues($item->addconditions, 'subform', 'match_field'), 'id');
}
// actions to take if table is field
if ('field' === $table)
{
@ -681,6 +712,9 @@ class ComponentbuilderModelJoomla_components extends JModelList
* @return void
*/
protected function smartExportBuilder()
{
// check if data is set
if (isset($this->smartExport) && ComponentbuilderHelper::checkArray($this->smartExport))
{
// set db data
$data = serialize($this->smartExport);
@ -763,6 +797,8 @@ class ComponentbuilderModelJoomla_components extends JModelList
}
return true;
}
return false;
}
/**
* Method to lock all files
@ -777,19 +813,18 @@ class ComponentbuilderModelJoomla_components extends JModelList
$locker = new FOFEncryptAes($this->key, 128);
// we must first store the current working directory
$joomla = getcwd();
// setup the type path
$customPath = $this->packagePath . '/custom';
// go to the custom folder if found
if (JFolder::exists($customPath))
// to avoid that it encrypt the db and info file again we must move per/folder
$folders = array('images', 'custom', 'dynamic');
// loop the folders
foreach ($folders as $folder)
{
$this->lock($customPath, $locker);
// the sub path
$subPath = $this->packagePath.'/'.$folder;
// go to the package sub folder if found
if (JFolder::exists($subPath))
{
$this->lock($subPath, $locker);
}
// setup the type path
$imagesPath = $this->packagePath . '/images';
// go to the custom folder if found
if (JFolder::exists($imagesPath))
{
$this->lock($imagesPath, $locker);
}
// change back to working dir
chdir($joomla);
@ -823,7 +858,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
*
* @return bool
*/
protected function moveIt($paths, $type)
protected function moveIt($paths, $type, $dynamic = false)
{
// make sure we have an array
if (!ComponentbuilderHelper::checkArray($paths))
@ -834,11 +869,20 @@ class ComponentbuilderModelJoomla_components extends JModelList
if ('file' === $type || 'folder' === $type)
{
$folderName = 'custom';
// if these are full paths use dynamic folder
if ($dynamic)
{
$folderName = 'dynamic';
}
if ('image' === $type)
}
elseif ('image' === $type)
{
$folderName = 'images';
}
else
{
return false;
}
// setup the type path
$tmpPath = str_replace('//', '/', $this->packagePath . '/' . $folderName);
// create type path if not set
@ -850,19 +894,31 @@ class ComponentbuilderModelJoomla_components extends JModelList
// now move it
foreach ($paths as $item)
{
// make sure we have a string
if (ComponentbuilderHelper::checkString($item))
{
// if the file type
if ('file' === $type)
{
// TODO we must add the new all over files to this... will be a little tricky.
// if dynamic paths
if ($dynamic)
{
$tmpFilePath = $tmpPath.'/'.$this->setDynamicPathName($item);
$customFilePath = str_replace('//', '/', $this->setFullPath($item));
}
else
{
$tmpFilePath = str_replace('//', '/', $tmpPath.'/'.$item);
$customFilePath = str_replace('//', '/', $this->customPath.'/'.$item);
}
// now check if file exist
if (!JFile::exists($tmpFilePath) && JFile::exists($customFilePath))
{
// move the file to its place
JFile::copy($customFilePath, $tmpFilePath);
}
}
// if the image type
if ('image' === $type)
{
$imageName = basename($item);
@ -882,10 +938,20 @@ class ComponentbuilderModelJoomla_components extends JModelList
JFile::copy($customImagePath, $tmpImagePath);
}
}
// if the folder type
if ('folder' === $type)
{
// if dynamic paths
if ($dynamic)
{
$tmpFolderPath = $tmpPath.'/'.$this->setDynamicPathName($item);
$customFolderPath = str_replace('//', '/', $this->setFullPath($item));
}
else
{
$tmpFolderPath = str_replace('//', '/', $tmpPath.'/'.$item);
$customFolderPath = str_replace('//', '/', $this->customPath.'/'.$item);
}
if (!JFolder::exists($tmpFolderPath) && JFolder::exists($customFolderPath))
{
// move the folder to its place
@ -1253,6 +1319,48 @@ class ComponentbuilderModelJoomla_components extends JModelList
}
}
/**
* Convert the path to a name
*
* @param string $path The full path
*
* @return string The path name
*
*/
protected function setDynamicPathName($path)
{
// remove the full path if possible
$path = str_replace('//', '/', $this->setConstantPath($path));
// now convert to string
return str_replace('/', '__v_d_m__', $path);
}
/**
* Update real full path value with constant path string
*
* @param string $path The full path
*
* @return string The updated path
*
*/
protected function setConstantPath($path)
{
return str_replace(array_values(ComponentbuilderHelper::$constantPaths), array_keys(ComponentbuilderHelper::$constantPaths), $path);
}
/**
* Update constant path with real full path value
*
* @param string $path The full path
*
* @return string The updated path
*
*/
protected function setFullPath($path)
{
return str_replace(array_keys(ComponentbuilderHelper::$constantPaths), array_values(ComponentbuilderHelper::$constantPaths), $path);
}
/**
* Get the keys of the values to search custom code in
*
@ -1604,7 +1712,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
// Get the basic encryption key.
$basickey = ComponentbuilderHelper::getCryptKey('basic');
// Get the encryption object.
$basic = new FOFEncryptAes($basickey, 128);
$basic = new FOFEncryptAes($basickey);
// set values to display correctly.
if (ComponentbuilderHelper::checkArray($items))
@ -1620,41 +1728,41 @@ class ComponentbuilderModelJoomla_components extends JModelList
continue;
}
// decode readme
$item->readme = base64_decode($item->readme);
// decode php_postflight_install
$item->php_postflight_install = base64_decode($item->php_postflight_install);
// decode php_preflight_install
$item->php_preflight_install = base64_decode($item->php_preflight_install);
// decode php_method_uninstall
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
// decode php_postflight_update
$item->php_postflight_update = base64_decode($item->php_postflight_update);
// decode php_preflight_update
$item->php_preflight_update = base64_decode($item->php_preflight_update);
// decode javascript
$item->javascript = base64_decode($item->javascript);
// decode css_site
$item->css_site = base64_decode($item->css_site);
// decode sql
$item->sql = base64_decode($item->sql);
// decode php_helper_admin
$item->php_helper_admin = base64_decode($item->php_helper_admin);
// decode php_helper_site
$item->php_helper_site = base64_decode($item->php_helper_site);
// decode php_helper_both
$item->php_helper_both = base64_decode($item->php_helper_both);
// decode php_admin_event
$item->php_admin_event = base64_decode($item->php_admin_event);
// decode php_site_event
$item->php_site_event = base64_decode($item->php_site_event);
// decode css_admin
$item->css_admin = base64_decode($item->css_admin);
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
{
// decrypt whmcs_key
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
}
// decode php_preflight_update
$item->php_preflight_update = base64_decode($item->php_preflight_update);
// decode php_postflight_update
$item->php_postflight_update = base64_decode($item->php_postflight_update);
// decode sql
$item->sql = base64_decode($item->sql);
// decode php_helper_both
$item->php_helper_both = base64_decode($item->php_helper_both);
// decode php_helper_admin
$item->php_helper_admin = base64_decode($item->php_helper_admin);
// decode php_admin_event
$item->php_admin_event = base64_decode($item->php_admin_event);
// decode php_helper_site
$item->php_helper_site = base64_decode($item->php_helper_site);
// decode php_site_event
$item->php_site_event = base64_decode($item->php_site_event);
// decode javascript
$item->javascript = base64_decode($item->javascript);
// decode css_admin
$item->css_admin = base64_decode($item->css_admin);
// decode css_site
$item->css_site = base64_decode($item->css_site);
// decode php_preflight_install
$item->php_preflight_install = base64_decode($item->php_preflight_install);
// decode php_postflight_install
$item->php_postflight_install = base64_decode($item->php_postflight_install);
// decode php_method_uninstall
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
// decode readme
$item->readme = base64_decode($item->readme);
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
{
// decrypt export_key

View File

@ -103,18 +103,18 @@ class ComponentbuilderModelLayout extends JModelAdmin
$item->libraries = $libraries->toArray();
}
if (!empty($item->layout))
{
// base64 Decode layout.
$item->layout = base64_decode($item->layout);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->layout))
{
// base64 Decode layout.
$item->layout = base64_decode($item->layout);
}
if (!empty($item->id))
{
$item->tags = new JHelperTags;
@ -839,18 +839,18 @@ class ComponentbuilderModelLayout extends JModelAdmin
$data['libraries'] = '';
}
// Set the layout string to base64 string.
if (isset($data['layout']))
{
$data['layout'] = base64_encode($data['layout']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the layout string to base64 string.
if (isset($data['layout']))
{
$data['layout'] = base64_encode($data['layout']);
}
// Set the Params Items to data
if (isset($data['params']) && is_array($data['params']))
{

View File

@ -271,10 +271,10 @@ class ComponentbuilderModelLayouts extends JModelList
continue;
}
// decode layout
$item->layout = base64_decode($item->layout);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode layout
$item->layout = base64_decode($item->layout);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);

Some files were not shown because too many files have changed in this diff Show More