Added the feature to add custom Joomla fields to your components, requested in gh-247. Added plugin events to the dynamic get area. Added the script to remove field build in relation to component when component gets uninstalled. Improved the getForm method in the model to allow the passing of options to the form. Made further improvements to the implementation of the return parameter across the component redirecting behavior. Made some changes to the list layout views using the field relations area.

This commit is contained in:
Llewellyn van der Merwe 2018-08-23 03:37:42 +02:00
parent 5a8124fa29
commit fdc66fe4c7
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
96 changed files with 4102 additions and 2851 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.8.6) 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.8.8) 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)
@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
+ *Last Build*: 19th August, 2018
+ *Version*: 2.8.6
+ *Last Build*: 23rd August, 2018
+ *Version*: 2.8.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **187854**
+ *Field count*: **1061**
+ *File count*: **1240**
+ *Line count*: **188906**
+ *Field count*: **1063**
+ *File count*: **1243**
+ *Folder count*: **197**
> This **component** was build with a Joomla [Automated Component Builder](http://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.8.6) 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.8.8) 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)
@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
+ *Last Build*: 19th August, 2018
+ *Version*: 2.8.6
+ *Last Build*: 23rd August, 2018
+ *Version*: 2.8.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **187854**
+ *Field count*: **1061**
+ *File count*: **1240**
+ *Line count*: **188906**
+ *Field count*: **1063**
+ *File count*: **1243**
+ *Folder count*: **197**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).

View File

@ -101,13 +101,16 @@ class ###Component###Model###View### extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{###JMODELADMIN_GETFORM###
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;###JMODELADMIN_GETFORM###
}
/**

View File

@ -101,13 +101,16 @@ class ###Component###Model###View### extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{###JMODELADMIN_GETFORM###
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;###JMODELADMIN_GETFORM###
}
/**

View File

@ -370,6 +370,13 @@ class Get
*/
public $setTagHistory = false;
/**
* The Joomla Fields Switch
*
* @var boolean
*/
public $setJoomlaFields = false;
/**
* The site edit views
*
@ -1078,6 +1085,10 @@ class Get
{
$this->setTagHistory = true;
}
if (isset($array['joomla_fields']) && $array['joomla_fields'] && !$this->setJoomlaFields)
{
$this->setJoomlaFields = true;
}
// has become a lacacy issue, can't remove this
$array['view'] = $array['adminview'];
// get the admin settings/data
@ -2974,6 +2985,15 @@ class Get
{
unset($result->global);
}
// load the events if any is set
if ($result->gettype == 1 && ComponentbuilderHelper::checkJson($result->plugin_events))
{
$result->plugin_events = json_decode($result->plugin_events, true);
}
else
{
$result->plugin_events = '';
}
}
return $results;
}

View File

@ -3120,6 +3120,14 @@ class Interpretation extends Fields
$method = '';
if (isset($view['settings']->main_get) && ComponentbuilderHelper::checkObject($view['settings']->main_get))
{
// add events if needed
if ($view['settings']->main_get->gettype == 1 && ComponentbuilderHelper::checkArray($view['settings']->main_get->plugin_events))
{
// load the dispatcher
$method .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Initialise dispatcher.";
$method .= PHP_EOL . $this->_t(2) . "\$dispatcher = JEventDispatcher::getInstance();";
}
if ($view['settings']->main_get->gettype == 1)
{
// for single views
@ -3191,7 +3199,31 @@ class Interpretation extends Fields
$method .= PHP_EOL . $this->_t(2) . "{";
$method .= PHP_EOL . $this->_t(3) . "throw new Exception(implode(" . '"\n", $errors), 500);';
$method .= PHP_EOL . $this->_t(2) . "}";
// add events if needed
if ($view['settings']->main_get->gettype == 1 && ComponentbuilderHelper::checkArray($view['settings']->main_get->plugin_events))
{
$method .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Process the content plugins.";
$method .= PHP_EOL . $this->_t(2) . "JPluginHelper::importPlugin('content');";
$method .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Setup Event Object.";
$method .= PHP_EOL . $this->_t(2) . "\$this->item->event = new stdClass;";
// load the defaults
foreach ($view['settings']->main_get->plugin_events as $plugin_event)
{
// load the events
if ('onContentPrepare' === $plugin_event)
{
// TODO the onContentPrepare already gets triggered on the fields of its relation
// $method .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " onContentPrepare Event Trigger.";
// $method .= PHP_EOL . $this->_t(2) . "\$dispatcher->trigger('onContentPrepare', array ('com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . ".article', &\$this->item, &\$this->params, 0));";
}
else
{
$method .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " " . $plugin_event . " Event Trigger.";
$method .= PHP_EOL . $this->_t(2) . "\$results = \$dispatcher->trigger('" . $plugin_event . "', array('com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . ".article', &\$this->item, &\$this->params, 0));";
$method .= PHP_EOL . $this->_t(2) . '$this->item->event->' . $plugin_event . ' = trim(implode("\n", $results));';
}
}
}
$method .= PHP_EOL . PHP_EOL . $this->_t(2) . "parent::display(\$tpl);";
}
return $method;
@ -4737,6 +4769,94 @@ class Interpretation extends Fields
// set a var value
$view = ComponentbuilderHelper::safeString($viewName);
// check if it has field relations
if (isset($this->uninstallScriptFields) && isset($this->uninstallScriptFields[$viewName]))
{
// First check if data is till in table
$script .= PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(2) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Select ids from fields";
$script .= PHP_EOL . $this->_t(2) . "\$query->select(\$db->quoteName('id'));";
$script .= PHP_EOL . $this->_t(2) . "\$query->from(\$db->quoteName('#__fields'));";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Where " . $viewName . " context is found";
$script .= PHP_EOL . $this->_t(2) . "\$query->where( \$db->quoteName('context') . ' = '. \$db->quote('" . $typeAlias . "') );";
$script .= PHP_EOL . $this->_t(2) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Execute query to see if context is found";
$script .= PHP_EOL . $this->_t(2) . "\$db->execute();";
$script .= PHP_EOL . $this->_t(2) . "\$" . $view . "_found = \$db->getNumRows();";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Now check if there were any rows";
$script .= PHP_EOL . $this->_t(2) . "if (\$" . $view . "_found)";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Since there are load the needed " . $view . " field ids";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_field_ids = \$db->loadColumn();";
// Now remove the actual type entry
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Remove " . $viewName . " from the field table";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_condition = array( \$db->quoteName('context') . ' = '. \$db->quote('" . $typeAlias . "') );";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(3) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(3) . "\$query->delete(\$db->quoteName('#__fields'));";
$script .= PHP_EOL . $this->_t(3) . "\$query->where(\$" . $view . "_condition);";
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " items";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
$script .= PHP_EOL . $this->_t(4) . "\$app->enqueueMessage(JText:" . ":_('The fields with type (" . $typeAlias . ") context was removed from the <b>#__fields</b> table'));";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Also Remove " . $viewName . " field values";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_condition = array( \$db->quoteName('field_id') . ' IN ('. implode(',', \$" . $view . "_field_ids) .')');";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(3) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(3) . "\$query->delete(\$db->quoteName('#__fields_values'));";
$script .= PHP_EOL . $this->_t(3) . "\$query->where(\$" . $view . "_condition);";
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " field values";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
$script .= PHP_EOL . $this->_t(4) . "\$app->enqueueMessage(JText:" . ":_('The fields values for " . $viewName . " was removed from the <b>#__fields_values</b> table'));";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(2) . "}";
// First check if data is till in table
$script .= PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(2) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Select ids from field groups";
$script .= PHP_EOL . $this->_t(2) . "\$query->select(\$db->quoteName('id'));";
$script .= PHP_EOL . $this->_t(2) . "\$query->from(\$db->quoteName('#__fields_groups'));";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Where " . $viewName . " context is found";
$script .= PHP_EOL . $this->_t(2) . "\$query->where( \$db->quoteName('context') . ' = '. \$db->quote('" . $typeAlias . "') );";
$script .= PHP_EOL . $this->_t(2) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Execute query to see if context is found";
$script .= PHP_EOL . $this->_t(2) . "\$db->execute();";
$script .= PHP_EOL . $this->_t(2) . "\$" . $view . "_found = \$db->getNumRows();";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Now check if there were any rows";
$script .= PHP_EOL . $this->_t(2) . "if (\$" . $view . "_found)";
$script .= PHP_EOL . $this->_t(2) . "{";
// Now remove the actual type entry
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Remove " . $viewName . " from the field groups table";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_condition = array( \$db->quoteName('context') . ' = '. \$db->quote('" . $typeAlias . "') );";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(3) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(3) . "\$query->delete(\$db->quoteName('#__fields_groups'));";
$script .= PHP_EOL . $this->_t(3) . "\$query->where(\$" . $view . "_condition);";
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " items";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
$script .= PHP_EOL . $this->_t(4) . "\$app->enqueueMessage(JText:" . ":_('The field groups with type (" . $typeAlias . ") context was removed from the <b>#__fields_groups</b> table'));";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(2) . "}";
}
// First check if data is till in table
$script .= PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(2) . "\$query = \$db->getQuery(true);";
@ -4765,7 +4885,7 @@ class Interpretation extends Fields
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " items";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done);";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
@ -4782,7 +4902,7 @@ class Interpretation extends Fields
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " items";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done);";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
@ -4799,7 +4919,7 @@ class Interpretation extends Fields
$script .= PHP_EOL . $this->_t(3) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $viewName . " items";
$script .= PHP_EOL . $this->_t(3) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done);";
$script .= PHP_EOL . $this->_t(3) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $viewName . " add queued success message.";
// TODO lang is not translated
@ -4851,7 +4971,7 @@ class Interpretation extends Fields
$script .= PHP_EOL . $this->_t(2) . "\$query->where(\$" . $component . "_condition);";
$script .= PHP_EOL . $this->_t(2) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(2) . "\$" . $view . "_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(2) . "if (\$" . $view . "_done);";
$script .= PHP_EOL . $this->_t(2) . "if (\$" . $view . "_done)";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " If succesfully remove " . $component . " add queued success message.";
// TODO lang is not translated
@ -4947,6 +5067,7 @@ class Interpretation extends Fields
$customfieldlinks = (isset($this->customFieldLinksBuilder[$view]) && ComponentbuilderHelper::checkString($this->customFieldLinksBuilder[$view])) ? $this->customFieldLinksBuilder[$view] : '';
// build uninstall script for content types
$this->uninstallScriptBuilder[$View] = 'com_' . $component . '.' . $view;
$this->uninstallScriptContent[$view] = $view;
// check if this view has metadata
if (isset($this->metadataBuilder[$view]) && ComponentbuilderHelper::checkString($this->metadataBuilder[$view]))
{
@ -4996,6 +5117,7 @@ class Interpretation extends Fields
$View = ComponentbuilderHelper::safeString($view, 'F');
// build uninstall script for content types
$this->uninstallScriptBuilder[$View . ' ' . $category] = 'com_' . $component . '.' . $views . '.category';
$this->uninstallScriptContent[$View . ' ' . $category] = $View . ' ' . $category;
// set the title
$array['type_title'] = $Component . ' ' . $View . ' ' . ComponentbuilderHelper::safeString($category, 'F');
// set the alias
@ -7397,6 +7519,13 @@ class Interpretation extends Fields
// set counter
$tabCounter++;
}
// add joomla field sets if needed
if (isset($view['joomla_fields']) && $view['joomla_fields'] == 1)
{
$body .= PHP_EOL . PHP_EOL . $this->_t(1) . "<?php \$this->ignore_fieldsets = array('details','metadata','vdmmetadata','accesscontrol'); ?>";
$body .= PHP_EOL . $this->_t(1) . "<?php \$this->tab_name = '" . $viewName_single . "Tab'; ?>";
$body .= PHP_EOL . $this->_t(1) . "<?php echo JLayoutHelper::render('joomla.edit.params', \$this); ?>";
}
// set default publishing tab lang
$tabLangName = $langView . '_PUBLISHING';
// add to lang array
@ -10797,7 +10926,7 @@ class Interpretation extends Fields
// allways load these
$allow = array();
$allow[] = PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Get the form.";
$allow[] = $this->_t(2) . "\$form = \$this->loadForm('com_" . $component . "." . $viewName_single . "', '" . $viewName_single . "', array('control' => 'jform', 'load_data' => \$loadData));";
$allow[] = $this->_t(2) . "\$form = \$this->loadForm('com_" . $component . "." . $viewName_single . "', '" . $viewName_single . "', \$options);";
$allow[] = PHP_EOL . $this->_t(2) . "if (empty(\$form))";
$allow[] = $this->_t(2) . "{";
$allow[] = $this->_t(3) . "return false;";
@ -12857,11 +12986,13 @@ class Interpretation extends Fields
{
// set custom menu
$menus .= $this->addCustomSubMenu($view, $codeName, $lang);
$nameSingle = ComponentbuilderHelper::safeString($view['settings']->name_single);
$nameList = ComponentbuilderHelper::safeString($view['settings']->name_list);
$nameUpper = ComponentbuilderHelper::safeString($view['settings']->name_list, 'U');
if (isset($view['submenu']) && $view['submenu'] == 1)
{
// setup access defaults
$tab = "";
$nameSingle = ComponentbuilderHelper::safeString($view['settings']->name_single);
$coreLoad = false;
if (isset($this->permissionCore[$nameSingle]))
{
@ -12876,8 +13007,6 @@ class Interpretation extends Fields
// add tab to lines to follow
$tab = $this->_t(1);
}
$nameList = ComponentbuilderHelper::safeString($view['settings']->name_list);
$nameUpper = ComponentbuilderHelper::safeString($view['settings']->name_list, 'U');
$menus .= PHP_EOL . $this->_t(2) . $tab . "JHtmlSidebar::addEntry(JText:" . ":_('" . $lang . "_" . $nameUpper . "'), 'index.php?option=com_" . $codeName . "&view=" . $nameList . "', \$submenu === '" . $nameList . "');";
$this->langContent[$this->lang][$lang . "_" . $nameUpper] = $view['settings']->name_list;
// check if category has another name
@ -12901,6 +13030,20 @@ class Interpretation extends Fields
$menus .= PHP_EOL . $this->_t(2) . "}";
}
}
// set the Joomla cutstom fields options
if (isset($view['joomla_fields']) && $view['joomla_fields'] == 1)
{
$menus .= PHP_EOL . $this->_t(2) . "if (JComponentHelper::isEnabled('com_fields'))";
$menus .= PHP_EOL . $this->_t(2) . "{";
$menus .= PHP_EOL . $this->_t(3) . "JHtmlSidebar::addEntry(JText:" . ":_('" . $lang . "_" . $nameUpper . "_FIELDS'), 'index.php?option=com_fields&context=com_" . $codeName . "." . $nameSingle . "', \$submenu === 'fields.fields');";
$menus .= PHP_EOL . $this->_t(3) . "JHtmlSidebar::addEntry(JText:" . ":_('" . $lang . "_" . $nameUpper . "_FIELDS_GROUPS'), 'index.php?option=com_fields&view=groups&context=com_" . $codeName . "." . $nameSingle . "', \$submenu === 'fields.groups');";
$menus .= PHP_EOL . $this->_t(2) . "}";
$this->langContent[$this->lang][$lang . "_" . $nameUpper . "_FIELDS"] = $view['settings']->name_list . ' Fields';
$this->langContent[$this->lang][$lang . "_" . $nameUpper . "_FIELDS_GROUPS"] = $view['settings']->name_list . ' Field Groups';
// build uninstall script for fields
$this->uninstallScriptBuilder[$nameSingle] = 'com_' . $codeName . '.' . $nameSingle;
$this->uninstallScriptFields[$nameSingle] = $nameSingle;
}
}
if (isset($this->lastCustomSubMenu) && ComponentbuilderHelper::checkArray($this->lastCustomSubMenu))
{
@ -14883,6 +15026,27 @@ function vdm_dkim() {
return $component;
}
public function setAccessSectionsJoomlaFields()
{
$component = '';
// set all the core field permissions
$component .= PHP_EOL . $this->_t(1) . '<section name="fieldgroup">';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.create" title="JACTION_CREATE" description="COM_FIELDS_GROUP_PERMISSION_CREATE_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.delete" title="JACTION_DELETE" description="COM_FIELDS_GROUP_PERMISSION_DELETE_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit" title="JACTION_EDIT" description="COM_FIELDS_GROUP_PERMISSION_EDIT_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_FIELDS_GROUP_PERMISSION_EDITSTATE_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit.own" title="JACTION_EDITOWN" description="COM_FIELDS_GROUP_PERMISSION_EDITOWN_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit.value" title="JACTION_EDITVALUE" description="COM_FIELDS_GROUP_PERMISSION_EDITVALUE_DESC" />';
$component .= PHP_EOL . $this->_t(1) . '</section>';
$component .= PHP_EOL . $this->_t(1) . '<section name="field">';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.delete" title="JACTION_DELETE" description="COM_FIELDS_FIELD_PERMISSION_DELETE_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit" title="JACTION_EDIT" description="COM_FIELDS_FIELD_PERMISSION_EDIT_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_FIELDS_FIELD_PERMISSION_EDITSTATE_DESC" />';
$component .= PHP_EOL . $this->_t(2) . '<action name="core.edit.value" title="JACTION_EDITVALUE" description="COM_FIELDS_FIELD_PERMISSION_EDITVALUE_DESC" />';
$component .= PHP_EOL . $this->_t(1) . '</section>';
return $component;
}
public function setAccessSections()
{
// set the default component access values
@ -14926,6 +15090,11 @@ function vdm_dkim() {
$this->componentHead[] = $this->_t(2) . '<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />';
$this->componentHead[] = $this->_t(2) . '<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_ACCESS_EDITSTATE_DESC" />';
$this->componentHead[] = $this->_t(2) . '<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />';
// set the Joomla fields
if ($this->setJoomlaFields)
{
$this->componentHead[] = $this->_t(2) . ' <action name="core.edit.value" title="JACTION_EDITVALUE" description="JACTION_EDITVALUE_COMPONENT_DESC" />';
}
// new custom created by permissions
$created_byTitle = $this->langPrefix . '_' . ComponentbuilderHelper::safeString('Edit Created By', 'U');
$created_byDesc = $this->langPrefix . '_' . ComponentbuilderHelper::safeString('Edit Created By', 'U') . '_DESC';

View File

@ -557,7 +557,11 @@ class Infusion extends Interpretation
$this->fileContentStatic[$this->hhh . 'ACCESS_SECTIONS' . $this->hhh] = '';
}
$this->fileContentStatic[$this->hhh . 'ACCESS_SECTIONS' . $this->hhh] .= $this->setAccessSectionsCategory($viewName_single, $viewName_list);
// set the Joomla Fields ACCESS section if needed
if (isset($view['joomla_fields']) && $view['joomla_fields'] == 1)
{
$this->fileContentStatic[$this->hhh . 'ACCESS_SECTIONS' . $this->hhh] .= $this->setAccessSectionsJoomlaFields();
}
// HELPER_EXEL
$this->fileContentStatic[$this->hhh . 'HELPER_EXEL' . $this->hhh] = $this->setExelHelperMethods();
}

View File

@ -3619,7 +3619,7 @@ abstract class ComponentbuilderHelper
* @return string On success the edit url
*
*/
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder')
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder', $jRoute = true)
{
// check that we have the ID
if (self::checkObject($item) && isset($item->id))
@ -3641,8 +3641,12 @@ abstract class ComponentbuilderHelper
if (JFactory::getUser()->authorise($view . '.edit', $component . '.' . $view . '.' . (int) $id))
{
// set the edit link
if ($jRoute)
{
return JRoute::_("index.php?option=" . $component . "&view=" . $views . "&task=" . $view . ".edit&id=" . $id . $ref);
}
return "index.php?option=" . $component . "&view=" . $views . "&task=" . $view . ".edit&id=" . $id . $ref;
}
}
return false;
}

View File

@ -390,7 +390,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEWS="Add Css Views"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEWS_LABEL="Add CSS (views)"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CSS_VIEW_LABEL="Add CSS (view)"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_BUTTON="Add Custom Button"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Button"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Buttons"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT="Add Custom Import"
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_DESCRIPTION="Override the default import methods."
COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_LABEL="Add Custom Import"
@ -1046,6 +1046,7 @@ COM_COMPONENTBUILDER_CLEAR_TMP="Clear tmp"
COM_COMPONENTBUILDER_CLONE="Clone"
COM_COMPONENTBUILDER_CLONE_FAILED="Clone failed!"
COM_COMPONENTBUILDER_CLOSE_NEW="Close & New"
COM_COMPONENTBUILDER_CODE="Code"
COM_COMPONENTBUILDER_COMMUNITY_PACKAGES="Community Packages"
COM_COMPONENTBUILDER_COMPANY="Company"
COM_COMPONENTBUILDER_COMPANY_NAME="Company Name"
@ -1560,6 +1561,8 @@ COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA="Joomla"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT="Joomla Component"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION="Select a Joomla Component"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL="Component"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_DESCRIPTION="Select if the option to add Joomla fields should be added to the view."
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_LABEL="Joomla Fields"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_KEY="Key"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAMP="Lamp"
COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_LAST="Last"
@ -2662,6 +2665,7 @@ COM_COMPONENTBUILDER_CONFIG_UIKIT_STYLE_LABEL="css Style"
COM_COMPONENTBUILDER_CONFIG_VDM_PACKAGES="VDM Packages"
COM_COMPONENTBUILDER_CONFIG_YES="Yes"
COM_COMPONENTBUILDER_CONFIRMATION_STEP_BEFORE_IMPORTING="Confirmation Step Before Importing!"
COM_COMPONENTBUILDER_CONTEXT="Context"
COM_COMPONENTBUILDER_CONTRIBUTOR="Contributor"
COM_COMPONENTBUILDER_CONTRIBUTORS="Contributors"
COM_COMPONENTBUILDER_COPYRIGHT="Copyright"
@ -2686,6 +2690,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST="Custom Admin Views Dashb
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of custom admin view"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE="Custom Admin Views Delete"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete custom admin views"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DETAILS="Details"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT="Custom Admin Views Edit"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the custom admin view"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_OWN="Custom Admin Views Edit Own"
@ -2698,6 +2703,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT="Custom Admin Views Export"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT_DESC="Allows the users in this group to export export custom admin views"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT="Custom Admin Views Import"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import custom admin views"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_NAMES="Names"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_N_ITEMS_ARCHIVED="%s Custom Admin Views archived."
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_N_ITEMS_ARCHIVED_1="%s Custom Admin View archived."
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_N_ITEMS_CHECKED_IN_0="No Custom Admin View successfully checked in."
@ -2723,7 +2729,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT="Add Css Document"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL="Add CSS (custom document script)"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL="Add CSS"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON="Add Custom Button"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Button"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Buttons"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE="Add Javascript File"
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION="Add JavaScript to the JavaScript file linked to this view."
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_LABEL="Add JavaScript (file)"
@ -3347,6 +3353,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODE_TYPE_LABEL="Add Type"
COM_COMPONENTBUILDER_CUSTOM_CODE_VERSION_DESC="A count of the number of times this Custom Code has been revised."
COM_COMPONENTBUILDER_CUSTOM_CODE_VERSION_LABEL="Revision"
COM_COMPONENTBUILDER_CUSTOM_IMPORT="Custom Import"
COM_COMPONENTBUILDER_CUSTOM_PHP="Custom PHP"
COM_COMPONENTBUILDER_CUSTOM_SCRIPT="Custom Script"
COM_COMPONENTBUILDER_DASH="Dashboard"
COM_COMPONENTBUILDER_DASHBOARD="Component Builder Dashboard"
@ -3595,6 +3602,9 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_IN="NOT IN"
COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_LESS_THAN="not less than"
COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_REQUIRED="Not Required"
COM_COMPONENTBUILDER_DYNAMIC_GET_O="o"
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERDISPLAY="onContentAfterDisplay"
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERTITLE="onContentAfterTitle"
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTBEFOREDISPLAY="onContentBeforeDisplay"
COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_DESCRIPTION="Name of the field"
COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_HINT="a.mainfield"
COM_COMPONENTBUILDER_DYNAMIC_GET_ON_FIELD_LABEL="On Field"
@ -3638,6 +3648,9 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE_DESCRIPTION="Add your PHP here
COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE_HINT="// PHP Here that should run in the parse Method -> switch | (array) $segments - the segments of the URL to parse | (array) $vars - the URL attributes to be used by the application."
COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE_LABEL="PHP"
COM_COMPONENTBUILDER_DYNAMIC_GET_PLEASE_SELECT="Please select"
COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS="Plugin Events"
COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_DESCRIPTION="Select the content plugin events you would like to add to the page that uses this dynamic get. Please note that the onContentPrepare event is added to all textarea and editor field types by default, so no need to add it again."
COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_LABEL="Content Plugin Events<br /><small>All events added here can<br />be accessed in the <b>$this->item->event</b> object.</small>"
COM_COMPONENTBUILDER_DYNAMIC_GET_PP="pp"
COM_COMPONENTBUILDER_DYNAMIC_GET_PUBLISHING="Publishing"
COM_COMPONENTBUILDER_DYNAMIC_GET_Q="q"
@ -4997,6 +5010,7 @@ COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST="Layouts Dashboard List"
COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of layout"
COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete"
COM_COMPONENTBUILDER_LAYOUTS_DELETE_DESC="Allows the users in this group to delete delete layouts"
COM_COMPONENTBUILDER_LAYOUTS_DETAILS="Details"
COM_COMPONENTBUILDER_LAYOUTS_EDIT="Layouts Edit"
COM_COMPONENTBUILDER_LAYOUTS_EDIT_DESC="Allows the users in this group to edit the layout"
COM_COMPONENTBUILDER_LAYOUTS_EDIT_OWN="Layouts Edit Own"
@ -5009,6 +5023,7 @@ COM_COMPONENTBUILDER_LAYOUTS_EXPORT="Layouts Export"
COM_COMPONENTBUILDER_LAYOUTS_EXPORT_DESC="Allows the users in this group to export export layouts"
COM_COMPONENTBUILDER_LAYOUTS_IMPORT="Layouts Import"
COM_COMPONENTBUILDER_LAYOUTS_IMPORT_DESC="Allows the users in this group to import import layouts"
COM_COMPONENTBUILDER_LAYOUTS_NAMES="Names"
COM_COMPONENTBUILDER_LAYOUTS_N_ITEMS_ARCHIVED="%s Layouts archived."
COM_COMPONENTBUILDER_LAYOUTS_N_ITEMS_ARCHIVED_1="%s Layout archived."
COM_COMPONENTBUILDER_LAYOUTS_N_ITEMS_CHECKED_IN_0="No Layout successfully checked in."
@ -5778,6 +5793,7 @@ COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST="Site Views Dashboard List"
COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of site view"
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE="Site Views Delete"
COM_COMPONENTBUILDER_SITE_VIEWS_DELETE_DESC="Allows the users in this group to delete delete site views"
COM_COMPONENTBUILDER_SITE_VIEWS_DETAILS="Details"
COM_COMPONENTBUILDER_SITE_VIEWS_EDIT="Site Views Edit"
COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_DESC="Allows the users in this group to edit the site view"
COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_OWN="Site Views Edit Own"
@ -5790,6 +5806,7 @@ COM_COMPONENTBUILDER_SITE_VIEWS_EXPORT="Site Views Export"
COM_COMPONENTBUILDER_SITE_VIEWS_EXPORT_DESC="Allows the users in this group to export export site views"
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT="Site Views Import"
COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT_DESC="Allows the users in this group to import import site views"
COM_COMPONENTBUILDER_SITE_VIEWS_NAMES="Names"
COM_COMPONENTBUILDER_SITE_VIEWS_N_ITEMS_ARCHIVED="%s Site Views archived."
COM_COMPONENTBUILDER_SITE_VIEWS_N_ITEMS_ARCHIVED_1="%s Site View archived."
COM_COMPONENTBUILDER_SITE_VIEWS_N_ITEMS_CHECKED_IN_0="No Site View successfully checked in."
@ -5815,7 +5832,7 @@ COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT="Add Css Document"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT_LABEL="Add CSS (custom document script)"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL="Add CSS"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON="Add Custom Button"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Button"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL="Add Custom Buttons"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE="Add Javascript File"
COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION="Add JavaScript to the JavaScript file linked to this view."
COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_LABEL="Add JavaScript (file)"
@ -5901,6 +5918,11 @@ COM_COMPONENTBUILDER_SITE_VIEW_COGS="Cogs"
COM_COMPONENTBUILDER_SITE_VIEW_COMMENT="Comment"
COM_COMPONENTBUILDER_SITE_VIEW_COMMENTS_TWO="Comments 2"
COM_COMPONENTBUILDER_SITE_VIEW_COMPASS="Compass"
COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT="Context"
COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_DESCRIPTION="Do not add the component name, just the context/view code name that should be used during event triggers, if this view has events. Leaving this blank will default to the Name in Code."
COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_HINT="article"
COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_LABEL="Context"
COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_MESSAGE="Error! Please add context code name here."
COM_COMPONENTBUILDER_SITE_VIEW_CONTRACT="Contract"
COM_COMPONENTBUILDER_SITE_VIEW_CONTRACT_TWO="Contract 2"
COM_COMPONENTBUILDER_SITE_VIEW_CREATED_BY_DESC="The user that created this Site View."
@ -6460,6 +6482,7 @@ COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST="Templates Dashboard List"
COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of template"
COM_COMPONENTBUILDER_TEMPLATES_DELETE="Templates Delete"
COM_COMPONENTBUILDER_TEMPLATES_DELETE_DESC="Allows the users in this group to delete delete templates"
COM_COMPONENTBUILDER_TEMPLATES_DETAILS="Details"
COM_COMPONENTBUILDER_TEMPLATES_EDIT="Templates Edit"
COM_COMPONENTBUILDER_TEMPLATES_EDIT_DESC="Allows the users in this group to edit the template"
COM_COMPONENTBUILDER_TEMPLATES_EDIT_OWN="Templates Edit Own"
@ -6472,6 +6495,7 @@ COM_COMPONENTBUILDER_TEMPLATES_EXPORT="Templates Export"
COM_COMPONENTBUILDER_TEMPLATES_EXPORT_DESC="Allows the users in this group to export export templates"
COM_COMPONENTBUILDER_TEMPLATES_IMPORT="Templates Import"
COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC="Allows the users in this group to import import templates"
COM_COMPONENTBUILDER_TEMPLATES_NAMES="Names"
COM_COMPONENTBUILDER_TEMPLATES_N_ITEMS_ARCHIVED="%s Templates archived."
COM_COMPONENTBUILDER_TEMPLATES_N_ITEMS_ARCHIVED_1="%s Template archived."
COM_COMPONENTBUILDER_TEMPLATES_N_ITEMS_CHECKED_IN_0="No Template successfully checked in."

View File

@ -0,0 +1,39 @@
<?php
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'plugin_events'
);
$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

@ -18,7 +18,6 @@ $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
'published',
'ordering',
'access',
'version',
'hits',
'id'

View File

@ -15,7 +15,8 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
'system_name'
'system_name',
'context'
);
?>

View File

@ -124,15 +124,18 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.admin_fields', 'admin_fields', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.admin_fields', 'admin_fields', $options);
if (empty($form))
{

View File

@ -124,15 +124,18 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.admin_fields_conditions', 'admin_fields_conditions', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.admin_fields_conditions', 'admin_fields_conditions', $options);
if (empty($form))
{

View File

@ -104,15 +104,18 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.admin_fields_relations', 'admin_fields_relations', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.admin_fields_relations', 'admin_fields_relations', $options);
if (empty($form))
{

View File

@ -435,15 +435,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.admin_view', 'admin_view', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.admin_view', 'admin_view', $options);
if (empty($form))
{

View File

@ -1501,16 +1501,24 @@ class ComponentbuilderModelAjax extends JModelList
$templateString = array();
// get the view name & id
$values = $this->getViewID();
// check if we are in the correct view.
// set a return value
$return_url = 'index.php?option=com_componentbuilder&view=' . (string) $values['a_view'] . '&layout=edit&id=' . (int) $values['a_id'];
if (isset($values['a_return']))
{
$return_url .= '&return=' . (string) $values['a_return'];
}
// start the ref builder
$ref = '';
if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']))
{
// set the return ref
$this->ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'];
$ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'] . '&return=' . urlencode(base64_encode($return_url));
}
// load the template data
foreach ($results as $result)
{
$edit = ($button = $this->addEditLink($result->id, 'template', 'templates')) ? $button : '';
$editget = (isset($result->dynamic_get) && $result->dynamic_get > 0 && $button = $this->addEditLink($result->dynamic_get, 'dynamic_get', 'dynamic_gets')) ? $button : '';
$edit = (($button = ComponentbuilderHelper::getEditButton($result->id, 'template', 'templates', $ref)) !== false) ? $button : '';
$editget = (isset($result->dynamic_get) && $result->dynamic_get > 0 && ($button = ComponentbuilderHelper::getEditButton($result->dynamic_get, 'dynamic_get', 'dynamic_gets', $ref)) !== false) ? $button : '';
$result->name = (ComponentbuilderHelper::checkString($result->name)) ? $result->name : JText::_('COM_COMPONENTBUILDER_NONE_SELECTED');
$templateString[] = "<td><b>".$result->name."</b> ".$editget."</td><td><code>&lt;?php echo \$this->loadTemplate('".ComponentbuilderHelper::safeString($result->alias)."'); ?&gt;</code> ".$edit."</td>";
}
@ -1546,16 +1554,23 @@ class ComponentbuilderModelAjax extends JModelList
$layoutString = array();
// get the view name & id
$values = $this->getViewID();
// check if we are in the correct view.
// set a return value
$return_url = 'index.php?option=com_componentbuilder&view=' . (string) $values['a_view'] . '&layout=edit&id=' . (int) $values['a_id'];
if (isset($values['a_return']))
{
$return_url .= '&return=' . (string) $values['a_return'];
}
// start the ref builder
$ref = '';
if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']))
{
// set the return ref
$this->ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'];
$ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'] . '&return=' . urlencode(base64_encode($return_url));
}
foreach ($results as $result)
{
$edit = ($button = $this->addEditLink($result->id, 'layout', 'layouts')) ? $button : '';
$editget = (isset($result->dynamic_get) && $result->dynamic_get > 0 && $button = $this->addEditLink($result->dynamic_get, 'dynamic_get', 'dynamic_gets')) ? $button : '';
$edit = (($button = ComponentbuilderHelper::getEditButton($result->id, 'layout', 'layouts', $ref)) !== false) ? $button : '';
$editget = (isset($result->dynamic_get) && $result->dynamic_get > 0 && ($button = ComponentbuilderHelper::getEditButton($result->dynamic_get, 'dynamic_get', 'dynamic_gets', $ref)) !== false) ? $button : '';
$result->name = (ComponentbuilderHelper::checkString($result->name)) ? $result->name : JText::_('COM_COMPONENTBUILDER_NONE_SELECTED');
switch ($result->gettype)

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_admin_views', 'component_admin_views', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_admin_views', 'component_admin_views', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_config', 'component_config', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_config', 'component_config', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_custom_admin_menus', 'component_custom_admin_menus', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_custom_admin_menus', 'component_custom_admin_menus', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_custom_admin_views', 'component_custom_admin_views', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_custom_admin_views', 'component_custom_admin_views', $options);
if (empty($form))
{

View File

@ -141,15 +141,18 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_dashboard', 'component_dashboard', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_dashboard', 'component_dashboard', $options);
if (empty($form))
{

View File

@ -160,15 +160,18 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_files_folders', 'component_files_folders', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_files_folders', 'component_files_folders', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_mysql_tweaks', 'component_mysql_tweaks', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_mysql_tweaks', 'component_mysql_tweaks', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_site_views', 'component_site_views', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_site_views', 'component_site_views', $options);
if (empty($form))
{

View File

@ -135,15 +135,18 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.component_updates', 'component_updates', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.component_updates', 'component_updates', $options);
if (empty($form))
{

View File

@ -86,22 +86,16 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->php_jview_display))
{
// base64 Decode php_jview_display.
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_document))
if (!empty($item->php_jview_display))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
// base64 Decode php_jview_display.
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->default))
@ -134,6 +128,12 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->css))
{
// base64 Decode css.
@ -158,6 +158,14 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->custom_get))
{
// Convert the custom_get field to an array.
$custom_get = new Registry;
$custom_get->loadString($item->custom_get);
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->ajax_input))
{
// Convert the ajax_input field to an array.
@ -174,14 +182,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->libraries = $libraries->toArray();
}
if (!empty($item->custom_get))
{
// Convert the custom_get field to an array.
$custom_get = new Registry;
$custom_get->loadString($item->custom_get);
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->custom_button))
{
// Convert the custom_button field to an array.
@ -252,15 +252,18 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.custom_admin_view', 'custom_admin_view', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.custom_admin_view', 'custom_admin_view', $options);
if (empty($form))
{
@ -973,6 +976,19 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
// always reset the snippets
$data['snippet'] = 0;
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
$custom_get = new JRegistry;
$custom_get->loadArray($data['custom_get']);
$data['custom_get'] = (string) $custom_get;
}
elseif (!isset($data['custom_get']))
{
// Set the empty custom_get to data
$data['custom_get'] = '';
}
// Set the ajax_input items to data.
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
{
@ -999,19 +1015,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['libraries'] = '';
}
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
$custom_get = new JRegistry;
$custom_get->loadArray($data['custom_get']);
$data['custom_get'] = (string) $custom_get;
}
elseif (!isset($data['custom_get']))
{
// Set the empty custom_get to data
$data['custom_get'] = '';
}
// Set the custom_button items to data.
if (isset($data['custom_button']) && is_array($data['custom_button']))
{
@ -1025,22 +1028,16 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_button'] = '';
}
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
$data['php_document'] = base64_encode($data['php_document']);
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the default string to base64 string.
@ -1073,6 +1070,12 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{

View File

@ -29,8 +29,10 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
'a.modified_by','modified_by',
'a.system_name','system_name',
'a.name','name',
'a.codename','codename',
'a.description','description'
'a.description','description',
'a.main_get','main_get',
'a.add_php_ajax','add_php_ajax',
'a.add_custom_button','add_custom_button'
);
}
@ -57,12 +59,18 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
$this->setState('filter.name', $name);
$codename = $this->getUserStateFromRequest($this->context . '.filter.codename', 'filter_codename');
$this->setState('filter.codename', $codename);
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
$this->setState('filter.description', $description);
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
$this->setState('filter.main_get', $main_get);
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
$this->setState('filter.add_php_ajax', $add_php_ajax);
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
$this->setState('filter.add_custom_button', $add_custom_button);
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
@ -113,10 +121,59 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
}
}
// set selection value to a translatable value
if (ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// convert add_php_ajax
$item->add_php_ajax = $this->selectionTranslation($item->add_php_ajax, 'add_php_ajax');
// convert add_custom_button
$item->add_custom_button = $this->selectionTranslation($item->add_custom_button, 'add_custom_button');
}
}
// return items
return $items;
}
/**
* Method to convert selection values to translatable string.
*
* @return translatable string
*/
public function selectionTranslation($value,$name)
{
// Array of add_php_ajax language strings
if ($name === 'add_php_ajax')
{
$add_php_ajaxArray = array(
1 => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES',
0 => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO'
);
// Now check if value is found in this array
if (isset($add_php_ajaxArray[$value]) && ComponentbuilderHelper::checkString($add_php_ajaxArray[$value]))
{
return $add_php_ajaxArray[$value];
}
}
// Array of add_custom_button language strings
if ($name === 'add_custom_button')
{
$add_custom_buttonArray = array(
1 => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES',
0 => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO'
);
// Now check if value is found in this array
if (isset($add_custom_buttonArray[$value]) && ComponentbuilderHelper::checkString($add_custom_buttonArray[$value]))
{
return $add_custom_buttonArray[$value];
}
}
return $value;
}
/**
* Method to build an SQL query to load the list data.
*
@ -136,9 +193,9 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
// From the componentbuilder_item table
$query->from($db->quoteName('#__componentbuilder_custom_admin_view', 'a'));
// From the componentbuilder_snippet table.
$query->select($db->quoteName('g.name','snippet_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_snippet', 'g') . ' ON (' . $db->quoteName('a.snippet') . ' = ' . $db->quoteName('g.id') . ')');
// From the componentbuilder_dynamic_get table.
$query->select($db->quoteName('g.name','main_get_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_dynamic_get', 'g') . ' ON (' . $db->quoteName('a.main_get') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by published state
$published = $this->getState('filter.published');
@ -176,10 +233,25 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.system_name LIKE '.$search.' OR a.name LIKE '.$search.' OR a.codename LIKE '.$search.' OR a.description LIKE '.$search.')');
$query->where('(a.system_name LIKE '.$search.' OR a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.main_get LIKE '.$search.' OR g.name LIKE '.$search.' OR a.codename LIKE '.$search.')');
}
}
// Filter by main_get.
if ($main_get = $this->getState('filter.main_get'))
{
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
}
// Filter by Add_php_ajax.
if ($add_php_ajax = $this->getState('filter.add_php_ajax'))
{
$query->where('a.add_php_ajax = ' . $db->quote($db->escape($add_php_ajax)));
}
// Filter by Add_custom_button.
if ($add_custom_button = $this->getState('filter.add_custom_button'))
{
$query->where('a.add_custom_button = ' . $db->quote($db->escape($add_custom_button)));
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
@ -245,12 +317,10 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
continue;
}
// 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_document
$item->php_document = base64_decode($item->php_document);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode default
$item->default = base64_decode($item->default);
// decode php_jview
@ -261,6 +331,8 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
$item->javascript_file = base64_decode($item->javascript_file);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode css
$item->css = base64_decode($item->css);
// decode php_ajaxmethod
@ -331,8 +403,10 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
$id .= ':' . $this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.system_name');
$id .= ':' . $this->getState('filter.name');
$id .= ':' . $this->getState('filter.codename');
$id .= ':' . $this->getState('filter.description');
$id .= ':' . $this->getState('filter.main_get');
$id .= ':' . $this->getState('filter.add_php_ajax');
$id .= ':' . $this->getState('filter.add_custom_button');
return parent::getStoreId($id);
}

View File

@ -102,15 +102,18 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.custom_code', 'custom_code', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.custom_code', 'custom_code', $options);
if (empty($form))
{

View File

@ -124,10 +124,10 @@ class ComponentbuilderModelCustom_codes extends JModelList
if ($item->target == 2)
{
$item->component_system_name = $item->system_name;
$item->path = '<code>[CUSTO'.'MCODE='.$item->id.']</code>'; // so it is not detected
$item->path = '[CUSTO'.'MCODE='.$item->id.']'; // so it is not detected
if (ComponentbuilderHelper::checkString($item->function_name))
{
$item->path = '<code>[CUSTO'.'MCODE='.$item->function_name.']</code>'; // so it is not detected
$item->path = '[CUSTO'.'MCODE='.$item->function_name.']'; // so it is not detected
}
$item->type = 2;
}
@ -372,10 +372,10 @@ class ComponentbuilderModelCustom_codes extends JModelList
if ($item->target == 2)
{
$item->component_system_name = $item->system_name;
$item->path = '<code>[CUSTO'.'MCODE='.$item->id.']</code>'; // so it is not detected
$item->path = '[CUSTO'.'MCODE='.$item->id.']'; // so it is not detected
if (ComponentbuilderHelper::checkString($item->function_name))
{
$item->path = '<code>[CUSTO'.'MCODE='.$item->function_name.']</code>'; // so it is not detected
$item->path = '[CUSTO'.'MCODE='.$item->function_name.']'; // so it is not detected
}
$item->type = 2;
}

View File

@ -134,6 +134,14 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->php_calculation = base64_decode($item->php_calculation);
}
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.
@ -174,12 +182,10 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->join_view_table = $join_view_table->toArray();
}
if (!empty($item->join_db_table))
if (!empty($item->plugin_events))
{
// 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();
// JSON Decode plugin_events.
$item->plugin_events = json_decode($item->plugin_events);
}
@ -259,15 +265,18 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.dynamic_get', 'dynamic_get', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.dynamic_get', 'dynamic_get', $options);
if (empty($form))
{
@ -977,6 +986,19 @@ 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']))
{
@ -1042,17 +1064,10 @@ 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']))
// Set the plugin_events string to JSON string.
if (isset($data['plugin_events']))
{
$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'] = '';
$data['plugin_events'] = (string) json_encode($data['plugin_events']);
}
// Set the php_custom_get string to base64 string.

View File

@ -157,15 +157,18 @@ class ComponentbuilderModelField extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.field', 'field', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.field', 'field', $options);
if (empty($form))
{

View File

@ -307,15 +307,18 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.fieldtype', 'fieldtype', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.fieldtype', 'fieldtype', $options);
if (empty($form))
{

View File

@ -615,6 +615,17 @@
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_HISTORY_DESCRIPTION"
class="inputbox"
/>
<!-- Joomla_fields Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="joomla_fields"
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_LABEL"
value="1"
default="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_FIELDS_DESCRIPTION"
class="inputbox"
/>
<!-- Metadata Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"

View File

@ -114,19 +114,6 @@
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_HINT"
/>
<!-- Codename Field. Type: Text. (joomla) -->
<field
type="text"
name="codename"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
@ -143,33 +130,15 @@
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_DESCRIPTION"
class="list_class"
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="false"
button="true"
/>
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
button="true"
/>
<!-- Php_view Field. Type: Editor. (joomla) -->
<field
@ -188,16 +157,16 @@
required="true"
validate="code"
/>
<!-- Php_document Field. Type: Editor. (joomla) -->
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="50"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
@ -205,6 +174,199 @@
required="true"
validate="code"
/>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_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_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_javascript_file Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_css_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="editor"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Php_jview Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Codename Field. Type: Text. (joomla) -->
<field
type="text"
name="codename"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_MESSAGE"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_HINT"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Js_document Field. Type: Editor. (joomla) -->
<field
type="editor"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Javascript_file Field. Type: Editor. (joomla) -->
<field
type="editor"
name="javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Ajax_input Field. Type: Subform. (joomla) -->
<field
type="subform"
@ -336,179 +498,6 @@
/>
</form>
</field>
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_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_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="editor"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_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_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Php_jview Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
<!-- Add_javascript_file Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true"
/>
<!-- Js_document Field. Type: Editor. (joomla) -->
<field
type="editor"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_css_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Javascript_file Field. Type: Editor. (joomla) -->
<field
type="editor"
name="javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Css_document Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -526,13 +515,22 @@
required="true"
validate="code"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<!-- Php_document Field. Type: Editor. (joomla) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
type="editor"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="50"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Css Field. Type: Editor. (joomla) -->
<field
@ -551,14 +549,16 @@
required="true"
validate="code"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true"
/>
<!-- Php_ajaxmethod Field. Type: Editor. (joomla) -->

View File

@ -9,43 +9,43 @@
*/
// Some Global Values
jform_vvvvwacvzr_required = false;
jform_vvvvwadvzs_required = false;
jform_vvvvwadvzt_required = false;
jform_vvvvwadvzu_required = false;
jform_vvvvwadvzr_required = false;
jform_vvvvwaevzs_required = false;
jform_vvvvwaevzt_required = false;
jform_vvvvwaevzu_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwac(target_vvvvwac);
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwad(target_vvvvwad);
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwae(target_vvvvwae,type_vvvvwae);
vvvvwae(target_vvvvwae);
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaf(type_vvvvwaf,target_vvvvwaf);
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});
// the vvvvwac function
function vvvvwac(target_vvvvwac)
// the vvvvwad function
function vvvvwad(target_vvvvwad)
{
// set the function logic
if (target_vvvvwac == 2)
if (target_vvvvwad == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
if (jform_vvvvwacvzr_required)
if (jform_vvvvwadvzr_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_vvvvwacvzr_required = false;
jform_vvvvwadvzr_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@ -54,99 +54,99 @@ function vvvvwac(target_vvvvwac)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
if (!jform_vvvvwacvzr_required)
if (!jform_vvvvwadvzr_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_vvvvwacvzr_required = true;
jform_vvvvwadvzr_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvwad function
function vvvvwad(target_vvvvwad)
// the vvvvwae function
function vvvvwae(target_vvvvwae)
{
// set the function logic
if (target_vvvvwad == 1)
if (target_vvvvwae == 1)
{
jQuery('#jform_component').closest('.control-group').show();
if (jform_vvvvwadvzs_required)
if (jform_vvvvwaevzs_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvwadvzs_required = false;
jform_vvvvwaevzs_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwadvzt_required)
if (jform_vvvvwaevzt_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwadvzt_required = false;
jform_vvvvwaevzt_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_vvvvwadvzu_required)
if (jform_vvvvwaevzu_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvwadvzu_required = false;
jform_vvvvwaevzu_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
if (!jform_vvvvwadvzs_required)
if (!jform_vvvvwaevzs_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvwadvzs_required = true;
jform_vvvvwaevzs_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwadvzt_required)
if (!jform_vvvvwaevzt_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwadvzt_required = true;
jform_vvvvwaevzt_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_vvvvwadvzu_required)
if (!jform_vvvvwaevzu_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvwadvzu_required = true;
jform_vvvvwaevzu_required = true;
}
}
}
// the vvvvwae function
function vvvvwae(target_vvvvwae,type_vvvvwae)
// the vvvvwaf function
function vvvvwaf(target_vvvvwaf,type_vvvvwaf)
{
// set the function logic
if (target_vvvvwae == 1 && type_vvvvwae == 1)
if (target_vvvvwaf == 1 && type_vvvvwaf == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -158,11 +158,11 @@ function vvvvwae(target_vvvvwae,type_vvvvwae)
}
}
// the vvvvwaf function
function vvvvwaf(type_vvvvwaf,target_vvvvwaf)
// the vvvvwag function
function vvvvwag(type_vvvvwag,target_vvvvwag)
{
// set the function logic
if (type_vvvvwaf == 1 && target_vvvvwaf == 1)
if (type_vvvvwag == 1 && target_vvvvwag == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();

View File

@ -100,6 +100,9 @@ jQuery(document).ready(function()
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwaa = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwaa(gettype_vvvvwaa,add_php_router_parse_vvvvwaa);
var gettype_vvvvwac = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac);
});
// the vvvvvzd function
@ -1378,6 +1381,44 @@ function add_php_router_parse_vvvvwaa_SomeFunc(add_php_router_parse_vvvvwaa)
return false;
}
// the vvvvwac function
function vvvvwac(gettype_vvvvwac)
{
if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array)
{
var temp_vvvvwac = gettype_vvvvwac;
var gettype_vvvvwac = [];
gettype_vvvvwac.push(temp_vvvvwac);
}
else if (!isSet(gettype_vvvvwac))
{
var gettype_vvvvwac = [];
}
var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc);
// set this function logic
if (gettype)
{
jQuery('#jform_plugin_events').closest('.control-group').show();
}
else
{
jQuery('#jform_plugin_events').closest('.control-group').hide();
}
}
// the vvvvwac Some function
function gettype_vvvvwac_SomeFunc(gettype_vvvvwac)
{
// set the function logic
if (gettype_vvvvwac == 1)
{
return true;
}
return false;
}
// update required fields
function updateFieldRequired(name,status)
{

File diff suppressed because it is too large Load Diff

View File

@ -9,151 +9,96 @@
*/
// Some Global Values
jform_vvvvwaovzx_required = false;
jform_vvvvwapvzy_required = false;
jform_vvvvwaqvzz_required = false;
jform_vvvvwarwaa_required = false;
jform_vvvvwauwab_required = false;
jform_vvvvwavwac_required = false;
jform_vvvvwawwad_required = false;
jform_vvvvwaxwae_required = false;
jform_vvvvwapvzx_required = false;
jform_vvvvwaqvzy_required = false;
jform_vvvvwarvzz_required = false;
jform_vvvvwaswaa_required = false;
jform_vvvvwavwab_required = false;
jform_vvvvwawwac_required = false;
jform_vvvvwaxwad_required = false;
jform_vvvvwaywae_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvwao = jQuery("#jform_datalenght").val();
vvvvwao(datalenght_vvvvwao);
var datalenght_vvvvwap = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap);
var datadefault_vvvvwap = jQuery("#jform_datadefault").val();
vvvvwap(datadefault_vvvvwap);
var datatype_vvvvwaq = jQuery("#jform_datatype").val();
vvvvwaq(datatype_vvvvwaq);
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq);
var datatype_vvvvwar = jQuery("#jform_datatype").val();
vvvvwar(datatype_vvvvwar);
var store_vvvvwas = jQuery("#jform_store").val();
var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(store_vvvvwas,datatype_vvvvwas);
vvvvwas(datatype_vvvvwas);
var add_css_view_vvvvwau = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwau(add_css_view_vvvvwau);
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
var add_css_views_vvvvwav = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwav(add_css_views_vvvvwav);
var add_css_view_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwav(add_css_view_vvvvwav);
var add_javascript_view_footer_vvvvwaw = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwaw(add_javascript_view_footer_vvvvwaw);
var add_css_views_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw);
var add_javascript_views_footer_vvvvwax = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_views_footer_vvvvwax);
var add_javascript_view_footer_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax);
var add_javascript_views_footer_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway);
});
// the vvvvwao function
function vvvvwao(datalenght_vvvvwao)
// the vvvvwap function
function vvvvwap(datalenght_vvvvwap)
{
if (isSet(datalenght_vvvvwao) && datalenght_vvvvwao.constructor !== Array)
if (isSet(datalenght_vvvvwap) && datalenght_vvvvwap.constructor !== Array)
{
var temp_vvvvwao = datalenght_vvvvwao;
var datalenght_vvvvwao = [];
datalenght_vvvvwao.push(temp_vvvvwao);
var temp_vvvvwap = datalenght_vvvvwap;
var datalenght_vvvvwap = [];
datalenght_vvvvwap.push(temp_vvvvwap);
}
else if (!isSet(datalenght_vvvvwao))
else if (!isSet(datalenght_vvvvwap))
{
var datalenght_vvvvwao = [];
var datalenght_vvvvwap = [];
}
var datalenght = datalenght_vvvvwao.some(datalenght_vvvvwao_SomeFunc);
var datalenght = datalenght_vvvvwap.some(datalenght_vvvvwap_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_vvvvwaovzx_required)
if (jform_vvvvwapvzx_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_vvvvwaovzx_required = false;
jform_vvvvwapvzx_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvwaovzx_required)
if (!jform_vvvvwapvzx_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_vvvvwaovzx_required = true;
}
}
}
// the vvvvwao Some function
function datalenght_vvvvwao_SomeFunc(datalenght_vvvvwao)
{
// set the function logic
if (datalenght_vvvvwao == 'Other')
{
return true;
}
return false;
}
// the vvvvwap function
function vvvvwap(datadefault_vvvvwap)
{
if (isSet(datadefault_vvvvwap) && datadefault_vvvvwap.constructor !== Array)
{
var temp_vvvvwap = datadefault_vvvvwap;
var datadefault_vvvvwap = [];
datadefault_vvvvwap.push(temp_vvvvwap);
}
else if (!isSet(datadefault_vvvvwap))
{
var datadefault_vvvvwap = [];
}
var datadefault = datadefault_vvvvwap.some(datadefault_vvvvwap_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwapvzy_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_vvvvwapvzy_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwapvzy_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_vvvvwapvzy_required = true;
jform_vvvvwapvzx_required = true;
}
}
}
// the vvvvwap Some function
function datadefault_vvvvwap_SomeFunc(datadefault_vvvvwap)
function datalenght_vvvvwap_SomeFunc(datalenght_vvvvwap)
{
// set the function logic
if (datadefault_vvvvwap == 'Other')
if (datalenght_vvvvwap == 'Other')
{
return true;
}
@ -161,58 +106,54 @@ function datadefault_vvvvwap_SomeFunc(datadefault_vvvvwap)
}
// the vvvvwaq function
function vvvvwaq(datatype_vvvvwaq)
function vvvvwaq(datadefault_vvvvwaq)
{
if (isSet(datatype_vvvvwaq) && datatype_vvvvwaq.constructor !== Array)
if (isSet(datadefault_vvvvwaq) && datadefault_vvvvwaq.constructor !== Array)
{
var temp_vvvvwaq = datatype_vvvvwaq;
var datatype_vvvvwaq = [];
datatype_vvvvwaq.push(temp_vvvvwaq);
var temp_vvvvwaq = datadefault_vvvvwaq;
var datadefault_vvvvwaq = [];
datadefault_vvvvwaq.push(temp_vvvvwaq);
}
else if (!isSet(datatype_vvvvwaq))
else if (!isSet(datadefault_vvvvwaq))
{
var datatype_vvvvwaq = [];
var datadefault_vvvvwaq = [];
}
var datatype = datatype_vvvvwaq.some(datatype_vvvvwaq_SomeFunc);
var datadefault = datadefault_vvvvwaq.some(datadefault_vvvvwaq_SomeFunc);
// set this function logic
if (datatype)
if (datadefault)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwaqvzz_required)
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwaqvzy_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwaqvzz_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_vvvvwaqvzy_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_vvvvwaqvzz_required)
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwaqvzy_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwaqvzz_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_vvvvwaqvzy_required = true;
}
}
}
// the vvvvwaq Some function
function datatype_vvvvwaq_SomeFunc(datatype_vvvvwaq)
function datadefault_vvvvwaq_SomeFunc(datadefault_vvvvwaq)
{
// set the function logic
if (datatype_vvvvwaq == 'CHAR' || datatype_vvvvwaq == 'VARCHAR' || datatype_vvvvwaq == 'DATETIME' || datatype_vvvvwaq == 'DATE' || datatype_vvvvwaq == 'TIME' || datatype_vvvvwaq == 'INT' || datatype_vvvvwaq == 'TINYINT' || datatype_vvvvwaq == 'BIGINT' || datatype_vvvvwaq == 'FLOAT' || datatype_vvvvwaq == 'DECIMAL' || datatype_vvvvwaq == 'DOUBLE')
if (datadefault_vvvvwaq == 'Other')
{
return true;
}
@ -238,27 +179,31 @@ function vvvvwar(datatype_vvvvwar)
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvwarwaa_required)
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwarvzz_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwarwaa_required = false;
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwarvzz_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvwarwaa_required)
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
if (!jform_vvvvwarvzz_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwarwaa_required = true;
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwarvzz_required = true;
}
}
}
@ -267,7 +212,7 @@ function vvvvwar(datatype_vvvvwar)
function datatype_vvvvwar_SomeFunc(datatype_vvvvwar)
{
// set the function logic
if (datatype_vvvvwar == 'CHAR' || datatype_vvvvwar == 'VARCHAR' || datatype_vvvvwar == 'TEXT' || datatype_vvvvwar == 'MEDIUMTEXT' || datatype_vvvvwar == 'LONGTEXT')
if (datatype_vvvvwar == 'CHAR' || datatype_vvvvwar == 'VARCHAR' || datatype_vvvvwar == 'DATETIME' || datatype_vvvvwar == 'DATE' || datatype_vvvvwar == 'TIME' || datatype_vvvvwar == 'INT' || datatype_vvvvwar == 'TINYINT' || datatype_vvvvwar == 'BIGINT' || datatype_vvvvwar == 'FLOAT' || datatype_vvvvwar == 'DECIMAL' || datatype_vvvvwar == 'DOUBLE')
{
return true;
}
@ -275,20 +220,8 @@ function datatype_vvvvwar_SomeFunc(datatype_vvvvwar)
}
// the vvvvwas function
function vvvvwas(store_vvvvwas,datatype_vvvvwas)
function vvvvwas(datatype_vvvvwas)
{
if (isSet(store_vvvvwas) && store_vvvvwas.constructor !== Array)
{
var temp_vvvvwas = store_vvvvwas;
var store_vvvvwas = [];
store_vvvvwas.push(temp_vvvvwas);
}
else if (!isSet(store_vvvvwas))
{
var store_vvvvwas = [];
}
var store = store_vvvvwas.some(store_vvvvwas_SomeFunc);
if (isSet(datatype_vvvvwas) && datatype_vvvvwas.constructor !== Array)
{
var temp_vvvvwas = datatype_vvvvwas;
@ -303,25 +236,31 @@ function vvvvwas(store_vvvvwas,datatype_vvvvwas)
// set this function logic
if (store && datatype)
if (datatype)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvwaswaa_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwaswaa_required = false;
}
}
else
{
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
}
}
// the vvvvwas Some function
function store_vvvvwas_SomeFunc(store_vvvvwas)
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvwaswaa_required)
{
// set the function logic
if (store_vvvvwas == 4)
{
return true;
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwaswaa_required = true;
}
}
return false;
}
// the vvvvwas Some function
@ -335,126 +274,187 @@ function datatype_vvvvwas_SomeFunc(datatype_vvvvwas)
return false;
}
// the vvvvwau function
function vvvvwau(add_css_view_vvvvwau)
// the vvvvwat function
function vvvvwat(store_vvvvwat,datatype_vvvvwat)
{
if (isSet(store_vvvvwat) && store_vvvvwat.constructor !== Array)
{
var temp_vvvvwat = store_vvvvwat;
var store_vvvvwat = [];
store_vvvvwat.push(temp_vvvvwat);
}
else if (!isSet(store_vvvvwat))
{
var store_vvvvwat = [];
}
var store = store_vvvvwat.some(store_vvvvwat_SomeFunc);
if (isSet(datatype_vvvvwat) && datatype_vvvvwat.constructor !== Array)
{
var temp_vvvvwat = datatype_vvvvwat;
var datatype_vvvvwat = [];
datatype_vvvvwat.push(temp_vvvvwat);
}
else if (!isSet(datatype_vvvvwat))
{
var datatype_vvvvwat = [];
}
var datatype = datatype_vvvvwat.some(datatype_vvvvwat_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 vvvvwat Some function
function store_vvvvwat_SomeFunc(store_vvvvwat)
{
// set the function logic
if (add_css_view_vvvvwau == 1)
if (store_vvvvwat == 4)
{
return true;
}
return false;
}
// the vvvvwat Some function
function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
{
// set the function logic
if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'TEXT' || datatype_vvvvwat == 'MEDIUMTEXT' || datatype_vvvvwat == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvwav function
function vvvvwav(add_css_view_vvvvwav)
{
// set the function logic
if (add_css_view_vvvvwav == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
if (jform_vvvvwauwab_required)
if (jform_vvvvwavwab_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_vvvvwauwab_required = false;
jform_vvvvwavwab_required = false;
}
}
else
{
jQuery('#jform_css_view-lbl').closest('.control-group').hide();
if (!jform_vvvvwauwab_required)
if (!jform_vvvvwavwab_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_vvvvwauwab_required = true;
jform_vvvvwavwab_required = true;
}
}
}
// the vvvvwav function
function vvvvwav(add_css_views_vvvvwav)
// the vvvvwaw function
function vvvvwaw(add_css_views_vvvvwaw)
{
// set the function logic
if (add_css_views_vvvvwav == 1)
if (add_css_views_vvvvwaw == 1)
{
jQuery('#jform_css_views-lbl').closest('.control-group').show();
if (jform_vvvvwavwac_required)
if (jform_vvvvwawwac_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_vvvvwavwac_required = false;
jform_vvvvwawwac_required = false;
}
}
else
{
jQuery('#jform_css_views-lbl').closest('.control-group').hide();
if (!jform_vvvvwavwac_required)
if (!jform_vvvvwawwac_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_vvvvwavwac_required = true;
jform_vvvvwawwac_required = true;
}
}
}
// the vvvvwaw function
function vvvvwaw(add_javascript_view_footer_vvvvwaw)
// the vvvvwax function
function vvvvwax(add_javascript_view_footer_vvvvwax)
{
// set the function logic
if (add_javascript_view_footer_vvvvwaw == 1)
if (add_javascript_view_footer_vvvvwax == 1)
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
if (jform_vvvvwawwad_required)
if (jform_vvvvwaxwad_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_vvvvwawwad_required = false;
jform_vvvvwaxwad_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
if (!jform_vvvvwawwad_required)
if (!jform_vvvvwaxwad_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_vvvvwawwad_required = true;
jform_vvvvwaxwad_required = true;
}
}
}
// the vvvvwax function
function vvvvwax(add_javascript_views_footer_vvvvwax)
// the vvvvway function
function vvvvway(add_javascript_views_footer_vvvvway)
{
// set the function logic
if (add_javascript_views_footer_vvvvwax == 1)
if (add_javascript_views_footer_vvvvway == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
if (jform_vvvvwaxwae_required)
if (jform_vvvvwaywae_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_vvvvwaxwae_required = false;
jform_vvvvwaywae_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
if (!jform_vvvvwaxwae_required)
if (!jform_vvvvwaywae_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_vvvvwaxwae_required = true;
jform_vvvvwaywae_required = true;
}
}
}

View File

@ -9,24 +9,21 @@
*/
// Some Global Values
jform_vvvvwbiwaq_required = false;
jform_vvvvwbjwar_required = false;
jform_vvvvwbkwas_required = false;
jform_vvvvwblwat_required = false;
jform_vvvvwbmwau_required = false;
jform_vvvvwbnwav_required = false;
jform_vvvvwbjwaq_required = false;
jform_vvvvwbkwar_required = false;
jform_vvvvwblwas_required = false;
jform_vvvvwbmwat_required = false;
jform_vvvvwbnwau_required = false;
jform_vvvvwbowav_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwbi = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbi(location_vvvvwbi);
var location_vvvvwbj = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbj(location_vvvvwbj);
var type_vvvvwbk = jQuery("#jform_type").val();
vvvvwbk(type_vvvvwbk);
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbk(location_vvvvwbk);
var type_vvvvwbl = jQuery("#jform_type").val();
vvvvwbl(type_vvvvwbl);
@ -34,127 +31,75 @@ jQuery(document).ready(function()
var type_vvvvwbm = jQuery("#jform_type").val();
vvvvwbm(type_vvvvwbm);
var target_vvvvwbn = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbn(target_vvvvwbn);
var type_vvvvwbn = jQuery("#jform_type").val();
vvvvwbn(type_vvvvwbn);
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbo(target_vvvvwbo);
});
// the vvvvwbi function
function vvvvwbi(location_vvvvwbi)
// the vvvvwbj function
function vvvvwbj(location_vvvvwbj)
{
// set the function logic
if (location_vvvvwbi == 1)
if (location_vvvvwbj == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
if (jform_vvvvwbiwaq_required)
if (jform_vvvvwbjwaq_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_vvvvwbiwaq_required = false;
jform_vvvvwbjwaq_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwbiwaq_required)
if (!jform_vvvvwbjwaq_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_vvvvwbiwaq_required = true;
jform_vvvvwbjwaq_required = true;
}
}
}
// the vvvvwbj function
function vvvvwbj(location_vvvvwbj)
// the vvvvwbk function
function vvvvwbk(location_vvvvwbk)
{
// set the function logic
if (location_vvvvwbj == 2)
if (location_vvvvwbk == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
if (jform_vvvvwbjwar_required)
if (jform_vvvvwbkwar_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_vvvvwbjwar_required = false;
jform_vvvvwbkwar_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
if (!jform_vvvvwbjwar_required)
if (!jform_vvvvwbkwar_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_vvvvwbjwar_required = true;
jform_vvvvwbkwar_required = true;
}
}
}
// the vvvvwbk function
function vvvvwbk(type_vvvvwbk)
{
if (isSet(type_vvvvwbk) && type_vvvvwbk.constructor !== Array)
{
var temp_vvvvwbk = type_vvvvwbk;
var type_vvvvwbk = [];
type_vvvvwbk.push(temp_vvvvwbk);
}
else if (!isSet(type_vvvvwbk))
{
var type_vvvvwbk = [];
}
var type = type_vvvvwbk.some(type_vvvvwbk_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwbkwas_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwbkwas_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwbkwas_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwbkwas_required = true;
}
}
}
// the vvvvwbk Some function
function type_vvvvwbk_SomeFunc(type_vvvvwbk)
{
// set the function logic
if (type_vvvvwbk == 3)
{
return true;
}
return false;
}
// the vvvvwbl function
function vvvvwbl(type_vvvvwbl)
{
@ -174,27 +119,27 @@ function vvvvwbl(type_vvvvwbl)
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwblwat_required)
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwblwas_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwblwat_required = false;
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwblwas_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwblwat_required)
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwblwas_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwblwat_required = true;
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwblwas_required = true;
}
}
}
@ -203,7 +148,7 @@ function vvvvwbl(type_vvvvwbl)
function type_vvvvwbl_SomeFunc(type_vvvvwbl)
{
// set the function logic
if (type_vvvvwbl == 1)
if (type_vvvvwbl == 3)
{
return true;
}
@ -229,27 +174,27 @@ function vvvvwbm(type_vvvvwbm)
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwbmwau_required)
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwbmwat_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwbmwau_required = false;
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwbmwat_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwbmwau_required)
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwbmwat_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwbmwau_required = true;
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwbmwat_required = true;
}
}
}
@ -258,7 +203,7 @@ function vvvvwbm(type_vvvvwbm)
function type_vvvvwbm_SomeFunc(type_vvvvwbm)
{
// set the function logic
if (type_vvvvwbm == 2)
if (type_vvvvwbm == 1)
{
return true;
}
@ -266,32 +211,87 @@ function type_vvvvwbm_SomeFunc(type_vvvvwbm)
}
// the vvvvwbn function
function vvvvwbn(target_vvvvwbn)
function vvvvwbn(type_vvvvwbn)
{
if (isSet(type_vvvvwbn) && type_vvvvwbn.constructor !== Array)
{
var temp_vvvvwbn = type_vvvvwbn;
var type_vvvvwbn = [];
type_vvvvwbn.push(temp_vvvvwbn);
}
else if (!isSet(type_vvvvwbn))
{
var type_vvvvwbn = [];
}
var type = type_vvvvwbn.some(type_vvvvwbn_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwbnwau_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwbnwau_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwbnwau_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwbnwau_required = true;
}
}
}
// the vvvvwbn Some function
function type_vvvvwbn_SomeFunc(type_vvvvwbn)
{
// set the function logic
if (target_vvvvwbn == 1)
if (type_vvvvwbn == 2)
{
return true;
}
return false;
}
// the vvvvwbo function
function vvvvwbo(target_vvvvwbo)
{
// set the function logic
if (target_vvvvwbo == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_vvvvwbnwav_required)
if (jform_vvvvwbowav_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwbnwav_required = false;
jform_vvvvwbowav_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_vvvvwbnwav_required)
if (!jform_vvvvwbowav_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwbnwav_required = true;
jform_vvvvwbowav_required = true;
}
}
}

View File

@ -54,14 +54,6 @@
readonly="true"
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"

View File

@ -101,19 +101,6 @@
message="COM_COMPONENTBUILDER_LAYOUT_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_LAYOUT_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_LAYOUT_ALIAS_DESCRIPTION"
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"
@ -227,6 +214,19 @@
/>
<!-- 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" />
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_LAYOUT_ALIAS_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_LAYOUT_ALIAS_MESSAGE"
hint="COM_COMPONENTBUILDER_LAYOUT_ALIAS_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -9,15 +9,12 @@
*/
// Some Global Values
jform_vvvvwahvzv_required = false;
jform_vvvvwanvzw_required = false;
jform_vvvvwaivzv_required = false;
jform_vvvvwaovzw_required = false;
// Initial Script
jQuery(document).ready(function()
{
var how_vvvvwag = jQuery("#jform_how").val();
vvvvwag(how_vvvvwag);
var how_vvvvwah = jQuery("#jform_how").val();
vvvvwah(how_vvvvwah);
@ -36,48 +33,13 @@ jQuery(document).ready(function()
var how_vvvvwam = jQuery("#jform_how").val();
vvvvwam(how_vvvvwam);
var type_vvvvwan = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwan(type_vvvvwan);
var how_vvvvwan = jQuery("#jform_how").val();
vvvvwan(how_vvvvwan);
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(type_vvvvwao);
});
// the vvvvwag function
function vvvvwag(how_vvvvwag)
{
if (isSet(how_vvvvwag) && how_vvvvwag.constructor !== Array)
{
var temp_vvvvwag = how_vvvvwag;
var how_vvvvwag = [];
how_vvvvwag.push(temp_vvvvwag);
}
else if (!isSet(how_vvvvwag))
{
var how_vvvvwag = [];
}
var how = how_vvvvwag.some(how_vvvvwag_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 vvvvwag Some function
function how_vvvvwag_SomeFunc(how_vvvvwag)
{
// set the function logic
if (how_vvvvwag == 2)
{
return true;
}
return false;
}
// the vvvvwah function
function vvvvwah(how_vvvvwah)
{
@ -97,28 +59,11 @@ function vvvvwah(how_vvvvwah)
// set this function logic
if (how)
{
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvwahvzv_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_vvvvwahvzv_required = false;
}
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvwahvzv_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_vvvvwahvzv_required = true;
}
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
@ -126,7 +71,7 @@ function vvvvwah(how_vvvvwah)
function how_vvvvwah_SomeFunc(how_vvvvwah)
{
// set the function logic
if (how_vvvvwah == 3)
if (how_vvvvwah == 2)
{
return true;
}
@ -152,11 +97,28 @@ function vvvvwai(how_vvvvwai)
// set this function logic
if (how)
{
jQuery('.note_display_library_config').closest('.control-group').show();
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvwaivzv_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_vvvvwaivzv_required = false;
}
}
else
{
jQuery('.note_display_library_config').closest('.control-group').hide();
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvwaivzv_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_vvvvwaivzv_required = true;
}
}
}
@ -164,7 +126,7 @@ function vvvvwai(how_vvvvwai)
function how_vvvvwai_SomeFunc(how_vvvvwai)
{
// set the function logic
if (how_vvvvwai == 2 || how_vvvvwai == 3)
if (how_vvvvwai == 3)
{
return true;
}
@ -190,11 +152,11 @@ function vvvvwaj(how_vvvvwaj)
// set this function logic
if (how)
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
jQuery('.note_display_library_config').closest('.control-group').show();
}
else
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
jQuery('.note_display_library_config').closest('.control-group').hide();
}
}
@ -202,7 +164,7 @@ function vvvvwaj(how_vvvvwaj)
function how_vvvvwaj_SomeFunc(how_vvvvwaj)
{
// set the function logic
if (how_vvvvwaj == 1 || how_vvvvwaj == 2 || how_vvvvwaj == 3)
if (how_vvvvwaj == 2 || how_vvvvwaj == 3)
{
return true;
}
@ -228,15 +190,11 @@ function vvvvwak(how_vvvvwak)
// 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_files_folders_urls').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_files_folders_urls').closest('.control-group').hide();
}
}
@ -244,7 +202,7 @@ function vvvvwak(how_vvvvwak)
function how_vvvvwak_SomeFunc(how_vvvvwak)
{
// set the function logic
if (how_vvvvwak == 0)
if (how_vvvvwak == 1 || how_vvvvwak == 2 || how_vvvvwak == 3)
{
return true;
}
@ -270,13 +228,15 @@ function vvvvwal(how_vvvvwal)
// 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_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_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
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();
}
}
@ -284,7 +244,7 @@ function vvvvwal(how_vvvvwal)
function how_vvvvwal_SomeFunc(how_vvvvwal)
{
// set the function logic
if (how_vvvvwal == 1)
if (how_vvvvwal == 0)
{
return true;
}
@ -307,6 +267,46 @@ function vvvvwam(how_vvvvwam)
var how = how_vvvvwam.some(how_vvvvwam_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 vvvvwam Some function
function how_vvvvwam_SomeFunc(how_vvvvwam)
{
// set the function logic
if (how_vvvvwam == 1)
{
return true;
}
return false;
}
// the vvvvwan function
function vvvvwan(how_vvvvwan)
{
if (isSet(how_vvvvwan) && how_vvvvwan.constructor !== Array)
{
var temp_vvvvwan = how_vvvvwan;
var how_vvvvwan = [];
how_vvvvwan.push(temp_vvvvwan);
}
else if (!isSet(how_vvvvwan))
{
var how_vvvvwan = [];
}
var how = how_vvvvwan.some(how_vvvvwan_SomeFunc);
// set this function logic
if (how)
{
@ -322,44 +322,44 @@ function vvvvwam(how_vvvvwam)
}
}
// the vvvvwam Some function
function how_vvvvwam_SomeFunc(how_vvvvwam)
// the vvvvwan Some function
function how_vvvvwan_SomeFunc(how_vvvvwan)
{
// set the function logic
if (how_vvvvwam == 4)
if (how_vvvvwan == 4)
{
return true;
}
return false;
}
// the vvvvwan function
function vvvvwan(type_vvvvwan)
// the vvvvwao function
function vvvvwao(type_vvvvwao)
{
// set the function logic
if (type_vvvvwan == 2)
if (type_vvvvwao == 2)
{
jQuery('#jform_libraries').closest('.control-group').show();
if (jform_vvvvwanvzw_required)
if (jform_vvvvwaovzw_required)
{
updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required');
jform_vvvvwanvzw_required = false;
jform_vvvvwaovzw_required = false;
}
}
else
{
jQuery('#jform_libraries').closest('.control-group').hide();
if (!jform_vvvvwanvzw_required)
if (!jform_vvvvwaovzw_required)
{
updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required');
jform_vvvvwanvzw_required = true;
jform_vvvvwaovzw_required = true;
}
}
}

View File

@ -9,175 +9,42 @@
*/
// Some Global Values
jform_vvvvwaywag_required = false;
jform_vvvvwaywah_required = false;
jform_vvvvwaywai_required = false;
jform_vvvvwaywaj_required = false;
jform_vvvvwaywak_required = false;
jform_vvvvwazwal_required = false;
jform_vvvvwbawam_required = false;
jform_vvvvwbcwan_required = false;
jform_vvvvwbewao_required = false;
jform_vvvvwazwag_required = false;
jform_vvvvwazwah_required = false;
jform_vvvvwazwai_required = false;
jform_vvvvwazwaj_required = false;
jform_vvvvwazwak_required = false;
jform_vvvvwbawal_required = false;
jform_vvvvwbbwam_required = false;
jform_vvvvwbdwan_required = false;
jform_vvvvwbfwao_required = false;
// Initial Script
jQuery(document).ready(function()
{
var protocol_vvvvway = jQuery("#jform_protocol").val();
vvvvway(protocol_vvvvway);
var protocol_vvvvwaz = jQuery("#jform_protocol").val();
vvvvwaz(protocol_vvvvwaz);
var protocol_vvvvwba = jQuery("#jform_protocol").val();
var authentication_vvvvwba = jQuery("#jform_authentication").val();
vvvvwba(protocol_vvvvwba,authentication_vvvvwba);
vvvvwba(protocol_vvvvwba);
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbf = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf);
var protocol_vvvvwbh = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh);
});
// the vvvvway function
function vvvvway(protocol_vvvvway)
{
if (isSet(protocol_vvvvway) && protocol_vvvvway.constructor !== Array)
{
var temp_vvvvway = protocol_vvvvway;
var protocol_vvvvway = [];
protocol_vvvvway.push(temp_vvvvway);
}
else if (!isSet(protocol_vvvvway))
{
var protocol_vvvvway = [];
}
var protocol = protocol_vvvvway.some(protocol_vvvvway_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('#jform_authentication').closest('.control-group').show();
if (jform_vvvvwaywag_required)
{
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwaywag_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
if (jform_vvvvwaywah_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwaywah_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
if (jform_vvvvwaywai_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwaywai_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwaywaj_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwaywaj_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
if (jform_vvvvwaywak_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwaywak_required = false;
}
}
else
{
jQuery('#jform_authentication').closest('.control-group').hide();
if (!jform_vvvvwaywag_required)
{
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwaywag_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
if (!jform_vvvvwaywah_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwaywah_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
if (!jform_vvvvwaywai_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwaywai_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwaywaj_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwaywaj_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
if (!jform_vvvvwaywak_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwaywak_required = true;
}
}
}
// the vvvvway Some function
function protocol_vvvvway_SomeFunc(protocol_vvvvway)
{
// set the function logic
if (protocol_vvvvway == 2)
{
return true;
}
return false;
}
// the vvvvwaz function
function vvvvwaz(protocol_vvvvwaz)
{
@ -197,29 +64,105 @@ function vvvvwaz(protocol_vvvvwaz)
// set this function logic
if (protocol)
{
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
if (jform_vvvvwazwal_required)
jQuery('#jform_authentication').closest('.control-group').show();
if (jform_vvvvwazwag_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwazwal_required = false;
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwazwag_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
if (jform_vvvvwazwah_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwazwah_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
if (jform_vvvvwazwai_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwazwai_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwazwaj_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwazwaj_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
if (jform_vvvvwazwak_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwazwak_required = false;
}
}
else
{
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
if (!jform_vvvvwazwal_required)
jQuery('#jform_authentication').closest('.control-group').hide();
if (!jform_vvvvwazwag_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwazwal_required = true;
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwazwag_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
if (!jform_vvvvwazwah_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwazwah_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
if (!jform_vvvvwazwai_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwazwai_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwazwaj_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwazwaj_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
if (!jform_vvvvwazwak_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwazwak_required = true;
}
}
}
@ -228,7 +171,7 @@ function vvvvwaz(protocol_vvvvwaz)
function protocol_vvvvwaz_SomeFunc(protocol_vvvvwaz)
{
// set the function logic
if (protocol_vvvvwaz == 1)
if (protocol_vvvvwaz == 2)
{
return true;
}
@ -236,7 +179,7 @@ function protocol_vvvvwaz_SomeFunc(protocol_vvvvwaz)
}
// the vvvvwba function
function vvvvwba(protocol_vvvvwba,authentication_vvvvwba)
function vvvvwba(protocol_vvvvwba)
{
if (isSet(protocol_vvvvwba) && protocol_vvvvwba.constructor !== Array)
{
@ -250,43 +193,33 @@ function vvvvwba(protocol_vvvvwba,authentication_vvvvwba)
}
var protocol = protocol_vvvvwba.some(protocol_vvvvwba_SomeFunc);
if (isSet(authentication_vvvvwba) && authentication_vvvvwba.constructor !== Array)
{
var temp_vvvvwba = authentication_vvvvwba;
var authentication_vvvvwba = [];
authentication_vvvvwba.push(temp_vvvvwba);
}
else if (!isSet(authentication_vvvvwba))
{
var authentication_vvvvwba = [];
}
var authentication = authentication_vvvvwba.some(authentication_vvvvwba_SomeFunc);
// set this function logic
if (protocol && authentication)
if (protocol)
{
jQuery('#jform_password').closest('.control-group').show();
if (jform_vvvvwbawam_required)
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
if (jform_vvvvwbawal_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwbawam_required = false;
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwbawal_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
if (!jform_vvvvwbawam_required)
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
if (!jform_vvvvwbawal_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwbawam_required = true;
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwbawal_required = true;
}
}
}
@ -295,206 +228,273 @@ function vvvvwba(protocol_vvvvwba,authentication_vvvvwba)
function protocol_vvvvwba_SomeFunc(protocol_vvvvwba)
{
// set the function logic
if (protocol_vvvvwba == 2)
if (protocol_vvvvwba == 1)
{
return true;
}
return false;
}
// the vvvvwba Some function
function authentication_vvvvwba_SomeFunc(authentication_vvvvwba)
// the vvvvwbb function
function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb)
{
if (isSet(protocol_vvvvwbb) && protocol_vvvvwbb.constructor !== Array)
{
var temp_vvvvwbb = protocol_vvvvwbb;
var protocol_vvvvwbb = [];
protocol_vvvvwbb.push(temp_vvvvwbb);
}
else if (!isSet(protocol_vvvvwbb))
{
var protocol_vvvvwbb = [];
}
var protocol = protocol_vvvvwbb.some(protocol_vvvvwbb_SomeFunc);
if (isSet(authentication_vvvvwbb) && authentication_vvvvwbb.constructor !== Array)
{
var temp_vvvvwbb = authentication_vvvvwbb;
var authentication_vvvvwbb = [];
authentication_vvvvwbb.push(temp_vvvvwbb);
}
else if (!isSet(authentication_vvvvwbb))
{
var authentication_vvvvwbb = [];
}
var authentication = authentication_vvvvwbb.some(authentication_vvvvwbb_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_password').closest('.control-group').show();
if (jform_vvvvwbbwam_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwbbwam_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
if (!jform_vvvvwbbwam_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwbbwam_required = true;
}
}
}
// the vvvvwbb Some function
function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
{
// set the function logic
if (authentication_vvvvwba == 1 || authentication_vvvvwba == 3 || authentication_vvvvwba == 5)
if (protocol_vvvvwbb == 2)
{
return true;
}
return false;
}
// the vvvvwbc function
function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
// the vvvvwbb Some function
function authentication_vvvvwbb_SomeFunc(authentication_vvvvwbb)
{
if (isSet(protocol_vvvvwbc) && protocol_vvvvwbc.constructor !== Array)
// set the function logic
if (authentication_vvvvwbb == 1 || authentication_vvvvwbb == 3 || authentication_vvvvwbb == 5)
{
var temp_vvvvwbc = protocol_vvvvwbc;
var protocol_vvvvwbc = [];
protocol_vvvvwbc.push(temp_vvvvwbc);
return true;
}
else if (!isSet(protocol_vvvvwbc))
{
var protocol_vvvvwbc = [];
return false;
}
var protocol = protocol_vvvvwbc.some(protocol_vvvvwbc_SomeFunc);
if (isSet(authentication_vvvvwbc) && authentication_vvvvwbc.constructor !== Array)
// the vvvvwbd function
function vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd)
{
var temp_vvvvwbc = authentication_vvvvwbc;
var authentication_vvvvwbc = [];
authentication_vvvvwbc.push(temp_vvvvwbc);
}
else if (!isSet(authentication_vvvvwbc))
if (isSet(protocol_vvvvwbd) && protocol_vvvvwbd.constructor !== Array)
{
var authentication_vvvvwbc = [];
var temp_vvvvwbd = protocol_vvvvwbd;
var protocol_vvvvwbd = [];
protocol_vvvvwbd.push(temp_vvvvwbd);
}
var authentication = authentication_vvvvwbc.some(authentication_vvvvwbc_SomeFunc);
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_private').closest('.control-group').show();
if (jform_vvvvwbcwan_required)
if (jform_vvvvwbdwan_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwbcwan_required = false;
jform_vvvvwbdwan_required = false;
}
}
else
{
jQuery('#jform_private').closest('.control-group').hide();
if (!jform_vvvvwbcwan_required)
if (!jform_vvvvwbdwan_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwbcwan_required = true;
jform_vvvvwbdwan_required = true;
}
}
}
// the vvvvwbc Some function
function protocol_vvvvwbc_SomeFunc(protocol_vvvvwbc)
// the vvvvwbd Some function
function protocol_vvvvwbd_SomeFunc(protocol_vvvvwbd)
{
// set the function logic
if (protocol_vvvvwbc == 2)
if (protocol_vvvvwbd == 2)
{
return true;
}
return false;
}
// the vvvvwbc Some function
function authentication_vvvvwbc_SomeFunc(authentication_vvvvwbc)
// the vvvvwbd Some function
function authentication_vvvvwbd_SomeFunc(authentication_vvvvwbd)
{
// set the function logic
if (authentication_vvvvwbc == 2 || authentication_vvvvwbc == 3)
if (authentication_vvvvwbd == 2 || authentication_vvvvwbd == 3)
{
return true;
}
return false;
}
// the vvvvwbe function
function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
// the vvvvwbf function
function vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf)
{
if (isSet(protocol_vvvvwbe) && protocol_vvvvwbe.constructor !== Array)
if (isSet(protocol_vvvvwbf) && protocol_vvvvwbf.constructor !== Array)
{
var temp_vvvvwbe = protocol_vvvvwbe;
var protocol_vvvvwbe = [];
protocol_vvvvwbe.push(temp_vvvvwbe);
var temp_vvvvwbf = protocol_vvvvwbf;
var protocol_vvvvwbf = [];
protocol_vvvvwbf.push(temp_vvvvwbf);
}
else if (!isSet(protocol_vvvvwbe))
else if (!isSet(protocol_vvvvwbf))
{
var protocol_vvvvwbe = [];
var protocol_vvvvwbf = [];
}
var protocol = protocol_vvvvwbe.some(protocol_vvvvwbe_SomeFunc);
var protocol = protocol_vvvvwbf.some(protocol_vvvvwbf_SomeFunc);
if (isSet(authentication_vvvvwbe) && authentication_vvvvwbe.constructor !== Array)
if (isSet(authentication_vvvvwbf) && authentication_vvvvwbf.constructor !== Array)
{
var temp_vvvvwbe = authentication_vvvvwbe;
var authentication_vvvvwbe = [];
authentication_vvvvwbe.push(temp_vvvvwbe);
var temp_vvvvwbf = authentication_vvvvwbf;
var authentication_vvvvwbf = [];
authentication_vvvvwbf.push(temp_vvvvwbf);
}
else if (!isSet(authentication_vvvvwbe))
else if (!isSet(authentication_vvvvwbf))
{
var authentication_vvvvwbe = [];
var authentication_vvvvwbf = [];
}
var authentication = authentication_vvvvwbe.some(authentication_vvvvwbe_SomeFunc);
var authentication = authentication_vvvvwbf.some(authentication_vvvvwbf_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_private_key').closest('.control-group').show();
if (jform_vvvvwbewao_required)
if (jform_vvvvwbfwao_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_vvvvwbewao_required = false;
jform_vvvvwbfwao_required = false;
}
}
else
{
jQuery('#jform_private_key').closest('.control-group').hide();
if (!jform_vvvvwbewao_required)
if (!jform_vvvvwbfwao_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_vvvvwbewao_required = true;
jform_vvvvwbfwao_required = true;
}
}
}
// the vvvvwbe Some function
function protocol_vvvvwbe_SomeFunc(protocol_vvvvwbe)
// the vvvvwbf Some function
function protocol_vvvvwbf_SomeFunc(protocol_vvvvwbf)
{
// set the function logic
if (protocol_vvvvwbe == 2)
if (protocol_vvvvwbf == 2)
{
return true;
}
return false;
}
// the vvvvwbe Some function
function authentication_vvvvwbe_SomeFunc(authentication_vvvvwbe)
// the vvvvwbf Some function
function authentication_vvvvwbf_SomeFunc(authentication_vvvvwbf)
{
// set the function logic
if (authentication_vvvvwbe == 4 || authentication_vvvvwbe == 5)
if (authentication_vvvvwbf == 4 || authentication_vvvvwbf == 5)
{
return true;
}
return false;
}
// the vvvvwbg function
function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
// the vvvvwbh function
function vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh)
{
if (isSet(protocol_vvvvwbg) && protocol_vvvvwbg.constructor !== Array)
if (isSet(protocol_vvvvwbh) && protocol_vvvvwbh.constructor !== Array)
{
var temp_vvvvwbg = protocol_vvvvwbg;
var protocol_vvvvwbg = [];
protocol_vvvvwbg.push(temp_vvvvwbg);
var temp_vvvvwbh = protocol_vvvvwbh;
var protocol_vvvvwbh = [];
protocol_vvvvwbh.push(temp_vvvvwbh);
}
else if (!isSet(protocol_vvvvwbg))
else if (!isSet(protocol_vvvvwbh))
{
var protocol_vvvvwbg = [];
var protocol_vvvvwbh = [];
}
var protocol = protocol_vvvvwbg.some(protocol_vvvvwbg_SomeFunc);
var protocol = protocol_vvvvwbh.some(protocol_vvvvwbh_SomeFunc);
if (isSet(authentication_vvvvwbg) && authentication_vvvvwbg.constructor !== Array)
if (isSet(authentication_vvvvwbh) && authentication_vvvvwbh.constructor !== Array)
{
var temp_vvvvwbg = authentication_vvvvwbg;
var authentication_vvvvwbg = [];
authentication_vvvvwbg.push(temp_vvvvwbg);
var temp_vvvvwbh = authentication_vvvvwbh;
var authentication_vvvvwbh = [];
authentication_vvvvwbh.push(temp_vvvvwbh);
}
else if (!isSet(authentication_vvvvwbg))
else if (!isSet(authentication_vvvvwbh))
{
var authentication_vvvvwbg = [];
var authentication_vvvvwbh = [];
}
var authentication = authentication_vvvvwbg.some(authentication_vvvvwbg_SomeFunc);
var authentication = authentication_vvvvwbh.some(authentication_vvvvwbh_SomeFunc);
// set this function logic
@ -508,22 +508,22 @@ function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
}
}
// the vvvvwbg Some function
function protocol_vvvvwbg_SomeFunc(protocol_vvvvwbg)
// the vvvvwbh Some function
function protocol_vvvvwbh_SomeFunc(protocol_vvvvwbh)
{
// set the function logic
if (protocol_vvvvwbg == 2)
if (protocol_vvvvwbh == 2)
{
return true;
}
return false;
}
// the vvvvwbg Some function
function authentication_vvvvwbg_SomeFunc(authentication_vvvvwbg)
// the vvvvwbh Some function
function authentication_vvvvwbh_SomeFunc(authentication_vvvvwbh)
{
// set the function logic
if (authentication_vvvvwbg == 2 || authentication_vvvvwbg == 3 || authentication_vvvvwbg == 4 || authentication_vvvvwbg == 5)
if (authentication_vvvvwbh == 2 || authentication_vvvvwbh == 3 || authentication_vvvvwbh == 4 || authentication_vvvvwbh == 5)
{
return true;
}

View File

@ -114,19 +114,6 @@
message="COM_COMPONENTBUILDER_SITE_VIEW_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_NAME_HINT"
/>
<!-- Codename Field. Type: Text. (joomla) -->
<field
type="text"
name="codename"
label="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
@ -143,15 +130,14 @@
message="COM_COMPONENTBUILDER_SITE_VIEW_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_SITE_VIEW_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_SNIPPET_DESCRIPTION"
class="list_class"
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="false"
required="true"
button="true"
/>
<!-- Php_document Field. Type: Editor. (joomla) -->
@ -171,6 +157,255 @@
required="true"
validate="code"
/>
<!-- Php_view Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_view"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_css_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_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_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_javascript_file Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Context Field. Type: Text. (joomla) -->
<field
type="text"
name="context"
label="COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_DESCRIPTION"
class="text_area"
filter="WORD"
message="COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_HINT"
/>
<!-- Codename Field. Type: Text. (joomla) -->
<field
type="text"
name="codename"
label="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_MESSAGE"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_HINT"
/>
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="editor"
name="default"
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_SITE_VIEW_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_SITE_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_SITE_VIEW_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_SNIPPET_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Php_jview Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Php_model Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_model"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
/>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Javascript_file Field. Type: Editor. (joomla) -->
<field
type="editor"
name="javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Js_document Field. Type: Editor. (joomla) -->
<field
type="editor"
name="js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Ajax_input Field. Type: Subform. (joomla) -->
<field
type="subform"
@ -302,48 +537,23 @@
/>
</form>
</field>
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<!-- Css_document Field. Type: Editor. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_css_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
type="editor"
name="css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="css"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="libraries"
@ -356,175 +566,12 @@
required="false"
button="true"
/>
<!-- Php_jview Field. Type: Editor. (joomla) -->
<!-- Css Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="editor"
name="default"
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_SITE_VIEW_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_SITE_VIEW_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_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Php_view Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_view"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_javascript_file Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
<!-- Javascript_file Field. Type: Editor. (joomla) -->
<field
type="editor"
name="javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Js_document Field. Type: Editor. (joomla) -->
<field
type="editor"
name="js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Css_document Field. Type: Editor. (joomla) -->
<field
type="editor"
name="css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION"
name="css"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION"
width="100%"
height="450px"
cols="15"
@ -545,25 +592,6 @@
multiple="false"
required="false"
/>
<!-- Css Field. Type: Editor. (joomla) -->
<field
type="editor"
name="css"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="css"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Php_ajaxmethod Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -581,6 +609,22 @@
required="true"
validate="code"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Add_php_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_custom_button Field. Type: Radio. (joomla) -->
<field
type="radio"
@ -595,11 +639,11 @@
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_php_document Field. Type: Radio. (joomla) -->
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_DOCUMENT_LABEL"
name="add_php_view"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -634,11 +678,11 @@
<option value="5">
COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM</option>
</field>
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<!-- Add_php_jview_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW_LABEL"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -650,11 +694,11 @@
</field>
<!-- Note_custom_toolbar_placeholder Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_custom_toolbar_placeholder" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_CUSTOM_TOOLBAR_PLACEHOLDER_DESCRIPTION" heading="h4" class="note_custom_toolbar_placeholder" showon="button_position:5" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla) -->
<!-- Add_php_jview Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
name="add_php_jview"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -1173,20 +1217,8 @@
</field>
</form>
</field>
<!-- Add_php_jview Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Php_controller Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -1204,25 +1236,6 @@
required="false"
validate="code"
/>
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Php_model Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_model"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -101,19 +101,6 @@
message="COM_COMPONENTBUILDER_TEMPLATE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_DESCRIPTION"
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"
@ -130,13 +117,12 @@
message="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<!-- Dynamic_get Field. Type: Dynamicget. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_DESCRIPTION"
class="list_class"
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"
@ -174,16 +160,6 @@
</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"
@ -209,6 +185,17 @@
/>
<!-- 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" />
<!-- 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"
/>
<!-- 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) -->
@ -227,6 +214,19 @@
/>
<!-- 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" />
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_DESCRIPTION"
class="text_area"
filter="CMD"
message="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_MESSAGE"
hint="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -102,15 +102,18 @@ class ComponentbuilderModelHelp_document extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.help_document', 'help_document', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.help_document', 'help_document', $options);
if (empty($form))
{

View File

@ -221,21 +221,6 @@ class ComponentbuilderModelHelp_documents extends JModelList
{
$query->where('(a.published = 0 OR a.published = 1)');
}
// 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 . ')');
}
// Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
@ -307,12 +292,6 @@ class ComponentbuilderModelHelp_documents extends JModelList
// From the componentbuilder_help_document table
$query->from($db->quoteName('#__componentbuilder_help_document', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// 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.ordering ASC');

View File

@ -765,7 +765,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
{
$oldID = (int) $item->id;
// first check if exist
if ($canmerge && $local = $this->getLocalItem($item, $table, 1))
if ($canmerge && ($local = $this->getLocalItem($item, $table, 1)) !== false)
{
// display more import info
if ($this->moreInfo)
@ -786,10 +786,10 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
// make sure we have the correct ID set
$item->id = $local->id;
// yes it is newer, lets update (or is being forced)
if ($canEdit && $id = $this->updateLocalItem($item, $table, $canState))
if ($canEdit && ($id = $this->updateLocalItem($item, $table, $canState)) !== false)
{
// we had success in
$this->newID[$table][$oldID] = (int) $id;
$this->newID[$table][$oldID] = (int) $local->id;
// display more import info
if ($this->moreInfo)
{
@ -812,7 +812,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
$this->newID[$table][$oldID] = (int) $local->id;
}
}
elseif ($canCreate && $id = $this->addLocalItem($item, $table))
elseif ($canCreate && ($id = $this->addLocalItem($item, $table)) !== false)
{
// not found in local db so add
$this->newID[$table][$oldID] = (int) $id;
@ -1025,9 +1025,9 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($this->updateAfter['field']) && ComponentbuilderHelper::checkArray($this->updateAfter['field']))
{
// update repeatable
foreach ($this->updateAfter['field'] as $field)
foreach ($this->updateAfter['field'] as $field => $action)
{
if (isset($this->newID['field'][$field]))
if ('add' === $action && isset($this->newID['field'][$field]))
{
$field = $this->newID['field'][$field];
}
@ -1087,9 +1087,9 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($this->updateAfter['adminview']) && ComponentbuilderHelper::checkArray($this->updateAfter['adminview']))
{
// update the addlinked_views
foreach ($this->updateAfter['adminview'] as $adminview)
foreach ($this->updateAfter['adminview'] as $adminview => $action)
{
if (isset($this->newID['admin_view'][(int) $adminview]))
if ('add' === $action && isset($this->newID['admin_view'][(int) $adminview]))
{
$adminview = $this->newID['admin_view'][(int) $adminview];
}
@ -1124,9 +1124,9 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($this->updateAfter['joomla_component']) && ComponentbuilderHelper::checkArray($this->updateAfter['joomla_component']))
{
// update dashboard of the components
foreach ($this->updateAfter['joomla_component'] as $component)
foreach ($this->updateAfter['joomla_component'] as $component => $action)
{
if (isset($this->newID['joomla_component'][(int) $component]))
if ('add' === $action && isset($this->newID['joomla_component'][(int) $component]))
{
$component = $this->newID['joomla_component'][(int) $component];
}
@ -1173,11 +1173,11 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($this->updateAfter['relations']) && ComponentbuilderHelper::checkArray($this->updateAfter['relations']))
{
// update repeatable
foreach ($this->updateAfter['relations'] as $relation)
foreach ($this->updateAfter['relations'] as $relation => $action)
{
// check if we must update this relation
$update = false;
if (isset($this->newID['admin_fields_relations'][$relation]))
if ('add' === $action && isset($this->newID['admin_fields_relations'][$relation]))
{
$relation = $this->newID['admin_fields_relations'][$relation];
}
@ -1577,7 +1577,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
// update multi field values
if ($this->checkMultiFields($item->fieldtype))
{
$this->updateAfter['field'][$item->id] = $item->id; // multi field
$this->updateAfter['field'][(int) $item->id] = $action; // multi field
}
}
elseif (!is_numeric($item->fieldtype) || $item->fieldtype == 0)
@ -1685,7 +1685,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
// update the addlinked_views
if (isset($item->addlinked_views) && ComponentbuilderHelper::checkJson($item->addlinked_views))
{
$this->updateAfter['adminview'][$item->id] = $item->id; // addlinked_views
$this->updateAfter['adminview'][(int) $item->id] = $action; // addlinked_views
}
elseif (isset($item->addlinked_views))
{
@ -1722,7 +1722,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($item->dashboard_type) && 2 == $item->dashboard_type)
{
// update the custom dash ID
$this->updateAfter['joomla_component'][$item->id] = $item->id; // dashboard
$this->updateAfter['joomla_component'][(int) $item->id] = $action; // dashboard
}
// set the anchors getters
$getter = array('joomla_component' => $item->id);
@ -2208,7 +2208,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
'addrelations' => array('listfield' => 'field', 'joinfields' => 'field')
);
// special fix for custom code
$this->updateAfter['relations'][$item->id] = $item->id; // addrelations->set
$this->updateAfter['relations'][(int) $item->id] = $action; // addrelations->set
}
// update the repeatable fields
@ -2447,7 +2447,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
// update the item
if ($result = $this->_db->updateObject('#__componentbuilder_' . $type, $update, 'id'))
{
// return current ID
// return success
return $update->id;
}
}
@ -2716,7 +2716,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
}
}
// add hash target search
if (isset($item->hashtarget) && ComponentbuilderHelper::checkString($item->hashtarget))
elseif (isset($item->hashtarget) && ComponentbuilderHelper::checkString($item->hashtarget))
{
$getter[] = 'hashtarget';
// remove function name

View File

@ -285,15 +285,18 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.joomla_component', 'joomla_component', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.joomla_component', 'joomla_component', $options);
if (empty($form))
{

View File

@ -96,15 +96,18 @@ class ComponentbuilderModelLanguage extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.language', 'language', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.language', 'language', $options);
if (empty($form))
{

View File

@ -141,15 +141,18 @@ class ComponentbuilderModelLanguage_translation extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.language_translation', 'language_translation', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.language_translation', 'language_translation', $options);
if (empty($form))
{

View File

@ -147,15 +147,18 @@ class ComponentbuilderModelLayout extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.layout', 'layout', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.layout', 'layout', $options);
if (empty($form))
{

View File

@ -28,9 +28,9 @@ class ComponentbuilderModelLayouts extends JModelList
'a.created_by','created_by',
'a.modified_by','modified_by',
'a.name','name',
'a.alias','alias',
'a.description','description',
'a.dynamic_get','dynamic_get'
'a.dynamic_get','dynamic_get',
'a.add_php_view','add_php_view'
);
}
@ -54,15 +54,15 @@ class ComponentbuilderModelLayouts extends JModelList
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
$this->setState('filter.name', $name);
$alias = $this->getUserStateFromRequest($this->context . '.filter.alias', 'filter_alias');
$this->setState('filter.alias', $alias);
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
$this->setState('filter.description', $description);
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
$this->setState('filter.dynamic_get', $dynamic_get);
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
$this->setState('filter.add_php_view', $add_php_view);
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
@ -113,10 +113,44 @@ class ComponentbuilderModelLayouts extends JModelList
}
}
// set selection value to a translatable value
if (ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// convert add_php_view
$item->add_php_view = $this->selectionTranslation($item->add_php_view, 'add_php_view');
}
}
// return items
return $items;
}
/**
* Method to convert selection values to translatable string.
*
* @return translatable string
*/
public function selectionTranslation($value,$name)
{
// Array of add_php_view language strings
if ($name === 'add_php_view')
{
$add_php_viewArray = array(
1 => 'COM_COMPONENTBUILDER_LAYOUT_YES',
0 => 'COM_COMPONENTBUILDER_LAYOUT_NO'
);
// Now check if value is found in this array
if (isset($add_php_viewArray[$value]) && ComponentbuilderHelper::checkString($add_php_viewArray[$value]))
{
return $add_php_viewArray[$value];
}
}
return $value;
}
/**
* Method to build an SQL query to load the list data.
*
@ -176,7 +210,7 @@ class ComponentbuilderModelLayouts extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.alias LIKE '.$search.' OR a.description LIKE '.$search.' OR a.dynamic_get LIKE '.$search.' OR g.name LIKE '.$search.')');
$query->where('(a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.dynamic_get LIKE '.$search.' OR g.name LIKE '.$search.' OR a.alias LIKE '.$search.')');
}
}
@ -185,6 +219,11 @@ class ComponentbuilderModelLayouts extends JModelList
{
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
}
// Filter by Add_php_view.
if ($add_php_view = $this->getState('filter.add_php_view'))
{
$query->where('a.add_php_view = ' . $db->quote($db->escape($add_php_view)));
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
@ -315,9 +354,9 @@ class ComponentbuilderModelLayouts extends JModelList
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' . $this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.name');
$id .= ':' . $this->getState('filter.alias');
$id .= ':' . $this->getState('filter.description');
$id .= ':' . $this->getState('filter.dynamic_get');
$id .= ':' . $this->getState('filter.add_php_view');
return parent::getStoreId($id);
}

View File

@ -149,15 +149,18 @@ class ComponentbuilderModelLibrary extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.library', 'library', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.library', 'library', $options);
if (empty($form))
{

View File

@ -104,15 +104,18 @@ class ComponentbuilderModelLibrary_config extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.library_config', 'library_config', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.library_config', 'library_config', $options);
if (empty($form))
{

View File

@ -136,15 +136,18 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.library_files_folders_urls', 'library_files_folders_urls', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.library_files_folders_urls', 'library_files_folders_urls', $options);
if (empty($form))
{

View File

@ -235,15 +235,18 @@ class ComponentbuilderModelServer extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.server', 'server', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.server', 'server', $options);
if (empty($form))
{

View File

@ -92,10 +92,10 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->php_jview))
if (!empty($item->php_view))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->default))
@ -104,18 +104,24 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->default = base64_decode($item->default);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_jview_display))
{
// base64 Decode php_jview_display.
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->php_jview))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->php_model))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->javascript_file))
{
// base64 Decode javascript_file.
@ -152,10 +158,12 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->php_controller = base64_decode($item->php_controller);
}
if (!empty($item->php_model))
if (!empty($item->custom_get))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
// Convert the custom_get field to an array.
$custom_get = new Registry;
$custom_get->loadString($item->custom_get);
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->ajax_input))
@ -174,14 +182,6 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->libraries = $libraries->toArray();
}
if (!empty($item->custom_get))
{
// Convert the custom_get field to an array.
$custom_get = new Registry;
$custom_get->loadString($item->custom_get);
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->custom_button))
{
// Convert the custom_button field to an array.
@ -270,15 +270,18 @@ class ComponentbuilderModelSite_view extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.site_view', 'site_view', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.site_view', 'site_view', $options);
if (empty($form))
{
@ -995,6 +998,29 @@ class ComponentbuilderModelSite_view extends JModelAdmin
{
$data['system_name'] = $data['name'];
}
// if codename is empty create from name
if (empty($data['codename']) || !ComponentbuilderHelper::checkString($data['codename']))
{
$data['codename'] = ComponentbuilderHelper::safeString($data['name']);
}
// if context is empty create from codename
if (empty($data['context']) || !ComponentbuilderHelper::checkString($data['context']))
{
$data['context'] = $data['codename'];
}
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
$custom_get = new JRegistry;
$custom_get->loadArray($data['custom_get']);
$data['custom_get'] = (string) $custom_get;
}
elseif (!isset($data['custom_get']))
{
// Set the empty custom_get to data
$data['custom_get'] = '';
}
// Set the ajax_input items to data.
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
@ -1022,19 +1048,6 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['libraries'] = '';
}
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
$custom_get = new JRegistry;
$custom_get->loadArray($data['custom_get']);
$data['custom_get'] = (string) $custom_get;
}
elseif (!isset($data['custom_get']))
{
// Set the empty custom_get to data
$data['custom_get'] = '';
}
// Set the custom_button items to data.
if (isset($data['custom_button']) && is_array($data['custom_button']))
{
@ -1054,10 +1067,10 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the default string to base64 string.
@ -1066,18 +1079,24 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['default'] = base64_encode($data['default']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the javascript_file string to base64 string.
if (isset($data['javascript_file']))
{
@ -1114,12 +1133,6 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['php_controller'] = base64_encode($data['php_controller']);
}
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the Params Items to data
if (isset($data['params']) && is_array($data['params']))
{

View File

@ -29,8 +29,11 @@ class ComponentbuilderModelSite_views extends JModelList
'a.modified_by','modified_by',
'a.system_name','system_name',
'a.name','name',
'a.codename','codename',
'a.description','description'
'a.description','description',
'a.main_get','main_get',
'a.context','context',
'a.add_php_ajax','add_php_ajax',
'a.add_custom_button','add_custom_button'
);
}
@ -57,12 +60,21 @@ class ComponentbuilderModelSite_views extends JModelList
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
$this->setState('filter.name', $name);
$codename = $this->getUserStateFromRequest($this->context . '.filter.codename', 'filter_codename');
$this->setState('filter.codename', $codename);
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
$this->setState('filter.description', $description);
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
$this->setState('filter.main_get', $main_get);
$context = $this->getUserStateFromRequest($this->context . '.filter.context', 'filter_context');
$this->setState('filter.context', $context);
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
$this->setState('filter.add_php_ajax', $add_php_ajax);
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
$this->setState('filter.add_custom_button', $add_custom_button);
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
@ -113,10 +125,59 @@ class ComponentbuilderModelSite_views extends JModelList
}
}
// set selection value to a translatable value
if (ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// convert add_php_ajax
$item->add_php_ajax = $this->selectionTranslation($item->add_php_ajax, 'add_php_ajax');
// convert add_custom_button
$item->add_custom_button = $this->selectionTranslation($item->add_custom_button, 'add_custom_button');
}
}
// return items
return $items;
}
/**
* Method to convert selection values to translatable string.
*
* @return translatable string
*/
public function selectionTranslation($value,$name)
{
// Array of add_php_ajax language strings
if ($name === 'add_php_ajax')
{
$add_php_ajaxArray = array(
1 => 'COM_COMPONENTBUILDER_SITE_VIEW_YES',
0 => 'COM_COMPONENTBUILDER_SITE_VIEW_NO'
);
// Now check if value is found in this array
if (isset($add_php_ajaxArray[$value]) && ComponentbuilderHelper::checkString($add_php_ajaxArray[$value]))
{
return $add_php_ajaxArray[$value];
}
}
// Array of add_custom_button language strings
if ($name === 'add_custom_button')
{
$add_custom_buttonArray = array(
1 => 'COM_COMPONENTBUILDER_SITE_VIEW_YES',
0 => 'COM_COMPONENTBUILDER_SITE_VIEW_NO'
);
// Now check if value is found in this array
if (isset($add_custom_buttonArray[$value]) && ComponentbuilderHelper::checkString($add_custom_buttonArray[$value]))
{
return $add_custom_buttonArray[$value];
}
}
return $value;
}
/**
* Method to build an SQL query to load the list data.
*
@ -136,9 +197,9 @@ class ComponentbuilderModelSite_views extends JModelList
// From the componentbuilder_item table
$query->from($db->quoteName('#__componentbuilder_site_view', 'a'));
// From the componentbuilder_snippet table.
$query->select($db->quoteName('g.name','snippet_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_snippet', 'g') . ' ON (' . $db->quoteName('a.snippet') . ' = ' . $db->quoteName('g.id') . ')');
// From the componentbuilder_dynamic_get table.
$query->select($db->quoteName('g.name','main_get_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_dynamic_get', 'g') . ' ON (' . $db->quoteName('a.main_get') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by published state
$published = $this->getState('filter.published');
@ -176,10 +237,25 @@ class ComponentbuilderModelSite_views extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.system_name LIKE '.$search.' OR a.name LIKE '.$search.' OR a.codename LIKE '.$search.' OR a.description LIKE '.$search.')');
$query->where('(a.system_name LIKE '.$search.' OR a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.main_get LIKE '.$search.' OR g.name LIKE '.$search.' OR a.context LIKE '.$search.' OR a.codename LIKE '.$search.')');
}
}
// Filter by main_get.
if ($main_get = $this->getState('filter.main_get'))
{
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
}
// Filter by Add_php_ajax.
if ($add_php_ajax = $this->getState('filter.add_php_ajax'))
{
$query->where('a.add_php_ajax = ' . $db->quote($db->escape($add_php_ajax)));
}
// Filter by Add_custom_button.
if ($add_custom_button = $this->getState('filter.add_custom_button'))
{
$query->where('a.add_custom_button = ' . $db->quote($db->escape($add_custom_button)));
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
@ -247,14 +323,16 @@ class ComponentbuilderModelSite_views extends JModelList
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode default
$item->default = base64_decode($item->default);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode default
$item->default = base64_decode($item->default);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode javascript_file
$item->javascript_file = base64_decode($item->javascript_file);
// decode js_document
@ -267,8 +345,6 @@ class ComponentbuilderModelSite_views extends JModelList
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
@ -331,8 +407,11 @@ class ComponentbuilderModelSite_views extends JModelList
$id .= ':' . $this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.system_name');
$id .= ':' . $this->getState('filter.name');
$id .= ':' . $this->getState('filter.codename');
$id .= ':' . $this->getState('filter.description');
$id .= ':' . $this->getState('filter.main_get');
$id .= ':' . $this->getState('filter.context');
$id .= ':' . $this->getState('filter.add_php_ajax');
$id .= ':' . $this->getState('filter.add_custom_button');
return parent::getStoreId($id);
}

View File

@ -102,15 +102,18 @@ class ComponentbuilderModelSnippet extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.snippet', 'snippet', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.snippet', 'snippet', $options);
if (empty($form))
{

View File

@ -96,15 +96,18 @@ class ComponentbuilderModelSnippet_type extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.snippet_type', 'snippet_type', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.snippet_type', 'snippet_type', $options);
if (empty($form))
{

View File

@ -147,15 +147,18 @@ class ComponentbuilderModelTemplate extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.template', 'template', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.template', 'template', $options);
if (empty($form))
{

View File

@ -28,8 +28,9 @@ class ComponentbuilderModelTemplates extends JModelList
'a.created_by','created_by',
'a.modified_by','modified_by',
'a.name','name',
'a.alias','alias',
'a.description','description'
'a.description','description',
'a.dynamic_get','dynamic_get',
'a.add_php_view','add_php_view'
);
}
@ -53,12 +54,15 @@ class ComponentbuilderModelTemplates extends JModelList
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
$this->setState('filter.name', $name);
$alias = $this->getUserStateFromRequest($this->context . '.filter.alias', 'filter_alias');
$this->setState('filter.alias', $alias);
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
$this->setState('filter.description', $description);
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
$this->setState('filter.dynamic_get', $dynamic_get);
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
$this->setState('filter.add_php_view', $add_php_view);
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
@ -109,10 +113,44 @@ class ComponentbuilderModelTemplates extends JModelList
}
}
// set selection value to a translatable value
if (ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// convert add_php_view
$item->add_php_view = $this->selectionTranslation($item->add_php_view, 'add_php_view');
}
}
// return items
return $items;
}
/**
* Method to convert selection values to translatable string.
*
* @return translatable string
*/
public function selectionTranslation($value,$name)
{
// Array of add_php_view language strings
if ($name === 'add_php_view')
{
$add_php_viewArray = array(
1 => 'COM_COMPONENTBUILDER_TEMPLATE_YES',
0 => 'COM_COMPONENTBUILDER_TEMPLATE_NO'
);
// Now check if value is found in this array
if (isset($add_php_viewArray[$value]) && ComponentbuilderHelper::checkString($add_php_viewArray[$value]))
{
return $add_php_viewArray[$value];
}
}
return $value;
}
/**
* Method to build an SQL query to load the list data.
*
@ -132,9 +170,9 @@ class ComponentbuilderModelTemplates extends JModelList
// From the componentbuilder_item table
$query->from($db->quoteName('#__componentbuilder_template', 'a'));
// From the componentbuilder_snippet table.
$query->select($db->quoteName('g.name','snippet_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_snippet', 'g') . ' ON (' . $db->quoteName('a.snippet') . ' = ' . $db->quoteName('g.id') . ')');
// From the componentbuilder_dynamic_get table.
$query->select($db->quoteName('g.name','dynamic_get_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_dynamic_get', 'g') . ' ON (' . $db->quoteName('a.dynamic_get') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by published state
$published = $this->getState('filter.published');
@ -172,10 +210,20 @@ class ComponentbuilderModelTemplates extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.alias LIKE '.$search.' OR a.description LIKE '.$search.')');
$query->where('(a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.dynamic_get LIKE '.$search.' OR g.name LIKE '.$search.' OR a.alias LIKE '.$search.')');
}
}
// Filter by dynamic_get.
if ($dynamic_get = $this->getState('filter.dynamic_get'))
{
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
}
// Filter by Add_php_view.
if ($add_php_view = $this->getState('filter.add_php_view'))
{
$query->where('a.add_php_view = ' . $db->quote($db->escape($add_php_view)));
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
@ -306,8 +354,9 @@ class ComponentbuilderModelTemplates extends JModelList
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' . $this->getState('filter.modified_by');
$id .= ':' . $this->getState('filter.name');
$id .= ':' . $this->getState('filter.alias');
$id .= ':' . $this->getState('filter.description');
$id .= ':' . $this->getState('filter.dynamic_get');
$id .= ':' . $this->getState('filter.add_php_view');
return parent::getStoreId($id);
}

View File

@ -133,15 +133,18 @@ class ComponentbuilderModelValidation_rule extends JModelAdmin
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.validation_rule', 'validation_rule', array('control' => 'jform', 'load_data' => $loadData));
$form = $this->loadForm('com_componentbuilder.validation_rule', 'validation_rule', $options);
if (empty($form))
{

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
ALTER TABLE `#__componentbuilder_dynamic_get` ADD `plugin_events` VARCHAR(255) NOT NULL DEFAULT '' AFTER `php_router_parse`;

View File

@ -0,0 +1 @@
ALTER TABLE `#__componentbuilder_site_view` ADD `context` VARCHAR(255) NOT NULL DEFAULT '' AFTER `codename`;

View File

@ -73,16 +73,31 @@ $edit = "index.php?option=com_componentbuilder&view=custom_admin_views&task=cust
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->name); ?>
<div><?php echo JText::_('COM_COMPONENTBUILDER_NAME'); ?>: <b>
<?php echo $this->escape($item->name); ?></b><br />
<?php echo JText::_('COM_COMPONENTBUILDER_CODE'); ?>: <b>
<?php echo $this->escape($item->codename); ?></b>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->codename); ?>
<div><em>
<?php echo $this->escape($item->description); ?></em>
<ul style="list-style: none">
<li><?php echo JText::_("COM_COMPONENTBUILDER_CUSTOM_BUTTON"); ?>: <b>
<?php echo JText::_($item->add_custom_button); ?></b></li>
<li><?php echo JText::_("COM_COMPONENTBUILDER_AJAX"); ?>: <b>
<?php echo JText::_($item->add_php_ajax); ?></b></li>
</ul>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->description); ?>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->snippet_name); ?>
<td class="nowrap">
<div class="name">
<?php if ($this->user->authorise('dynamic_get.edit', 'com_componentbuilder.dynamic_get.' . (int)$item->main_get)): ?>
<a href="index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id=<?php echo $item->main_get; ?>&ref=custom_admin_views"><?php echo $this->escape($item->main_get_name); ?></a>
<?php else: ?>
<?php echo $this->escape($item->main_get_name); ?>
<?php endif; ?>
</div>
</td>
<td class="center">
<?php if ($canDo->get('core.edit.state')) : ?>

View File

@ -14,5 +14,5 @@ defined('_JEXEC') or die('Restricted access');
?>
<tr>
<td colspan="9"><?php echo $this->pagination->getListFooter(); ?></td>
<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>

View File

@ -33,16 +33,13 @@ defined('_JEXEC') or die('Restricted access');
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME_LABEL', 'system_name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_NAMES', 'name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_LABEL', 'codename', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DETAILS', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_LABEL', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_LABEL'); ?>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL', 'main_get_name', $this->listDirn, $this->listOrder); ?>
</th>
<?php if ($this->canState): ?>
<th width="10" class="nowrap center" >

View File

@ -188,6 +188,72 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
);
}
// Set Main Get Name Selection
$this->main_getNameOptions = JFormHelper::loadFieldType('Maingets')->getOptions();
if ($this->main_getNameOptions)
{
// Main Get Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL').' -',
'filter_main_get',
JHtml::_('select.options', $this->main_getNameOptions, 'value', 'text', $this->state->get('filter.main_get'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Main Get Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL').' -',
'batch[main_get]',
JHtml::_('select.options', $this->main_getNameOptions, 'value', 'text')
);
}
}
// Set Add Php Ajax Selection
$this->add_php_ajaxOptions = $this->getTheAdd_php_ajaxSelections();
if ($this->add_php_ajaxOptions)
{
// Add Php Ajax Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL').' -',
'filter_add_php_ajax',
JHtml::_('select.options', $this->add_php_ajaxOptions, 'value', 'text', $this->state->get('filter.add_php_ajax'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Php Ajax Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL').' -',
'batch[add_php_ajax]',
JHtml::_('select.options', $this->add_php_ajaxOptions, 'value', 'text')
);
}
}
// Set Add Custom Button Selection
$this->add_custom_buttonOptions = $this->getTheAdd_custom_buttonSelections();
if ($this->add_custom_buttonOptions)
{
// Add Custom Button Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL').' -',
'filter_add_custom_button',
JHtml::_('select.options', $this->add_custom_buttonOptions, 'value', 'text', $this->state->get('filter.add_custom_button'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Custom Button Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL').' -',
'batch[add_custom_button]',
JHtml::_('select.options', $this->add_custom_buttonOptions, 'value', 'text')
);
}
}
}
/**
@ -235,9 +301,81 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
'a.published' => JText::_('JSTATUS'),
'a.system_name' => JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME_LABEL'),
'a.name' => JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_LABEL'),
'a.codename' => JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_LABEL'),
'a.description' => JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_LABEL'),
'g.name' => JText::_('COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
);
}
protected function getTheAdd_php_ajaxSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_php_ajax'));
$query->from($db->quoteName('#__componentbuilder_custom_admin_view'));
$query->order($db->quoteName('add_php_ajax') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_php_ajax)
{
// Translate the add_php_ajax selection
$text = $model->selectionTranslation($add_php_ajax,'add_php_ajax');
// Now add the add_php_ajax and its text to the options array
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
}
return $_filter;
}
return false;
}
protected function getTheAdd_custom_buttonSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_custom_button'));
$query->from($db->quoteName('#__componentbuilder_custom_admin_view'));
$query->order($db->quoteName('add_custom_button') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_custom_button)
{
// Translate the add_custom_button selection
$text = $model->selectionTranslation($add_custom_button,'add_custom_button');
// Now add the add_custom_button and its text to the options array
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
}
return $_filter;
}
return false;
}
}

View File

@ -113,21 +113,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_target listeners for target_vvvvwac function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwac(target_vvvvwac);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwac(target_vvvvwac);
});
// #jform_target listeners for target_vvvvwad function
jQuery('#jform_target').on('keyup',function()
{
@ -147,67 +132,82 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwae(target_vvvvwae,type_vvvvwae);
vvvvwae(target_vvvvwae);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwae(target_vvvvwae,type_vvvvwae);
});
// #jform_type listeners for type_vvvvwae function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwae(target_vvvvwae,type_vvvvwae);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwae(target_vvvvwae,type_vvvvwae);
});
// #jform_type listeners for type_vvvvwaf function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaf(type_vvvvwaf,target_vvvvwaf);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaf(type_vvvvwaf,target_vvvvwaf);
vvvvwae(target_vvvvwae);
});
// #jform_target listeners for target_vvvvwaf function
jQuery('#jform_target').on('keyup',function()
{
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaf(type_vvvvwaf,target_vvvvwaf);
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaf(type_vvvvwaf,target_vvvvwaf);
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
// #jform_type listeners for type_vvvvwaf function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
// #jform_type listeners for type_vvvvwag function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});
// #jform_target listeners for target_vvvvwag function
jQuery('#jform_target').on('keyup',function()
{
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});

View File

@ -51,9 +51,12 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<?php echo JHtml::_('bootstrap.addTab', 'dynamic_getTab', 'main', JText::_('COM_COMPONENTBUILDER_DYNAMIC_GET_MAIN', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<div class="span6">
<?php echo JLayoutHelper::render('dynamic_get.main_left', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('dynamic_get.main_right', $this); ?>
</div>
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
@ -605,6 +608,21 @@ jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
});
// #jform_gettype listeners for gettype_vvvvwac function
jQuery('#jform_gettype').on('keyup',function()
{
var gettype_vvvvwac = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac);
});
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{
e.preventDefault();
var gettype_vvvvwac = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac);
});
<?php $fieldNrs = range(0,50,1); ?>

View File

@ -144,48 +144,33 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_datalenght listeners for datalenght_vvvvwao function
// #jform_datalenght listeners for datalenght_vvvvwap function
jQuery('#jform_datalenght').on('keyup',function()
{
var datalenght_vvvvwao = jQuery("#jform_datalenght").val();
vvvvwao(datalenght_vvvvwao);
var datalenght_vvvvwap = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap);
});
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
{
e.preventDefault();
var datalenght_vvvvwao = jQuery("#jform_datalenght").val();
vvvvwao(datalenght_vvvvwao);
var datalenght_vvvvwap = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap);
});
// #jform_datadefault listeners for datadefault_vvvvwap function
// #jform_datadefault listeners for datadefault_vvvvwaq function
jQuery('#jform_datadefault').on('keyup',function()
{
var datadefault_vvvvwap = jQuery("#jform_datadefault").val();
vvvvwap(datadefault_vvvvwap);
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq);
});
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
{
e.preventDefault();
var datadefault_vvvvwap = jQuery("#jform_datadefault").val();
vvvvwap(datadefault_vvvvwap);
});
// #jform_datatype listeners for datatype_vvvvwaq function
jQuery('#jform_datatype').on('keyup',function()
{
var datatype_vvvvwaq = jQuery("#jform_datatype").val();
vvvvwaq(datatype_vvvvwaq);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var datatype_vvvvwaq = jQuery("#jform_datatype").val();
vvvvwaq(datatype_vvvvwaq);
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq);
});
@ -204,97 +189,112 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
});
// #jform_store listeners for store_vvvvwas function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwas = jQuery("#jform_store").val();
var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(store_vvvvwas,datatype_vvvvwas);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwas = jQuery("#jform_store").val();
var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(store_vvvvwas,datatype_vvvvwas);
});
// #jform_datatype listeners for datatype_vvvvwas function
jQuery('#jform_datatype').on('keyup',function()
{
var store_vvvvwas = jQuery("#jform_store").val();
var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(store_vvvvwas,datatype_vvvvwas);
vvvvwas(datatype_vvvvwas);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var store_vvvvwas = jQuery("#jform_store").val();
var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(store_vvvvwas,datatype_vvvvwas);
vvvvwas(datatype_vvvvwas);
});
// #jform_add_css_view listeners for add_css_view_vvvvwau function
// #jform_store listeners for store_vvvvwat function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
// #jform_datatype listeners for datatype_vvvvwat function
jQuery('#jform_datatype').on('keyup',function()
{
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
// #jform_add_css_view listeners for add_css_view_vvvvwav function
jQuery('#jform_add_css_view').on('keyup',function()
{
var add_css_view_vvvvwau = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwau(add_css_view_vvvvwau);
var add_css_view_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwav(add_css_view_vvvvwav);
});
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
{
e.preventDefault();
var add_css_view_vvvvwau = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwau(add_css_view_vvvvwau);
var add_css_view_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwav(add_css_view_vvvvwav);
});
// #jform_add_css_views listeners for add_css_views_vvvvwav function
// #jform_add_css_views listeners for add_css_views_vvvvwaw function
jQuery('#jform_add_css_views').on('keyup',function()
{
var add_css_views_vvvvwav = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwav(add_css_views_vvvvwav);
var add_css_views_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw);
});
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
{
e.preventDefault();
var add_css_views_vvvvwav = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwav(add_css_views_vvvvwav);
var add_css_views_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw);
});
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwaw function
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwax function
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
{
var add_javascript_view_footer_vvvvwaw = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwaw(add_javascript_view_footer_vvvvwaw);
var add_javascript_view_footer_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
{
e.preventDefault();
var add_javascript_view_footer_vvvvwaw = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwaw(add_javascript_view_footer_vvvvwaw);
var add_javascript_view_footer_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax);
});
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwax function
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvway function
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
{
var add_javascript_views_footer_vvvvwax = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_views_footer_vvvvwax);
var add_javascript_views_footer_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
{
e.preventDefault();
var add_javascript_views_footer_vvvvwax = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_views_footer_vvvvwax);
var add_javascript_views_footer_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway);
});

View File

@ -113,21 +113,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_location listeners for location_vvvvwbi function
jQuery('#jform_location').on('keyup',function()
{
var location_vvvvwbi = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbi(location_vvvvwbi);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_vvvvwbi = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbi(location_vvvvwbi);
});
// #jform_location listeners for location_vvvvwbj function
jQuery('#jform_location').on('keyup',function()
{
@ -143,18 +128,18 @@ jQuery('#adminForm').on('change', '#jform_location',function (e)
});
// #jform_type listeners for type_vvvvwbk function
jQuery('#jform_type').on('keyup',function()
// #jform_location listeners for location_vvvvwbk function
jQuery('#jform_location').on('keyup',function()
{
var type_vvvvwbk = jQuery("#jform_type").val();
vvvvwbk(type_vvvvwbk);
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbk(location_vvvvwbk);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var type_vvvvwbk = jQuery("#jform_type").val();
vvvvwbk(type_vvvvwbk);
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbk(location_vvvvwbk);
});
@ -188,18 +173,33 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
});
// #jform_target listeners for target_vvvvwbn function
// #jform_type listeners for type_vvvvwbn function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwbn = jQuery("#jform_type").val();
vvvvwbn(type_vvvvwbn);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwbn = jQuery("#jform_type").val();
vvvvwbn(type_vvvvwbn);
});
// #jform_target listeners for target_vvvvwbo function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvwbn = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbn(target_vvvvwbn);
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbo(target_vvvvwbo);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvwbn = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbn(target_vvvvwbn);
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbo(target_vvvvwbo);
});

View File

@ -83,3 +83,29 @@ if ($this->saveOrder)
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
<script type="text/javascript">
// layouts footer script
jQuery.fn.selText = function() {
var obj = this[0];
if (jQuery.browser.msie) {
var range = obj.offsetParent.createTextRange();
range.moveToElementText(obj);
range.select();
} else if (jQuery.browser.mozilla || $.browser.opera) {
var selection = obj.ownerDocument.defaultView.getSelection();
var range = obj.ownerDocument.createRange();
range.selectNodeContents(obj);
selection.removeAllRanges();
selection.addRange(range);
} else if (jQuery.browser.safari) {
var selection = obj.ownerDocument.defaultView.getSelection();
selection.setBaseAndExtent(obj, 0, obj, 1);
}
return this;
}
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
</script>

View File

@ -61,7 +61,7 @@ $edit = "index.php?option=com_componentbuilder&view=layouts&task=layout.edit";
<?php endif; ?>
</td>
<td class="nowrap">
<div class="name">
<div>
<?php if ($canDo->get('core.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
@ -69,14 +69,18 @@ $edit = "index.php?option=com_componentbuilder&view=layouts&task=layout.edit";
<?php endif; ?>
<?php else: ?>
<?php echo $this->escape($item->name); ?>
<?php endif; ?>
<?php endif; ?><br />
<code>&lt;?php echo JLayoutHelper::render('<?php echo ComponentbuilderHelper::safeString($item->alias); ?>', [?]); ?&gt;</code>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->alias); ?>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->description); ?>
<div><em>
<?php echo $this->escape($item->description); ?></em>
<ul style="list-style: none">
<li><?php echo JText::_("COM_COMPONENTBUILDER_CUSTOM_PHP"); ?>: <b>
<?php echo JText::_($item->add_php_view); ?></b></li>
</ul>
</div>
</td>
<td class="nowrap">
<div class="name">

View File

@ -14,5 +14,5 @@ defined('_JEXEC') or die('Restricted access');
?>
<tr>
<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
<td colspan="7"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>

View File

@ -30,13 +30,10 @@ defined('_JEXEC') or die('Restricted access');
</th>
<?php endif; ?>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUT_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUTS_NAMES', 'name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL', 'alias', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_LABEL', 'description', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUTS_DETAILS', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_LABEL', 'dynamic_get_name', $this->listDirn, $this->listOrder); ?>

View File

@ -210,6 +210,28 @@ class ComponentbuilderViewLayouts extends JViewLegacy
);
}
}
// Set Add Php View Selection
$this->add_php_viewOptions = $this->getTheAdd_php_viewSelections();
if ($this->add_php_viewOptions)
{
// Add Php View Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_LAYOUT_ADD_PHP_VIEW_LABEL').' -',
'filter_add_php_view',
JHtml::_('select.options', $this->add_php_viewOptions, 'value', 'text', $this->state->get('filter.add_php_view'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Php View Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_LAYOUT_ADD_PHP_VIEW_LABEL').' -',
'batch[add_php_view]',
JHtml::_('select.options', $this->add_php_viewOptions, 'value', 'text')
);
}
}
}
/**
@ -256,10 +278,45 @@ class ComponentbuilderViewLayouts extends JViewLegacy
'a.sorting' => JText::_('JGRID_HEADING_ORDERING'),
'a.published' => JText::_('JSTATUS'),
'a.name' => JText::_('COM_COMPONENTBUILDER_LAYOUT_NAME_LABEL'),
'a.alias' => JText::_('COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL'),
'a.description' => JText::_('COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_LABEL'),
'g.name' => JText::_('COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
);
}
protected function getTheAdd_php_viewSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_php_view'));
$query->from($db->quoteName('#__componentbuilder_layout'));
$query->order($db->quoteName('add_php_view') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_php_view)
{
// Translate the add_php_view selection
$text = $model->selectionTranslation($add_php_view,'add_php_view');
// Now add the add_php_view and its text to the options array
$_filter[] = JHtml::_('select.option', $add_php_view, JText::_($text));
}
return $_filter;
}
return false;
}
}

View File

@ -143,21 +143,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_how listeners for how_vvvvwag function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwag = jQuery("#jform_how").val();
vvvvwag(how_vvvvwag);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwag = jQuery("#jform_how").val();
vvvvwag(how_vvvvwag);
});
// #jform_how listeners for how_vvvvwah function
jQuery('#jform_how').on('keyup',function()
{
@ -248,18 +233,33 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
});
// #jform_type listeners for type_vvvvwan function
// #jform_how listeners for how_vvvvwan function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwan = jQuery("#jform_how").val();
vvvvwan(how_vvvvwan);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwan = jQuery("#jform_how").val();
vvvvwan(how_vvvvwan);
});
// #jform_type listeners for type_vvvvwao function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwan = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwan(type_vvvvwan);
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(type_vvvvwao);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwan = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwan(type_vvvvwan);
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(type_vvvvwao);
});

View File

@ -122,21 +122,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_protocol listeners for protocol_vvvvway function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvway = jQuery("#jform_protocol").val();
vvvvway(protocol_vvvvway);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvway = jQuery("#jform_protocol").val();
vvvvway(protocol_vvvvway);
});
// #jform_protocol listeners for protocol_vvvvwaz function
jQuery('#jform_protocol').on('keyup',function()
{
@ -156,135 +141,150 @@ jQuery('#adminForm').on('change', '#jform_protocol',function (e)
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwba = jQuery("#jform_protocol").val();
var authentication_vvvvwba = jQuery("#jform_authentication").val();
vvvvwba(protocol_vvvvwba,authentication_vvvvwba);
vvvvwba(protocol_vvvvwba);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwba = jQuery("#jform_protocol").val();
var authentication_vvvvwba = jQuery("#jform_authentication").val();
vvvvwba(protocol_vvvvwba,authentication_vvvvwba);
vvvvwba(protocol_vvvvwba);
});
// #jform_authentication listeners for authentication_vvvvwba function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwba = jQuery("#jform_protocol").val();
var authentication_vvvvwba = jQuery("#jform_authentication").val();
vvvvwba(protocol_vvvvwba,authentication_vvvvwba);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwba = jQuery("#jform_protocol").val();
var authentication_vvvvwba = jQuery("#jform_authentication").val();
vvvvwba(protocol_vvvvwba,authentication_vvvvwba);
});
// #jform_protocol listeners for protocol_vvvvwbc function
// #jform_protocol listeners for protocol_vvvvwbb function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
// #jform_authentication listeners for authentication_vvvvwbc function
// #jform_authentication listeners for authentication_vvvvwbb function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
// #jform_protocol listeners for protocol_vvvvwbe function
// #jform_protocol listeners for protocol_vvvvwbd function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
});
// #jform_authentication listeners for authentication_vvvvwbe function
// #jform_authentication listeners for authentication_vvvvwbd function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
});
// #jform_protocol listeners for protocol_vvvvwbg function
// #jform_protocol listeners for protocol_vvvvwbf function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbf = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbf = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf);
});
// #jform_authentication listeners for authentication_vvvvwbg function
// #jform_authentication listeners for authentication_vvvvwbf function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbf = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbf = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf);
});
// #jform_protocol listeners for protocol_vvvvwbh function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwbh = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwbh = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh);
});
// #jform_authentication listeners for authentication_vvvvwbh function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbh = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbh = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh);
});

View File

@ -73,16 +73,35 @@ $edit = "index.php?option=com_componentbuilder&view=site_views&task=site_view.ed
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->name); ?>
<div><?php echo JText::_('COM_COMPONENTBUILDER_NAME'); ?>: <b>
<?php echo $this->escape($item->name); ?></b><br />
<?php echo JText::_('COM_COMPONENTBUILDER_CODE'); ?>: <b>
<?php echo $this->escape($item->codename); ?></b><br />
<?php if (ComponentbuilderHelper::checkString($item->context)): ?>
<?php echo JText::_('COM_COMPONENTBUILDER_CONTEXT'); ?>: <b>
<?php echo $this->escape($item->context); ?></b>
<?php endif; ?>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->codename); ?>
<div><em>
<?php echo $this->escape($item->description); ?></em>
<ul style="list-style: none">
<li><?php echo JText::_("COM_COMPONENTBUILDER_CUSTOM_BUTTON"); ?>: <b>
<?php echo JText::_($item->add_custom_button); ?></b></li>
<li><?php echo JText::_("COM_COMPONENTBUILDER_AJAX"); ?>: <b>
<?php echo JText::_($item->add_php_ajax); ?></b></li>
</ul>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->description); ?>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->snippet_name); ?>
<td class="nowrap">
<div class="name">
<?php if ($this->user->authorise('dynamic_get.edit', 'com_componentbuilder.dynamic_get.' . (int)$item->main_get)): ?>
<a href="index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id=<?php echo $item->main_get; ?>&ref=site_views"><?php echo $this->escape($item->main_get_name); ?></a>
<?php else: ?>
<?php echo $this->escape($item->main_get_name); ?>
<?php endif; ?>
</div>
</td>
<td class="center">
<?php if ($canDo->get('core.edit.state')) : ?>

View File

@ -14,5 +14,5 @@ defined('_JEXEC') or die('Restricted access');
?>
<tr>
<td colspan="9"><?php echo $this->pagination->getListFooter(); ?></td>
<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>

View File

@ -33,16 +33,13 @@ defined('_JEXEC') or die('Restricted access');
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEW_SYSTEM_NAME_LABEL', 'system_name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEW_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEWS_NAMES', 'name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_LABEL', 'codename', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEWS_DETAILS', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEW_DESCRIPTION_LABEL', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JText::_('COM_COMPONENTBUILDER_SITE_VIEW_SNIPPET_LABEL'); ?>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL', 'main_get_name', $this->listDirn, $this->listOrder); ?>
</th>
<?php if ($this->canState): ?>
<th width="10" class="nowrap center" >

View File

@ -188,6 +188,72 @@ class ComponentbuilderViewSite_views extends JViewLegacy
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
);
}
// Set Main Get Name Selection
$this->main_getNameOptions = JFormHelper::loadFieldType('Maingets')->getOptions();
if ($this->main_getNameOptions)
{
// Main Get Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL').' -',
'filter_main_get',
JHtml::_('select.options', $this->main_getNameOptions, 'value', 'text', $this->state->get('filter.main_get'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Main Get Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL').' -',
'batch[main_get]',
JHtml::_('select.options', $this->main_getNameOptions, 'value', 'text')
);
}
}
// Set Add Php Ajax Selection
$this->add_php_ajaxOptions = $this->getTheAdd_php_ajaxSelections();
if ($this->add_php_ajaxOptions)
{
// Add Php Ajax Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL').' -',
'filter_add_php_ajax',
JHtml::_('select.options', $this->add_php_ajaxOptions, 'value', 'text', $this->state->get('filter.add_php_ajax'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Php Ajax Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL').' -',
'batch[add_php_ajax]',
JHtml::_('select.options', $this->add_php_ajaxOptions, 'value', 'text')
);
}
}
// Set Add Custom Button Selection
$this->add_custom_buttonOptions = $this->getTheAdd_custom_buttonSelections();
if ($this->add_custom_buttonOptions)
{
// Add Custom Button Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL').' -',
'filter_add_custom_button',
JHtml::_('select.options', $this->add_custom_buttonOptions, 'value', 'text', $this->state->get('filter.add_custom_button'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Custom Button Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL').' -',
'batch[add_custom_button]',
JHtml::_('select.options', $this->add_custom_buttonOptions, 'value', 'text')
);
}
}
}
/**
@ -235,9 +301,82 @@ class ComponentbuilderViewSite_views extends JViewLegacy
'a.published' => JText::_('JSTATUS'),
'a.system_name' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_SYSTEM_NAME_LABEL'),
'a.name' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_NAME_LABEL'),
'a.codename' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_CODENAME_LABEL'),
'a.description' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_DESCRIPTION_LABEL'),
'g.name' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_LABEL'),
'a.context' => JText::_('COM_COMPONENTBUILDER_SITE_VIEW_CONTEXT_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
);
}
protected function getTheAdd_php_ajaxSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_php_ajax'));
$query->from($db->quoteName('#__componentbuilder_site_view'));
$query->order($db->quoteName('add_php_ajax') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_php_ajax)
{
// Translate the add_php_ajax selection
$text = $model->selectionTranslation($add_php_ajax,'add_php_ajax');
// Now add the add_php_ajax and its text to the options array
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
}
return $_filter;
}
return false;
}
protected function getTheAdd_custom_buttonSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_custom_button'));
$query->from($db->quoteName('#__componentbuilder_site_view'));
$query->order($db->quoteName('add_custom_button') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_custom_button)
{
// Translate the add_custom_button selection
$text = $model->selectionTranslation($add_custom_button,'add_custom_button');
// Now add the add_custom_button and its text to the options array
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
}
return $_filter;
}
return false;
}
}

View File

@ -83,3 +83,29 @@ if ($this->saveOrder)
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
<script type="text/javascript">
// templates footer script
jQuery.fn.selText = function() {
var obj = this[0];
if (jQuery.browser.msie) {
var range = obj.offsetParent.createTextRange();
range.moveToElementText(obj);
range.select();
} else if (jQuery.browser.mozilla || $.browser.opera) {
var selection = obj.ownerDocument.defaultView.getSelection();
var range = obj.ownerDocument.createRange();
range.selectNodeContents(obj);
selection.removeAllRanges();
selection.addRange(range);
} else if (jQuery.browser.safari) {
var selection = obj.ownerDocument.defaultView.getSelection();
selection.setBaseAndExtent(obj, 0, obj, 1);
}
return this;
}
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
</script>

View File

@ -61,7 +61,7 @@ $edit = "index.php?option=com_componentbuilder&view=templates&task=template.edit
<?php endif; ?>
</td>
<td class="nowrap">
<div class="name">
<div>
<?php if ($canDo->get('core.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
@ -69,17 +69,27 @@ $edit = "index.php?option=com_componentbuilder&view=templates&task=template.edit
<?php endif; ?>
<?php else: ?>
<?php echo $this->escape($item->name); ?>
<?php endif; ?>
<?php endif; ?><br />
<code>&lt;?php echo $this->loadTemplate('<?php echo ComponentbuilderHelper::safeString($item->alias); ?>'); ?&gt;</code>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->alias); ?>
<div><em>
<?php echo $this->escape($item->description); ?></em>
<ul style="list-style: none">
<li><?php echo JText::_("COM_COMPONENTBUILDER_CUSTOM_PHP"); ?>: <b>
<?php echo JText::_($item->add_php_view); ?></b></li>
</ul>
</div>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->description); ?>
</td>
<td class="hidden-phone">
<?php echo $this->escape($item->snippet_name); ?>
<td class="nowrap">
<div class="name">
<?php if ($this->user->authorise('dynamic_get.edit', 'com_componentbuilder.dynamic_get.' . (int)$item->dynamic_get)): ?>
<a href="index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id=<?php echo $item->dynamic_get; ?>&ref=templates"><?php echo $this->escape($item->dynamic_get_name); ?></a>
<?php else: ?>
<?php echo $this->escape($item->dynamic_get_name); ?>
<?php endif; ?>
</div>
</td>
<td class="center">
<?php if ($canDo->get('core.edit.state')) : ?>

View File

@ -14,5 +14,5 @@ defined('_JEXEC') or die('Restricted access');
?>
<tr>
<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
<td colspan="7"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>

View File

@ -30,16 +30,13 @@ defined('_JEXEC') or die('Restricted access');
</th>
<?php endif; ?>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATE_NAME_LABEL', 'name', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATES_NAMES', 'name', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL', 'alias', $this->listDirn, $this->listOrder); ?>
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATES_DETAILS', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_LABEL', 'description', $this->listDirn, $this->listOrder); ?>
</th>
<th class="nowrap hidden-phone" >
<?php echo JText::_('COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_LABEL'); ?>
<th class="nowrap" >
<?php echo JHtml::_('grid.sort', 'COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL', 'dynamic_get_name', $this->listDirn, $this->listOrder); ?>
</th>
<?php if ($this->canState): ?>
<th width="10" class="nowrap center" >

View File

@ -188,6 +188,50 @@ class ComponentbuilderViewTemplates extends JViewLegacy
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
);
}
// Set Dynamic Get Name Selection
$this->dynamic_getNameOptions = JFormHelper::loadFieldType('Dynamicget')->getOptions();
if ($this->dynamic_getNameOptions)
{
// Dynamic Get Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL').' -',
'filter_dynamic_get',
JHtml::_('select.options', $this->dynamic_getNameOptions, 'value', 'text', $this->state->get('filter.dynamic_get'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Dynamic Get Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL').' -',
'batch[dynamic_get]',
JHtml::_('select.options', $this->dynamic_getNameOptions, 'value', 'text')
);
}
}
// Set Add Php View Selection
$this->add_php_viewOptions = $this->getTheAdd_php_viewSelections();
if ($this->add_php_viewOptions)
{
// Add Php View Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_TEMPLATE_ADD_PHP_VIEW_LABEL').' -',
'filter_add_php_view',
JHtml::_('select.options', $this->add_php_viewOptions, 'value', 'text', $this->state->get('filter.add_php_view'))
);
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// Add Php View Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_TEMPLATE_ADD_PHP_VIEW_LABEL').' -',
'batch[add_php_view]',
JHtml::_('select.options', $this->add_php_viewOptions, 'value', 'text')
);
}
}
}
/**
@ -234,9 +278,45 @@ class ComponentbuilderViewTemplates extends JViewLegacy
'a.sorting' => JText::_('JGRID_HEADING_ORDERING'),
'a.published' => JText::_('JSTATUS'),
'a.name' => JText::_('COM_COMPONENTBUILDER_TEMPLATE_NAME_LABEL'),
'a.alias' => JText::_('COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL'),
'a.description' => JText::_('COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_LABEL'),
'g.name' => JText::_('COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
);
}
protected function getTheAdd_php_viewSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('add_php_view'));
$query->from($db->quoteName('#__componentbuilder_template'));
$query->order($db->quoteName('add_php_view') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $add_php_view)
{
// Translate the add_php_view selection
$text = $model->selectionTranslation($add_php_view,'add_php_view');
// Now add the add_php_view and its text to the options array
$_filter[] = JHtml::_('select.option', $add_php_view, JText::_($text));
}
return $_filter;
}
return false;
}
}

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade">
<name>COM_COMPONENTBUILDER</name>
<creationDate>19th August, 2018</creationDate>
<creationDate>23rd August, 2018</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
<copyright>Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.8.6</version>
<version>2.8.8</version>
<description><![CDATA[
<h1>Component Builder (v.2.8.6)</h1>
<h1>Component Builder (v.2.8.8)</h1>
<div style="clear: both;"></div>
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.

View File

@ -449,7 +449,41 @@
<version>2.8.6</version>
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.8.6/JCB_v2.8.6.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.8.8/JCB_v2.8.8.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>http://www.joomlacomponentbuilder.com</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>Component Builder</name>
<description>Builds Complex Joomla Components</description>
<element>com_componentbuilder</element>
<type>component</type>
<version>2.8.7</version>
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.8.8/JCB_v2.8.8.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>http://www.joomlacomponentbuilder.com</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>Component Builder</name>
<description>Builds Complex Joomla Components</description>
<element>com_componentbuilder</element>
<type>component</type>
<version>2.8.8</version>
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.8.8/JCB_v2.8.8.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>

View File

@ -67,7 +67,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Joomla_component items
$joomla_component_done = $db->execute();
if ($joomla_component_done);
if ($joomla_component_done)
{
// If succesfully remove Joomla_component add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.joomla_component) type alias was removed from the <b>#__content_type</b> table'));
@ -82,7 +82,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Joomla_component items
$joomla_component_done = $db->execute();
if ($joomla_component_done);
if ($joomla_component_done)
{
// If succesfully remove Joomla_component add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.joomla_component) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -97,7 +97,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Joomla_component items
$joomla_component_done = $db->execute();
if ($joomla_component_done);
if ($joomla_component_done)
{
// If succesfully remove Joomla_component add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.joomla_component) type alias was removed from the <b>#__ucm_content</b> table'));
@ -153,7 +153,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_view items
$admin_view_done = $db->execute();
if ($admin_view_done);
if ($admin_view_done)
{
// If succesfully remove Admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_view) type alias was removed from the <b>#__content_type</b> table'));
@ -168,7 +168,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_view items
$admin_view_done = $db->execute();
if ($admin_view_done);
if ($admin_view_done)
{
// If succesfully remove Admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_view) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -183,7 +183,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_view items
$admin_view_done = $db->execute();
if ($admin_view_done);
if ($admin_view_done)
{
// If succesfully remove Admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_view) type alias was removed from the <b>#__ucm_content</b> table'));
@ -239,7 +239,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_admin_view items
$custom_admin_view_done = $db->execute();
if ($custom_admin_view_done);
if ($custom_admin_view_done)
{
// If succesfully remove Custom_admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_admin_view) type alias was removed from the <b>#__content_type</b> table'));
@ -254,7 +254,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_admin_view items
$custom_admin_view_done = $db->execute();
if ($custom_admin_view_done);
if ($custom_admin_view_done)
{
// If succesfully remove Custom_admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_admin_view) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -269,7 +269,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_admin_view items
$custom_admin_view_done = $db->execute();
if ($custom_admin_view_done);
if ($custom_admin_view_done)
{
// If succesfully remove Custom_admin_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_admin_view) type alias was removed from the <b>#__ucm_content</b> table'));
@ -325,7 +325,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Site_view items
$site_view_done = $db->execute();
if ($site_view_done);
if ($site_view_done)
{
// If succesfully remove Site_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.site_view) type alias was removed from the <b>#__content_type</b> table'));
@ -340,7 +340,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Site_view items
$site_view_done = $db->execute();
if ($site_view_done);
if ($site_view_done)
{
// If succesfully remove Site_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.site_view) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -355,7 +355,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Site_view items
$site_view_done = $db->execute();
if ($site_view_done);
if ($site_view_done)
{
// If succesfully remove Site_view add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.site_view) type alias was removed from the <b>#__ucm_content</b> table'));
@ -411,7 +411,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Template items
$template_done = $db->execute();
if ($template_done);
if ($template_done)
{
// If succesfully remove Template add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.template) type alias was removed from the <b>#__content_type</b> table'));
@ -426,7 +426,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Template items
$template_done = $db->execute();
if ($template_done);
if ($template_done)
{
// If succesfully remove Template add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.template) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -441,7 +441,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Template items
$template_done = $db->execute();
if ($template_done);
if ($template_done)
{
// If succesfully remove Template add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.template) type alias was removed from the <b>#__ucm_content</b> table'));
@ -497,7 +497,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Layout items
$layout_done = $db->execute();
if ($layout_done);
if ($layout_done)
{
// If succesfully remove Layout add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.layout) type alias was removed from the <b>#__content_type</b> table'));
@ -512,7 +512,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Layout items
$layout_done = $db->execute();
if ($layout_done);
if ($layout_done)
{
// If succesfully remove Layout add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.layout) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -527,7 +527,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Layout items
$layout_done = $db->execute();
if ($layout_done);
if ($layout_done)
{
// If succesfully remove Layout add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.layout) type alias was removed from the <b>#__ucm_content</b> table'));
@ -583,7 +583,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Dynamic_get items
$dynamic_get_done = $db->execute();
if ($dynamic_get_done);
if ($dynamic_get_done)
{
// If succesfully remove Dynamic_get add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.dynamic_get) type alias was removed from the <b>#__content_type</b> table'));
@ -598,7 +598,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Dynamic_get items
$dynamic_get_done = $db->execute();
if ($dynamic_get_done);
if ($dynamic_get_done)
{
// If succesfully remove Dynamic_get add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.dynamic_get) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -613,7 +613,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Dynamic_get items
$dynamic_get_done = $db->execute();
if ($dynamic_get_done);
if ($dynamic_get_done)
{
// If succesfully remove Dynamic_get add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.dynamic_get) type alias was removed from the <b>#__ucm_content</b> table'));
@ -669,7 +669,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_code items
$custom_code_done = $db->execute();
if ($custom_code_done);
if ($custom_code_done)
{
// If succesfully remove Custom_code add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_code) type alias was removed from the <b>#__content_type</b> table'));
@ -684,7 +684,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_code items
$custom_code_done = $db->execute();
if ($custom_code_done);
if ($custom_code_done)
{
// If succesfully remove Custom_code add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_code) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -699,7 +699,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Custom_code items
$custom_code_done = $db->execute();
if ($custom_code_done);
if ($custom_code_done)
{
// If succesfully remove Custom_code add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.custom_code) type alias was removed from the <b>#__ucm_content</b> table'));
@ -755,7 +755,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library items
$library_done = $db->execute();
if ($library_done);
if ($library_done)
{
// If succesfully remove Library add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library) type alias was removed from the <b>#__content_type</b> table'));
@ -770,7 +770,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library items
$library_done = $db->execute();
if ($library_done);
if ($library_done)
{
// If succesfully remove Library add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -785,7 +785,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library items
$library_done = $db->execute();
if ($library_done);
if ($library_done)
{
// If succesfully remove Library add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library) type alias was removed from the <b>#__ucm_content</b> table'));
@ -841,7 +841,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet items
$snippet_done = $db->execute();
if ($snippet_done);
if ($snippet_done)
{
// If succesfully remove Snippet add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet) type alias was removed from the <b>#__content_type</b> table'));
@ -856,7 +856,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet items
$snippet_done = $db->execute();
if ($snippet_done);
if ($snippet_done)
{
// If succesfully remove Snippet add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -871,7 +871,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet items
$snippet_done = $db->execute();
if ($snippet_done);
if ($snippet_done)
{
// If succesfully remove Snippet add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet) type alias was removed from the <b>#__ucm_content</b> table'));
@ -927,7 +927,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Validation_rule items
$validation_rule_done = $db->execute();
if ($validation_rule_done);
if ($validation_rule_done)
{
// If succesfully remove Validation_rule add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.validation_rule) type alias was removed from the <b>#__content_type</b> table'));
@ -942,7 +942,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Validation_rule items
$validation_rule_done = $db->execute();
if ($validation_rule_done);
if ($validation_rule_done)
{
// If succesfully remove Validation_rule add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.validation_rule) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -957,7 +957,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Validation_rule items
$validation_rule_done = $db->execute();
if ($validation_rule_done);
if ($validation_rule_done)
{
// If succesfully remove Validation_rule add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.validation_rule) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1013,7 +1013,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field items
$field_done = $db->execute();
if ($field_done);
if ($field_done)
{
// If succesfully remove Field add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.field) type alias was removed from the <b>#__content_type</b> table'));
@ -1028,7 +1028,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field items
$field_done = $db->execute();
if ($field_done);
if ($field_done)
{
// If succesfully remove Field add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.field) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1043,7 +1043,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field items
$field_done = $db->execute();
if ($field_done);
if ($field_done)
{
// If succesfully remove Field add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.field) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1099,7 +1099,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field catid items
$field_catid_done = $db->execute();
if ($field_catid_done);
if ($field_catid_done)
{
// If succesfully remove Field catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fields.category) type alias was removed from the <b>#__content_type</b> table'));
@ -1114,7 +1114,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field catid items
$field_catid_done = $db->execute();
if ($field_catid_done);
if ($field_catid_done)
{
// If succesfully remove Field catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fields.category) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1129,7 +1129,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Field catid items
$field_catid_done = $db->execute();
if ($field_catid_done);
if ($field_catid_done)
{
// If succesfully remove Field catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fields.category) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1185,7 +1185,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype items
$fieldtype_done = $db->execute();
if ($fieldtype_done);
if ($fieldtype_done)
{
// If succesfully remove Fieldtype add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtype) type alias was removed from the <b>#__content_type</b> table'));
@ -1200,7 +1200,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype items
$fieldtype_done = $db->execute();
if ($fieldtype_done);
if ($fieldtype_done)
{
// If succesfully remove Fieldtype add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtype) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1215,7 +1215,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype items
$fieldtype_done = $db->execute();
if ($fieldtype_done);
if ($fieldtype_done)
{
// If succesfully remove Fieldtype add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtype) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1271,7 +1271,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype catid items
$fieldtype_catid_done = $db->execute();
if ($fieldtype_catid_done);
if ($fieldtype_catid_done)
{
// If succesfully remove Fieldtype catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtypes.category) type alias was removed from the <b>#__content_type</b> table'));
@ -1286,7 +1286,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype catid items
$fieldtype_catid_done = $db->execute();
if ($fieldtype_catid_done);
if ($fieldtype_catid_done)
{
// If succesfully remove Fieldtype catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtypes.category) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1301,7 +1301,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Fieldtype catid items
$fieldtype_catid_done = $db->execute();
if ($fieldtype_catid_done);
if ($fieldtype_catid_done)
{
// If succesfully remove Fieldtype catid add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.fieldtypes.category) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1357,7 +1357,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language_translation items
$language_translation_done = $db->execute();
if ($language_translation_done);
if ($language_translation_done)
{
// If succesfully remove Language_translation add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language_translation) type alias was removed from the <b>#__content_type</b> table'));
@ -1372,7 +1372,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language_translation items
$language_translation_done = $db->execute();
if ($language_translation_done);
if ($language_translation_done)
{
// If succesfully remove Language_translation add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language_translation) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1387,7 +1387,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language_translation items
$language_translation_done = $db->execute();
if ($language_translation_done);
if ($language_translation_done)
{
// If succesfully remove Language_translation add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language_translation) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1443,7 +1443,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language items
$language_done = $db->execute();
if ($language_done);
if ($language_done)
{
// If succesfully remove Language add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language) type alias was removed from the <b>#__content_type</b> table'));
@ -1458,7 +1458,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language items
$language_done = $db->execute();
if ($language_done);
if ($language_done)
{
// If succesfully remove Language add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1473,7 +1473,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Language items
$language_done = $db->execute();
if ($language_done);
if ($language_done)
{
// If succesfully remove Language add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.language) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1529,7 +1529,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Server items
$server_done = $db->execute();
if ($server_done);
if ($server_done)
{
// If succesfully remove Server add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.server) type alias was removed from the <b>#__content_type</b> table'));
@ -1544,7 +1544,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Server items
$server_done = $db->execute();
if ($server_done);
if ($server_done)
{
// If succesfully remove Server add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.server) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1559,7 +1559,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Server items
$server_done = $db->execute();
if ($server_done);
if ($server_done)
{
// If succesfully remove Server add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.server) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1615,7 +1615,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Help_document items
$help_document_done = $db->execute();
if ($help_document_done);
if ($help_document_done)
{
// If succesfully remove Help_document add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.help_document) type alias was removed from the <b>#__content_type</b> table'));
@ -1630,7 +1630,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Help_document items
$help_document_done = $db->execute();
if ($help_document_done);
if ($help_document_done)
{
// If succesfully remove Help_document add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.help_document) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1645,7 +1645,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Help_document items
$help_document_done = $db->execute();
if ($help_document_done);
if ($help_document_done)
{
// If succesfully remove Help_document add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.help_document) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1701,7 +1701,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields items
$admin_fields_done = $db->execute();
if ($admin_fields_done);
if ($admin_fields_done)
{
// If succesfully remove Admin_fields add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields) type alias was removed from the <b>#__content_type</b> table'));
@ -1716,7 +1716,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields items
$admin_fields_done = $db->execute();
if ($admin_fields_done);
if ($admin_fields_done)
{
// If succesfully remove Admin_fields add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1731,7 +1731,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields items
$admin_fields_done = $db->execute();
if ($admin_fields_done);
if ($admin_fields_done)
{
// If succesfully remove Admin_fields add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1787,7 +1787,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_conditions items
$admin_fields_conditions_done = $db->execute();
if ($admin_fields_conditions_done);
if ($admin_fields_conditions_done)
{
// If succesfully remove Admin_fields_conditions add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_conditions) type alias was removed from the <b>#__content_type</b> table'));
@ -1802,7 +1802,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_conditions items
$admin_fields_conditions_done = $db->execute();
if ($admin_fields_conditions_done);
if ($admin_fields_conditions_done)
{
// If succesfully remove Admin_fields_conditions add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_conditions) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1817,7 +1817,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_conditions items
$admin_fields_conditions_done = $db->execute();
if ($admin_fields_conditions_done);
if ($admin_fields_conditions_done)
{
// If succesfully remove Admin_fields_conditions add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_conditions) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1873,7 +1873,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_relations items
$admin_fields_relations_done = $db->execute();
if ($admin_fields_relations_done);
if ($admin_fields_relations_done)
{
// If succesfully remove Admin_fields_relations add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_relations) type alias was removed from the <b>#__content_type</b> table'));
@ -1888,7 +1888,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_relations items
$admin_fields_relations_done = $db->execute();
if ($admin_fields_relations_done);
if ($admin_fields_relations_done)
{
// If succesfully remove Admin_fields_relations add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_relations) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1903,7 +1903,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Admin_fields_relations items
$admin_fields_relations_done = $db->execute();
if ($admin_fields_relations_done);
if ($admin_fields_relations_done)
{
// If succesfully remove Admin_fields_relations add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.admin_fields_relations) type alias was removed from the <b>#__ucm_content</b> table'));
@ -1959,7 +1959,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_admin_views items
$component_admin_views_done = $db->execute();
if ($component_admin_views_done);
if ($component_admin_views_done)
{
// If succesfully remove Component_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_admin_views) type alias was removed from the <b>#__content_type</b> table'));
@ -1974,7 +1974,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_admin_views items
$component_admin_views_done = $db->execute();
if ($component_admin_views_done);
if ($component_admin_views_done)
{
// If succesfully remove Component_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_admin_views) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -1989,7 +1989,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_admin_views items
$component_admin_views_done = $db->execute();
if ($component_admin_views_done);
if ($component_admin_views_done)
{
// If succesfully remove Component_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_admin_views) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2045,7 +2045,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_site_views items
$component_site_views_done = $db->execute();
if ($component_site_views_done);
if ($component_site_views_done)
{
// If succesfully remove Component_site_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_site_views) type alias was removed from the <b>#__content_type</b> table'));
@ -2060,7 +2060,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_site_views items
$component_site_views_done = $db->execute();
if ($component_site_views_done);
if ($component_site_views_done)
{
// If succesfully remove Component_site_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_site_views) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2075,7 +2075,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_site_views items
$component_site_views_done = $db->execute();
if ($component_site_views_done);
if ($component_site_views_done)
{
// If succesfully remove Component_site_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_site_views) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2131,7 +2131,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_views items
$component_custom_admin_views_done = $db->execute();
if ($component_custom_admin_views_done);
if ($component_custom_admin_views_done)
{
// If succesfully remove Component_custom_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_views) type alias was removed from the <b>#__content_type</b> table'));
@ -2146,7 +2146,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_views items
$component_custom_admin_views_done = $db->execute();
if ($component_custom_admin_views_done);
if ($component_custom_admin_views_done)
{
// If succesfully remove Component_custom_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_views) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2161,7 +2161,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_views items
$component_custom_admin_views_done = $db->execute();
if ($component_custom_admin_views_done);
if ($component_custom_admin_views_done)
{
// If succesfully remove Component_custom_admin_views add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_views) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2217,7 +2217,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_updates items
$component_updates_done = $db->execute();
if ($component_updates_done);
if ($component_updates_done)
{
// If succesfully remove Component_updates add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_updates) type alias was removed from the <b>#__content_type</b> table'));
@ -2232,7 +2232,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_updates items
$component_updates_done = $db->execute();
if ($component_updates_done);
if ($component_updates_done)
{
// If succesfully remove Component_updates add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_updates) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2247,7 +2247,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_updates items
$component_updates_done = $db->execute();
if ($component_updates_done);
if ($component_updates_done)
{
// If succesfully remove Component_updates add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_updates) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2303,7 +2303,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_mysql_tweaks items
$component_mysql_tweaks_done = $db->execute();
if ($component_mysql_tweaks_done);
if ($component_mysql_tweaks_done)
{
// If succesfully remove Component_mysql_tweaks add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_mysql_tweaks) type alias was removed from the <b>#__content_type</b> table'));
@ -2318,7 +2318,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_mysql_tweaks items
$component_mysql_tweaks_done = $db->execute();
if ($component_mysql_tweaks_done);
if ($component_mysql_tweaks_done)
{
// If succesfully remove Component_mysql_tweaks add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_mysql_tweaks) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2333,7 +2333,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_mysql_tweaks items
$component_mysql_tweaks_done = $db->execute();
if ($component_mysql_tweaks_done);
if ($component_mysql_tweaks_done)
{
// If succesfully remove Component_mysql_tweaks add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_mysql_tweaks) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2389,7 +2389,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_menus items
$component_custom_admin_menus_done = $db->execute();
if ($component_custom_admin_menus_done);
if ($component_custom_admin_menus_done)
{
// If succesfully remove Component_custom_admin_menus add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_menus) type alias was removed from the <b>#__content_type</b> table'));
@ -2404,7 +2404,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_menus items
$component_custom_admin_menus_done = $db->execute();
if ($component_custom_admin_menus_done);
if ($component_custom_admin_menus_done)
{
// If succesfully remove Component_custom_admin_menus add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_menus) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2419,7 +2419,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_custom_admin_menus items
$component_custom_admin_menus_done = $db->execute();
if ($component_custom_admin_menus_done);
if ($component_custom_admin_menus_done)
{
// If succesfully remove Component_custom_admin_menus add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_custom_admin_menus) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2475,7 +2475,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_config items
$component_config_done = $db->execute();
if ($component_config_done);
if ($component_config_done)
{
// If succesfully remove Component_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_config) type alias was removed from the <b>#__content_type</b> table'));
@ -2490,7 +2490,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_config items
$component_config_done = $db->execute();
if ($component_config_done);
if ($component_config_done)
{
// If succesfully remove Component_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_config) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2505,7 +2505,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_config items
$component_config_done = $db->execute();
if ($component_config_done);
if ($component_config_done)
{
// If succesfully remove Component_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_config) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2561,7 +2561,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_dashboard items
$component_dashboard_done = $db->execute();
if ($component_dashboard_done);
if ($component_dashboard_done)
{
// If succesfully remove Component_dashboard add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_dashboard) type alias was removed from the <b>#__content_type</b> table'));
@ -2576,7 +2576,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_dashboard items
$component_dashboard_done = $db->execute();
if ($component_dashboard_done);
if ($component_dashboard_done)
{
// If succesfully remove Component_dashboard add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_dashboard) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2591,7 +2591,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_dashboard items
$component_dashboard_done = $db->execute();
if ($component_dashboard_done);
if ($component_dashboard_done)
{
// If succesfully remove Component_dashboard add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_dashboard) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2647,7 +2647,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_files_folders items
$component_files_folders_done = $db->execute();
if ($component_files_folders_done);
if ($component_files_folders_done)
{
// If succesfully remove Component_files_folders add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_files_folders) type alias was removed from the <b>#__content_type</b> table'));
@ -2662,7 +2662,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_files_folders items
$component_files_folders_done = $db->execute();
if ($component_files_folders_done);
if ($component_files_folders_done)
{
// If succesfully remove Component_files_folders add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_files_folders) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2677,7 +2677,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Component_files_folders items
$component_files_folders_done = $db->execute();
if ($component_files_folders_done);
if ($component_files_folders_done)
{
// If succesfully remove Component_files_folders add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.component_files_folders) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2733,7 +2733,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet_type items
$snippet_type_done = $db->execute();
if ($snippet_type_done);
if ($snippet_type_done)
{
// If succesfully remove Snippet_type add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet_type) type alias was removed from the <b>#__content_type</b> table'));
@ -2748,7 +2748,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet_type items
$snippet_type_done = $db->execute();
if ($snippet_type_done);
if ($snippet_type_done)
{
// If succesfully remove Snippet_type add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet_type) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2763,7 +2763,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Snippet_type items
$snippet_type_done = $db->execute();
if ($snippet_type_done);
if ($snippet_type_done)
{
// If succesfully remove Snippet_type add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.snippet_type) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2819,7 +2819,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_config items
$library_config_done = $db->execute();
if ($library_config_done);
if ($library_config_done)
{
// If succesfully remove Library_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_config) type alias was removed from the <b>#__content_type</b> table'));
@ -2834,7 +2834,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_config items
$library_config_done = $db->execute();
if ($library_config_done);
if ($library_config_done)
{
// If succesfully remove Library_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_config) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2849,7 +2849,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_config items
$library_config_done = $db->execute();
if ($library_config_done);
if ($library_config_done)
{
// If succesfully remove Library_config add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_config) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2905,7 +2905,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_files_folders_urls items
$library_files_folders_urls_done = $db->execute();
if ($library_files_folders_urls_done);
if ($library_files_folders_urls_done)
{
// If succesfully remove Library_files_folders_urls add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_files_folders_urls) type alias was removed from the <b>#__content_type</b> table'));
@ -2920,7 +2920,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_files_folders_urls items
$library_files_folders_urls_done = $db->execute();
if ($library_files_folders_urls_done);
if ($library_files_folders_urls_done)
{
// If succesfully remove Library_files_folders_urls add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_files_folders_urls) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
@ -2935,7 +2935,7 @@ class com_componentbuilderInstallerScript
$db->setQuery($query);
// Execute the query to remove Library_files_folders_urls items
$library_files_folders_urls_done = $db->execute();
if ($library_files_folders_urls_done);
if ($library_files_folders_urls_done)
{
// If succesfully remove Library_files_folders_urls add queued success message.
$app->enqueueMessage(JText::_('The (com_componentbuilder.library_files_folders_urls) type alias was removed from the <b>#__ucm_content</b> table'));
@ -2979,7 +2979,7 @@ class com_componentbuilderInstallerScript
$query->where($componentbuilder_condition);
$db->setQuery($query);
$library_files_folders_urls_done = $db->execute();
if ($library_files_folders_urls_done);
if ($library_files_folders_urls_done)
{
// If succesfully remove componentbuilder add queued success message.
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__assets</b> table'));
@ -3390,9 +3390,9 @@ class com_componentbuilderInstallerScript
$custom_admin_view->type_title = 'Componentbuilder Custom_admin_view';
$custom_admin_view->type_alias = 'com_componentbuilder.custom_admin_view';
$custom_admin_view->table = '{"special": {"dbtable": "#__componentbuilder_custom_admin_view","key": "id","type": "Custom_admin_view","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$custom_admin_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_jview_display","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","codename":"codename","description":"description","snippet":"snippet","php_jview_display":"php_jview_display","php_view":"php_view","php_document":"php_document","add_php_ajax":"add_php_ajax","add_css":"add_css","add_js_document":"add_js_document","default":"default","icon":"icon","php_jview":"php_jview","add_javascript_file":"add_javascript_file","libraries":"libraries","js_document":"js_document","add_css_document":"add_css_document","javascript_file":"javascript_file","not_required":"not_required","css_document":"css_document","custom_get":"custom_get","css":"css","main_get":"main_get","php_ajaxmethod":"php_ajaxmethod","dynamic_get":"dynamic_get","add_php_document":"add_php_document","add_php_view":"add_php_view","add_custom_button":"add_custom_button","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$custom_admin_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","description":"description","main_get":"main_get","php_view":"php_view","php_jview_display":"php_jview_display","add_css":"add_css","add_javascript_file":"add_javascript_file","add_css_document":"add_css_document","add_js_document":"add_js_document","default":"default","snippet":"snippet","icon":"icon","php_jview":"php_jview","not_required":"not_required","codename":"codename","custom_get":"custom_get","js_document":"js_document","add_php_ajax":"add_php_ajax","javascript_file":"javascript_file","css_document":"css_document","php_document":"php_document","css":"css","libraries":"libraries","php_ajaxmethod":"php_ajaxmethod","dynamic_get":"dynamic_get","add_php_document":"add_php_document","add_php_view":"add_php_view","add_custom_button":"add_custom_button","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$custom_admin_view->router = 'ComponentbuilderHelperRoute::getCustom_admin_viewRoute';
$custom_admin_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_ajax","add_css","add_js_document","add_javascript_file","add_css_document","not_required","main_get","dynamic_get","add_php_document","add_php_view","add_custom_button","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
$custom_admin_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_get","add_css","add_javascript_file","add_css_document","add_js_document","snippet","not_required","add_php_ajax","dynamic_get","add_php_document","add_php_view","add_custom_button","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$custom_admin_view_Inserted = $db->insertObject('#__content_types', $custom_admin_view);
@ -3402,9 +3402,9 @@ class com_componentbuilderInstallerScript
$site_view->type_title = 'Componentbuilder Site_view';
$site_view->type_alias = 'com_componentbuilder.site_view';
$site_view->table = '{"special": {"dbtable": "#__componentbuilder_site_view","key": "id","type": "Site_view","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$site_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_document","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","codename":"codename","description":"description","snippet":"snippet","php_document":"php_document","add_php_ajax":"add_php_ajax","add_css":"add_css","add_css_document":"add_css_document","libraries":"libraries","php_jview":"php_jview","default":"default","php_view":"php_view","add_javascript_file":"add_javascript_file","php_jview_display":"php_jview_display","add_js_document":"add_js_document","not_required":"not_required","javascript_file":"javascript_file","custom_get":"custom_get","js_document":"js_document","main_get":"main_get","css_document":"css_document","dynamic_get":"dynamic_get","css":"css","php_ajaxmethod":"php_ajaxmethod","add_custom_button":"add_custom_button","add_php_document":"add_php_document","button_position":"button_position","add_php_view":"add_php_view","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$site_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_document","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","description":"description","main_get":"main_get","php_document":"php_document","php_view":"php_view","add_css_document":"add_css_document","add_javascript_file":"add_javascript_file","add_js_document":"add_js_document","context":"context","codename":"codename","default":"default","snippet":"snippet","php_jview_display":"php_jview_display","not_required":"not_required","php_jview":"php_jview","custom_get":"custom_get","php_model":"php_model","add_css":"add_css","javascript_file":"javascript_file","add_php_ajax":"add_php_ajax","js_document":"js_document","css_document":"css_document","libraries":"libraries","css":"css","dynamic_get":"dynamic_get","php_ajaxmethod":"php_ajaxmethod","add_php_document":"add_php_document","add_custom_button":"add_custom_button","add_php_view":"add_php_view","button_position":"button_position","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller"}}';
$site_view->router = 'ComponentbuilderHelperRoute::getSite_viewRoute';
$site_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_ajax","add_css","add_css_document","add_javascript_file","add_js_document","not_required","main_get","dynamic_get","add_custom_button","add_php_document","button_position","add_php_view","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
$site_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_get","add_css_document","add_javascript_file","add_js_document","snippet","not_required","add_css","add_php_ajax","dynamic_get","add_php_document","add_custom_button","add_php_view","button_position","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$site_view_Inserted = $db->insertObject('#__content_types', $site_view);
@ -3414,9 +3414,9 @@ class com_componentbuilderInstallerScript
$template->type_title = 'Componentbuilder Template';
$template->type_alias = 'com_componentbuilder.template';
$template->table = '{"special": {"dbtable": "#__componentbuilder_template","key": "id","type": "Template","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$template->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","alias":"alias","description":"description","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","dynamic_get":"dynamic_get","not_required":"not_required","template":"template","libraries":"libraries"}}';
$template->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}';
$template->router = 'ComponentbuilderHelperRoute::getTemplateRoute';
$template->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_view","dynamic_get","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
$template->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","add_php_view","snippet"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$template_Inserted = $db->insertObject('#__content_types', $template);
@ -3426,9 +3426,9 @@ class com_componentbuilderInstallerScript
$layout->type_title = 'Componentbuilder Layout';
$layout->type_alias = 'com_componentbuilder.layout';
$layout->table = '{"special": {"dbtable": "#__componentbuilder_layout","key": "id","type": "Layout","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$layout->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","alias":"alias","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","layout":"layout","libraries":"libraries"}}';
$layout->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","layout":"layout","libraries":"libraries","alias":"alias"}}';
$layout->router = 'ComponentbuilderHelperRoute::getLayoutRoute';
$layout->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","snippet","add_php_view","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
$layout->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","snippet","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$layout_Inserted = $db->insertObject('#__content_types', $layout);
@ -3438,9 +3438,9 @@ class com_componentbuilderInstallerScript
$dynamic_get->type_title = 'Componentbuilder Dynamic_get';
$dynamic_get->type_alias = 'com_componentbuilder.dynamic_get';
$dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","addcalculation":"addcalculation","add_php_router_parse":"add_php_router_parse","add_php_after_getitems":"add_php_after_getitems","add_php_before_getitems":"add_php_before_getitems","add_php_getlistquery":"add_php_getlistquery","add_php_after_getitem":"add_php_after_getitem","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","db_selection":"db_selection","db_table_main":"db_table_main","view_selection":"view_selection","view_table_main":"view_table_main","getcustom":"getcustom","php_before_getitem":"php_before_getitem","pagination":"pagination","php_after_getitem":"php_after_getitem","not_required":"not_required","php_getlistquery":"php_getlistquery","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","view_table_main":"view_table_main","add_php_router_parse":"add_php_router_parse","addcalculation":"addcalculation","add_php_before_getitems":"add_php_before_getitems","add_php_after_getitems":"add_php_after_getitems","add_php_after_getitem":"add_php_after_getitem","add_php_getlistquery":"add_php_getlistquery","view_selection":"view_selection","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","db_table_main":"db_table_main","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","add_php_router_parse","add_php_after_getitems","add_php_before_getitems","add_php_getlistquery","add_php_after_getitem","add_php_before_getitem","view_table_main","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","view_table_main","add_php_router_parse","add_php_before_getitems","add_php_after_getitems","add_php_after_getitem","add_php_getlistquery","add_php_before_getitem","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
// Set the object into the content types table.
$dynamic_get_Inserted = $db->insertObject('#__content_types', $dynamic_get);
@ -3582,9 +3582,9 @@ class com_componentbuilderInstallerScript
$help_document->type_title = 'Componentbuilder Help_document';
$help_document->type_alias = 'com_componentbuilder.help_document';
$help_document->table = '{"special": {"dbtable": "#__componentbuilder_help_document","key": "id","type": "Help_document","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$help_document->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "title","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "content","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"title":"title","type":"type","groups":"groups","location":"location","admin_view":"admin_view","site_view":"site_view","not_required":"not_required","content":"content","article":"article","url":"url","target":"target","alias":"alias"}}';
$help_document->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "title","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "content","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "null","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"title":"title","type":"type","groups":"groups","location":"location","admin_view":"admin_view","site_view":"site_view","not_required":"not_required","content":"content","article":"article","url":"url","target":"target","alias":"alias"}}';
$help_document->router = 'ComponentbuilderHelperRoute::getHelp_documentRoute';
$help_document->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","not_required","article","target"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}';
$help_document->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","not_required","article","target"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}';
// Set the object into the content types table.
$help_document_Inserted = $db->insertObject('#__content_types', $help_document);
@ -3858,9 +3858,9 @@ class com_componentbuilderInstallerScript
$custom_admin_view->type_title = 'Componentbuilder Custom_admin_view';
$custom_admin_view->type_alias = 'com_componentbuilder.custom_admin_view';
$custom_admin_view->table = '{"special": {"dbtable": "#__componentbuilder_custom_admin_view","key": "id","type": "Custom_admin_view","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$custom_admin_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_jview_display","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","codename":"codename","description":"description","snippet":"snippet","php_jview_display":"php_jview_display","php_view":"php_view","php_document":"php_document","add_php_ajax":"add_php_ajax","add_css":"add_css","add_js_document":"add_js_document","default":"default","icon":"icon","php_jview":"php_jview","add_javascript_file":"add_javascript_file","libraries":"libraries","js_document":"js_document","add_css_document":"add_css_document","javascript_file":"javascript_file","not_required":"not_required","css_document":"css_document","custom_get":"custom_get","css":"css","main_get":"main_get","php_ajaxmethod":"php_ajaxmethod","dynamic_get":"dynamic_get","add_php_document":"add_php_document","add_php_view":"add_php_view","add_custom_button":"add_custom_button","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$custom_admin_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","description":"description","main_get":"main_get","php_view":"php_view","php_jview_display":"php_jview_display","add_css":"add_css","add_javascript_file":"add_javascript_file","add_css_document":"add_css_document","add_js_document":"add_js_document","default":"default","snippet":"snippet","icon":"icon","php_jview":"php_jview","not_required":"not_required","codename":"codename","custom_get":"custom_get","js_document":"js_document","add_php_ajax":"add_php_ajax","javascript_file":"javascript_file","css_document":"css_document","php_document":"php_document","css":"css","libraries":"libraries","php_ajaxmethod":"php_ajaxmethod","dynamic_get":"dynamic_get","add_php_document":"add_php_document","add_php_view":"add_php_view","add_custom_button":"add_custom_button","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$custom_admin_view->router = 'ComponentbuilderHelperRoute::getCustom_admin_viewRoute';
$custom_admin_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_ajax","add_css","add_js_document","add_javascript_file","add_css_document","not_required","main_get","dynamic_get","add_php_document","add_php_view","add_custom_button","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
$custom_admin_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_get","add_css","add_javascript_file","add_css_document","add_js_document","snippet","not_required","add_php_ajax","dynamic_get","add_php_document","add_php_view","add_custom_button","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
// Check if custom_admin_view type is already in content_type DB.
$custom_admin_view_id = null;
@ -3887,9 +3887,9 @@ class com_componentbuilderInstallerScript
$site_view->type_title = 'Componentbuilder Site_view';
$site_view->type_alias = 'com_componentbuilder.site_view';
$site_view->table = '{"special": {"dbtable": "#__componentbuilder_site_view","key": "id","type": "Site_view","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$site_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_document","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","codename":"codename","description":"description","snippet":"snippet","php_document":"php_document","add_php_ajax":"add_php_ajax","add_css":"add_css","add_css_document":"add_css_document","libraries":"libraries","php_jview":"php_jview","default":"default","php_view":"php_view","add_javascript_file":"add_javascript_file","php_jview_display":"php_jview_display","add_js_document":"add_js_document","not_required":"not_required","javascript_file":"javascript_file","custom_get":"custom_get","js_document":"js_document","main_get":"main_get","css_document":"css_document","dynamic_get":"dynamic_get","css":"css","php_ajaxmethod":"php_ajaxmethod","add_custom_button":"add_custom_button","add_php_document":"add_php_document","button_position":"button_position","add_php_view":"add_php_view","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller","php_model":"php_model"}}';
$site_view->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_document","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name":"name","description":"description","main_get":"main_get","php_document":"php_document","php_view":"php_view","add_css_document":"add_css_document","add_javascript_file":"add_javascript_file","add_js_document":"add_js_document","context":"context","codename":"codename","default":"default","snippet":"snippet","php_jview_display":"php_jview_display","not_required":"not_required","php_jview":"php_jview","custom_get":"custom_get","php_model":"php_model","add_css":"add_css","javascript_file":"javascript_file","add_php_ajax":"add_php_ajax","js_document":"js_document","css_document":"css_document","libraries":"libraries","css":"css","dynamic_get":"dynamic_get","php_ajaxmethod":"php_ajaxmethod","add_php_document":"add_php_document","add_custom_button":"add_custom_button","add_php_view":"add_php_view","button_position":"button_position","add_php_jview_display":"add_php_jview_display","add_php_jview":"add_php_jview","php_controller":"php_controller"}}';
$site_view->router = 'ComponentbuilderHelperRoute::getSite_viewRoute';
$site_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_ajax","add_css","add_css_document","add_javascript_file","add_js_document","not_required","main_get","dynamic_get","add_custom_button","add_php_document","button_position","add_php_view","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
$site_view->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_get","add_css_document","add_javascript_file","add_js_document","snippet","not_required","add_css","add_php_ajax","dynamic_get","add_php_document","add_custom_button","add_php_view","button_position","add_php_jview_display","add_php_jview"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}';
// Check if site_view type is already in content_type DB.
$site_view_id = null;
@ -3916,9 +3916,9 @@ class com_componentbuilderInstallerScript
$template->type_title = 'Componentbuilder Template';
$template->type_alias = 'com_componentbuilder.template';
$template->table = '{"special": {"dbtable": "#__componentbuilder_template","key": "id","type": "Template","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$template->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","alias":"alias","description":"description","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","dynamic_get":"dynamic_get","not_required":"not_required","template":"template","libraries":"libraries"}}';
$template->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}';
$template->router = 'ComponentbuilderHelperRoute::getTemplateRoute';
$template->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","snippet","add_php_view","dynamic_get","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
$template->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","add_php_view","snippet"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
// Check if template type is already in content_type DB.
$template_id = null;
@ -3945,9 +3945,9 @@ class com_componentbuilderInstallerScript
$layout->type_title = 'Componentbuilder Layout';
$layout->type_alias = 'com_componentbuilder.layout';
$layout->table = '{"special": {"dbtable": "#__componentbuilder_layout","key": "id","type": "Layout","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$layout->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","alias":"alias","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","layout":"layout","libraries":"libraries"}}';
$layout->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","not_required":"not_required","layout":"layout","libraries":"libraries","alias":"alias"}}';
$layout->router = 'ComponentbuilderHelperRoute::getLayoutRoute';
$layout->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","snippet","add_php_view","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
$layout->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","dynamic_get","snippet","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}';
// Check if layout type is already in content_type DB.
$layout_id = null;
@ -3974,9 +3974,9 @@ class com_componentbuilderInstallerScript
$dynamic_get->type_title = 'Componentbuilder Dynamic_get';
$dynamic_get->type_alias = 'com_componentbuilder.dynamic_get';
$dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","addcalculation":"addcalculation","add_php_router_parse":"add_php_router_parse","add_php_after_getitems":"add_php_after_getitems","add_php_before_getitems":"add_php_before_getitems","add_php_getlistquery":"add_php_getlistquery","add_php_after_getitem":"add_php_after_getitem","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","db_selection":"db_selection","db_table_main":"db_table_main","view_selection":"view_selection","view_table_main":"view_table_main","getcustom":"getcustom","php_before_getitem":"php_before_getitem","pagination":"pagination","php_after_getitem":"php_after_getitem","not_required":"not_required","php_getlistquery":"php_getlistquery","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","view_table_main":"view_table_main","add_php_router_parse":"add_php_router_parse","addcalculation":"addcalculation","add_php_before_getitems":"add_php_before_getitems","add_php_after_getitems":"add_php_after_getitems","add_php_after_getitem":"add_php_after_getitem","add_php_getlistquery":"add_php_getlistquery","view_selection":"view_selection","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","db_table_main":"db_table_main","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","add_php_router_parse","add_php_after_getitems","add_php_before_getitems","add_php_getlistquery","add_php_after_getitem","add_php_before_getitem","view_table_main","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","view_table_main","add_php_router_parse","add_php_before_getitems","add_php_after_getitems","add_php_after_getitem","add_php_getlistquery","add_php_before_getitem","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
// Check if dynamic_get type is already in content_type DB.
$dynamic_get_id = null;
@ -4322,9 +4322,9 @@ class com_componentbuilderInstallerScript
$help_document->type_title = 'Componentbuilder Help_document';
$help_document->type_alias = 'com_componentbuilder.help_document';
$help_document->table = '{"special": {"dbtable": "#__componentbuilder_help_document","key": "id","type": "Help_document","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$help_document->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "title","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "content","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"title":"title","type":"type","groups":"groups","location":"location","admin_view":"admin_view","site_view":"site_view","not_required":"not_required","content":"content","article":"article","url":"url","target":"target","alias":"alias"}}';
$help_document->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "title","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "content","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "null","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"title":"title","type":"type","groups":"groups","location":"location","admin_view":"admin_view","site_view":"site_view","not_required":"not_required","content":"content","article":"article","url":"url","target":"target","alias":"alias"}}';
$help_document->router = 'ComponentbuilderHelperRoute::getHelp_documentRoute';
$help_document->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","not_required","article","target"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}';
$help_document->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","not_required","article","target"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}';
// Check if help_document type is already in content_type DB.
$help_document_id = null;
@ -4989,7 +4989,7 @@ class com_componentbuilderInstallerScript
echo '<a target="_blank" href="http://www.joomlacomponentbuilder.com" title="Component Builder">
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 2.8.6 Was Successful! Let us know if anything is not working as expected.</h3>';
<h3>Upgrade to Version 2.8.8 Was Successful! Let us know if anything is not working as expected.</h3>';
}
}

View File

@ -3619,7 +3619,7 @@ abstract class ComponentbuilderHelper
* @return string On success the edit url
*
*/
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder')
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder', $jRoute = true)
{
// check that we have the ID
if (self::checkObject($item) && isset($item->id))
@ -3641,8 +3641,12 @@ abstract class ComponentbuilderHelper
if (JFactory::getUser()->authorise($view . '.edit', $component . '.' . $view . '.' . (int) $id))
{
// set the edit link
if ($jRoute)
{
return JRoute::_("index.php?option=" . $component . "&view=" . $views . "&task=" . $view . ".edit&id=" . $id . $ref);
}
return "index.php?option=" . $component . "&view=" . $views . "&task=" . $view . ".edit&id=" . $id . $ref;
}
}
return false;
}