Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
c6884571bd | |||
467a7aac95 | |||
e6466474b1 | |||
a310efaf61 | |||
f692e573f6 | |||
189a8723ac | |||
d00603355b | |||
7b3915bf14 | |||
3de31b1c1a | |||
98510ae504 |
14
README.md
14
README.md
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||
|
||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.9) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.12) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -126,14 +126,14 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 29th December, 2017
|
||||
+ *Version*: 2.6.9
|
||||
+ *Last Build*: 19th January, 2018
|
||||
+ *Version*: 2.6.12
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
+ *Line count*: **178630**
|
||||
+ *Field count*: **1539**
|
||||
+ *File count*: **1147**
|
||||
+ *Folder count*: **184**
|
||||
+ *Line count*: **180465**
|
||||
+ *Field count*: **1573**
|
||||
+ *File count*: **1160**
|
||||
+ *Folder count*: **186**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||
|
||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.9) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.6.12) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -126,14 +126,14 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 29th December, 2017
|
||||
+ *Version*: 2.6.9
|
||||
+ *Last Build*: 19th January, 2018
|
||||
+ *Version*: 2.6.12
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
+ *Line count*: **178630**
|
||||
+ *Field count*: **1539**
|
||||
+ *File count*: **1147**
|
||||
+ *Folder count*: **184**
|
||||
+ *Line count*: **180465**
|
||||
+ *Field count*: **1573**
|
||||
+ *File count*: **1160**
|
||||
+ *Folder count*: **186**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -261,8 +261,6 @@
|
||||
<action name="joomla_component.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_OWN_DESC" />
|
||||
<action name="joomla_component.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC" />
|
||||
<action name="joomla_component.version" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_component.export" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC" />
|
||||
<action name="joomla_component.import" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT_DESC" />
|
||||
<action name="joomla_component.submenu" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC" />
|
||||
<action name="language_translation.access" title="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS" description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS_DESC" />
|
||||
<action name="language_translation.batch" title="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE" description="COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE_DESC" />
|
||||
|
@ -42,6 +42,24 @@ abstract class ###Component###Helper
|
||||
$manifestUrl = JPATH_ADMINISTRATOR."/components/com_###component###/###component###.xml";
|
||||
return simplexml_load_file($manifestUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Joomla version object
|
||||
**/
|
||||
protected static $JVersion;
|
||||
|
||||
/**
|
||||
* set/get Joomla version
|
||||
**/
|
||||
public static function jVersion()
|
||||
{
|
||||
// check if set
|
||||
if (!self::checkObject(self::$JVersion))
|
||||
{
|
||||
self::$JVersion = new JVersion();
|
||||
}
|
||||
return self::$JVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Contributors details.
|
||||
|
@ -61,10 +61,10 @@ abstract class ###Component###Helper
|
||||
}
|
||||
return (string) implode($sperator,$result);
|
||||
}
|
||||
return (string) json_decode($value);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
return (string) json_decode($value);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Component xml manifest.
|
||||
@ -74,6 +74,24 @@ abstract class ###Component###Helper
|
||||
$manifestUrl = JPATH_ADMINISTRATOR."/components/com_###component###/###component###.xml";
|
||||
return simplexml_load_file($manifestUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Joomla version object
|
||||
**/
|
||||
protected static $JVersion;
|
||||
|
||||
/**
|
||||
* set/get Joomla version
|
||||
**/
|
||||
public static function jVersion()
|
||||
{
|
||||
// check if set
|
||||
if (!self::checkObject(self::$JVersion))
|
||||
{
|
||||
self::$JVersion = new JVersion();
|
||||
}
|
||||
return self::$JVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Contributors details.
|
||||
|
@ -56,7 +56,7 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
protected function setDocument()
|
||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_DOCUMENT_METADATA### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||
// add the document default css file
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -122,9 +122,9 @@ class ###Component###View###View### extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", array('version' => 'auto'));###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", array('version' => 'auto')); ###DOCUMENT_CUSTOM_PHP###
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
||||
$this->document->addScript(JURI::root() . $this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -127,13 +127,13 @@ class ###Component###View###View### extends JViewLegacy
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||
// we need this to fix the form display
|
||||
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
// the default style of this view
|
||||
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", array('version' => 'auto'));###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
||||
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
||||
// default javascript of this view
|
||||
$this->document->addScript(JURI::root().$this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", array('version' => 'auto')); ###DOCUMENT_CUSTOM_PHP###
|
||||
$this->document->addScript(JURI::root().$this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ class ###Component###View###Views### extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_###COMPONENT###_###VIEWS###'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###views###.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###views###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
protected function setDocument()
|
||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||
// add the document default css file
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', array('version' => 'auto'));###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
protected function _prepareDocument()
|
||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
||||
// add the document default css file
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', array('version' => 'auto'));###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
protected function _prepareDocument()
|
||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
||||
// add the document default css file
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', array('version' => 'auto'));###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS###
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
$this->registerTask('getButton', 'ajax');
|
||||
$this->registerTask('getButtonID', 'ajax');
|
||||
$this->registerTask('getAjaxDisplay', 'ajax');
|
||||
$this->registerTask('getSnippets', 'ajax');
|
||||
$this->registerTask('getLinked', 'ajax');
|
||||
$this->registerTask('templateDetails', 'ajax');
|
||||
$this->registerTask('getLayoutDetails', 'ajax');
|
||||
$this->registerTask('dbTableColumns', 'ajax');
|
||||
@ -60,9 +60,10 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
$this->registerTask('getDynamicValues', 'ajax');
|
||||
$this->registerTask('checkFunctionName', 'ajax');
|
||||
$this->registerTask('usedin', 'ajax');
|
||||
$this->registerTask('fieldOptions', 'ajax');
|
||||
$this->registerTask('snippetDetails', 'ajax');
|
||||
$this->registerTask('setSnippetGithub', 'ajax');
|
||||
$this->registerTask('fieldOptions', 'ajax');
|
||||
$this->registerTask('getSnippets', 'ajax');
|
||||
}
|
||||
|
||||
public function ajax()
|
||||
@ -458,14 +459,14 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'getSnippets':
|
||||
case 'getLinked':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$librariesValue = $jinput->get('libraries', NULL, 'STRING');
|
||||
if($librariesValue && $user->id != 0)
|
||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||
if($typeValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getSnippets($librariesValue);
|
||||
$result = $this->getModel('ajax')->getLinked($typeValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -770,6 +771,44 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'fieldOptions':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$idValue = $jinput->get('id', NULL, 'INT');
|
||||
if($idValue)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getFieldOptions($idValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = false;
|
||||
}
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback . "(".json_encode($result).");";
|
||||
}
|
||||
elseif($returnRaw)
|
||||
{
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($result).");";
|
||||
}
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback."(".json_encode($e).");";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($e).");";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'snippetDetails':
|
||||
try
|
||||
{
|
||||
@ -847,14 +886,14 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'fieldOptions':
|
||||
case 'getSnippets':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$idValue = $jinput->get('id', NULL, 'INT');
|
||||
if($idValue)
|
||||
$librariesValue = $jinput->get('libraries', NULL, 'STRING');
|
||||
if($librariesValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getFieldOptions($idValue);
|
||||
$result = $this->getModel('ajax')->getSnippets($librariesValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
67
admin/controllers/import_language_translations.php
Normal file
67
admin/controllers/import_language_translations.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage import_language_translations.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
/**
|
||||
* Componentbuilder Import_language_translations Controller
|
||||
*/
|
||||
class ComponentbuilderControllerImport_language_translations extends JControllerLegacy
|
||||
{
|
||||
/**
|
||||
* Import an spreadsheet.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function import()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||
|
||||
$model = $this->getModel('Import_language_translations');
|
||||
if ($model->import())
|
||||
{
|
||||
$cache = JFactory::getCache('mod_menu');
|
||||
$cache->clean();
|
||||
// TODO: Reset the users acl here as well to kill off any missing bits
|
||||
}
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$redirect_url = $app->getUserState('com_componentbuilder.redirect_url');
|
||||
if (empty($redirect_url))
|
||||
{
|
||||
$redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=import_language_translations', false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// wipe out the user state when we're going to redirect
|
||||
$app->setUserState('com_componentbuilder.redirect_url', '');
|
||||
$app->setUserState('com_componentbuilder.message', '');
|
||||
$app->setUserState('com_componentbuilder.extension_message', '');
|
||||
}
|
||||
$this->setRedirect($redirect_url);
|
||||
}
|
||||
}
|
@ -99,7 +99,7 @@ class ComponentbuilderControllerLanguage_translations extends JControllerAdmin
|
||||
$session->set('dataType_VDM_IMPORTINTO', 'language_translation');
|
||||
// Redirect to import view.
|
||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGE_TRANSLATIONS');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message);
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import_language_translations', false), $message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ class Compiler extends Infusion
|
||||
{
|
||||
// to check the compiler speed
|
||||
$this->time_start = microtime(true);
|
||||
// first we run the perent constructor
|
||||
// first we run the perent constructors
|
||||
if (parent::__construct($config))
|
||||
{
|
||||
// set temp directory
|
||||
|
@ -989,17 +989,21 @@ class Get
|
||||
}
|
||||
unset($component->javascript);
|
||||
|
||||
// add_css
|
||||
if ($component->add_css == 1)
|
||||
// add global CSS
|
||||
$addGlobalCss = array('admin', 'site');
|
||||
foreach ($addGlobalCss as $area)
|
||||
{
|
||||
$this->customScriptBuilder['component_css'] = base64_decode($component->css);
|
||||
// add_css if found
|
||||
if (isset($component->{'add_css_'.$area}) && $component->{'add_css_'.$area} == 1 && isset($component->{'css_'.$area}) && ComponentbuilderHelper::checkString($component->{'css_'.$area}))
|
||||
{
|
||||
$this->customScriptBuilder['component_css_'.$area] = base64_decode($component->{'css_'.$area});
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->customScriptBuilder['component_css_'.$area] = '';
|
||||
}
|
||||
unset($component->{'css_'.$area});
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->customScriptBuilder['component_css'] = '';
|
||||
}
|
||||
unset($component->css);
|
||||
|
||||
// set the lang target
|
||||
$this->lang = 'admin';
|
||||
// add PHP in ADMIN
|
||||
@ -1212,6 +1216,7 @@ class Get
|
||||
|
||||
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
|
||||
$view = $this->db->loadObject();
|
||||
|
||||
// setup view name to use in storing the data
|
||||
$name_single = ComponentbuilderHelper::safeString($view->name_single);
|
||||
$name_list = ComponentbuilderHelper::safeString($view->name_list);
|
||||
@ -1529,7 +1534,7 @@ class Get
|
||||
// set custom import scripts
|
||||
if (isset($view->add_custom_import) && $view->add_custom_import == 1)
|
||||
{
|
||||
$addImportArray = array('php_import_ext', 'php_import_display', 'php_import', 'php_import_setdata', 'php_import_save', 'html_import_view');
|
||||
$addImportArray = array('php_import_ext', 'php_import_display', 'php_import', 'php_import_setdata', 'php_import_save', 'php_import_headers', 'html_import_view');
|
||||
foreach ($addImportArray as $importScripter)
|
||||
{
|
||||
if (isset($view->$importScripter) && strlen($view->$importScripter) > 0)
|
||||
@ -1613,6 +1618,7 @@ class Get
|
||||
unset($this->placeholders['[[[Views]]]']);
|
||||
unset($this->placeholders['[[[VIEW]]]']);
|
||||
unset($this->placeholders['[[[VIEWS]]]']);
|
||||
|
||||
// store this view to class object
|
||||
$this->_adminViewData[$id] = $view;
|
||||
}
|
||||
@ -1811,23 +1817,45 @@ class Get
|
||||
// add_Ajax for this view
|
||||
if (isset($view->add_php_ajax) && $view->add_php_ajax == 1)
|
||||
{
|
||||
// ajax target (since we only have two options really)
|
||||
if ('site' === $this->target)
|
||||
{
|
||||
$target = 'site';
|
||||
}
|
||||
else
|
||||
{
|
||||
$target = 'admin';
|
||||
}
|
||||
$setAjax = false;
|
||||
// check if controller input as been set
|
||||
$view->ajax_input = (isset($view->ajax_input) && ComponentbuilderHelper::checkJson($view->ajax_input)) ? json_decode($view->ajax_input, true) : null;
|
||||
if (ComponentbuilderHelper::checkArray($view->ajax_input))
|
||||
{
|
||||
$this->customScriptBuilder[$this->target]['ajax_controller'][$view->code] = array_values($view->ajax_input);
|
||||
$this->addSiteAjax = true;
|
||||
$this->customScriptBuilder[$target]['ajax_controller'][$view->code] = array_values($view->ajax_input);
|
||||
$setAjax = true;
|
||||
}
|
||||
unset($view->ajax_input);
|
||||
// load the ajax class mathods (if set)
|
||||
if (ComponentbuilderHelper::checkString($view->php_ajaxmethod))
|
||||
{
|
||||
|
||||
$this->customScriptBuilder[$this->target]['ajax_model'][$view->code] = $this->setDynamicValues(base64_decode($view->php_ajaxmethod));
|
||||
$this->addSiteAjax = true;
|
||||
$this->customScriptBuilder[$target]['ajax_model'][$view->code] = $this->setDynamicValues(base64_decode($view->php_ajaxmethod));
|
||||
$setAjax = true;
|
||||
}
|
||||
// unset anyway
|
||||
unset($view->php_ajaxmethod);
|
||||
// should ajax be set
|
||||
if ($setAjax)
|
||||
{
|
||||
// turn on ajax area
|
||||
if ('site' === $this->target)
|
||||
{
|
||||
$this->addSiteAjax = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->addAjax = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// add the custom buttons
|
||||
if (isset($view->add_custom_button) && $view->add_custom_button == 1)
|
||||
|
@ -375,33 +375,19 @@ class Fields extends Structure
|
||||
/**
|
||||
* set the Field set of a view
|
||||
*
|
||||
* @param array $view The view data
|
||||
* @param string $component The component name
|
||||
* @param array $view The view data
|
||||
* @param string $component The component name
|
||||
* @param string $viewName The single view name
|
||||
* @param string $listViewName The list view name
|
||||
*
|
||||
* @return string The fields set in xml
|
||||
*
|
||||
*/
|
||||
public function setFieldSet($view, $component)
|
||||
public function setFieldSet($view, $component, $viewName, $listViewName)
|
||||
{
|
||||
// setup the fieldset of this view
|
||||
if (isset($view['settings']->fields) && ComponentbuilderHelper::checkArray($view['settings']->fields))
|
||||
{
|
||||
// setup the list view and single view name
|
||||
$listViewName = ComponentbuilderHelper::safeString($view['settings']->name_list);
|
||||
$viewName = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
||||
// set some place holder for this view
|
||||
$this->placeholders['###view###'] = $viewName;
|
||||
$this->placeholders['###VIEW###'] = strtoupper($viewName);
|
||||
$this->placeholders['###View###'] = ucfirst($viewName);
|
||||
$this->placeholders['[[[view]]]'] = $this->placeholders['###view###'];
|
||||
$this->placeholders['[[[VIEW]]]'] = $this->placeholders['###VIEW###'];
|
||||
$this->placeholders['[[[View]]]'] = $this->placeholders['###View###'];
|
||||
$this->placeholders['###views###'] = $listViewName;
|
||||
$this->placeholders['###VIEWS###'] = strtoupper($listViewName);
|
||||
$this->placeholders['###Views###'] = ucfirst($listViewName);
|
||||
$this->placeholders['[[[views]]]'] = $this->placeholders['###views###'];
|
||||
$this->placeholders['[[[VIEWS]]]'] = $this->placeholders['###VIEWS###'];
|
||||
$this->placeholders['[[[Views]]]'] = $this->placeholders['###Views###'];
|
||||
// add metadata to the view
|
||||
if (isset($view['metadata']) && $view['metadata'])
|
||||
{
|
||||
@ -753,8 +739,6 @@ class Fields extends Structure
|
||||
// count the static field created
|
||||
$this->fieldCount++;
|
||||
}
|
||||
// just to be safe, lets clear the view placeholders
|
||||
$this->clearFromPlaceHolders('view');
|
||||
// return the set
|
||||
return $this->xmlPrettyPrint($XML, 'fieldset');
|
||||
}
|
||||
|
@ -3339,8 +3339,7 @@ class Interpretation extends Fields
|
||||
$path = '/administrator/components/com_' . $this->fileContentStatic['###component###'] . '/assets/js/' . $view['settings']->code . '.js';
|
||||
}
|
||||
// add script to file
|
||||
$this->fileContentDynamic[$view['settings']->code]['###' . $TARGET . '_JAVASCRIPT_FILE###']
|
||||
= $this->setPlaceholders($view['settings']->javascript_file, $this->placeholders);
|
||||
$this->fileContentDynamic[$view['settings']->code]['###' . $TARGET . '_JAVASCRIPT_FILE###'] = $this->setPlaceholders($view['settings']->javascript_file, $this->placeholders);
|
||||
// add script to view
|
||||
return PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Add View JavaScript File" . PHP_EOL . "\t\t" . $this->setIncludeLibScript($path);
|
||||
}
|
||||
@ -3493,9 +3492,9 @@ class Interpretation extends Fields
|
||||
$chart[] = PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " add the google chart builder class.";
|
||||
$chart[] = "\t\trequire_once JPATH_COMPONENT_ADMINISTRATOR.'/helpers/chartbuilder.php';";
|
||||
$chart[] = "\t\t//" . $this->setLine(__LINE__) . " load the google chart js.";
|
||||
$chart[] = "\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/js/google.jsapi.js', array('version' => 'auto'));";
|
||||
$chart[] = "\t\t\$this->document->addScript('https://canvg.googlecode.com/svn/trunk/rgbcolor.js', array('version' => 'auto'));";
|
||||
$chart[] = "\t\t\$this->document->addScript('https://canvg.googlecode.com/svn/trunk/canvg.js', array('version' => 'auto'));";
|
||||
$chart[] = "\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/js/google.jsapi.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$chart[] = "\t\t\$this->document->addScript('https://canvg.googlecode.com/svn/trunk/rgbcolor.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$chart[] = "\t\t\$this->document->addScript('https://canvg.googlecode.com/svn/trunk/canvg.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
return implode(PHP_EOL, $chart);
|
||||
}
|
||||
return '';
|
||||
@ -3699,11 +3698,11 @@ class Interpretation extends Fields
|
||||
switch ($pathInfo['extension'])
|
||||
{
|
||||
case 'js':
|
||||
return '$this->document->addScript(' . $JURI . '"' . $path . '", array("version" => "auto"));';
|
||||
return '$this->document->addScript(' . $JURI . '"' . $path . '", (' . $this->fileContentStatic['###Component###'] . 'Helper::jVersion()->isCompatible("3.8.0")) ? array("version" => "auto") : "text/javascript");';
|
||||
break;
|
||||
case 'css':
|
||||
case 'less':
|
||||
return '$this->document->addStyleSheet(' . $JURI . '"' . $path . '", array("version" => "auto"));';
|
||||
return '$this->document->addStyleSheet(' . $JURI . '"' . $path . '", (' . $this->fileContentStatic['###Component###'] . 'Helper::jVersion()->isCompatible("3.8.0")) ? array("version" => "auto") : "text/css");';
|
||||
break;
|
||||
case 'php':
|
||||
if (strpos($path, 'http') === false)
|
||||
@ -3765,12 +3764,12 @@ class Interpretation extends Fields
|
||||
$setter .= PHP_EOL . PHP_EOL . $tabV . "\t\t//" . $this->setLine(__LINE__) . " The uikit css.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\tif ((!\$HeaderCheck->css_loaded('uikit.min') || \$uikit == 1) && \$uikit != 2 && \$uikit != 3)";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/uikit'.\$style.\$size.'.css', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/uikit'.\$style.\$size.'.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t//" . $this->setLine(__LINE__) . " The uikit js.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\tif ((!\$HeaderCheck->js_loaded('uikit.min') || \$uikit == 1) && \$uikit != 2 && \$uikit != 3)";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/uikit'.\$size.'.js', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/uikit'.\$size.'.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t}";
|
||||
}
|
||||
// load the components need
|
||||
@ -3818,13 +3817,13 @@ class Interpretation extends Fields
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\tif (JFile::exists(JPATH_ROOT.'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css'))";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t//" . $this->setLine(__LINE__) . " load the css.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t//" . $this->setLine(__LINE__) . " check if the JavaScript file exists.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\tif (JFile::exists(JPATH_ROOT.'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js'))";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t//" . $this->setLine(__LINE__) . " load the js.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t}";
|
||||
@ -3847,13 +3846,13 @@ class Interpretation extends Fields
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\tif (JFile::exists(JPATH_ROOT.'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css'))";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t//" . $this->setLine(__LINE__) . " load the css.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/css/components/'.\$name.\$style.\$size.'.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t//" . $this->setLine(__LINE__) . " check if the JavaScript file exists.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\tif (JFile::exists(JPATH_ROOT.'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js'))";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t//" . $this->setLine(__LINE__) . " load the js.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v2/js/components/'.\$name.\$size.'.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t}";
|
||||
@ -3873,12 +3872,12 @@ class Interpretation extends Fields
|
||||
$setter .= PHP_EOL . $tabV . "\t\t//" . $this->setLine(__LINE__) . " The uikit css.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\tif ((!\$HeaderCheck->css_loaded('uikit.min') || \$uikit == 1) && \$uikit != 2 && \$uikit != 3)";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v3/css/uikit'.\$size.'.css', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addStyleSheet(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v3/css/uikit'.\$size.'.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t}";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t//" . $this->setLine(__LINE__) . " The uikit js.";
|
||||
$setter .= PHP_EOL . $tabV . "\t\tif ((!\$HeaderCheck->js_loaded('uikit.min') || \$uikit == 1) && \$uikit != 2 && \$uikit != 3)";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t{";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v3/js/uikit'.\$size.'.js', array('version' => 'auto'));";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t\t\$this->document->addScript(JURI::root(true) .'/media/com_" . $this->fileContentStatic['###component###'] . "/uikit-v3/js/uikit'.\$size.'.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$setter .= PHP_EOL . $tabV . "\t\t}";
|
||||
if (2 == $this->uikit)
|
||||
{
|
||||
@ -5756,7 +5755,7 @@ class Interpretation extends Fields
|
||||
$componentName = JFilterOutput::cleanText($this->componentData->name);
|
||||
$this->langContent['adminsys'][$this->langPrefix] = $componentName;
|
||||
$this->langContent['adminsys'][$this->langPrefix . '_CONFIGURATION'] = $componentName . ' Configuration';
|
||||
$this->langContent[$this->lang][$this->langPrefix] = $componentName;
|
||||
$this->langContent['admin'][$this->langPrefix] = $componentName;
|
||||
$this->langContent['admin'][$this->langPrefix . '_BACK'] = 'Back';
|
||||
$this->langContent['admin'][$this->langPrefix . '_DASH'] = 'Dashboard';
|
||||
$this->langContent['admin'][$this->langPrefix . '_VERSION'] = 'Version';
|
||||
@ -5781,6 +5780,8 @@ class Interpretation extends Fields
|
||||
$this->langContent['admin'][$this->langPrefix . '_INACTIVE'] = 'Inactive';
|
||||
$this->langContent['admin'][$this->langPrefix . '_ARCHIVED'] = 'Archived';
|
||||
$this->langContent['admin'][$this->langPrefix . '_TRASHED'] = 'Trashed';
|
||||
$this->langContent['admin'][$this->langPrefix . '_NO_ACCESS_GRANTED'] = "No Access Granted!";
|
||||
$this->langContent['admin'][$this->langPrefix . '_NOT_FOUND_OR_ACCESS_DENIED'] = "Not found or access denied!";
|
||||
if ($this->componentData->add_license && $this->componentData->license_type == 3)
|
||||
{
|
||||
$this->langContent['admin']['NIE_REG_NIE'] = "<br /><br /><center><h1>License not set for " . $componentName . ".</h1><p>Notify your administrator!<br />The license can be obtained from " . $this->componentData->companyname . ".</p></center>";
|
||||
@ -5822,7 +5823,6 @@ class Interpretation extends Fields
|
||||
$this->langContent['admin'][$this->langPrefix . '_IMPORT_FILE_COLUMNS'] = "File Columns";
|
||||
$this->langContent['admin'][$this->langPrefix . '_IMPORT_PLEASE_SELECT_COLUMN'] = "-- Please Select Column --";
|
||||
$this->langContent['admin'][$this->langPrefix . '_IMPORT_IGNORE_COLUMN'] = "-- Ignore This Column --";
|
||||
$this->langContent['admin'][$this->langPrefix . '_NO_ACCESS_GRANTED'] = "No Access Granted!";
|
||||
}
|
||||
// check if the both array is set
|
||||
if (isset($this->langContent['both']) && ComponentbuilderHelper::checkArray($this->langContent['both']))
|
||||
@ -5875,6 +5875,7 @@ class Interpretation extends Fields
|
||||
$this->langContent['site'][$this->langPrefix . '_CREATE_NEW_S'] = "Create New %s";
|
||||
$this->langContent['site'][$this->langPrefix . '_EDIT_S'] = "Edit %s";
|
||||
$this->langContent['site'][$this->langPrefix . '_NO_ACCESS_GRANTED'] = "No Access Granted!";
|
||||
$this->langContent['site'][$this->langPrefix . '_NOT_FOUND_OR_ACCESS_DENIED'] = "Not found or access denied!";
|
||||
|
||||
// check if the both array is set
|
||||
if (isset($this->langContent['both']) && ComponentbuilderHelper::checkArray($this->langContent['both']))
|
||||
@ -5910,6 +5911,7 @@ class Interpretation extends Fields
|
||||
// add final list of needed lang strings
|
||||
$this->langContent['sitesys'][$this->langPrefix] = ComponentbuilderHelper::safeString($this->componentData->name, 'W');
|
||||
$this->langContent['sitesys'][$this->langPrefix . '_NO_ACCESS_GRANTED'] = "No Access Granted!";
|
||||
$this->langContent['sitesys'][$this->langPrefix . '_NOT_FOUND_OR_ACCESS_DENIED'] = "Not found or access denied!";
|
||||
|
||||
// check if the both site array is set
|
||||
if (isset($this->langContent['bothsite']) && ComponentbuilderHelper::checkArray($this->langContent['bothsite']))
|
||||
@ -7176,22 +7178,22 @@ class Interpretation extends Fields
|
||||
if (!isset($this->footableVersion) || 2 == $this->footableVersion) // loading version 2
|
||||
{
|
||||
$foo = PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Add the CSS for Footable.";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.core.min.css', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.core.min.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$foo .= PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Use the Metro Style";
|
||||
$foo .= PHP_EOL . "\t\tif (!isset(\$this->fooTableStyle) || 0 == \$this->fooTableStyle)";
|
||||
$foo .= PHP_EOL . "\t\t{";
|
||||
$foo .= PHP_EOL . "\t\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.metro.min.css', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.metro.min.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$foo .= PHP_EOL . "\t\t}";
|
||||
$foo .= PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Use the Legacy Style.";
|
||||
$foo .= PHP_EOL . "\t\telseif (isset(\$this->fooTableStyle) && 1 == \$this->fooTableStyle)";
|
||||
$foo .= PHP_EOL . "\t\t{";
|
||||
$foo .= PHP_EOL . "\t\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.standalone.min.css', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/css/footable.standalone.min.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$foo .= PHP_EOL . "\t\t}";
|
||||
$foo .= PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Add the JavaScript for Footable";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.js', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.sort.js', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.filter.js', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.paginate.js', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.sort.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.filter.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v2/js/footable.paginate.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
if ($init)
|
||||
{
|
||||
$foo .= PHP_EOL . PHP_EOL . "\t\t" . '$footable = "jQuery(document).ready(function() { jQuery(function () { jQuery(' . "'.footable'" . ').footable(); }); jQuery(' . "'.nav-tabs'" . ').on(' . "'click'" . ', ' . "'li'" . ', function() { setTimeout(tableFix, 10); }); }); function tableFix() { jQuery(' . "'.footable'" . ').trigger(' . "'footable_resize'" . '); }";';
|
||||
@ -7203,9 +7205,9 @@ class Interpretation extends Fields
|
||||
|
||||
$foo = PHP_EOL . PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Add the CSS for Footable";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addStyleSheet('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v3/css/footable.standalone.min.css', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addStyleSheet(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v3/css/footable.standalone.min.css', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');";
|
||||
$foo .= PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Add the JavaScript for Footable (adding all funtions)";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v3/js/footable.min.js', array('version' => 'auto'));";
|
||||
$foo .= PHP_EOL . "\t\t\$this->document->addScript(JURI::root() .'media/com_" . $this->fileContentStatic['###component###'] . "/footable-v3/js/footable.min.js', (" . $this->fileContentStatic['###Component###'] . "Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');";
|
||||
if ($init)
|
||||
{
|
||||
$foo .= PHP_EOL . PHP_EOL . "\t\t" . '$footable = "jQuery(document).ready(function() { jQuery(function () { jQuery(' . "'.footable'" . ').footable();});});";';
|
||||
@ -8101,32 +8103,10 @@ class Interpretation extends Fields
|
||||
$query .= PHP_EOL . "\t\treturn false;";
|
||||
$query .= PHP_EOL . "\t}";
|
||||
|
||||
$query .= PHP_EOL . PHP_EOL . "\t/**";
|
||||
$query .= PHP_EOL . "\t* Method to get header.";
|
||||
$query .= PHP_EOL . "\t*";
|
||||
$query .= PHP_EOL . "\t* @return mixed An array of data items on success, false on failure.";
|
||||
$query .= PHP_EOL . "\t*/";
|
||||
$query .= PHP_EOL . "\tpublic function getExImPortHeaders()";
|
||||
$query .= PHP_EOL . "\t{";
|
||||
$query .= PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Get a db connection.";
|
||||
$query .= PHP_EOL . "\t\t\$db = JFactory::getDbo();";
|
||||
$query .= PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " get the columns";
|
||||
$query .= PHP_EOL . "\t\t\$columns = \$db->getTableColumns(" . '"#__' . $this->fileContentStatic['###component###'] . '_' . $viewName_single . '");';
|
||||
$query .= PHP_EOL . "\t\tif (" . $this->fileContentStatic['###Component###'] . "Helper::checkArray(\$columns))";
|
||||
$query .= PHP_EOL . "\t\t{";
|
||||
$query .= PHP_EOL . "\t\t\t//" . $this->setLine(__LINE__) . " remove the headers you don't import/export.";
|
||||
$query .= PHP_EOL . "\t\t\tunset(\$columns['asset_id']);";
|
||||
$query .= PHP_EOL . "\t\t\tunset(\$columns['checked_out']);";
|
||||
$query .= PHP_EOL . "\t\t\tunset(\$columns['checked_out_time']);";
|
||||
$query .= PHP_EOL . "\t\t\t\$headers = new stdClass();";
|
||||
$query .= PHP_EOL . "\t\t\tforeach (\$columns as \$column => \$type)";
|
||||
$query .= PHP_EOL . "\t\t\t{";
|
||||
$query .= PHP_EOL . "\t\t\t\t\$headers->{\$column} = \$column;";
|
||||
$query .= PHP_EOL . "\t\t\t}";
|
||||
$query .= PHP_EOL . "\t\t\treturn \$headers;";
|
||||
$query .= PHP_EOL . "\t\t}";
|
||||
$query .= PHP_EOL . "\t\treturn false;";
|
||||
$query .= PHP_EOL . "\t}";
|
||||
// add getExImPortHeaders
|
||||
$query .= $this->getCustomScriptBuilder('php_import_headers', 'import_' . $viewName_list, PHP_EOL . PHP_EOL, null, true,
|
||||
// set a default script for those with no custom script
|
||||
PHP_EOL . PHP_EOL . $this->setPlaceholders(ComponentbuilderHelper::getImportScripts('headers'), $this->placeholders));
|
||||
}
|
||||
return $query;
|
||||
}
|
||||
|
@ -173,9 +173,9 @@ class Infusion extends Interpretation
|
||||
$this->fileContentStatic['###SITEJS###'] = $this->setPlaceholders($this->customScriptBuilder['component_js'], $this->placeholders);
|
||||
|
||||
// ###ADMINCSS###
|
||||
$this->fileContentStatic['###ADMINCSS###'] = $this->setPlaceholders($this->customScriptBuilder['component_css'], $this->placeholders);
|
||||
$this->fileContentStatic['###ADMINCSS###'] = $this->setPlaceholders($this->customScriptBuilder['component_css_admin'], $this->placeholders);
|
||||
// ###SITECSS###
|
||||
$this->fileContentStatic['###SITECSS###'] = $this->setPlaceholders($this->customScriptBuilder['component_css'], $this->placeholders);
|
||||
$this->fileContentStatic['###SITECSS###'] = $this->setPlaceholders($this->customScriptBuilder['component_css_site'], $this->placeholders);
|
||||
|
||||
// ###CUSTOM_HELPER_SCRIPT###
|
||||
$this->fileContentStatic['###CUSTOM_HELPER_SCRIPT###'] = $this->setPlaceholders($this->customScriptBuilder['component_php_helper_admin'], $this->placeholders);
|
||||
@ -236,14 +236,25 @@ class Infusion extends Interpretation
|
||||
// start dynamic build
|
||||
foreach ($this->componentData->admin_views as $view)
|
||||
{
|
||||
// just to be safe, lets clear the view placeholders
|
||||
$this->clearFromPlaceHolders('view');
|
||||
// set the target
|
||||
$this->target = 'admin';
|
||||
$this->lang = 'admin';
|
||||
// set main keys
|
||||
$viewName_single = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
||||
$viewName_list = ComponentbuilderHelper::safeString($view['settings']->name_list);
|
||||
|
||||
// set single view
|
||||
if (isset($view['settings']->name_single))
|
||||
{
|
||||
$viewName_single = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
||||
}
|
||||
|
||||
// set list view
|
||||
if (isset($view['settings']->name_list))
|
||||
{
|
||||
$viewName_list = ComponentbuilderHelper::safeString($view['settings']->name_list);
|
||||
}
|
||||
|
||||
// set the view placeholders
|
||||
$this->setViewPlaceholders($view['settings']);
|
||||
|
||||
// set site edit view array
|
||||
if (isset($view['edit_create_site_view']) && $view['edit_create_site_view'])
|
||||
{
|
||||
@ -258,36 +269,14 @@ class Infusion extends Interpretation
|
||||
// set view array
|
||||
$viewarray[] = "\t\t\t\t'" . $viewName_single . "' => '" . $viewName_list . "'";
|
||||
// set the view names
|
||||
if ($view['settings']->name_single != 'null')
|
||||
if (isset($view['settings']->name_single) && $view['settings']->name_single != 'null')
|
||||
{
|
||||
// ###VIEW### <<<DYNAMIC>>>
|
||||
$viewName_u = ComponentbuilderHelper::safeString($view['settings']->name_single, 'U');
|
||||
$this->fileContentDynamic[$viewName_single]['###VIEW###'] = $viewName_u;
|
||||
$this->fileContentDynamic[$viewName_list]['###VIEW###'] = $viewName_u;
|
||||
|
||||
// ###View### <<<DYNAMIC>>>
|
||||
$viewName_f = ComponentbuilderHelper::safeString($view['settings']->name_single, 'F');
|
||||
$this->fileContentDynamic[$viewName_single]['###View###'] = $viewName_f;
|
||||
$this->fileContentDynamic[$viewName_list]['###View###'] = $viewName_f;
|
||||
|
||||
// ###view### <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$viewName_single]['###view###'] = $viewName_single;
|
||||
$this->fileContentDynamic[$viewName_list]['###view###'] = $viewName_single;
|
||||
|
||||
// set some place holder for the views
|
||||
$this->placeholders['###view###'] = $viewName_single;
|
||||
$this->placeholders['###View###'] = $viewName_f;
|
||||
$this->placeholders['###VIEW###'] = $viewName_u;
|
||||
$this->placeholders['[[[view]]]'] = $viewName_single;
|
||||
$this->placeholders['[[[View]]]'] = $viewName_f;
|
||||
$this->placeholders['[[[VIEW]]]'] = $viewName_u;
|
||||
|
||||
// set license per view if needed
|
||||
$this->setLockLicensePer($viewName_single, $this->target);
|
||||
$this->setLockLicensePer($viewName_list, $this->target);
|
||||
|
||||
// ###FIELDSETS### <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$viewName_single]['###FIELDSETS###'] = $this->setFieldSet($view, $this->fileContentStatic['###component###']);
|
||||
$this->fileContentDynamic[$viewName_single]['###FIELDSETS###'] = $this->setFieldSet($view, $this->fileContentStatic['###component###'], $viewName_single, $viewName_list);
|
||||
|
||||
// ###ACCESSCONTROL### <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$viewName_single]['###ACCESSCONTROL###'] = $this->setFieldSetAccessControl($viewName_single);
|
||||
@ -391,35 +380,15 @@ class Infusion extends Interpretation
|
||||
}
|
||||
}
|
||||
// set the views names
|
||||
if ($view['settings']->name_list != 'null')
|
||||
if (isset($view['settings']->name_list) && $view['settings']->name_list != 'null')
|
||||
{
|
||||
$this->lang = 'admin';
|
||||
// ###VIEWS### <<<DYNAMIC>>>
|
||||
$viewsName_u = ComponentbuilderHelper::safeString($view['settings']->name_list, 'U');
|
||||
$this->fileContentDynamic[$viewName_list]['###VIEWS###'] = $viewsName_u;
|
||||
$this->fileContentDynamic[$viewName_single]['###VIEWS###'] = $viewsName_u;
|
||||
|
||||
// ###Views### <<<DYNAMIC>>>
|
||||
$viewsName_f = ComponentbuilderHelper::safeString($view['settings']->name_list, 'F');
|
||||
$this->fileContentDynamic[$viewName_list]['###Views###'] = $viewsName_f;
|
||||
$this->fileContentDynamic[$viewName_single]['###Views###'] = $viewsName_f;
|
||||
|
||||
// ###views### <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$viewName_list]['###views###'] = $viewName_list;
|
||||
$this->fileContentDynamic[$viewName_single]['###views###'] = $viewName_list;
|
||||
// ###ICOMOON### <<<DYNAMIC>>>
|
||||
$this->fileContentDynamic[$viewName_list]['###ICOMOON###'] = $view['icomoon'];
|
||||
|
||||
// set some place holder for the views
|
||||
$this->placeholders['###views###'] = $viewName_list;
|
||||
$this->placeholders['###Views###'] = $viewsName_f;
|
||||
$this->placeholders['###VIEWS###'] = $viewsName_u;
|
||||
$this->placeholders['[[[views]]]'] = $viewName_list;
|
||||
$this->placeholders['[[[Views]]]'] = $viewsName_f;
|
||||
$this->placeholders['[[[VIEWS]]]'] = $viewsName_u;
|
||||
|
||||
// set the export/import option
|
||||
if (isset($view['port']) && $view['port'])
|
||||
if (isset($view['port']) && $view['port'] || 1 == $view['settings']->add_custom_import)
|
||||
{
|
||||
$this->eximportView[$viewName_list] = true;
|
||||
if (1 == $view['settings']->add_custom_import)
|
||||
@ -1083,6 +1052,82 @@ class Infusion extends Interpretation
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the view place holders to global scope
|
||||
*
|
||||
* @param object $view The view settings
|
||||
*
|
||||
* @ return void
|
||||
*/
|
||||
protected function setViewPlaceholders(&$view)
|
||||
{
|
||||
// just to be safe, lets clear previous view placeholders
|
||||
$this->clearFromPlaceHolders('view');
|
||||
|
||||
// ###VIEW### <<<DYNAMIC>>>
|
||||
if (isset($view->name_single))
|
||||
{
|
||||
// set main keys
|
||||
$viewName_single = ComponentbuilderHelper::safeString($view->name_single);
|
||||
$viewName_u = ComponentbuilderHelper::safeString($view->name_single, 'U');
|
||||
$viewName_f = ComponentbuilderHelper::safeString($view->name_single, 'F');
|
||||
|
||||
// set some place holder for the views
|
||||
$this->placeholders['###view###'] = $viewName_single;
|
||||
$this->placeholders['###View###'] = $viewName_f;
|
||||
$this->placeholders['###VIEW###'] = $viewName_u;
|
||||
$this->placeholders['[[[view]]]'] = $viewName_single;
|
||||
$this->placeholders['[[[View]]]'] = $viewName_f;
|
||||
$this->placeholders['[[[VIEW]]]'] = $viewName_u;
|
||||
}
|
||||
|
||||
// ###VIEWS### <<<DYNAMIC>>>
|
||||
if (isset($view->name_list))
|
||||
{
|
||||
$viewName_list = ComponentbuilderHelper::safeString($view->name_list);
|
||||
$viewsName_u = ComponentbuilderHelper::safeString($view->name_list, 'U');
|
||||
$viewsName_f = ComponentbuilderHelper::safeString($view->name_list, 'F');
|
||||
|
||||
// set some place holder for the views
|
||||
$this->placeholders['###views###'] = $viewName_list;
|
||||
$this->placeholders['###Views###'] = $viewsName_f;
|
||||
$this->placeholders['###VIEWS###'] = $viewsName_u;
|
||||
$this->placeholders['[[[views]]]'] = $viewName_list;
|
||||
$this->placeholders['[[[Views]]]'] = $viewsName_f;
|
||||
$this->placeholders['[[[VIEWS]]]'] = $viewsName_u;
|
||||
}
|
||||
|
||||
// ###view### <<<DYNAMIC>>>
|
||||
if (isset($viewName_single))
|
||||
{
|
||||
$this->fileContentDynamic[$viewName_single]['###view###'] = $viewName_single;
|
||||
$this->fileContentDynamic[$viewName_single]['###VIEW###'] = $viewName_u;
|
||||
$this->fileContentDynamic[$viewName_single]['###View###'] = $viewName_f;
|
||||
|
||||
if (isset($viewName_list))
|
||||
{
|
||||
$this->fileContentDynamic[$viewName_list]['###view###'] = $viewName_single;
|
||||
$this->fileContentDynamic[$viewName_list]['###VIEW###'] = $viewName_u;
|
||||
$this->fileContentDynamic[$viewName_list]['###View###'] = $viewName_f;
|
||||
}
|
||||
}
|
||||
|
||||
// ###views### <<<DYNAMIC>>>
|
||||
if (isset($viewName_list))
|
||||
{
|
||||
$this->fileContentDynamic[$viewName_list]['###views###'] = $viewName_list;
|
||||
$this->fileContentDynamic[$viewName_list]['###VIEWS###'] = $viewsName_u;
|
||||
$this->fileContentDynamic[$viewName_list]['###Views###'] = $viewsName_f;
|
||||
|
||||
if (isset($viewName_single))
|
||||
{
|
||||
$this->fileContentDynamic[$viewName_single]['###views###'] = $viewName_list;
|
||||
$this->fileContentDynamic[$viewName_single]['###VIEWS###'] = $viewsName_u;
|
||||
$this->fileContentDynamic[$viewName_single]['###Views###'] = $viewsName_f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the lang values and insert to fiel
|
||||
*
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -598,6 +598,8 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_BUTTONS_DESCRIPTION="Some Short
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_DISPLAY_DESCRIPTION="<hr /><h4>Linked Fields <span id='header_admin_fields_buttons'></span></h4><div id='display_admin_fields'>Display of the fields will load here!</div><hr /><h4>Field Conditions <span id='header_admin_fields_conditions_buttons'></span></h4><div id='display_admin_fields_conditions'>Display of the fields conditions will load here!</div>"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_NOTICE_DESCRIPTION="<h5>Welcome to the new improved fields and conditions layout.</h5><p>We had to remove the repeatable fields layouts since Joomla has depreciated it. With this new improved layout we trust your experience will be better then ever before.</p><p>You can still <a href='https://youtu.be/CdSKSCTzmRA?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=32m28s' target='_blank'>watch the tutorials</a>, and though it was made during the time repeatable fields were still being used, the various concepts and layouts still look mostly the same.</p>"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_NOTICE_LABEL="Fields & Conditions"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_LINKED_VIEWS_DESCRIPTION="You can link other views that has relationship with this view. Please watch this <a href='https://youtu.be/CdSKSCTzmRA?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=22m20s' target='_blank'>tutorial</a> for more info. "
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_LINKED_VIEWS_LABEL="Linked Views Options"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION="Only if you add permissions here will this view have permissions. Please watch this <a href='https://youtu.be/CdSKSCTzmRA?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=6m19s' target='_blank'>tutorial</a> for more info."
|
||||
@ -701,6 +703,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT="Php Import Ext"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_HINT="// PHP here for the checkExtension Method"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_LABEL="Check Extension Method PHP"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS="Php Import Headers"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_HINT="// PHP here for the getExImPortHeaders Method"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_LABEL="get Export Import Headers PHP"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HINT="// PHP Here that should run in the import Method."
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_LABEL="Import Method PHP"
|
||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE="Php Import Save"
|
||||
@ -2466,6 +2472,8 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION="Add Java
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_LABEL="Add JavaScript (file)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT="Add Js Document"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL="Add JS (custom document script)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX="Add Php Ajax"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL="Add PHP (AJAX)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT="Add Php Document"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL="Add PHP (custom document script)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW="Add Php Jview"
|
||||
@ -2474,7 +2482,11 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL="Add PHP (cus
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_LABEL="Add PHP (custom JViewLegacy methods)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW="Add Php View"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL="Add PHP (custom view script)"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_AJAX_INPUT="Ajax Input"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_AJAX_INPUT_LABEL="Ajax Input"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALNUM="ALNUM"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARCHIVE="Archive"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARRAY="ARRAY"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN="Arrow Down"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN_FOUR="Arrow Down 4"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN_THREE="Arrow Down 3"
|
||||
@ -2497,10 +2509,12 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ATTACHMENT="Attachment"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BACKWARD_CIRCLE="Backward Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BAN_CIRCLE="Ban Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BARS="Bars"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BASESIXTY_FOUR="BASE64"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BASKET="Basket"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOK="Book"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOKMARK="Bookmark"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOKMARK_TWO="Bookmark 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOLEAN="BOOLEAN"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOTH="Both"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOX_ADD="Box Add"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOX_REMOVE="Box Remove"
|
||||
@ -2522,6 +2536,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKMARK_CIRCLE="Checkmark Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKMARK_TWO="Checkmark 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CIRCLE="Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CLOCK="Clock"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CMD="CMD"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME="Codename"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_DESCRIPTION="Add Name in Code Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CODENAME_HINT="codename"
|
||||
@ -2598,6 +2613,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FIRST="First"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLAG="Flag"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLAG_THREE="Flag 3"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLASH="Flash"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLOAT="FLOAT"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_CLOSE="Folder Close"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_MINUS="Folder Minus"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_OPEN="Folder Open"
|
||||
@ -2617,6 +2633,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HEART="Heart"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HEART_TWO="Heart 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HOME="Home"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HOME_TWO="Home 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HTML="HTML"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICOMOON_DESCRIPTION="Joomla Standard Icomoon Fonts"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICOMOON_LABEL="Icon"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON="Icon"
|
||||
@ -2627,6 +2644,13 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_IMAGE="Image"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_IMAGES="Images"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INFO="Info"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INFO_CIRCLE="Info Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_DESCRIPTION="Enter default input value"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_HINT="Default Value Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_LABEL="Default"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_MESSAGE="Error! Please add default input value here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_FILTER_DESCRIPTION="Select the filter used to sanitized the input value."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_FILTER_LABEL="Select a Filter"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INT="INT"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_CSS="JavaScript & CSS"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE="Javascript File"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]"
|
||||
@ -2644,6 +2668,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES="Libraries"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_DESCRIPTION="Select the libraries you want to use here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIBRARIES_LABEL="Libraries"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LINK="Link"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LINKED_COMPONENTS="Linked - Components"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIST="List"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIST_TWO="List 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LOCATION="Location"
|
||||
@ -2659,6 +2684,10 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_DESCRIPTION="Add Controller Method
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_HINT="methodName"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_LABEL="Target Controller Method"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_MESSAGE="Error! Please add controller method name here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_DESCRIPTION="Enter method name."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_HINT="Method Name Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_LABEL="Method Name"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_MESSAGE="Error! Please add method name here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MINUS="Minus"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MINUS_SIGN="Minus Sign"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MOBILE="Mobile"
|
||||
@ -2682,6 +2711,8 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION="<co
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL="Add Language String"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION="All libraries you select will dynamically be added to the header of the page according to the settings of the selected library. Each library will also get its respective buttons added to the component global options if it has any set. Please take a look at the <span id='open-libraries'>libraries</span> for more details."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL="Select libraries you would like to use in your code"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL="Snippet Usage"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL="Snippet Details"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTIFICATION="Notification"
|
||||
@ -2694,6 +2725,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_CENTER="Paragraph Center"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_JUSTIFY="Paragraph Justify"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_LEFT="Paragraph Left"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_RIGHT="Paragraph Right"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PATH="PATH"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PAUSE="Pause"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PAUSE_CIRCLE="Pause Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PENCIL="Pencil"
|
||||
@ -2702,6 +2734,10 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PERMISSION="Permissions"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE="Phone"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE_TWO="Phone 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP="PHP"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD="Php Ajaxmethod"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_HINT="// PHP Method that should run in the AJAX Model"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL="php Ajax Method"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER="Php Controller"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT="// PHP methods for the controller that the button will target"
|
||||
@ -2744,6 +2780,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUESTION_TWO="Question 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUOTES_LEFT="Quotes Left"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUOTES_RIGHT="Quotes Right"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_RADIO_UNCHECKED="Radio Unchecked"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_RAW="RAW"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_REPLY="Reply"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SAVE_COPY="Save Copy"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SAVE_NEW="Save New"
|
||||
@ -2774,6 +2811,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STAR_TWO="Star 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STATUS="Status"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STOP="Stop"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STOP_CIRCLE="Stop Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STRING="STRING"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SUPPORT="Support"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SWITCH="Switch"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME="System Name"
|
||||
@ -2788,22 +2826,35 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAGS_TWO="Tags 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAG_TWO="Tag 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TARGET_DESCRIPTION="Set the target view type"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TARGET_LABEL="Target"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_DESCRIPTION="Enter Task Name Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_HINT="Task Name Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_LABEL="Task Name"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_MESSAGE="Error! Please add task name here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_THUMBS_DOWN="Thumbs Down"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_THUMBS_UP="Thumbs Up"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TREE="Tree"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TREE_TWO="Tree 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TYPE_DESCRIPTION="for list target"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TYPE_LABEL="Type"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UINT="UINT"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNARCHIVE="Unarchive"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNBLOCK="Unblock"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNDO="Undo"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNDO_TWO="Undo 2"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNFEATURED="Unfeatured"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNKNOWN="unknown"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNLOCK="Unlock"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNPUBLISH="Unpublish"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UPLOAD="Upload"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER="User"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USERNAME="USERNAME"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USERS="Users"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_DESCRIPTION="Allow only users."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_LABEL="User Check"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_DESCRIPTION="Enter Value Name Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_HINT="Value Name Here"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_LABEL="Value Name"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_MESSAGE="Error! Please add value name here."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VCARD="Vcard"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VERSION_DESC="A count of the number of times this Custom Admin View has been revised."
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VERSION_LABEL="Revision"
|
||||
@ -2811,6 +2862,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WAND="Wand"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WARNING="Warning"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WARNING_CIRCLE="Warning Circle"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WIFI="Wifi"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WORD="WORD"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WRENCH="Wrench"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES="Yes"
|
||||
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YOUTUBE="Youtube"
|
||||
@ -3276,6 +3328,8 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_NN="nn"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NO="No"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_CALCULATION_ITEMS_DESCRIPTION="Fields are in the $item Object."
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_CALCULATION_ITEM_DESCRIPTION="Fields are in the $data Object."
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_EQUAL="not equal"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_GREATER_THAN="not greater than"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_NOT_IN="NOT IN"
|
||||
@ -3359,7 +3413,7 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_TAGS="Tags"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_THIS="This"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_TT="tt"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_TWEAK="Tweak"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_TYPE_LABEL="Type"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_TYPE_LABEL="Set Type"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_U="u"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_USER="User"
|
||||
COM_COMPONENTBUILDER_DYNAMIC_GET_USER_GROUPS="User Groups"
|
||||
@ -3678,25 +3732,33 @@ COM_COMPONENTBUILDER_FIELD_NEW="A New Field"
|
||||
COM_COMPONENTBUILDER_FIELD_NO="No"
|
||||
COM_COMPONENTBUILDER_FIELD_NONE="None"
|
||||
COM_COMPONENTBUILDER_FIELD_NONE_SET="None Set"
|
||||
COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION="<b>The available values for the filter attribute are:</b><br />
|
||||
<p>
|
||||
<code>INT</code> - An integer,<br />
|
||||
<code>UINT</code> - An unsigned integer,<br />
|
||||
<code>FLOAT</code> - A floating point number,<br />
|
||||
<code>BOOLEAN</code> - A boolean value,<br />
|
||||
<code>WORD</code> - A string containing A-Z or underscores only (not case sensitive),<br />
|
||||
<code>ALNUM</code> - A string containing A-Z or 0-9 only (not case sensitive),<br />
|
||||
<code>CMD</code> - A string containing A-Z, 0-9, underscores, periods or hyphens (not case sensitive),<br />
|
||||
<code>BASE64</code> - A string containing A-Z, 0-9, forward slashes, plus or equals (not case sensitive),<br />
|
||||
<code>STRING</code> - A fully decoded and sanitized string (default),<br />
|
||||
<code>HTML</code> - A sanitized string,<br />
|
||||
<code>ARRAY</code> - An array,<br />
|
||||
<code>PATH</code> - A sanitized file path,<br />
|
||||
<code>USERNAME</code> - Do not use (use an application specific filter),<br />
|
||||
<code>RAW</code> - The raw string is returned with no filtering,<br />
|
||||
<code>unknown</code> - An unknown filter will act like STRING. If the input is an array it will return an array of fully decoded and sanitized strings.
|
||||
</p>"
|
||||
COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_LABEL="Filter Information"
|
||||
COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION="<div class='form-horizontal'>
|
||||
<div class='span6'>
|
||||
<h1>Filter Information</h1>
|
||||
<b>The available values for the filter attribute are:</b><br />
|
||||
<p>
|
||||
<code>INT</code> - An integer,<br />
|
||||
<code>UINT</code> - An unsigned integer,<br />
|
||||
<code>FLOAT</code> - A floating point number,<br />
|
||||
<code>BOOLEAN</code> - A boolean value,<br />
|
||||
<code>WORD</code> - A string containing A-Z or underscores only (not case sensitive),<br />
|
||||
<code>ALNUM</code> - A string containing A-Z or 0-9 only (not case sensitive),<br />
|
||||
<code>CMD</code> - A string containing A-Z, 0-9, underscores, periods or hyphens (not case sensitive),<br />
|
||||
<code>BASE64</code> - A string containing A-Z, 0-9, forward slashes, plus or equals (not case sensitive),<br />
|
||||
<code>STRING</code> - A fully decoded and sanitized string (default),<br />
|
||||
<code>HTML</code> - A sanitized string,<br />
|
||||
<code>ARRAY</code> - An array,<br />
|
||||
<code>PATH</code> - A sanitized file path,<br />
|
||||
<code>USERNAME</code> - Do not use (use an application specific filter),<br />
|
||||
<code>RAW</code> - The raw string is returned with no filtering,<br />
|
||||
<code>unknown</code> - An unknown filter will act like STRING. If the input is an array it will return an array of fully decoded and sanitized strings.
|
||||
</p>
|
||||
</div>
|
||||
<div class='span6'>
|
||||
<h1>Linked To</h1>
|
||||
<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>
|
||||
</div>
|
||||
</div>"
|
||||
COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION="When using the VDM encryption you need to get a VDM public key from https://www.vdm.io/ "
|
||||
COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL="The VDM Encryption"
|
||||
COM_COMPONENTBUILDER_FIELD_NOT_NULL="NOT NULL"
|
||||
@ -4057,10 +4119,6 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE="Joomla Components Edit State"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla component"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT_DESC="Allows the users in this group to import import joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_N_ITEMS_ARCHIVED="%s Joomla Components archived."
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_N_ITEMS_ARCHIVED_1="%s Joomla Component archived."
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_N_ITEMS_CHECKED_IN_0="No Joomla Component successfully checked in."
|
||||
@ -4093,8 +4151,10 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDUIKIT_LABEL="Add Uikit"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_ADMIN_EVENT="Add Admin Event"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_ADMIN_EVENT_LABEL="Add Global Admin Event"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_BOTH_VTWO_AMP_VTHREE="Add Both v2 & v3"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS="Add Css"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_LABEL="Add CSS"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_ADMIN="Add Css Admin"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_ADMIN_LABEL="Add CSS (admin)"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_SITE="Add Css Site"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_SITE_LABEL="Add CSS (site)"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER="Add Email Helper"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION="Adding the email helper class, that can be used to send emails."
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL="Add Email Helper"
|
||||
@ -4176,10 +4236,14 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATED_DATE_DESC="The date this Joomla Co
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATED_DATE_LABEL="Created Date"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER="Creatuserhelper"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER_LABEL="Add Create User Helper Method"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS="Css"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_DESCRIPTION="Add your CSS here! [Do not add the style tags]"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_HINT="// CSS for the entire back-end"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_LABEL="CSS"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN="Css Admin"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION="Add your CSS here! [Do not add the style tags]"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_HINT="// CSS for the entire back-end of your component"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL="CSS (admin)"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE="Css Site"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION="Add your CSS here! [Do not add the style tags]"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_HINT="// CSS for the entire front-end of your component"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL="CSS (site)"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_ADMIN_VIEWS="Custom Admin Views"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE="Custom (used in custom code)"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR="Debug Linenr"
|
||||
@ -5019,6 +5083,7 @@ COM_COMPONENTBUILDER_LIBRARY_KEY_WORD_ANY_CASESENSITIVE_ONLY_FOUR_TEXT_FIELD="Ke
|
||||
COM_COMPONENTBUILDER_LIBRARY_LIBRARIES="Libraries"
|
||||
COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_DESCRIPTION="Select the libraries you want to bundle here."
|
||||
COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_LABEL="Libraries"
|
||||
COM_COMPONENTBUILDER_LIBRARY_LINKED="Linked"
|
||||
COM_COMPONENTBUILDER_LIBRARY_MAIN="Main"
|
||||
COM_COMPONENTBUILDER_LIBRARY_MAX_LENGTH_ONLY_FOUR_TEXT_FIELD="Max Length (only 4 text_field)"
|
||||
COM_COMPONENTBUILDER_LIBRARY_MIN_LENGTH_ONLY_FOUR_TEXT_FIELD="Min Length (only 4 text_field)"
|
||||
@ -5042,6 +5107,8 @@ COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_CONFIG_DESCRIPTION="<h4>Linked
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_FILES_FOLDERS_URLS_DESCRIPTION="<h4>Linked Files, Folders & URLs <span id='header_library_files_folders_urls_buttons'></span></h4><div id='display_library_files_folders_urls' >Display of the files, folders & urls will load here!</div>"
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_DESCRIPTION="Watch a <a href='https://www.youtube.com/watch?v=rDjvgLYOt1o&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE' target='_blank'>tutorial overview</a> of the new library manager concept."
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_LABEL="Quick overview"
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION="There is no behaviour set for this library. This means JCB will not add any files unless you custom code it in somewhere."
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL="No Behaviour"
|
||||
COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_DESCRIPTION="There is no behaviour set for this library. This means JCB will not add any files unless you custom code it in somewhere."
|
||||
@ -5102,13 +5169,14 @@ COM_COMPONENTBUILDER_NEW_MEANS_THAT_WE_COULD_NOT_FIND_A_LOCAL_SNIPPET_WITH_THE_S
|
||||
COM_COMPONENTBUILDER_NEW_NOTICE="New Notice"
|
||||
COM_COMPONENTBUILDER_NO="No"
|
||||
COM_COMPONENTBUILDER_NOTRANSLATION="no-translation"
|
||||
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
|
||||
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
||||
COM_COMPONENTBUILDER_NOT_SET="not set"
|
||||
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
||||
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
|
||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)"
|
||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested."
|
||||
COM_COMPONENTBUILDER_NO_FILES_LINKED="No Files Linked"
|
||||
COM_COMPONENTBUILDER_NO_FOUND="No Found"
|
||||
COM_COMPONENTBUILDER_NO_ITEM_FOUND="No Item Found"
|
||||
COM_COMPONENTBUILDER_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key."
|
||||
COM_COMPONENTBUILDER_NO_NEED_TO_GET_IT_SINCE_IT_IS_ALREADY_IN_SYNC_WITH_YOUR_LOCAL_VERSION="No need to get it since it is already in sync with your local version"
|
||||
@ -5425,6 +5493,7 @@ COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES="Libraries"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_DESCRIPTION="Select the libraries you want to use here."
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_LABEL="Libraries"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LINK="Link"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LINKED_COMPONENTS="Linked - Components"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LIST="List"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LIST_TWO="List 2"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_LOCATION="Location"
|
||||
@ -5469,6 +5538,8 @@ COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL="Add Language Stri
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_CUSTOM_TOOLBAR_PLACEHOLDER_DESCRIPTION="Use this placeholder in the body <code>[[[SITE_TOOLBAR]]]</code> to add the custom position of the toolbar."
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION="All libraries you select will dynamically be added to the header of the page according to the settings of the selected library. Each library will also get its respective buttons added to the component global options if it has any set. Please take a look at the <span id='open-libraries'>libraries</span> for more details."
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_LABEL="Select libraries you would like to use in your code"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_SNIPPET_USAGE_LABEL="Snippet Usage"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTE_UIKIT_SNIPPET_LABEL="Snippet Details"
|
||||
COM_COMPONENTBUILDER_SITE_VIEW_NOTIFICATION="Notification"
|
||||
@ -5832,6 +5903,7 @@ COM_COMPONENTBUILDER_SUBMENU_DYNAMIC_GETS="Dynamic Gets"
|
||||
COM_COMPONENTBUILDER_SUBMENU_FIELDS="Fields"
|
||||
COM_COMPONENTBUILDER_SUBMENU_FIELDTYPES="Fieldtypes"
|
||||
COM_COMPONENTBUILDER_SUBMENU_FTPS="FTP's"
|
||||
COM_COMPONENTBUILDER_SUBMENU_GET_SNIPPETS="Get Snippets"
|
||||
COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS="Help Documents"
|
||||
COM_COMPONENTBUILDER_SUBMENU_JOOMLA_COMPONENTS="Joomla Components"
|
||||
COM_COMPONENTBUILDER_SUBMENU_LANGUAGES="Languages"
|
||||
@ -5985,6 +6057,8 @@ COM_COMPONENTBUILDER_THE_COMPONENT_MYSQL_TWEAKS="The component mysql tweaks"
|
||||
COM_COMPONENTBUILDER_THE_COMPONENT_SITE_VIEWS="The component site views"
|
||||
COM_COMPONENTBUILDER_THE_COMPONENT_UPDATES="The component updates"
|
||||
COM_COMPONENTBUILDER_THE_KEY_OF_THIS_PACKAGE="The key of this package."
|
||||
COM_COMPONENTBUILDER_THE_LIBRARY_CONFIG_FIELDS="The library config fields"
|
||||
COM_COMPONENTBUILDER_THE_LIBRARY_FILES_FOLDERS_URLS="The library files, folders & URLs"
|
||||
COM_COMPONENTBUILDER_THE_NAME_OF_THIS_LIBRARY_BSB_CAN_NOT_BE_CHANGED_TO_BSB_OR_THINGS_WILL_BREAK="The name of this library (<b>%s</b>) can not be changed to <b>%s</b> or things will break."
|
||||
COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING="The notice board is loading"
|
||||
COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: <code>%s</code>"
|
||||
@ -5994,7 +6068,7 @@ COM_COMPONENTBUILDER_THE_SEARCH_FOR_THE_SNIPPETS_ARE_CASE_SENSITIVE_SO_IF_YOU_CH
|
||||
COM_COMPONENTBUILDER_THE_SNIPPETS_WERE_SUCCESSFULLY_EXPORTED="The Snippets Were Successfully Exported!"
|
||||
COM_COMPONENTBUILDER_THE_SNIPPET_WAS_SUCCESSFULLY_EXPORTED="The Snippet Was Successfully Exported!"
|
||||
COM_COMPONENTBUILDER_THE_WIKI_IS_LOADING="The wiki is loading"
|
||||
COM_COMPONENTBUILDER_THIS_BSB_IS_NOT_LINKED_TO_ANY_S="This <b>%s</b> is not linked to any (%s)!"
|
||||
COM_COMPONENTBUILDER_THIS_BSB_IS_NOT_LINKED_TO_ANY_OTHER_AREAS_OF_JCB_AT_THIS_TIME="This <b>%s</b> is not linked to any other areas of JCB at this time!"
|
||||
COM_COMPONENTBUILDER_THIS_PACKAGE_HAS_NO_KEY="This package has no key."
|
||||
COM_COMPONENTBUILDER_TITLE="Title"
|
||||
COM_COMPONENTBUILDER_TOTAL_DOWNLOADS="total downloads"
|
||||
|
@ -506,10 +506,6 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE="Joomla Components Edit State"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla component"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT_DESC="Allows the users in this group to import import joomla components"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU="Joomla Components Submenu"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the joomla component"
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS="Joomla Component Backup Button Access"
|
||||
|
@ -36,6 +36,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||
'php_import_display',
|
||||
'html_import_view',
|
||||
'php_import',
|
||||
'php_import_headers',
|
||||
'php_import_setdata',
|
||||
'php_import_save',
|
||||
'php_import_ext'
|
||||
|
48
admin/layouts/admin_view/details_fullwidth.php
Normal file
48
admin/layouts/admin_view/details_fullwidth.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage details_fullwidth.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_linked_to_notice'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage linked_components_fullwidth.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_linked_to_notice'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -30,6 +30,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'add_php_ajax',
|
||||
'php_ajaxmethod',
|
||||
'ajax_input',
|
||||
'add_php_document',
|
||||
'php_document',
|
||||
'add_php_view',
|
||||
|
@ -30,7 +30,8 @@ defined('_JEXEC') or die('Restricted access');
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'php_custom_get'
|
||||
'php_custom_get',
|
||||
'note_linked_to_notice'
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -28,7 +28,7 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vzyfields;
|
||||
$items = $displayData->wabfields;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
||||
|
@ -28,7 +28,7 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vzzlinked_components;
|
||||
$items = $displayData->waclinked_components;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||
|
@ -46,8 +46,10 @@ $fields = $displayData->get('fields') ?: array(
|
||||
'php_site_event',
|
||||
'add_javascript',
|
||||
'javascript',
|
||||
'add_css',
|
||||
'css'
|
||||
'add_css_admin',
|
||||
'css_admin',
|
||||
'add_css_site',
|
||||
'css_site'
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -28,7 +28,7 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vwmtranslation;
|
||||
$items = $displayData->vwntranslation;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_componentbuilder&view=language_translations&task=language_translation.edit";
|
||||
|
48
admin/layouts/library/linked_fullwidth.php
Normal file
48
admin/layouts/library/linked_fullwidth.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage linked_fullwidth.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_linked_to_notice'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
48
admin/layouts/site_view/linked_components_fullwidth.php
Normal file
48
admin/layouts/site_view/linked_components_fullwidth.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage linked_components_fullwidth.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_linked_to_notice'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -100,6 +100,14 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addtables))
|
||||
{
|
||||
// Convert the addtables field to an array.
|
||||
$addtables = new Registry;
|
||||
$addtables->loadString($item->addtables);
|
||||
$item->addtables = $addtables->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addpermissions))
|
||||
{
|
||||
// Convert the addpermissions field to an array.
|
||||
@ -132,14 +140,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$item->custom_button = $custom_button->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addtables))
|
||||
{
|
||||
// Convert the addtables field to an array.
|
||||
$addtables = new Registry;
|
||||
$addtables->loadString($item->addtables);
|
||||
$item->addtables = $addtables->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->ajax_input))
|
||||
{
|
||||
// Convert the ajax_input field to an array.
|
||||
@ -148,112 +148,16 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$item->ajax_input = $ajax_input->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_after_delete))
|
||||
if (!empty($item->php_import_headers))
|
||||
{
|
||||
// base64 Decode php_after_delete.
|
||||
$item->php_after_delete = base64_decode($item->php_after_delete);
|
||||
// base64 Decode php_import_headers.
|
||||
$item->php_import_headers = base64_decode($item->php_import_headers);
|
||||
}
|
||||
|
||||
if (!empty($item->php_save))
|
||||
if (!empty($item->html_import_view))
|
||||
{
|
||||
// base64 Decode php_save.
|
||||
$item->php_save = base64_decode($item->php_save);
|
||||
}
|
||||
|
||||
if (!empty($item->php_batchmove))
|
||||
{
|
||||
// base64 Decode php_batchmove.
|
||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getlistquery))
|
||||
{
|
||||
// base64 Decode php_getlistquery.
|
||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||
}
|
||||
|
||||
if (!empty($item->php_allowedit))
|
||||
{
|
||||
// base64 Decode php_allowedit.
|
||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||
}
|
||||
|
||||
if (!empty($item->php_after_publish))
|
||||
{
|
||||
// base64 Decode php_after_publish.
|
||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitems))
|
||||
{
|
||||
// base64 Decode php_getitems.
|
||||
$item->php_getitems = base64_decode($item->php_getitems);
|
||||
}
|
||||
|
||||
if (!empty($item->php_import))
|
||||
{
|
||||
// base64 Decode php_import.
|
||||
$item->php_import = base64_decode($item->php_import);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitems_after_all))
|
||||
{
|
||||
// base64 Decode php_getitems_after_all.
|
||||
$item->php_getitems_after_all = base64_decode($item->php_getitems_after_all);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_save))
|
||||
{
|
||||
// base64 Decode php_before_save.
|
||||
$item->php_before_save = base64_decode($item->php_before_save);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postsavehook))
|
||||
{
|
||||
// base64 Decode php_postsavehook.
|
||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||
}
|
||||
|
||||
if (!empty($item->php_batchcopy))
|
||||
{
|
||||
// base64 Decode php_batchcopy.
|
||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_publish))
|
||||
{
|
||||
// base64 Decode php_before_publish.
|
||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_delete))
|
||||
{
|
||||
// base64 Decode php_before_delete.
|
||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||
}
|
||||
|
||||
if (!empty($item->php_document))
|
||||
{
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_import_display))
|
||||
{
|
||||
// base64 Decode php_import_display.
|
||||
$item->php_import_display = base64_decode($item->php_import_display);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitem))
|
||||
{
|
||||
// base64 Decode php_getitem.
|
||||
$item->php_getitem = base64_decode($item->php_getitem);
|
||||
// base64 Decode html_import_view.
|
||||
$item->html_import_view = base64_decode($item->html_import_view);
|
||||
}
|
||||
|
||||
if (!empty($item->php_import_save))
|
||||
@ -262,48 +166,138 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$item->php_import_save = base64_decode($item->php_import_save);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitem))
|
||||
{
|
||||
// base64 Decode php_getitem.
|
||||
$item->php_getitem = base64_decode($item->php_getitem);
|
||||
}
|
||||
|
||||
if (!empty($item->css_view))
|
||||
{
|
||||
// base64 Decode css_view.
|
||||
$item->css_view = base64_decode($item->css_view);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitems))
|
||||
{
|
||||
// base64 Decode php_getitems.
|
||||
$item->php_getitems = base64_decode($item->php_getitems);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getitems_after_all))
|
||||
{
|
||||
// base64 Decode php_getitems_after_all.
|
||||
$item->php_getitems_after_all = base64_decode($item->php_getitems_after_all);
|
||||
}
|
||||
|
||||
if (!empty($item->css_views))
|
||||
{
|
||||
// base64 Decode css_views.
|
||||
$item->css_views = base64_decode($item->css_views);
|
||||
}
|
||||
|
||||
if (!empty($item->php_getlistquery))
|
||||
{
|
||||
// base64 Decode php_getlistquery.
|
||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_save))
|
||||
{
|
||||
// base64 Decode php_before_save.
|
||||
$item->php_before_save = base64_decode($item->php_before_save);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_view_file))
|
||||
{
|
||||
// base64 Decode javascript_view_file.
|
||||
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
||||
}
|
||||
|
||||
if (!empty($item->php_save))
|
||||
{
|
||||
// base64 Decode php_save.
|
||||
$item->php_save = base64_decode($item->php_save);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postsavehook))
|
||||
{
|
||||
// base64 Decode php_postsavehook.
|
||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_view_footer))
|
||||
{
|
||||
// base64 Decode javascript_view_footer.
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
}
|
||||
|
||||
if (!empty($item->php_allowedit))
|
||||
{
|
||||
// base64 Decode php_allowedit.
|
||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||
}
|
||||
|
||||
if (!empty($item->php_batchcopy))
|
||||
{
|
||||
// base64 Decode php_batchcopy.
|
||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_views_file))
|
||||
{
|
||||
// base64 Decode javascript_views_file.
|
||||
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
||||
}
|
||||
|
||||
if (!empty($item->php_batchmove))
|
||||
{
|
||||
// base64 Decode php_batchmove.
|
||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_publish))
|
||||
{
|
||||
// base64 Decode php_before_publish.
|
||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_views_footer))
|
||||
{
|
||||
// base64 Decode javascript_views_footer.
|
||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||
}
|
||||
|
||||
if (!empty($item->php_after_publish))
|
||||
{
|
||||
// base64 Decode php_after_publish.
|
||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||
}
|
||||
|
||||
if (!empty($item->php_before_delete))
|
||||
{
|
||||
// base64 Decode php_before_delete.
|
||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||
}
|
||||
|
||||
if (!empty($item->php_after_delete))
|
||||
{
|
||||
// base64 Decode php_after_delete.
|
||||
$item->php_after_delete = base64_decode($item->php_after_delete);
|
||||
}
|
||||
|
||||
if (!empty($item->php_controller))
|
||||
{
|
||||
// base64 Decode php_controller.
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
}
|
||||
|
||||
if (!empty($item->php_document))
|
||||
{
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
}
|
||||
|
||||
if (!empty($item->php_model))
|
||||
{
|
||||
// base64 Decode php_model.
|
||||
@ -316,22 +310,34 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$item->php_controller_list = base64_decode($item->php_controller_list);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_model_list))
|
||||
{
|
||||
// base64 Decode php_model_list.
|
||||
$item->php_model_list = base64_decode($item->php_model_list);
|
||||
}
|
||||
|
||||
if (!empty($item->php_import_display))
|
||||
{
|
||||
// base64 Decode php_import_display.
|
||||
$item->php_import_display = base64_decode($item->php_import_display);
|
||||
}
|
||||
|
||||
if (!empty($item->php_ajaxmethod))
|
||||
{
|
||||
// base64 Decode php_ajaxmethod.
|
||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||
}
|
||||
|
||||
if (!empty($item->html_import_view))
|
||||
if (!empty($item->php_import))
|
||||
{
|
||||
// base64 Decode html_import_view.
|
||||
$item->html_import_view = base64_decode($item->html_import_view);
|
||||
// base64 Decode php_import.
|
||||
$item->php_import = base64_decode($item->php_import);
|
||||
}
|
||||
|
||||
if (!empty($item->php_import_setdata))
|
||||
@ -1186,6 +1192,19 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// Set the addtables items to data.
|
||||
if (isset($data['addtables']) && is_array($data['addtables']))
|
||||
{
|
||||
$addtables = new JRegistry;
|
||||
$addtables->loadArray($data['addtables']);
|
||||
$data['addtables'] = (string) $addtables;
|
||||
}
|
||||
elseif (!isset($data['addtables']))
|
||||
{
|
||||
// Set the empty addtables to data
|
||||
$data['addtables'] = '';
|
||||
}
|
||||
|
||||
// Set the addpermissions items to data.
|
||||
if (isset($data['addpermissions']) && is_array($data['addpermissions']))
|
||||
{
|
||||
@ -1238,19 +1257,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$data['custom_button'] = '';
|
||||
}
|
||||
|
||||
// Set the addtables items to data.
|
||||
if (isset($data['addtables']) && is_array($data['addtables']))
|
||||
{
|
||||
$addtables = new JRegistry;
|
||||
$addtables->loadArray($data['addtables']);
|
||||
$data['addtables'] = (string) $addtables;
|
||||
}
|
||||
elseif (!isset($data['addtables']))
|
||||
{
|
||||
// Set the empty addtables to data
|
||||
$data['addtables'] = '';
|
||||
}
|
||||
|
||||
// Set the ajax_input items to data.
|
||||
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
|
||||
{
|
||||
@ -1264,112 +1270,16 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$data['ajax_input'] = '';
|
||||
}
|
||||
|
||||
// Set the php_after_delete string to base64 string.
|
||||
if (isset($data['php_after_delete']))
|
||||
// Set the php_import_headers string to base64 string.
|
||||
if (isset($data['php_import_headers']))
|
||||
{
|
||||
$data['php_after_delete'] = base64_encode($data['php_after_delete']);
|
||||
$data['php_import_headers'] = base64_encode($data['php_import_headers']);
|
||||
}
|
||||
|
||||
// Set the php_save string to base64 string.
|
||||
if (isset($data['php_save']))
|
||||
// Set the html_import_view string to base64 string.
|
||||
if (isset($data['html_import_view']))
|
||||
{
|
||||
$data['php_save'] = base64_encode($data['php_save']);
|
||||
}
|
||||
|
||||
// Set the php_batchmove string to base64 string.
|
||||
if (isset($data['php_batchmove']))
|
||||
{
|
||||
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
|
||||
}
|
||||
|
||||
// Set the php_getlistquery string to base64 string.
|
||||
if (isset($data['php_getlistquery']))
|
||||
{
|
||||
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
|
||||
}
|
||||
|
||||
// Set the php_allowedit string to base64 string.
|
||||
if (isset($data['php_allowedit']))
|
||||
{
|
||||
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
|
||||
}
|
||||
|
||||
// Set the php_after_publish string to base64 string.
|
||||
if (isset($data['php_after_publish']))
|
||||
{
|
||||
$data['php_after_publish'] = base64_encode($data['php_after_publish']);
|
||||
}
|
||||
|
||||
// Set the php_getitems string to base64 string.
|
||||
if (isset($data['php_getitems']))
|
||||
{
|
||||
$data['php_getitems'] = base64_encode($data['php_getitems']);
|
||||
}
|
||||
|
||||
// Set the php_import string to base64 string.
|
||||
if (isset($data['php_import']))
|
||||
{
|
||||
$data['php_import'] = base64_encode($data['php_import']);
|
||||
}
|
||||
|
||||
// Set the php_getitems_after_all string to base64 string.
|
||||
if (isset($data['php_getitems_after_all']))
|
||||
{
|
||||
$data['php_getitems_after_all'] = base64_encode($data['php_getitems_after_all']);
|
||||
}
|
||||
|
||||
// Set the php_before_save string to base64 string.
|
||||
if (isset($data['php_before_save']))
|
||||
{
|
||||
$data['php_before_save'] = base64_encode($data['php_before_save']);
|
||||
}
|
||||
|
||||
// Set the php_postsavehook string to base64 string.
|
||||
if (isset($data['php_postsavehook']))
|
||||
{
|
||||
$data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
|
||||
}
|
||||
|
||||
// Set the php_batchcopy string to base64 string.
|
||||
if (isset($data['php_batchcopy']))
|
||||
{
|
||||
$data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
|
||||
}
|
||||
|
||||
// Set the php_before_publish string to base64 string.
|
||||
if (isset($data['php_before_publish']))
|
||||
{
|
||||
$data['php_before_publish'] = base64_encode($data['php_before_publish']);
|
||||
}
|
||||
|
||||
// Set the php_before_delete string to base64 string.
|
||||
if (isset($data['php_before_delete']))
|
||||
{
|
||||
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
|
||||
}
|
||||
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
{
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_import_display string to base64 string.
|
||||
if (isset($data['php_import_display']))
|
||||
{
|
||||
$data['php_import_display'] = base64_encode($data['php_import_display']);
|
||||
}
|
||||
|
||||
// Set the php_getitem string to base64 string.
|
||||
if (isset($data['php_getitem']))
|
||||
{
|
||||
$data['php_getitem'] = base64_encode($data['php_getitem']);
|
||||
$data['html_import_view'] = base64_encode($data['html_import_view']);
|
||||
}
|
||||
|
||||
// Set the php_import_save string to base64 string.
|
||||
@ -1378,48 +1288,138 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$data['php_import_save'] = base64_encode($data['php_import_save']);
|
||||
}
|
||||
|
||||
// Set the php_getitem string to base64 string.
|
||||
if (isset($data['php_getitem']))
|
||||
{
|
||||
$data['php_getitem'] = base64_encode($data['php_getitem']);
|
||||
}
|
||||
|
||||
// Set the css_view string to base64 string.
|
||||
if (isset($data['css_view']))
|
||||
{
|
||||
$data['css_view'] = base64_encode($data['css_view']);
|
||||
}
|
||||
|
||||
// Set the php_getitems string to base64 string.
|
||||
if (isset($data['php_getitems']))
|
||||
{
|
||||
$data['php_getitems'] = base64_encode($data['php_getitems']);
|
||||
}
|
||||
|
||||
// Set the php_getitems_after_all string to base64 string.
|
||||
if (isset($data['php_getitems_after_all']))
|
||||
{
|
||||
$data['php_getitems_after_all'] = base64_encode($data['php_getitems_after_all']);
|
||||
}
|
||||
|
||||
// Set the css_views string to base64 string.
|
||||
if (isset($data['css_views']))
|
||||
{
|
||||
$data['css_views'] = base64_encode($data['css_views']);
|
||||
}
|
||||
|
||||
// Set the php_getlistquery string to base64 string.
|
||||
if (isset($data['php_getlistquery']))
|
||||
{
|
||||
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
|
||||
}
|
||||
|
||||
// Set the php_before_save string to base64 string.
|
||||
if (isset($data['php_before_save']))
|
||||
{
|
||||
$data['php_before_save'] = base64_encode($data['php_before_save']);
|
||||
}
|
||||
|
||||
// Set the javascript_view_file string to base64 string.
|
||||
if (isset($data['javascript_view_file']))
|
||||
{
|
||||
$data['javascript_view_file'] = base64_encode($data['javascript_view_file']);
|
||||
}
|
||||
|
||||
// Set the php_save string to base64 string.
|
||||
if (isset($data['php_save']))
|
||||
{
|
||||
$data['php_save'] = base64_encode($data['php_save']);
|
||||
}
|
||||
|
||||
// Set the php_postsavehook string to base64 string.
|
||||
if (isset($data['php_postsavehook']))
|
||||
{
|
||||
$data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
|
||||
}
|
||||
|
||||
// Set the javascript_view_footer string to base64 string.
|
||||
if (isset($data['javascript_view_footer']))
|
||||
{
|
||||
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
|
||||
}
|
||||
|
||||
// Set the php_allowedit string to base64 string.
|
||||
if (isset($data['php_allowedit']))
|
||||
{
|
||||
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
|
||||
}
|
||||
|
||||
// Set the php_batchcopy string to base64 string.
|
||||
if (isset($data['php_batchcopy']))
|
||||
{
|
||||
$data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
|
||||
}
|
||||
|
||||
// Set the javascript_views_file string to base64 string.
|
||||
if (isset($data['javascript_views_file']))
|
||||
{
|
||||
$data['javascript_views_file'] = base64_encode($data['javascript_views_file']);
|
||||
}
|
||||
|
||||
// Set the php_batchmove string to base64 string.
|
||||
if (isset($data['php_batchmove']))
|
||||
{
|
||||
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
|
||||
}
|
||||
|
||||
// Set the php_before_publish string to base64 string.
|
||||
if (isset($data['php_before_publish']))
|
||||
{
|
||||
$data['php_before_publish'] = base64_encode($data['php_before_publish']);
|
||||
}
|
||||
|
||||
// Set the javascript_views_footer string to base64 string.
|
||||
if (isset($data['javascript_views_footer']))
|
||||
{
|
||||
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
|
||||
}
|
||||
|
||||
// Set the php_after_publish string to base64 string.
|
||||
if (isset($data['php_after_publish']))
|
||||
{
|
||||
$data['php_after_publish'] = base64_encode($data['php_after_publish']);
|
||||
}
|
||||
|
||||
// Set the php_before_delete string to base64 string.
|
||||
if (isset($data['php_before_delete']))
|
||||
{
|
||||
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
|
||||
}
|
||||
|
||||
// Set the php_after_delete string to base64 string.
|
||||
if (isset($data['php_after_delete']))
|
||||
{
|
||||
$data['php_after_delete'] = base64_encode($data['php_after_delete']);
|
||||
}
|
||||
|
||||
// Set the php_controller string to base64 string.
|
||||
if (isset($data['php_controller']))
|
||||
{
|
||||
$data['php_controller'] = base64_encode($data['php_controller']);
|
||||
}
|
||||
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
{
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
}
|
||||
|
||||
// Set the php_model string to base64 string.
|
||||
if (isset($data['php_model']))
|
||||
{
|
||||
@ -1432,22 +1432,34 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
||||
$data['php_controller_list'] = base64_encode($data['php_controller_list']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_model_list string to base64 string.
|
||||
if (isset($data['php_model_list']))
|
||||
{
|
||||
$data['php_model_list'] = base64_encode($data['php_model_list']);
|
||||
}
|
||||
|
||||
// Set the php_import_display string to base64 string.
|
||||
if (isset($data['php_import_display']))
|
||||
{
|
||||
$data['php_import_display'] = base64_encode($data['php_import_display']);
|
||||
}
|
||||
|
||||
// Set the php_ajaxmethod string to base64 string.
|
||||
if (isset($data['php_ajaxmethod']))
|
||||
{
|
||||
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
|
||||
}
|
||||
|
||||
// Set the html_import_view string to base64 string.
|
||||
if (isset($data['html_import_view']))
|
||||
// Set the php_import string to base64 string.
|
||||
if (isset($data['php_import']))
|
||||
{
|
||||
$data['html_import_view'] = base64_encode($data['html_import_view']);
|
||||
$data['php_import'] = base64_encode($data['php_import']);
|
||||
}
|
||||
|
||||
// Set the php_import_setdata string to base64 string.
|
||||
|
@ -262,68 +262,70 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode php_after_delete
|
||||
$item->php_after_delete = base64_decode($item->php_after_delete);
|
||||
// decode php_save
|
||||
$item->php_save = base64_decode($item->php_save);
|
||||
// decode php_batchmove
|
||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||
// decode php_getlistquery
|
||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||
// decode php_allowedit
|
||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||
// decode php_after_publish
|
||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||
// decode php_getitems
|
||||
$item->php_getitems = base64_decode($item->php_getitems);
|
||||
// decode php_import
|
||||
$item->php_import = base64_decode($item->php_import);
|
||||
// decode php_getitems_after_all
|
||||
$item->php_getitems_after_all = base64_decode($item->php_getitems_after_all);
|
||||
// decode php_before_save
|
||||
$item->php_before_save = base64_decode($item->php_before_save);
|
||||
// decode php_postsavehook
|
||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||
// decode php_batchcopy
|
||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||
// decode php_before_publish
|
||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||
// decode php_before_delete
|
||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_import_display
|
||||
$item->php_import_display = base64_decode($item->php_import_display);
|
||||
// decode php_getitem
|
||||
$item->php_getitem = base64_decode($item->php_getitem);
|
||||
// decode php_import_headers
|
||||
$item->php_import_headers = base64_decode($item->php_import_headers);
|
||||
// decode html_import_view
|
||||
$item->html_import_view = base64_decode($item->html_import_view);
|
||||
// decode php_import_save
|
||||
$item->php_import_save = base64_decode($item->php_import_save);
|
||||
// decode php_getitem
|
||||
$item->php_getitem = base64_decode($item->php_getitem);
|
||||
// decode css_view
|
||||
$item->css_view = base64_decode($item->css_view);
|
||||
// decode php_getitems
|
||||
$item->php_getitems = base64_decode($item->php_getitems);
|
||||
// decode php_getitems_after_all
|
||||
$item->php_getitems_after_all = base64_decode($item->php_getitems_after_all);
|
||||
// decode css_views
|
||||
$item->css_views = base64_decode($item->css_views);
|
||||
// decode php_getlistquery
|
||||
$item->php_getlistquery = base64_decode($item->php_getlistquery);
|
||||
// decode php_before_save
|
||||
$item->php_before_save = base64_decode($item->php_before_save);
|
||||
// decode javascript_view_file
|
||||
$item->javascript_view_file = base64_decode($item->javascript_view_file);
|
||||
// decode php_save
|
||||
$item->php_save = base64_decode($item->php_save);
|
||||
// decode php_postsavehook
|
||||
$item->php_postsavehook = base64_decode($item->php_postsavehook);
|
||||
// decode javascript_view_footer
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
// decode php_allowedit
|
||||
$item->php_allowedit = base64_decode($item->php_allowedit);
|
||||
// decode php_batchcopy
|
||||
$item->php_batchcopy = base64_decode($item->php_batchcopy);
|
||||
// decode javascript_views_file
|
||||
$item->javascript_views_file = base64_decode($item->javascript_views_file);
|
||||
// decode php_batchmove
|
||||
$item->php_batchmove = base64_decode($item->php_batchmove);
|
||||
// decode php_before_publish
|
||||
$item->php_before_publish = base64_decode($item->php_before_publish);
|
||||
// decode javascript_views_footer
|
||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||
// decode php_after_publish
|
||||
$item->php_after_publish = base64_decode($item->php_after_publish);
|
||||
// decode php_before_delete
|
||||
$item->php_before_delete = base64_decode($item->php_before_delete);
|
||||
// decode php_after_delete
|
||||
$item->php_after_delete = base64_decode($item->php_after_delete);
|
||||
// decode php_controller
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode php_model
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
// decode php_controller_list
|
||||
$item->php_controller_list = base64_decode($item->php_controller_list);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_model_list
|
||||
$item->php_model_list = base64_decode($item->php_model_list);
|
||||
// decode php_import_display
|
||||
$item->php_import_display = base64_decode($item->php_import_display);
|
||||
// decode php_ajaxmethod
|
||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||
// decode html_import_view
|
||||
$item->html_import_view = base64_decode($item->html_import_view);
|
||||
// decode php_import
|
||||
$item->php_import = base64_decode($item->php_import);
|
||||
// decode php_import_setdata
|
||||
$item->php_import_setdata = base64_decode($item->php_import_setdata);
|
||||
// decode php_import_ext
|
||||
|
@ -826,7 +826,7 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
protected function addEditLink($id, $view, $views)
|
||||
{
|
||||
// can edit
|
||||
if ($this->canEdit($id))
|
||||
if ($this->canEdit($id, $view))
|
||||
{
|
||||
$edit = "index.php?option=com_componentbuilder&view=".$views."&task=".$view.".edit&id=".$id.$this->ref;
|
||||
return ' <a onclick="UIkit.modal.confirm(\''.JText::_('COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE').'\', function(){ window.location.href = \''.$edit.'\' })" href="javascript:void(0)" class="uk-icon-pencil"></a>';
|
||||
@ -970,24 +970,21 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
}
|
||||
|
||||
public function getFieldSelectOptions($id)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
{
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.xml', 'b.name')));
|
||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('b.id') . ')');
|
||||
$query->where($db->quoteName('a.published') . ' = 1');
|
||||
$query->where($db->quoteName('a.id') . ' = '. (int) $id);
|
||||
$query = $this->_db->getQuery(true);
|
||||
$query->select($this->_db->quoteName(array('a.xml', 'b.name')));
|
||||
$query->from($this->_db->quoteName('#__componentbuilder_field', 'a'));
|
||||
$query->join('LEFT', $this->_db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $this->_db->quoteName('a.fieldtype') . ' = ' . $this->_db->quoteName('b.id') . ')');
|
||||
$query->where($this->_db->quoteName('a.published') . ' = 1');
|
||||
$query->where($this->_db->quoteName('a.id') . ' = '. (int) $id);
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
$this->_db->setQuery($query);
|
||||
$this->_db->execute();
|
||||
if ($this->_db->getNumRows())
|
||||
{
|
||||
$result = $db->loadObject();
|
||||
$result = $this->_db->loadObject();
|
||||
$result->name = strtolower($result->name);
|
||||
if (ComponentbuilderHelper::typeField($result->name,'list'))
|
||||
{
|
||||
@ -1056,10 +1053,8 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
|
||||
public function getTableColumns($tableName)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// get the columns
|
||||
$columns = $db->getTableColumns("#__".$tableName);
|
||||
$columns = $this->_db->getTableColumns("#__".$tableName);
|
||||
if (ComponentbuilderHelper::checkArray($columns))
|
||||
{
|
||||
// build the return string
|
||||
@ -1073,189 +1068,184 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
return false;
|
||||
}
|
||||
|
||||
protected $linkedKeys = array(
|
||||
'field' => array(
|
||||
array('table' => 'component_config', 'tables' => 'components_config', 'fields' => array('addconfig' => 'field', 'joomla_component' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_JOOMLA_COMPONENT', 'name' => 'system_name'),
|
||||
array('table' => 'admin_fields', 'tables' => 'admins_fields', 'fields' => array('addfields' => 'field', 'admin_view' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_ADMIN_VIEW', 'name' => 'system_name')
|
||||
),
|
||||
'admin_view' => array(
|
||||
array('table' => 'component_admin_views', 'tables' => 'components_admin_views', 'fields' => array('addadmin_views' => 'adminview', 'joomla_component' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_JOOMLA_COMPONENT', 'name' => 'system_name')
|
||||
),
|
||||
'custom_admin_view' => array(
|
||||
array('table' => 'component_custom_admin_views', 'tables' => 'components_custom_admin_views', 'fields' => array('addcustom_admin_views' => 'customadminview', 'joomla_component' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_JOOMLA_COMPONENT', 'name' => 'system_name')
|
||||
),
|
||||
'site_view' => array(
|
||||
array('table' => 'component_site_views', 'tables' => 'components_site_views', 'fields' => array('addsite_views' => 'siteview', 'joomla_component' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_JOOMLA_COMPONENT', 'name' => 'system_name')
|
||||
),
|
||||
'library' => array(
|
||||
array('table' => 'template', 'tables' => 'templates', 'fields' => array('libraries' => 'ARRAY', 'name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_TEMPLATE'),
|
||||
array('table' => 'layout', 'tables' => 'layouts', 'fields' => array('libraries' => 'ARRAY', 'name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_LAYOUT'),
|
||||
array('table' => 'site_view', 'tables' => 'site_views', 'fields' => array('libraries' => 'ARRAY', 'system_name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_SITE_VIEW'),
|
||||
array('table' => 'custom_admin_view', 'tables' => 'custom_admin_views', 'fields' => array('libraries' => 'ARRAY', 'system_name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW')
|
||||
),
|
||||
'dynamic_get' => array(
|
||||
array('table' => 'site_view', 'tables' => 'site_views', 'fields' => array('custom_get' => 'ARRAY', 'main_get' => 'INT', 'system_name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_SITE_VIEW'),
|
||||
array('table' => 'custom_admin_view', 'tables' => 'custom_admin_views', 'fields' => array('custom_get' => 'ARRAY', 'main_get' => 'INT', 'system_name' => 'NAME'), 'type' => 'COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW')
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Get Linked to
|
||||
* Get Linked
|
||||
*
|
||||
* @param string $type Item Name
|
||||
* @param int $id Item ID
|
||||
* @param int $type The display return type
|
||||
*
|
||||
* @return string The table of the linked to result
|
||||
* @return string The display return type on success
|
||||
*
|
||||
*/
|
||||
protected function getLinked($to)
|
||||
public function getLinked($type)
|
||||
{
|
||||
// get the view name & id
|
||||
$values = $this->getViewID();
|
||||
// check if item is set
|
||||
if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']))
|
||||
{
|
||||
// get linked to
|
||||
$linkedToArray = (array) explode('__', $to);
|
||||
// check if item is linked to component
|
||||
if (in_array('component', $linkedToArray))
|
||||
// check if we have any linked to config
|
||||
if (isset($this->linkedKeys[$values['a_view']]))
|
||||
{
|
||||
if (!$components = getComponentLinked($values['a_view'], $values['a_id']))
|
||||
// make sure the ref is set
|
||||
$this->ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'];
|
||||
// get the linked to
|
||||
if ($linked = $this->getLinkedTo($values['a_view'], $values['a_id']))
|
||||
{
|
||||
$linkedToString = implode(', ', array_map( function($name) { return ComponentbuilderHelper::safeString($name, 'w'); }, $linkedToArray));
|
||||
return '<div class="control-group"><div class="alert alert-info"><h4>' . JText::sprintf('COM_COMPONENTBUILDER_S_NOT_LINKED', ComponentbuilderHelper::safeString($values['a_view'], 'Ww')) . '</h4><p>' . JText::sprintf('COM_COMPONENTBUILDER_THIS_BSB_IS_NOT_LINKED_TO_ANY_S', $values['a_view'], $linkedToString) . '</p></div></div>';
|
||||
// just return it for now as an unordered list
|
||||
return '<div class="control-group"><ul class="uk-list uk-list-striped"><li>' .implode('</li><li>', $linked) . '</li></ul></div></div>';
|
||||
}
|
||||
}
|
||||
// if fields and components found get admin views
|
||||
|
||||
}
|
||||
// if not found but has session view name
|
||||
if (strlen($values['a_view']))
|
||||
{
|
||||
return '<div class="control-group"><div class="alert alert-info"><h4>' . JText::sprintf('COM_COMPONENTBUILDER_S_NOT_LINKED', ComponentbuilderHelper::safeString($values['a_view'], 'Ww')) . '</h4><p>' . JText::sprintf('COM_COMPONENTBUILDER_THIS_BSB_IS_NOT_LINKED_TO_ANY_OTHER_AREAS_OF_JCB_AT_THIS_TIME', $values['a_view']) . '</p></div></div>';
|
||||
}
|
||||
// no view or id found in session, or view not allowed to access area
|
||||
return '<div class="control-group"><div class="alert alert-error"><h4>' . JText::_('COM_COMPONENTBUILDER_ERROR') . '</h4><p>' . JText::_('COM_COMPONENTBUILDER_THERE_WAS_A_PROBLEM_BNO_VIEW_OR_ID_FOUND_IN_SESSION_OR_VIEW_NOT_ALLOWED_TO_ACCESS_AREAB_WE_COULD_NOT_LOAD_ANY_LINKED_TO_VALUES_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR') . '</p></div></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Component Linked to Item
|
||||
* Get Linked to Items
|
||||
*
|
||||
* @param string $type Item Name
|
||||
* @param int $id Item ID
|
||||
* @param string $view View that is being searched for
|
||||
* @param int $id ID
|
||||
*
|
||||
* @return array Components Id if found
|
||||
* @return array Found items
|
||||
*
|
||||
*/
|
||||
protected function getComponentLinked($type, $id)
|
||||
protected function getLinkedTo($view, $id)
|
||||
{
|
||||
// reset bucket
|
||||
$componentsLinked = array();
|
||||
// Create a new query object.
|
||||
$query = $this->db->getQuery(true);
|
||||
// get all history values
|
||||
$query->select('h.*');
|
||||
$query->from('#__ucm_history AS h');
|
||||
$query->where($this->db->quoteName('h.ucm_item_id') . ' = ' . (int) $id);
|
||||
// Join over the content type for the type id
|
||||
$query->join('LEFT', '#__content_types AS ct ON ct.type_id = h.ucm_type_id');
|
||||
$query->where('ct.type_alias = ' . $this->db->quote('com_componentbuilder.' . $type));
|
||||
$this->db->setQuery($query);
|
||||
$this->db->execute();
|
||||
if ($this->db->getNumRows())
|
||||
$linked = array();
|
||||
// start search
|
||||
foreach ($this->linkedKeys[$view] as $search)
|
||||
{
|
||||
// load all item history
|
||||
$items = $db->loadObjectList();
|
||||
// load the components ids
|
||||
foreach ($items as $item)
|
||||
// Create a new query object.
|
||||
$query = $this->_db->getQuery(true);
|
||||
// get all history values
|
||||
$selection = array_keys($search['fields']);
|
||||
$selection[] = 'id';
|
||||
$query->select($selection);
|
||||
$query->from('#__componentbuilder_' . $search['table']);
|
||||
$this->_db->setQuery($query);
|
||||
$this->_db->execute();
|
||||
if ($this->_db->getNumRows())
|
||||
{
|
||||
// only work with those who have notes
|
||||
if (ComponentbuilderHelper::checkJson($item->version_note))
|
||||
// load all items
|
||||
$items = $this->_db->loadObjectList();
|
||||
// search the items
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$note = json_decode($item->version_note, true);
|
||||
if (ComponentbuilderHelper::checkArray($note))
|
||||
$found = false;
|
||||
foreach ($search['fields'] as $key => $target)
|
||||
{
|
||||
foreach($note as $ids)
|
||||
if ('NAME' === $target)
|
||||
{
|
||||
if (ComponentbuilderHelper::checkArray($ids))
|
||||
$name = $item->{$key};
|
||||
$nameTable = $key;
|
||||
continue;
|
||||
}
|
||||
elseif (!$found)
|
||||
{
|
||||
if ('INT' === $target)
|
||||
{
|
||||
foreach ($ids as $_id)
|
||||
// check if ID match
|
||||
if ($item->{$key} == $id)
|
||||
{
|
||||
$componentsLinked[(int) $_id] = array('component' => (int) $_id);
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
elseif (is_numeric($ids))
|
||||
else
|
||||
{
|
||||
$componentsLinked[(int) $ids] = array('component' => (int) $ids);
|
||||
// check if we have a json
|
||||
if (ComponentbuilderHelper::checkJson($item->{$key}))
|
||||
{
|
||||
$item->{$key} = json_decode($item->{$key}, true);
|
||||
}
|
||||
// if array
|
||||
if (ComponentbuilderHelper::checkArray($item->{$key}))
|
||||
{
|
||||
if ('ARRAY' === $target)
|
||||
{
|
||||
// check if ID match
|
||||
foreach ($item->{$key} as $_id)
|
||||
{
|
||||
if ($_id == $id)
|
||||
{
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ($item->{$key} as $row)
|
||||
{
|
||||
if (isset($row[$target]) && $row[$target] == $id)
|
||||
{
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// check if found
|
||||
if ($found)
|
||||
{
|
||||
// build the name
|
||||
$edit = true;
|
||||
if (is_numeric($name) && isset($search['name']))
|
||||
{
|
||||
if (!$name = ComponentbuilderHelper::getVar($nameTable, (int) $name, 'id', $search['name']))
|
||||
{
|
||||
$name = JText::_('COM_COMPONENTBUILDER_NO_FOUND');
|
||||
$edit = false;
|
||||
}
|
||||
}
|
||||
// set edit link
|
||||
$link = ($edit) ? $this->addEditLink($item->id, $search['table'], $search['tables']) : '';
|
||||
// build the linked
|
||||
$linked[] = JText::_($search['type']) . ' - ' . $name . ' ' . $link;
|
||||
}
|
||||
}
|
||||
}
|
||||
// check if we found any
|
||||
if (ComponentbuilderHelper::checkArray($componentLinked))
|
||||
{
|
||||
return $componentLinked;
|
||||
}
|
||||
}
|
||||
// check if we found any
|
||||
if (ComponentbuilderHelper::checkArray($linked))
|
||||
{
|
||||
return $linked;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used in site_view
|
||||
|
||||
public function getSnippets($libraries)
|
||||
{
|
||||
if (ComponentbuilderHelper::checkJson($libraries))
|
||||
{
|
||||
$libraries = json_decode($libraries, true);
|
||||
}
|
||||
// check if we have an array
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
// insure we only have int values
|
||||
if ($libraries = $this->checkLibraries($libraries))
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName( array('a.id') ));
|
||||
$query->from($db->quoteName('#__componentbuilder_snippet', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' = 1');
|
||||
// check for country and region
|
||||
$query->where($db->quoteName('a.library') . ' IN ('. implode(',',$libraries) .')');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
return $db->loadColumn();
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function checkLibraries($libraries)
|
||||
{
|
||||
$bucket = array();
|
||||
$libraries = array_map( function($id) use (&$bucket) {
|
||||
// now get bundled libraries
|
||||
$type = ComponentbuilderHelper::getVar('library', (int) $id, 'id', 'type');
|
||||
if (2 == $type && $bundled = ComponentbuilderHelper::getVar('library', (int) $id, 'id', 'libraries'))
|
||||
{
|
||||
// make sure we have an array if it was json
|
||||
if (ComponentbuilderHelper::checkJson($bundled))
|
||||
{
|
||||
$bundled = json_decode($bundled, true);
|
||||
}
|
||||
// load in the values if we have an array
|
||||
if (ComponentbuilderHelper::checkArray($bundled))
|
||||
{
|
||||
foreach ($bundled as $lib)
|
||||
{
|
||||
$bucket[$lib] = $lib;
|
||||
}
|
||||
}
|
||||
elseif (is_numeric($bundled))
|
||||
{
|
||||
$bucket[(int) $bundled] = (int) $bundled;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return (int) $id;
|
||||
}
|
||||
}, $libraries);
|
||||
// check if we have any bundled libraries
|
||||
if (ComponentbuilderHelper::checkArray($bucket))
|
||||
{
|
||||
foreach ($bucket as $lib)
|
||||
{
|
||||
$libraries[] = (int) $lib;
|
||||
}
|
||||
}
|
||||
// check that we have libraries
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
$libraries = array_values(array_unique(array_filter($libraries, function($id){return is_int($id);})));
|
||||
// check if we have any libraries remaining
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
return $libraries;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used in template
|
||||
public function getTemplateDetails($id)
|
||||
{
|
||||
@ -1964,7 +1954,102 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used in snippet
|
||||
// Used in field
|
||||
public function getFieldOptions($id)
|
||||
{
|
||||
if ($field = ComponentbuilderHelper::getFieldOptions($id, 'id'))
|
||||
{
|
||||
// return found field options
|
||||
return $field;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used in get_snippets
|
||||
|
||||
public function getSnippets($libraries)
|
||||
{
|
||||
if (ComponentbuilderHelper::checkJson($libraries))
|
||||
{
|
||||
$libraries = json_decode($libraries, true);
|
||||
}
|
||||
// check if we have an array
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
// insure we only have int values
|
||||
if ($libraries = $this->checkLibraries($libraries))
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName( array('a.id') ));
|
||||
$query->from($db->quoteName('#__componentbuilder_snippet', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' = 1');
|
||||
// check for country and region
|
||||
$query->where($db->quoteName('a.library') . ' IN ('. implode(',',$libraries) .')');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
return $db->loadColumn();
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function checkLibraries($libraries)
|
||||
{
|
||||
$bucket = array();
|
||||
$libraries = array_map( function($id) use (&$bucket) {
|
||||
// now get bundled libraries
|
||||
$type = ComponentbuilderHelper::getVar('library', (int) $id, 'id', 'type');
|
||||
if (2 == $type && $bundled = ComponentbuilderHelper::getVar('library', (int) $id, 'id', 'libraries'))
|
||||
{
|
||||
// make sure we have an array if it was json
|
||||
if (ComponentbuilderHelper::checkJson($bundled))
|
||||
{
|
||||
$bundled = json_decode($bundled, true);
|
||||
}
|
||||
// load in the values if we have an array
|
||||
if (ComponentbuilderHelper::checkArray($bundled))
|
||||
{
|
||||
foreach ($bundled as $lib)
|
||||
{
|
||||
$bucket[$lib] = $lib;
|
||||
}
|
||||
}
|
||||
elseif (is_numeric($bundled))
|
||||
{
|
||||
$bucket[(int) $bundled] = (int) $bundled;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return (int) $id;
|
||||
}
|
||||
}, $libraries);
|
||||
// check if we have any bundled libraries
|
||||
if (ComponentbuilderHelper::checkArray($bucket))
|
||||
{
|
||||
foreach ($bucket as $lib)
|
||||
{
|
||||
$libraries[] = (int) $lib;
|
||||
}
|
||||
}
|
||||
// check that we have libraries
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
$libraries = array_values(array_unique(array_filter($libraries, function($id){return is_int($id);})));
|
||||
// check if we have any libraries remaining
|
||||
if (ComponentbuilderHelper::checkArray($libraries))
|
||||
{
|
||||
return $libraries;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public function getSnippetDetails($id)
|
||||
{
|
||||
// Get a db connection.
|
||||
@ -2126,16 +2211,5 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
return $item->get('id');
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Used in field
|
||||
public function getFieldOptions($id)
|
||||
{
|
||||
if ($field = ComponentbuilderHelper::getFieldOptions($id, 'id'))
|
||||
{
|
||||
// return found field options
|
||||
return $field;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -384,10 +384,10 @@ class ComponentbuilderModelComponentbuilder extends JModelList
|
||||
} else {
|
||||
// split versions in to array
|
||||
var activeVersionArray = activeVersion.split(".");
|
||||
var localVersionArray = manifest.version.split(".");
|
||||
if (localVersionArray[0] > activeVersionArray[0] ||
|
||||
(localVersionArray[0] == activeVersionArray[0] && localVersionArray[1] > activeVersionArray[1]) ||
|
||||
(localVersionArray[0] == activeVersionArray[0] && localVersionArray[1] == activeVersionArray[1] && localVersionArray[2] > activeVersionArray[2])) {
|
||||
var localVersionArray = manifest.version.split(".");
|
||||
if ((+localVersionArray[0] > +activeVersionArray[0]) ||
|
||||
(+localVersionArray[0] == +activeVersionArray[0] && +localVersionArray[1] > +activeVersionArray[1]) ||
|
||||
(+localVersionArray[0] == +activeVersionArray[0] && +localVersionArray[1] == +activeVersionArray[1] && +localVersionArray[2] > +activeVersionArray[2])) {
|
||||
// local version head latest release
|
||||
jQuery(".update-notice").html("<small><span style=\'color:#F7B033;\'><span class=\'icon-wrench\'></span>'.JText::_('COM_COMPONENTBUILDER_BETA_RELEASE').'</span></small>");
|
||||
} else {
|
||||
|
@ -64,6 +64,11 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
public function getTable($type = 'custom_admin_view', $prefix = 'ComponentbuilderTable', $config = array())
|
||||
{
|
||||
return JTable::getInstance($type, $prefix, $config);
|
||||
}
|
||||
|
||||
public function getVDM()
|
||||
{
|
||||
return $this->vastDevMod;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,6 +108,14 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$item->libraries = $libraries->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->ajax_input))
|
||||
{
|
||||
// Convert the ajax_input field to an array.
|
||||
$ajax_input = new Registry;
|
||||
$ajax_input->loadString($item->ajax_input);
|
||||
$item->ajax_input = $ajax_input->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->custom_get))
|
||||
{
|
||||
// Convert the custom_get field to an array.
|
||||
@ -119,10 +132,28 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$item->custom_button = $custom_button->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_controller))
|
||||
if (!empty($item->php_document))
|
||||
{
|
||||
// base64 Decode php_controller.
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
}
|
||||
|
||||
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_jview))
|
||||
{
|
||||
// base64 Decode php_jview.
|
||||
$item->php_jview = base64_decode($item->php_jview);
|
||||
}
|
||||
|
||||
if (!empty($item->default))
|
||||
@ -131,12 +162,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$item->default = base64_decode($item->default);
|
||||
}
|
||||
|
||||
if (!empty($item->php_model))
|
||||
{
|
||||
// base64 Decode php_model.
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
}
|
||||
|
||||
if (!empty($item->js_document))
|
||||
{
|
||||
// base64 Decode js_document.
|
||||
@ -161,30 +186,45 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$item->css = base64_decode($item->css);
|
||||
}
|
||||
|
||||
if (!empty($item->php_document))
|
||||
if (!empty($item->php_ajaxmethod))
|
||||
{
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// base64 Decode php_ajaxmethod.
|
||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||
}
|
||||
|
||||
if (!empty($item->php_view))
|
||||
if (!empty($item->php_controller))
|
||||
{
|
||||
// base64 Decode php_view.
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
// base64 Decode php_controller.
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
}
|
||||
|
||||
if (!empty($item->php_jview_display))
|
||||
if (!empty($item->php_model))
|
||||
{
|
||||
// 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);
|
||||
// base64 Decode php_model.
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
$id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $item->id;
|
||||
}
|
||||
// set the id and view name to session
|
||||
if ($vdm = ComponentbuilderHelper::get('custom_admin_view__'.$id))
|
||||
{
|
||||
$this->vastDevMod = $vdm;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->vastDevMod = ComponentbuilderHelper::randomkey(50);
|
||||
ComponentbuilderHelper::set($this->vastDevMod, 'custom_admin_view__'.$id);
|
||||
ComponentbuilderHelper::set('custom_admin_view__'.$id, $this->vastDevMod);
|
||||
}
|
||||
|
||||
// check what type of custom_button array we have here (should be subform... but just incase)
|
||||
// This could happen due to huge data sets
|
||||
if (isset($item->custom_button) && isset($item->custom_button['name']))
|
||||
@ -945,6 +985,19 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$data['libraries'] = '';
|
||||
}
|
||||
|
||||
// Set the ajax_input items to data.
|
||||
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
|
||||
{
|
||||
$ajax_input = new JRegistry;
|
||||
$ajax_input->loadArray($data['ajax_input']);
|
||||
$data['ajax_input'] = (string) $ajax_input;
|
||||
}
|
||||
elseif (!isset($data['ajax_input']))
|
||||
{
|
||||
// Set the empty ajax_input to data
|
||||
$data['ajax_input'] = '';
|
||||
}
|
||||
|
||||
// Set the custom_get items to data.
|
||||
if (isset($data['custom_get']) && is_array($data['custom_get']))
|
||||
{
|
||||
@ -971,10 +1024,28 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$data['custom_button'] = '';
|
||||
}
|
||||
|
||||
// Set the php_controller string to base64 string.
|
||||
if (isset($data['php_controller']))
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
{
|
||||
$data['php_controller'] = base64_encode($data['php_controller']);
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
}
|
||||
|
||||
// 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_jview string to base64 string.
|
||||
if (isset($data['php_jview']))
|
||||
{
|
||||
$data['php_jview'] = base64_encode($data['php_jview']);
|
||||
}
|
||||
|
||||
// Set the default string to base64 string.
|
||||
@ -983,12 +1054,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$data['default'] = base64_encode($data['default']);
|
||||
}
|
||||
|
||||
// Set the php_model string to base64 string.
|
||||
if (isset($data['php_model']))
|
||||
{
|
||||
$data['php_model'] = base64_encode($data['php_model']);
|
||||
}
|
||||
|
||||
// Set the js_document string to base64 string.
|
||||
if (isset($data['js_document']))
|
||||
{
|
||||
@ -1013,28 +1078,22 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$data['css'] = base64_encode($data['css']);
|
||||
}
|
||||
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
// Set the php_ajaxmethod string to base64 string.
|
||||
if (isset($data['php_ajaxmethod']))
|
||||
{
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
|
||||
}
|
||||
|
||||
// Set the php_view string to base64 string.
|
||||
if (isset($data['php_view']))
|
||||
// Set the php_controller string to base64 string.
|
||||
if (isset($data['php_controller']))
|
||||
{
|
||||
$data['php_view'] = base64_encode($data['php_view']);
|
||||
$data['php_controller'] = base64_encode($data['php_controller']);
|
||||
}
|
||||
|
||||
// Set the php_jview_display string to base64 string.
|
||||
if (isset($data['php_jview_display']))
|
||||
// Set the php_model string to base64 string.
|
||||
if (isset($data['php_model']))
|
||||
{
|
||||
$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']);
|
||||
$data['php_model'] = base64_encode($data['php_model']);
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
|
@ -266,12 +266,16 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode php_controller
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode php_jview_display
|
||||
$item->php_jview_display = base64_decode($item->php_jview_display);
|
||||
// decode php_view
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
// decode php_jview
|
||||
$item->php_jview = base64_decode($item->php_jview);
|
||||
// decode default
|
||||
$item->default = base64_decode($item->default);
|
||||
// decode php_model
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
// decode js_document
|
||||
$item->js_document = base64_decode($item->js_document);
|
||||
// decode javascript_file
|
||||
@ -280,14 +284,12 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
||||
$item->css_document = base64_decode($item->css_document);
|
||||
// decode css
|
||||
$item->css = base64_decode($item->css);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode php_view
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
// 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_ajaxmethod
|
||||
$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);
|
||||
|
@ -64,6 +64,11 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
public function getTable($type = 'dynamic_get', $prefix = 'ComponentbuilderTable', $config = array())
|
||||
{
|
||||
return JTable::getInstance($type, $prefix, $config);
|
||||
}
|
||||
|
||||
public function getVDM()
|
||||
{
|
||||
return $this->vastDevMod;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -95,6 +100,22 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_view_table))
|
||||
{
|
||||
// Convert the join_view_table field to an array.
|
||||
$join_view_table = new Registry;
|
||||
$join_view_table->loadString($item->join_view_table);
|
||||
$item->join_view_table = $join_view_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_db_table))
|
||||
{
|
||||
// Convert the join_db_table field to an array.
|
||||
$join_db_table = new Registry;
|
||||
$join_db_table->loadString($item->join_db_table);
|
||||
$item->join_db_table = $join_db_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->filter))
|
||||
{
|
||||
// Convert the filter field to an array.
|
||||
@ -127,22 +148,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->global = $global->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_db_table))
|
||||
{
|
||||
// Convert the join_db_table field to an array.
|
||||
$join_db_table = new Registry;
|
||||
$join_db_table->loadString($item->join_db_table);
|
||||
$item->join_db_table = $join_db_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_view_table))
|
||||
{
|
||||
// Convert the join_view_table field to an array.
|
||||
$join_view_table = new Registry;
|
||||
$join_view_table->loadString($item->join_view_table);
|
||||
$item->join_view_table = $join_view_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_custom_get))
|
||||
{
|
||||
// base64 Decode php_custom_get.
|
||||
@ -185,6 +190,27 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->php_calculation = base64_decode($item->php_calculation);
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
$id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $item->id;
|
||||
}
|
||||
// set the id and view name to session
|
||||
if ($vdm = ComponentbuilderHelper::get('dynamic_get__'.$id))
|
||||
{
|
||||
$this->vastDevMod = $vdm;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->vastDevMod = ComponentbuilderHelper::randomkey(50);
|
||||
ComponentbuilderHelper::set($this->vastDevMod, 'dynamic_get__'.$id);
|
||||
ComponentbuilderHelper::set('dynamic_get__'.$id, $this->vastDevMod);
|
||||
}
|
||||
|
||||
// update the fields
|
||||
$objectUpdate = new stdClass();
|
||||
$objectUpdate->id = (int) $item->id;
|
||||
@ -944,6 +970,32 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// Set the join_view_table items to data.
|
||||
if (isset($data['join_view_table']) && is_array($data['join_view_table']))
|
||||
{
|
||||
$join_view_table = new JRegistry;
|
||||
$join_view_table->loadArray($data['join_view_table']);
|
||||
$data['join_view_table'] = (string) $join_view_table;
|
||||
}
|
||||
elseif (!isset($data['join_view_table']))
|
||||
{
|
||||
// Set the empty join_view_table to data
|
||||
$data['join_view_table'] = '';
|
||||
}
|
||||
|
||||
// Set the join_db_table items to data.
|
||||
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
|
||||
{
|
||||
$join_db_table = new JRegistry;
|
||||
$join_db_table->loadArray($data['join_db_table']);
|
||||
$data['join_db_table'] = (string) $join_db_table;
|
||||
}
|
||||
elseif (!isset($data['join_db_table']))
|
||||
{
|
||||
// Set the empty join_db_table to data
|
||||
$data['join_db_table'] = '';
|
||||
}
|
||||
|
||||
// Set the filter items to data.
|
||||
if (isset($data['filter']) && is_array($data['filter']))
|
||||
{
|
||||
@ -996,32 +1048,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$data['global'] = '';
|
||||
}
|
||||
|
||||
// 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 join_view_table items to data.
|
||||
if (isset($data['join_view_table']) && is_array($data['join_view_table']))
|
||||
{
|
||||
$join_view_table = new JRegistry;
|
||||
$join_view_table->loadArray($data['join_view_table']);
|
||||
$data['join_view_table'] = (string) $join_view_table;
|
||||
}
|
||||
elseif (!isset($data['join_view_table']))
|
||||
{
|
||||
// Set the empty join_view_table to data
|
||||
$data['join_view_table'] = '';
|
||||
}
|
||||
|
||||
// Set the php_custom_get string to base64 string.
|
||||
if (isset($data['php_custom_get']))
|
||||
{
|
||||
|
@ -64,6 +64,11 @@ class ComponentbuilderModelField extends JModelAdmin
|
||||
public function getTable($type = 'field', $prefix = 'ComponentbuilderTable', $config = array())
|
||||
{
|
||||
return JTable::getInstance($type, $prefix, $config);
|
||||
}
|
||||
|
||||
public function getVDM()
|
||||
{
|
||||
return $this->vastDevMod;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -123,7 +128,28 @@ class ComponentbuilderModelField extends JModelAdmin
|
||||
{
|
||||
// base64 Decode javascript_views_footer.
|
||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
$id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $item->id;
|
||||
}
|
||||
// set the id and view name to session
|
||||
if ($vdm = ComponentbuilderHelper::get('field__'.$id))
|
||||
{
|
||||
$this->vastDevMod = $vdm;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->vastDevMod = ComponentbuilderHelper::randomkey(50);
|
||||
ComponentbuilderHelper::set($this->vastDevMod, 'field__'.$id);
|
||||
ComponentbuilderHelper::set('field__'.$id, $this->vastDevMod);
|
||||
}
|
||||
|
||||
if (!empty($item->id))
|
||||
{
|
||||
|
@ -151,7 +151,7 @@ class JFormFieldFtps extends JFormFieldList
|
||||
{
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.id','a.name'),array('id','sales_server_ftp_name')));
|
||||
$query->select($db->quoteName(array('a.id','a.name'),array('id','update_server_ftp_name')));
|
||||
$query->from($db->quoteName('#__componentbuilder_ftp', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->order('a.name ASC');
|
||||
@ -163,7 +163,7 @@ class JFormFieldFtps extends JFormFieldList
|
||||
$options[] = JHtml::_('select.option', '', 'Select an option');
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->sales_server_ftp_name);
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->update_server_ftp_name);
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
|
@ -139,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVzyfields()
|
||||
public function getWabfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -223,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationVzyfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationWabfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationVzyfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationWabfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationVzyfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationWabfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationVzyfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationWabfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationVzyfields($value,$name)
|
||||
public function selectionTranslationWabfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -23,290 +23,294 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyavxv_required = false;
|
||||
jform_vvvvvybvxw_required = false;
|
||||
jform_vvvvvycvxx_required = false;
|
||||
jform_vvvvvydvxy_required = false;
|
||||
jform_vvvvvyevxz_required = false;
|
||||
jform_vvvvvyfvya_required = false;
|
||||
jform_vvvvvygvyb_required = false;
|
||||
jform_vvvvvyhvyc_required = false;
|
||||
jform_vvvvvybvxx_required = false;
|
||||
jform_vvvvvycvxy_required = false;
|
||||
jform_vvvvvydvxz_required = false;
|
||||
jform_vvvvvyevya_required = false;
|
||||
jform_vvvvvyfvyb_required = false;
|
||||
jform_vvvvvygvyc_required = false;
|
||||
jform_vvvvvyhvyd_required = false;
|
||||
jform_vvvvvyivye_required = false;
|
||||
jform_vvvvvyivyf_required = false;
|
||||
jform_vvvvvyjvyg_required = false;
|
||||
jform_vvvvvykvyh_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvya = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_view_vvvvvya);
|
||||
var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_view_vvvvvyb);
|
||||
|
||||
var add_php_jview_display_vvvvvyb = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_jview_display_vvvvvyb);
|
||||
var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_jview_display_vvvvvyc);
|
||||
|
||||
var add_php_jview_vvvvvyc = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_jview_vvvvvyc);
|
||||
var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyd(add_php_jview_vvvvvyd);
|
||||
|
||||
var add_php_document_vvvvvyd = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyd(add_php_document_vvvvvyd);
|
||||
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvye(add_php_document_vvvvvye);
|
||||
|
||||
var add_css_document_vvvvvye = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvye(add_css_document_vvvvvye);
|
||||
var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyf(add_css_document_vvvvvyf);
|
||||
|
||||
var add_javascript_file_vvvvvyf = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyf(add_javascript_file_vvvvvyf);
|
||||
var add_javascript_file_vvvvvyg = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyg(add_javascript_file_vvvvvyg);
|
||||
|
||||
var add_js_document_vvvvvyg = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyg(add_js_document_vvvvvyg);
|
||||
var add_js_document_vvvvvyh = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyh(add_js_document_vvvvvyh);
|
||||
|
||||
var add_custom_button_vvvvvyh = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyh(add_custom_button_vvvvvyh);
|
||||
var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_button_vvvvvyi);
|
||||
|
||||
var add_css_vvvvvyi = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyi(add_css_vvvvvyi);
|
||||
var add_css_vvvvvyj = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyj(add_css_vvvvvyj);
|
||||
|
||||
var add_php_ajax_vvvvvyk = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_ajax_vvvvvyk);
|
||||
});
|
||||
|
||||
// the vvvvvya function
|
||||
function vvvvvya(add_php_view_vvvvvya)
|
||||
// the vvvvvyb function
|
||||
function vvvvvyb(add_php_view_vvvvvyb)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvya == 1)
|
||||
if (add_php_view_vvvvvyb == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyavxv_required)
|
||||
if (jform_vvvvvybvxx_required)
|
||||
{
|
||||
updateFieldRequired('php_view',0);
|
||||
jQuery('#jform_php_view').prop('required','required');
|
||||
jQuery('#jform_php_view').attr('aria-required',true);
|
||||
jQuery('#jform_php_view').addClass('required');
|
||||
jform_vvvvvyavxv_required = false;
|
||||
jform_vvvvvybvxx_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyavxv_required)
|
||||
if (!jform_vvvvvybvxx_required)
|
||||
{
|
||||
updateFieldRequired('php_view',1);
|
||||
jQuery('#jform_php_view').removeAttr('required');
|
||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||
jQuery('#jform_php_view').removeClass('required');
|
||||
jform_vvvvvyavxv_required = true;
|
||||
jform_vvvvvybvxx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyb function
|
||||
function vvvvvyb(add_php_jview_display_vvvvvyb)
|
||||
// the vvvvvyc function
|
||||
function vvvvvyc(add_php_jview_display_vvvvvyc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyb == 1)
|
||||
if (add_php_jview_display_vvvvvyc == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').show();
|
||||
if (jform_vvvvvybvxw_required)
|
||||
if (jform_vvvvvycvxy_required)
|
||||
{
|
||||
updateFieldRequired('php_jview_display',0);
|
||||
jQuery('#jform_php_jview_display').prop('required','required');
|
||||
jQuery('#jform_php_jview_display').attr('aria-required',true);
|
||||
jQuery('#jform_php_jview_display').addClass('required');
|
||||
jform_vvvvvybvxw_required = false;
|
||||
jform_vvvvvycvxy_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').hide();
|
||||
if (!jform_vvvvvybvxw_required)
|
||||
if (!jform_vvvvvycvxy_required)
|
||||
{
|
||||
updateFieldRequired('php_jview_display',1);
|
||||
jQuery('#jform_php_jview_display').removeAttr('required');
|
||||
jQuery('#jform_php_jview_display').removeAttr('aria-required');
|
||||
jQuery('#jform_php_jview_display').removeClass('required');
|
||||
jform_vvvvvybvxw_required = true;
|
||||
jform_vvvvvycvxy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyc function
|
||||
function vvvvvyc(add_php_jview_vvvvvyc)
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_php_jview_vvvvvyd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyc == 1)
|
||||
if (add_php_jview_vvvvvyd == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').show();
|
||||
if (jform_vvvvvycvxx_required)
|
||||
if (jform_vvvvvydvxz_required)
|
||||
{
|
||||
updateFieldRequired('php_jview',0);
|
||||
jQuery('#jform_php_jview').prop('required','required');
|
||||
jQuery('#jform_php_jview').attr('aria-required',true);
|
||||
jQuery('#jform_php_jview').addClass('required');
|
||||
jform_vvvvvycvxx_required = false;
|
||||
jform_vvvvvydvxz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').hide();
|
||||
if (!jform_vvvvvycvxx_required)
|
||||
if (!jform_vvvvvydvxz_required)
|
||||
{
|
||||
updateFieldRequired('php_jview',1);
|
||||
jQuery('#jform_php_jview').removeAttr('required');
|
||||
jQuery('#jform_php_jview').removeAttr('aria-required');
|
||||
jQuery('#jform_php_jview').removeClass('required');
|
||||
jform_vvvvvycvxx_required = true;
|
||||
jform_vvvvvydvxz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_php_document_vvvvvyd)
|
||||
// the vvvvvye function
|
||||
function vvvvvye(add_php_document_vvvvvye)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyd == 1)
|
||||
if (add_php_document_vvvvvye == 1)
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').show();
|
||||
if (jform_vvvvvydvxy_required)
|
||||
if (jform_vvvvvyevya_required)
|
||||
{
|
||||
updateFieldRequired('php_document',0);
|
||||
jQuery('#jform_php_document').prop('required','required');
|
||||
jQuery('#jform_php_document').attr('aria-required',true);
|
||||
jQuery('#jform_php_document').addClass('required');
|
||||
jform_vvvvvydvxy_required = false;
|
||||
jform_vvvvvyevya_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvydvxy_required)
|
||||
if (!jform_vvvvvyevya_required)
|
||||
{
|
||||
updateFieldRequired('php_document',1);
|
||||
jQuery('#jform_php_document').removeAttr('required');
|
||||
jQuery('#jform_php_document').removeAttr('aria-required');
|
||||
jQuery('#jform_php_document').removeClass('required');
|
||||
jform_vvvvvydvxy_required = true;
|
||||
jform_vvvvvyevya_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvye function
|
||||
function vvvvvye(add_css_document_vvvvvye)
|
||||
// the vvvvvyf function
|
||||
function vvvvvyf(add_css_document_vvvvvyf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvye == 1)
|
||||
if (add_css_document_vvvvvyf == 1)
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyevxz_required)
|
||||
if (jform_vvvvvyfvyb_required)
|
||||
{
|
||||
updateFieldRequired('css_document',0);
|
||||
jQuery('#jform_css_document').prop('required','required');
|
||||
jQuery('#jform_css_document').attr('aria-required',true);
|
||||
jQuery('#jform_css_document').addClass('required');
|
||||
jform_vvvvvyevxz_required = false;
|
||||
jform_vvvvvyfvyb_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyevxz_required)
|
||||
if (!jform_vvvvvyfvyb_required)
|
||||
{
|
||||
updateFieldRequired('css_document',1);
|
||||
jQuery('#jform_css_document').removeAttr('required');
|
||||
jQuery('#jform_css_document').removeAttr('aria-required');
|
||||
jQuery('#jform_css_document').removeClass('required');
|
||||
jform_vvvvvyevxz_required = true;
|
||||
jform_vvvvvyfvyb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyf function
|
||||
function vvvvvyf(add_javascript_file_vvvvvyf)
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_javascript_file_vvvvvyg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyf == 1)
|
||||
if (add_javascript_file_vvvvvyg == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').show();
|
||||
if (jform_vvvvvyfvya_required)
|
||||
if (jform_vvvvvygvyc_required)
|
||||
{
|
||||
updateFieldRequired('javascript_file',0);
|
||||
jQuery('#jform_javascript_file').prop('required','required');
|
||||
jQuery('#jform_javascript_file').attr('aria-required',true);
|
||||
jQuery('#jform_javascript_file').addClass('required');
|
||||
jform_vvvvvyfvya_required = false;
|
||||
jform_vvvvvygvyc_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyfvya_required)
|
||||
if (!jform_vvvvvygvyc_required)
|
||||
{
|
||||
updateFieldRequired('javascript_file',1);
|
||||
jQuery('#jform_javascript_file').removeAttr('required');
|
||||
jQuery('#jform_javascript_file').removeAttr('aria-required');
|
||||
jQuery('#jform_javascript_file').removeClass('required');
|
||||
jform_vvvvvyfvya_required = true;
|
||||
jform_vvvvvygvyc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_js_document_vvvvvyg)
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_js_document_vvvvvyh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyg == 1)
|
||||
if (add_js_document_vvvvvyh == 1)
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').show();
|
||||
if (jform_vvvvvygvyb_required)
|
||||
if (jform_vvvvvyhvyd_required)
|
||||
{
|
||||
updateFieldRequired('js_document',0);
|
||||
jQuery('#jform_js_document').prop('required','required');
|
||||
jQuery('#jform_js_document').attr('aria-required',true);
|
||||
jQuery('#jform_js_document').addClass('required');
|
||||
jform_vvvvvygvyb_required = false;
|
||||
jform_vvvvvyhvyd_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvygvyb_required)
|
||||
if (!jform_vvvvvyhvyd_required)
|
||||
{
|
||||
updateFieldRequired('js_document',1);
|
||||
jQuery('#jform_js_document').removeAttr('required');
|
||||
jQuery('#jform_js_document').removeAttr('aria-required');
|
||||
jQuery('#jform_js_document').removeClass('required');
|
||||
jform_vvvvvygvyb_required = true;
|
||||
jform_vvvvvyhvyd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_custom_button_vvvvvyh)
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_custom_button_vvvvvyi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyh == 1)
|
||||
if (add_custom_button_vvvvvyi == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller').closest('.control-group').show();
|
||||
if (jform_vvvvvyhvyc_required)
|
||||
if (jform_vvvvvyivye_required)
|
||||
{
|
||||
updateFieldRequired('php_controller',0);
|
||||
jQuery('#jform_php_controller').prop('required','required');
|
||||
jQuery('#jform_php_controller').attr('aria-required',true);
|
||||
jQuery('#jform_php_controller').addClass('required');
|
||||
jform_vvvvvyhvyc_required = false;
|
||||
jform_vvvvvyivye_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_php_model').closest('.control-group').show();
|
||||
if (jform_vvvvvyhvyd_required)
|
||||
if (jform_vvvvvyivyf_required)
|
||||
{
|
||||
updateFieldRequired('php_model',0);
|
||||
jQuery('#jform_php_model').prop('required','required');
|
||||
jQuery('#jform_php_model').attr('aria-required',true);
|
||||
jQuery('#jform_php_model').addClass('required');
|
||||
jform_vvvvvyhvyd_required = false;
|
||||
jform_vvvvvyivyf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -314,53 +318,86 @@ function vvvvvyh(add_custom_button_vvvvvyh)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyhvyc_required)
|
||||
if (!jform_vvvvvyivye_required)
|
||||
{
|
||||
updateFieldRequired('php_controller',1);
|
||||
jQuery('#jform_php_controller').removeAttr('required');
|
||||
jQuery('#jform_php_controller').removeAttr('aria-required');
|
||||
jQuery('#jform_php_controller').removeClass('required');
|
||||
jform_vvvvvyhvyc_required = true;
|
||||
jform_vvvvvyivye_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyhvyd_required)
|
||||
if (!jform_vvvvvyivyf_required)
|
||||
{
|
||||
updateFieldRequired('php_model',1);
|
||||
jQuery('#jform_php_model').removeAttr('required');
|
||||
jQuery('#jform_php_model').removeAttr('aria-required');
|
||||
jQuery('#jform_php_model').removeClass('required');
|
||||
jform_vvvvvyhvyd_required = true;
|
||||
jform_vvvvvyivyf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_css_vvvvvyi)
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_css_vvvvvyj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyi == 1)
|
||||
if (add_css_vvvvvyj == 1)
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').show();
|
||||
if (jform_vvvvvyivye_required)
|
||||
if (jform_vvvvvyjvyg_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvyivye_required = false;
|
||||
jform_vvvvvyjvyg_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyivye_required)
|
||||
if (!jform_vvvvvyjvyg_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvyivye_required = true;
|
||||
jform_vvvvvyjvyg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_php_ajax_vvvvvyk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyk == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
|
||||
if (jform_vvvvvykvyh_required)
|
||||
{
|
||||
updateFieldRequired('php_ajaxmethod',0);
|
||||
jQuery('#jform_php_ajaxmethod').prop('required','required');
|
||||
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
|
||||
jQuery('#jform_php_ajaxmethod').addClass('required');
|
||||
jform_vvvvvykvyh_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
|
||||
if (!jform_vvvvvykvyh_required)
|
||||
{
|
||||
updateFieldRequired('php_ajaxmethod',1);
|
||||
jQuery('#jform_php_ajaxmethod').removeAttr('required');
|
||||
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
|
||||
jQuery('#jform_php_ajaxmethod').removeClass('required');
|
||||
jform_vvvvvykvyh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -401,6 +438,33 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
getLinked();
|
||||
});
|
||||
|
||||
function getLinked_server(type){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;
|
||||
if(token.length > 0 && type > 0){
|
||||
var request = 'token='+token+'&type='+type;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: getUrl,
|
||||
dataType: 'jsonp',
|
||||
data: request,
|
||||
jsonp: 'callback'
|
||||
});
|
||||
}
|
||||
|
||||
function getLinked(){
|
||||
getLinked_server(1).done(function(result) {
|
||||
if(result){
|
||||
jQuery('#display_linked_to').html(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getSnippetDetails_server(snippetId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
|
||||
|
@ -155,21 +155,20 @@
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
|
||||
directory="" />
|
||||
<!-- 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"
|
||||
<!-- 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="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_php_document Field. Type: Radio. (joomla)-->
|
||||
required="false"
|
||||
button="true" />
|
||||
<!-- Add_php_ajax Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_document"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL"
|
||||
name="add_php_ajax"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_AJAX_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -184,17 +183,17 @@
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_add_language_string" />
|
||||
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_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>
|
||||
<!-- Php_document Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_document"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_libraries_selection"
|
||||
@ -202,16 +201,17 @@
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_libraries_selection" />
|
||||
<!-- 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" />
|
||||
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
|
||||
required="true" />
|
||||
<!-- Add_css Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_css"
|
||||
@ -229,38 +229,112 @@
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL"
|
||||
heading="h4"
|
||||
class="snippet-code note_uikit_snippet" />
|
||||
<!-- Add_php_view Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_view"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_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>
|
||||
<!-- Php_controller Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_controller"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
|
||||
required="false" />
|
||||
<!-- Add_php_jview Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_jview"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_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>
|
||||
<!-- Ajax_input Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="ajax_input"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_AJAX_INPUT_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
icon="list"
|
||||
maximum="150">
|
||||
<form hidden="true"
|
||||
name="list_ajax_input_modal"
|
||||
repeat="true">
|
||||
<!-- Value_name Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="value_name"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VALUE_NAME_HINT" />
|
||||
<!-- Task_name Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="task_name"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="WORD"
|
||||
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TASK_NAME_HINT" />
|
||||
<!-- Input_default Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="input_default"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
default="NULL"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_DEFAULT_HINT" />
|
||||
<!-- Input_filter Field. Type: List. (joomla)-->
|
||||
<field type="list"
|
||||
name="input_filter"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_FILTER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_FILTER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
filter="WORD"
|
||||
required="false"
|
||||
default="INT">
|
||||
<!-- Option Set.-->
|
||||
<option value="INT">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INT</option>
|
||||
<option value="UINT">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UINT</option>
|
||||
<option value="FLOAT">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLOAT</option>
|
||||
<option value="BOOLEAN">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOLEAN</option>
|
||||
<option value="WORD">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WORD</option>
|
||||
<option value="ALNUM">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALNUM</option>
|
||||
<option value="CMD">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CMD</option>
|
||||
<option value="BASE64">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BASESIXTY_FOUR</option>
|
||||
<option value="STRING">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STRING</option>
|
||||
<option value="HTML">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HTML</option>
|
||||
<option value="ARRAY">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARRAY</option>
|
||||
<option value="PATH">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PATH</option>
|
||||
<option value="USERNAME">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USERNAME</option>
|
||||
<option value="RAW">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_RAW</option>
|
||||
<option value="unknown">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNKNOWN</option>
|
||||
</field>
|
||||
<!-- Method_name Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="method_name"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
default="getValueNow"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="WORD"
|
||||
message="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_NAME_HINT" />
|
||||
<!-- User_check Field. Type: Checkbox. (joomla)-->
|
||||
<field type="checkbox"
|
||||
name="user_check"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_LABEL"
|
||||
value="1"
|
||||
default="1"
|
||||
required="false"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER_CHECK_DESCRIPTION"
|
||||
class="inputbox" />
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
@ -268,6 +342,39 @@
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL"
|
||||
heading="h4"
|
||||
class="snippet-usage note_snippet_usage" />
|
||||
<!-- Php_view Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_view"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
|
||||
required="true" />
|
||||
<!-- 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>
|
||||
<!-- Php_jview Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
|
||||
required="true" />
|
||||
<!-- Default Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="default"
|
||||
@ -278,17 +385,6 @@
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
|
||||
required="true" />
|
||||
<!-- Php_model Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_model"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
|
||||
required="false" />
|
||||
<!-- Add_javascript_file Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_javascript_file"
|
||||
@ -370,16 +466,16 @@
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
|
||||
multiple="false"
|
||||
required="false" />
|
||||
<!-- Php_document Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_document"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
||||
name="php_ajaxmethod"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_HINT"
|
||||
required="true" />
|
||||
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
@ -388,17 +484,17 @@
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="dynamic_values" />
|
||||
<!-- Php_view Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_view"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_document Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_document"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_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>
|
||||
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_custom_button"
|
||||
@ -410,17 +506,17 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
|
||||
</field>
|
||||
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_view Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_view"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_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>
|
||||
<!-- Custom_button Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="custom_button"
|
||||
@ -708,17 +804,57 @@
|
||||
</field>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Php_jview Field. Type: Textarea. (joomla)-->
|
||||
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_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>
|
||||
<!-- Php_controller Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
|
||||
name="php_controller"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
|
||||
required="true" />
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
|
||||
required="false" />
|
||||
<!-- Add_php_jview Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_jview"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_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>
|
||||
<!-- Php_model Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_model"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
|
||||
required="false" />
|
||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_linked_to_notice"
|
||||
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LINKED_TO_NOTICE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_linked_to_notice" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
|
@ -23,43 +23,43 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzsvzk_required = false;
|
||||
jform_vvvvvztvzl_required = false;
|
||||
jform_vvvvvztvzm_required = false;
|
||||
jform_vvvvvztvzn_required = false;
|
||||
jform_vvvvvzuvzn_required = false;
|
||||
jform_vvvvvzvvzo_required = false;
|
||||
jform_vvvvvzvvzp_required = false;
|
||||
jform_vvvvvzvvzq_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzs(target_vvvvvzs);
|
||||
|
||||
var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzt(target_vvvvvzt);
|
||||
|
||||
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
|
||||
vvvvvzu(target_vvvvvzu);
|
||||
|
||||
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
|
||||
vvvvvzv(target_vvvvvzv);
|
||||
|
||||
var target_vvvvvzw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvvzw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvvzw(target_vvvvvzw,type_vvvvvzw);
|
||||
|
||||
var type_vvvvvzx = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzx(type_vvvvvzx,target_vvvvvzx);
|
||||
});
|
||||
|
||||
// the vvvvvzs function
|
||||
function vvvvvzs(target_vvvvvzs)
|
||||
// the vvvvvzu function
|
||||
function vvvvvzu(target_vvvvvzu)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzs == 2)
|
||||
if (target_vvvvvzu == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
if (jform_vvvvvzsvzk_required)
|
||||
if (jform_vvvvvzuvzn_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_vvvvvzsvzk_required = false;
|
||||
jform_vvvvvzuvzn_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
@ -68,99 +68,99 @@ function vvvvvzs(target_vvvvvzs)
|
||||
else
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzsvzk_required)
|
||||
if (!jform_vvvvvzuvzn_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_vvvvvzsvzk_required = true;
|
||||
jform_vvvvvzuvzn_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzt function
|
||||
function vvvvvzt(target_vvvvvzt)
|
||||
// the vvvvvzv function
|
||||
function vvvvvzv(target_vvvvvzv)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzt == 1)
|
||||
if (target_vvvvvzv == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
if (jform_vvvvvztvzl_required)
|
||||
if (jform_vvvvvzvvzo_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvvztvzl_required = false;
|
||||
jform_vvvvvzvvzo_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
if (jform_vvvvvztvzm_required)
|
||||
if (jform_vvvvvzvvzp_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvvztvzm_required = false;
|
||||
jform_vvvvvzvvzp_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_vvvvvztvzn_required)
|
||||
if (jform_vvvvvzvvzq_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvvztvzn_required = false;
|
||||
jform_vvvvvzvvzq_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
if (!jform_vvvvvztvzl_required)
|
||||
if (!jform_vvvvvzvvzo_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvvztvzl_required = true;
|
||||
jform_vvvvvzvvzo_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
if (!jform_vvvvvztvzm_required)
|
||||
if (!jform_vvvvvzvvzp_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvvztvzm_required = true;
|
||||
jform_vvvvvzvvzp_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_vvvvvztvzn_required)
|
||||
if (!jform_vvvvvzvvzq_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvvztvzn_required = true;
|
||||
jform_vvvvvzvvzq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzu function
|
||||
function vvvvvzu(target_vvvvvzu,type_vvvvvzu)
|
||||
// the vvvvvzw function
|
||||
function vvvvvzw(target_vvvvvzw,type_vvvvvzw)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzu == 1 && type_vvvvvzu == 1)
|
||||
if (target_vvvvvzw == 1 && type_vvvvvzw == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -172,11 +172,11 @@ function vvvvvzu(target_vvvvvzu,type_vvvvvzu)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzv function
|
||||
function vvvvvzv(type_vvvvvzv,target_vvvvvzv)
|
||||
// the vvvvvzx function
|
||||
function vvvvvzx(type_vvvvvzx,target_vvvvvzx)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvvzv == 1 && target_vvvvvzv == 1)
|
||||
if (type_vvvvvzx == 1 && target_vvvvvzx == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -23,210 +23,96 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaevzq_required = false;
|
||||
jform_vvvvwafvzr_required = false;
|
||||
jform_vvvvwagvzs_required = false;
|
||||
jform_vvvvwahvzt_required = false;
|
||||
jform_vvvvwakvzu_required = false;
|
||||
jform_vvvvwalvzv_required = false;
|
||||
jform_vvvvwamvzw_required = false;
|
||||
jform_vvvvwanvzx_required = false;
|
||||
jform_vvvvwagvzt_required = false;
|
||||
jform_vvvvwahvzu_required = false;
|
||||
jform_vvvvwaivzv_required = false;
|
||||
jform_vvvvwajvzw_required = false;
|
||||
jform_vvvvwamvzx_required = false;
|
||||
jform_vvvvwanvzy_required = false;
|
||||
jform_vvvvwaovzz_required = false;
|
||||
jform_vvvvwapwaa_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwae = jQuery("#jform_datalenght").val();
|
||||
vvvvwae(datalenght_vvvvwae);
|
||||
var datalenght_vvvvwag = jQuery("#jform_datalenght").val();
|
||||
vvvvwag(datalenght_vvvvwag);
|
||||
|
||||
var datadefault_vvvvwaf = jQuery("#jform_datadefault").val();
|
||||
vvvvwaf(datadefault_vvvvwaf);
|
||||
var datadefault_vvvvwah = jQuery("#jform_datadefault").val();
|
||||
vvvvwah(datadefault_vvvvwah);
|
||||
|
||||
var datatype_vvvvwag = jQuery("#jform_datatype").val();
|
||||
vvvvwag(datatype_vvvvwag);
|
||||
|
||||
var datatype_vvvvwah = jQuery("#jform_datatype").val();
|
||||
vvvvwah(datatype_vvvvwah);
|
||||
|
||||
var store_vvvvwai = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwai = jQuery("#jform_datatype").val();
|
||||
vvvvwai(store_vvvvwai,datatype_vvvvwai);
|
||||
vvvvwai(datatype_vvvvwai);
|
||||
|
||||
var add_css_view_vvvvwak = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwak(add_css_view_vvvvwak);
|
||||
var datatype_vvvvwaj = jQuery("#jform_datatype").val();
|
||||
vvvvwaj(datatype_vvvvwaj);
|
||||
|
||||
var add_css_views_vvvvwal = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwal(add_css_views_vvvvwal);
|
||||
var store_vvvvwak = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwak = jQuery("#jform_datatype").val();
|
||||
vvvvwak(store_vvvvwak,datatype_vvvvwak);
|
||||
|
||||
var add_javascript_view_footer_vvvvwam = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwam(add_javascript_view_footer_vvvvwam);
|
||||
var add_css_view_vvvvwam = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwam(add_css_view_vvvvwam);
|
||||
|
||||
var add_javascript_views_footer_vvvvwan = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwan(add_javascript_views_footer_vvvvwan);
|
||||
var add_css_views_vvvvwan = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwan(add_css_views_vvvvwan);
|
||||
|
||||
var add_javascript_view_footer_vvvvwao = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwao(add_javascript_view_footer_vvvvwao);
|
||||
|
||||
var add_javascript_views_footer_vvvvwap = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwap(add_javascript_views_footer_vvvvwap);
|
||||
});
|
||||
|
||||
// the vvvvwae function
|
||||
function vvvvwae(datalenght_vvvvwae)
|
||||
// the vvvvwag function
|
||||
function vvvvwag(datalenght_vvvvwag)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwae) && datalenght_vvvvwae.constructor !== Array)
|
||||
if (isSet(datalenght_vvvvwag) && datalenght_vvvvwag.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwae = datalenght_vvvvwae;
|
||||
var datalenght_vvvvwae = [];
|
||||
datalenght_vvvvwae.push(temp_vvvvwae);
|
||||
var temp_vvvvwag = datalenght_vvvvwag;
|
||||
var datalenght_vvvvwag = [];
|
||||
datalenght_vvvvwag.push(temp_vvvvwag);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwae))
|
||||
else if (!isSet(datalenght_vvvvwag))
|
||||
{
|
||||
var datalenght_vvvvwae = [];
|
||||
var datalenght_vvvvwag = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwae.some(datalenght_vvvvwae_SomeFunc);
|
||||
var datalenght = datalenght_vvvvwag.some(datalenght_vvvvwag_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datalenght)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
if (jform_vvvvwaevzq_required)
|
||||
if (jform_vvvvwagvzt_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_vvvvwaevzq_required = false;
|
||||
jform_vvvvwagvzt_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaevzq_required)
|
||||
if (!jform_vvvvwagvzt_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_vvvvwaevzq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwae Some function
|
||||
function datalenght_vvvvwae_SomeFunc(datalenght_vvvvwae)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwae == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(datadefault_vvvvwaf)
|
||||
{
|
||||
if (isSet(datadefault_vvvvwaf) && datadefault_vvvvwaf.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaf = datadefault_vvvvwaf;
|
||||
var datadefault_vvvvwaf = [];
|
||||
datadefault_vvvvwaf.push(temp_vvvvwaf);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvwaf))
|
||||
{
|
||||
var datadefault_vvvvwaf = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvwaf.some(datadefault_vvvvwaf_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
if (jform_vvvvwafvzr_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_vvvvwafvzr_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwafvzr_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_vvvvwafvzr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaf Some function
|
||||
function datadefault_vvvvwaf_SomeFunc(datadefault_vvvvwaf)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvwaf == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwag function
|
||||
function vvvvwag(datatype_vvvvwag)
|
||||
{
|
||||
if (isSet(datatype_vvvvwag) && datatype_vvvvwag.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwag = datatype_vvvvwag;
|
||||
var datatype_vvvvwag = [];
|
||||
datatype_vvvvwag.push(temp_vvvvwag);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwag))
|
||||
{
|
||||
var datatype_vvvvwag = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwag.some(datatype_vvvvwag_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
if (jform_vvvvwagvzs_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwagvzs_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_vvvvwagvzs_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwagvzs_required = true;
|
||||
jform_vvvvwagvzt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwag Some function
|
||||
function datatype_vvvvwag_SomeFunc(datatype_vvvvwag)
|
||||
function datalenght_vvvvwag_SomeFunc(datalenght_vvvvwag)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwag == 'CHAR' || datatype_vvvvwag == 'VARCHAR' || datatype_vvvvwag == 'DATETIME' || datatype_vvvvwag == 'DATE' || datatype_vvvvwag == 'TIME' || datatype_vvvvwag == 'INT' || datatype_vvvvwag == 'TINYINT' || datatype_vvvvwag == 'BIGINT' || datatype_vvvvwag == 'FLOAT' || datatype_vvvvwag == 'DECIMAL' || datatype_vvvvwag == 'DOUBLE')
|
||||
if (datalenght_vvvvwag == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -234,54 +120,54 @@ function datatype_vvvvwag_SomeFunc(datatype_vvvvwag)
|
||||
}
|
||||
|
||||
// the vvvvwah function
|
||||
function vvvvwah(datatype_vvvvwah)
|
||||
function vvvvwah(datadefault_vvvvwah)
|
||||
{
|
||||
if (isSet(datatype_vvvvwah) && datatype_vvvvwah.constructor !== Array)
|
||||
if (isSet(datadefault_vvvvwah) && datadefault_vvvvwah.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwah = datatype_vvvvwah;
|
||||
var datatype_vvvvwah = [];
|
||||
datatype_vvvvwah.push(temp_vvvvwah);
|
||||
var temp_vvvvwah = datadefault_vvvvwah;
|
||||
var datadefault_vvvvwah = [];
|
||||
datadefault_vvvvwah.push(temp_vvvvwah);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwah))
|
||||
else if (!isSet(datadefault_vvvvwah))
|
||||
{
|
||||
var datatype_vvvvwah = [];
|
||||
var datadefault_vvvvwah = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwah.some(datatype_vvvvwah_SomeFunc);
|
||||
var datadefault = datadefault_vvvvwah.some(datadefault_vvvvwah_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
if (jform_vvvvwahvzt_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
if (jform_vvvvwahvzu_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwahvzt_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_vvvvwahvzu_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
if (!jform_vvvvwahvzt_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwahvzu_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwahvzt_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_vvvvwahvzu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwah Some function
|
||||
function datatype_vvvvwah_SomeFunc(datatype_vvvvwah)
|
||||
function datadefault_vvvvwah_SomeFunc(datadefault_vvvvwah)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwah == 'CHAR' || datatype_vvvvwah == 'VARCHAR' || datatype_vvvvwah == 'TEXT' || datatype_vvvvwah == 'MEDIUMTEXT' || datatype_vvvvwah == 'LONGTEXT')
|
||||
if (datadefault_vvvvwah == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -289,20 +175,8 @@ function datatype_vvvvwah_SomeFunc(datatype_vvvvwah)
|
||||
}
|
||||
|
||||
// the vvvvwai function
|
||||
function vvvvwai(store_vvvvwai,datatype_vvvvwai)
|
||||
function vvvvwai(datatype_vvvvwai)
|
||||
{
|
||||
if (isSet(store_vvvvwai) && store_vvvvwai.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwai = store_vvvvwai;
|
||||
var store_vvvvwai = [];
|
||||
store_vvvvwai.push(temp_vvvvwai);
|
||||
}
|
||||
else if (!isSet(store_vvvvwai))
|
||||
{
|
||||
var store_vvvvwai = [];
|
||||
}
|
||||
var store = store_vvvvwai.some(store_vvvvwai_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwai) && datatype_vvvvwai.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwai = datatype_vvvvwai;
|
||||
@ -316,6 +190,132 @@ function vvvvwai(store_vvvvwai,datatype_vvvvwai)
|
||||
var datatype = datatype_vvvvwai.some(datatype_vvvvwai_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
if (jform_vvvvwaivzv_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwaivzv_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_vvvvwaivzv_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwaivzv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwai Some function
|
||||
function datatype_vvvvwai_SomeFunc(datatype_vvvvwai)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwai == 'CHAR' || datatype_vvvvwai == 'VARCHAR' || datatype_vvvvwai == 'DATETIME' || datatype_vvvvwai == 'DATE' || datatype_vvvvwai == 'TIME' || datatype_vvvvwai == 'INT' || datatype_vvvvwai == 'TINYINT' || datatype_vvvvwai == 'BIGINT' || datatype_vvvvwai == 'FLOAT' || datatype_vvvvwai == 'DECIMAL' || datatype_vvvvwai == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(datatype_vvvvwaj)
|
||||
{
|
||||
if (isSet(datatype_vvvvwaj) && datatype_vvvvwaj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaj = datatype_vvvvwaj;
|
||||
var datatype_vvvvwaj = [];
|
||||
datatype_vvvvwaj.push(temp_vvvvwaj);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwaj))
|
||||
{
|
||||
var datatype_vvvvwaj = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwaj.some(datatype_vvvvwaj_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
if (jform_vvvvwajvzw_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwajvzw_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
if (!jform_vvvvwajvzw_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwajvzw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaj Some function
|
||||
function datatype_vvvvwaj_SomeFunc(datatype_vvvvwaj)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwaj == 'CHAR' || datatype_vvvvwaj == 'VARCHAR' || datatype_vvvvwaj == 'TEXT' || datatype_vvvvwaj == 'MEDIUMTEXT' || datatype_vvvvwaj == 'LONGTEXT')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwak function
|
||||
function vvvvwak(store_vvvvwak,datatype_vvvvwak)
|
||||
{
|
||||
if (isSet(store_vvvvwak) && store_vvvvwak.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwak = store_vvvvwak;
|
||||
var store_vvvvwak = [];
|
||||
store_vvvvwak.push(temp_vvvvwak);
|
||||
}
|
||||
else if (!isSet(store_vvvvwak))
|
||||
{
|
||||
var store_vvvvwak = [];
|
||||
}
|
||||
var store = store_vvvvwak.some(store_vvvvwak_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwak) && datatype_vvvvwak.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwak = datatype_vvvvwak;
|
||||
var datatype_vvvvwak = [];
|
||||
datatype_vvvvwak.push(temp_vvvvwak);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwak))
|
||||
{
|
||||
var datatype_vvvvwak = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwak.some(datatype_vvvvwak_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (store && datatype)
|
||||
{
|
||||
@ -327,148 +327,148 @@ function vvvvwai(store_vvvvwai,datatype_vvvvwai)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwai Some function
|
||||
function store_vvvvwai_SomeFunc(store_vvvvwai)
|
||||
// the vvvvwak Some function
|
||||
function store_vvvvwak_SomeFunc(store_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwai == 4)
|
||||
if (store_vvvvwak == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwai Some function
|
||||
function datatype_vvvvwai_SomeFunc(datatype_vvvvwai)
|
||||
// the vvvvwak Some function
|
||||
function datatype_vvvvwak_SomeFunc(datatype_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwai == 'CHAR' || datatype_vvvvwai == 'VARCHAR' || datatype_vvvvwai == 'TEXT' || datatype_vvvvwai == 'MEDIUMTEXT' || datatype_vvvvwai == 'LONGTEXT')
|
||||
if (datatype_vvvvwak == 'CHAR' || datatype_vvvvwak == 'VARCHAR' || datatype_vvvvwak == 'TEXT' || datatype_vvvvwak == 'MEDIUMTEXT' || datatype_vvvvwak == 'LONGTEXT')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwak function
|
||||
function vvvvwak(add_css_view_vvvvwak)
|
||||
// the vvvvwam function
|
||||
function vvvvwam(add_css_view_vvvvwam)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwak == 1)
|
||||
if (add_css_view_vvvvwam == 1)
|
||||
{
|
||||
jQuery('#jform_css_view').closest('.control-group').show();
|
||||
if (jform_vvvvwakvzu_required)
|
||||
if (jform_vvvvwamvzx_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_vvvvwakvzu_required = false;
|
||||
jform_vvvvwamvzx_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwakvzu_required)
|
||||
if (!jform_vvvvwamvzx_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_vvvvwakvzu_required = true;
|
||||
jform_vvvvwamvzx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwal function
|
||||
function vvvvwal(add_css_views_vvvvwal)
|
||||
// the vvvvwan function
|
||||
function vvvvwan(add_css_views_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvwal == 1)
|
||||
if (add_css_views_vvvvwan == 1)
|
||||
{
|
||||
jQuery('#jform_css_views').closest('.control-group').show();
|
||||
if (jform_vvvvwalvzv_required)
|
||||
if (jform_vvvvwanvzy_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_vvvvwalvzv_required = false;
|
||||
jform_vvvvwanvzy_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_views').closest('.control-group').hide();
|
||||
if (!jform_vvvvwalvzv_required)
|
||||
if (!jform_vvvvwanvzy_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_vvvvwalvzv_required = true;
|
||||
jform_vvvvwanvzy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwam function
|
||||
function vvvvwam(add_javascript_view_footer_vvvvwam)
|
||||
// the vvvvwao function
|
||||
function vvvvwao(add_javascript_view_footer_vvvvwao)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvwam == 1)
|
||||
if (add_javascript_view_footer_vvvvwao == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
|
||||
if (jform_vvvvwamvzw_required)
|
||||
if (jform_vvvvwaovzz_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_vvvvwamvzw_required = false;
|
||||
jform_vvvvwaovzz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
|
||||
if (!jform_vvvvwamvzw_required)
|
||||
if (!jform_vvvvwaovzz_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_vvvvwamvzw_required = true;
|
||||
jform_vvvvwaovzz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwan function
|
||||
function vvvvwan(add_javascript_views_footer_vvvvwan)
|
||||
// the vvvvwap function
|
||||
function vvvvwap(add_javascript_views_footer_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvwan == 1)
|
||||
if (add_javascript_views_footer_vvvvwap == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
|
||||
if (jform_vvvvwanvzx_required)
|
||||
if (jform_vvvvwapwaa_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_vvvvwanvzx_required = false;
|
||||
jform_vvvvwapwaa_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
|
||||
if (!jform_vvvvwanvzx_required)
|
||||
if (!jform_vvvvwapwaa_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_vvvvwanvzx_required = true;
|
||||
jform_vvvvwapwaa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -509,6 +509,34 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
getLinked();
|
||||
});
|
||||
|
||||
function getLinked_server(type){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;
|
||||
if(token.length > 0 && type > 0){
|
||||
var request = 'token='+token+'&type='+type;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: getUrl,
|
||||
dataType: 'jsonp',
|
||||
data: request,
|
||||
jsonp: 'callback'
|
||||
});
|
||||
}
|
||||
|
||||
function getLinked(){
|
||||
getLinked_server(1).done(function(result) {
|
||||
if(result){
|
||||
jQuery('#display_linked_to').html(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getFieldOptions_server(fieldId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldOptions&format=json";
|
||||
if(token.length > 0 && fieldId > 0){
|
||||
|
@ -208,7 +208,6 @@
|
||||
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_filter_information"
|
||||
label="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION"
|
||||
class="note_filter_information" />
|
||||
<!-- Datalenght Field. Type: List. (joomla)-->
|
||||
|
@ -23,207 +23,97 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaowaa_required = false;
|
||||
jform_vvvvwapwab_required = false;
|
||||
jform_vvvvwaqwac_required = false;
|
||||
jform_vvvvwarwad_required = false;
|
||||
jform_vvvvwaswae_required = false;
|
||||
jform_vvvvwatwaf_required = false;
|
||||
jform_vvvvwaqwad_required = false;
|
||||
jform_vvvvwarwae_required = false;
|
||||
jform_vvvvwaswaf_required = false;
|
||||
jform_vvvvwatwag_required = false;
|
||||
jform_vvvvwauwah_required = false;
|
||||
jform_vvvvwavwai_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwao = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwao(location_vvvvwao);
|
||||
var location_vvvvwaq = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwaq(location_vvvvwaq);
|
||||
|
||||
var location_vvvvwap = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwap(location_vvvvwap);
|
||||
|
||||
var type_vvvvwaq = jQuery("#jform_type").val();
|
||||
vvvvwaq(type_vvvvwaq);
|
||||
|
||||
var type_vvvvwar = jQuery("#jform_type").val();
|
||||
vvvvwar(type_vvvvwar);
|
||||
var location_vvvvwar = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwar(location_vvvvwar);
|
||||
|
||||
var type_vvvvwas = jQuery("#jform_type").val();
|
||||
vvvvwas(type_vvvvwas);
|
||||
|
||||
var target_vvvvwat = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwat(target_vvvvwat);
|
||||
var type_vvvvwat = jQuery("#jform_type").val();
|
||||
vvvvwat(type_vvvvwat);
|
||||
|
||||
var type_vvvvwau = jQuery("#jform_type").val();
|
||||
vvvvwau(type_vvvvwau);
|
||||
|
||||
var target_vvvvwav = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwav(target_vvvvwav);
|
||||
});
|
||||
|
||||
// the vvvvwao function
|
||||
function vvvvwao(location_vvvvwao)
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(location_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwao == 1)
|
||||
if (location_vvvvwaq == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
if (jform_vvvvwaowaa_required)
|
||||
if (jform_vvvvwaqwad_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_vvvvwaowaa_required = false;
|
||||
jform_vvvvwaqwad_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaowaa_required)
|
||||
if (!jform_vvvvwaqwad_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_vvvvwaowaa_required = true;
|
||||
jform_vvvvwaqwad_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwap function
|
||||
function vvvvwap(location_vvvvwap)
|
||||
// the vvvvwar function
|
||||
function vvvvwar(location_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwap == 2)
|
||||
if (location_vvvvwar == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
if (jform_vvvvwapwab_required)
|
||||
if (jform_vvvvwarwae_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_vvvvwapwab_required = false;
|
||||
jform_vvvvwarwae_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwapwab_required)
|
||||
if (!jform_vvvvwarwae_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_vvvvwapwab_required = true;
|
||||
jform_vvvvwarwae_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(type_vvvvwaq)
|
||||
{
|
||||
if (isSet(type_vvvvwaq) && type_vvvvwaq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaq = type_vvvvwaq;
|
||||
var type_vvvvwaq = [];
|
||||
type_vvvvwaq.push(temp_vvvvwaq);
|
||||
}
|
||||
else if (!isSet(type_vvvvwaq))
|
||||
{
|
||||
var type_vvvvwaq = [];
|
||||
}
|
||||
var type = type_vvvvwaq.some(type_vvvvwaq_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_vvvvwaqwac_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwaqwac_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaqwac_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwaqwac_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaq Some function
|
||||
function type_vvvvwaq_SomeFunc(type_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwaq == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwar function
|
||||
function vvvvwar(type_vvvvwar)
|
||||
{
|
||||
if (isSet(type_vvvvwar) && type_vvvvwar.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwar = type_vvvvwar;
|
||||
var type_vvvvwar = [];
|
||||
type_vvvvwar.push(temp_vvvvwar);
|
||||
}
|
||||
else if (!isSet(type_vvvvwar))
|
||||
{
|
||||
var type_vvvvwar = [];
|
||||
}
|
||||
var type = type_vvvvwar.some(type_vvvvwar_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
if (jform_vvvvwarwad_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwarwad_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
if (!jform_vvvvwarwad_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwarwad_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwar Some function
|
||||
function type_vvvvwar_SomeFunc(type_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwar == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwas function
|
||||
function vvvvwas(type_vvvvwas)
|
||||
{
|
||||
@ -243,27 +133,27 @@ function vvvvwas(type_vvvvwas)
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvwaswae_required)
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_vvvvwaswaf_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwaswae_required = false;
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwaswaf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaswae_required)
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaswaf_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwaswae_required = true;
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwaswaf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -272,7 +162,7 @@ function vvvvwas(type_vvvvwas)
|
||||
function type_vvvvwas_SomeFunc(type_vvvvwas)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwas == 2)
|
||||
if (type_vvvvwas == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -280,32 +170,142 @@ function type_vvvvwas_SomeFunc(type_vvvvwas)
|
||||
}
|
||||
|
||||
// the vvvvwat function
|
||||
function vvvvwat(target_vvvvwat)
|
||||
function vvvvwat(type_vvvvwat)
|
||||
{
|
||||
if (isSet(type_vvvvwat) && type_vvvvwat.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwat = type_vvvvwat;
|
||||
var type_vvvvwat = [];
|
||||
type_vvvvwat.push(temp_vvvvwat);
|
||||
}
|
||||
else if (!isSet(type_vvvvwat))
|
||||
{
|
||||
var type_vvvvwat = [];
|
||||
}
|
||||
var type = type_vvvvwat.some(type_vvvvwat_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
if (jform_vvvvwatwag_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwatwag_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwag_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwatwag_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwat Some function
|
||||
function type_vvvvwat_SomeFunc(type_vvvvwat)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwat == 1)
|
||||
if (type_vvvvwat == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwau function
|
||||
function vvvvwau(type_vvvvwau)
|
||||
{
|
||||
if (isSet(type_vvvvwau) && type_vvvvwau.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwau = type_vvvvwau;
|
||||
var type_vvvvwau = [];
|
||||
type_vvvvwau.push(temp_vvvvwau);
|
||||
}
|
||||
else if (!isSet(type_vvvvwau))
|
||||
{
|
||||
var type_vvvvwau = [];
|
||||
}
|
||||
var type = type_vvvvwau.some(type_vvvvwau_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvwauwah_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwauwah_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvwauwah_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwauwah_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwau Some function
|
||||
function type_vvvvwau_SomeFunc(type_vvvvwau)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwau == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwav function
|
||||
function vvvvwav(target_vvvvwav)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwav == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
if (jform_vvvvwatwaf_required)
|
||||
if (jform_vvvvwavwai_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwatwaf_required = false;
|
||||
jform_vvvvwavwai_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwaf_required)
|
||||
if (!jform_vvvvwavwai_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwatwaf_required = true;
|
||||
jform_vvvvwavwai_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,17 +29,18 @@ jform_vvvvvvxvvx_required = false;
|
||||
jform_vvvvvvyvvy_required = false;
|
||||
jform_vvvvvvzvvz_required = false;
|
||||
jform_vvvvvwavwa_required = false;
|
||||
jform_vvvvvwcvwb_required = false;
|
||||
jform_vvvvvwbvwb_required = false;
|
||||
jform_vvvvvwdvwc_required = false;
|
||||
jform_vvvvvwevwd_required = false;
|
||||
jform_vvvvvwfvwe_required = false;
|
||||
jform_vvvvvwjvwf_required = false;
|
||||
jform_vvvvvwgvwf_required = false;
|
||||
jform_vvvvvwkvwg_required = false;
|
||||
jform_vvvvvwlvwh_required = false;
|
||||
jform_vvvvvwmvwi_required = false;
|
||||
jform_vvvvvwnvwj_required = false;
|
||||
jform_vvvvvwuvwk_required = false;
|
||||
jform_vvvvvwovwk_required = false;
|
||||
jform_vvvvvwvvwl_required = false;
|
||||
jform_vvvvvwwvwm_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
@ -53,75 +54,78 @@ jQuery(document).ready(function()
|
||||
var add_php_helper_both_vvvvvvx = jQuery("#jform_add_php_helper_both input[type='radio']:checked").val();
|
||||
vvvvvvx(add_php_helper_both_vvvvvvx);
|
||||
|
||||
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvvy(add_css_vvvvvvy);
|
||||
var add_css_admin_vvvvvvy = jQuery("#jform_add_css_admin input[type='radio']:checked").val();
|
||||
vvvvvvy(add_css_admin_vvvvvvy);
|
||||
|
||||
var add_javascript_vvvvvvz = jQuery("#jform_add_javascript input[type='radio']:checked").val();
|
||||
vvvvvvz(add_javascript_vvvvvvz);
|
||||
var add_css_site_vvvvvvz = jQuery("#jform_add_css_site input[type='radio']:checked").val();
|
||||
vvvvvvz(add_css_site_vvvvvvz);
|
||||
|
||||
var add_sql_vvvvvwa = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvwa(add_sql_vvvvvwa);
|
||||
var add_javascript_vvvvvwa = jQuery("#jform_add_javascript input[type='radio']:checked").val();
|
||||
vvvvvwa(add_javascript_vvvvvwa);
|
||||
|
||||
var emptycontributors_vvvvvwb = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
||||
vvvvvwb(emptycontributors_vvvvvwb);
|
||||
var add_sql_vvvvvwb = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvwb(add_sql_vvvvvwb);
|
||||
|
||||
var add_license_vvvvvwc = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwc(add_license_vvvvvwc);
|
||||
var emptycontributors_vvvvvwc = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
||||
vvvvvwc(emptycontributors_vvvvvwc);
|
||||
|
||||
var add_admin_event_vvvvvwd = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
||||
vvvvvwd(add_admin_event_vvvvvwd);
|
||||
var add_license_vvvvvwd = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwd(add_license_vvvvvwd);
|
||||
|
||||
var add_site_event_vvvvvwe = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
||||
vvvvvwe(add_site_event_vvvvvwe);
|
||||
var add_admin_event_vvvvvwe = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
||||
vvvvvwe(add_admin_event_vvvvvwe);
|
||||
|
||||
var addreadme_vvvvvwf = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
||||
vvvvvwf(addreadme_vvvvvwf);
|
||||
var add_site_event_vvvvvwf = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
||||
vvvvvwf(add_site_event_vvvvvwf);
|
||||
|
||||
var add_update_server_vvvvvwg = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwg(add_update_server_vvvvvwg);
|
||||
var addreadme_vvvvvwg = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
||||
vvvvvwg(addreadme_vvvvvwg);
|
||||
|
||||
var add_sales_server_vvvvvwh = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
|
||||
vvvvvwh(add_sales_server_vvvvvwh);
|
||||
var add_update_server_vvvvvwh = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwh(add_update_server_vvvvvwh);
|
||||
|
||||
var add_license_vvvvvwi = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwi(add_license_vvvvvwi);
|
||||
var add_sales_server_vvvvvwi = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
|
||||
vvvvvwi(add_sales_server_vvvvvwi);
|
||||
|
||||
var add_php_postflight_install_vvvvvwj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
|
||||
vvvvvwj(add_php_postflight_install_vvvvvwj);
|
||||
var add_license_vvvvvwj = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwj(add_license_vvvvvwj);
|
||||
|
||||
var add_php_postflight_update_vvvvvwk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
|
||||
vvvvvwk(add_php_postflight_update_vvvvvwk);
|
||||
var add_php_postflight_install_vvvvvwk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
|
||||
vvvvvwk(add_php_postflight_install_vvvvvwk);
|
||||
|
||||
var add_php_method_uninstall_vvvvvwl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
|
||||
vvvvvwl(add_php_method_uninstall_vvvvvwl);
|
||||
var add_php_postflight_update_vvvvvwl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
|
||||
vvvvvwl(add_php_postflight_update_vvvvvwl);
|
||||
|
||||
var add_php_preflight_install_vvvvvwm = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
|
||||
vvvvvwm(add_php_preflight_install_vvvvvwm);
|
||||
var add_php_method_uninstall_vvvvvwm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
|
||||
vvvvvwm(add_php_method_uninstall_vvvvvwm);
|
||||
|
||||
var add_php_preflight_update_vvvvvwn = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
|
||||
vvvvvwn(add_php_preflight_update_vvvvvwn);
|
||||
var add_php_preflight_install_vvvvvwn = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
|
||||
vvvvvwn(add_php_preflight_install_vvvvvwn);
|
||||
|
||||
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
|
||||
var add_php_preflight_update_vvvvvwo = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
|
||||
vvvvvwo(add_php_preflight_update_vvvvvwo);
|
||||
|
||||
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
|
||||
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp);
|
||||
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq);
|
||||
|
||||
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
|
||||
var update_server_target_vvvvvwr = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwr = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr);
|
||||
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(add_update_server_vvvvvwu);
|
||||
var update_server_target_vvvvvwt = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwt = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt);
|
||||
|
||||
var buildcomp_vvvvvwv = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwv(buildcomp_vvvvvwv);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv);
|
||||
|
||||
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvww(buildcomp_vvvvvww);
|
||||
});
|
||||
|
||||
// the vvvvvvv function
|
||||
@ -218,103 +222,134 @@ function vvvvvvx(add_php_helper_both_vvvvvvx)
|
||||
}
|
||||
|
||||
// the vvvvvvy function
|
||||
function vvvvvvy(add_css_vvvvvvy)
|
||||
function vvvvvvy(add_css_admin_vvvvvvy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvvy == 1)
|
||||
if (add_css_admin_vvvvvvy == 1)
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').show();
|
||||
jQuery('#jform_css_admin').closest('.control-group').show();
|
||||
if (jform_vvvvvvyvvy_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
updateFieldRequired('css_admin',0);
|
||||
jQuery('#jform_css_admin').prop('required','required');
|
||||
jQuery('#jform_css_admin').attr('aria-required',true);
|
||||
jQuery('#jform_css_admin').addClass('required');
|
||||
jform_vvvvvvyvvy_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').hide();
|
||||
jQuery('#jform_css_admin').closest('.control-group').hide();
|
||||
if (!jform_vvvvvvyvvy_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
updateFieldRequired('css_admin',1);
|
||||
jQuery('#jform_css_admin').removeAttr('required');
|
||||
jQuery('#jform_css_admin').removeAttr('aria-required');
|
||||
jQuery('#jform_css_admin').removeClass('required');
|
||||
jform_vvvvvvyvvy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvvz function
|
||||
function vvvvvvz(add_javascript_vvvvvvz)
|
||||
function vvvvvvz(add_css_site_vvvvvvz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_vvvvvvz == 1)
|
||||
if (add_css_site_vvvvvvz == 1)
|
||||
{
|
||||
jQuery('#jform_javascript').closest('.control-group').show();
|
||||
jQuery('#jform_css_site').closest('.control-group').show();
|
||||
if (jform_vvvvvvzvvz_required)
|
||||
{
|
||||
updateFieldRequired('javascript',0);
|
||||
jQuery('#jform_javascript').prop('required','required');
|
||||
jQuery('#jform_javascript').attr('aria-required',true);
|
||||
jQuery('#jform_javascript').addClass('required');
|
||||
updateFieldRequired('css_site',0);
|
||||
jQuery('#jform_css_site').prop('required','required');
|
||||
jQuery('#jform_css_site').attr('aria-required',true);
|
||||
jQuery('#jform_css_site').addClass('required');
|
||||
jform_vvvvvvzvvz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript').closest('.control-group').hide();
|
||||
jQuery('#jform_css_site').closest('.control-group').hide();
|
||||
if (!jform_vvvvvvzvvz_required)
|
||||
{
|
||||
updateFieldRequired('javascript',1);
|
||||
jQuery('#jform_javascript').removeAttr('required');
|
||||
jQuery('#jform_javascript').removeAttr('aria-required');
|
||||
jQuery('#jform_javascript').removeClass('required');
|
||||
updateFieldRequired('css_site',1);
|
||||
jQuery('#jform_css_site').removeAttr('required');
|
||||
jQuery('#jform_css_site').removeAttr('aria-required');
|
||||
jQuery('#jform_css_site').removeClass('required');
|
||||
jform_vvvvvvzvvz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwa function
|
||||
function vvvvvwa(add_sql_vvvvvwa)
|
||||
function vvvvvwa(add_javascript_vvvvvwa)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sql_vvvvvwa == 1)
|
||||
if (add_javascript_vvvvvwa == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
jQuery('#jform_javascript').closest('.control-group').show();
|
||||
if (jform_vvvvvwavwa_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
updateFieldRequired('javascript',0);
|
||||
jQuery('#jform_javascript').prop('required','required');
|
||||
jQuery('#jform_javascript').attr('aria-required',true);
|
||||
jQuery('#jform_javascript').addClass('required');
|
||||
jform_vvvvvwavwa_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
jQuery('#jform_javascript').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwavwa_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
updateFieldRequired('javascript',1);
|
||||
jQuery('#jform_javascript').removeAttr('required');
|
||||
jQuery('#jform_javascript').removeAttr('aria-required');
|
||||
jQuery('#jform_javascript').removeClass('required');
|
||||
jform_vvvvvwavwa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwb function
|
||||
function vvvvvwb(emptycontributors_vvvvvwb)
|
||||
function vvvvvwb(add_sql_vvvvvwb)
|
||||
{
|
||||
// set the function logic
|
||||
if (emptycontributors_vvvvvwb == 1)
|
||||
if (add_sql_vvvvvwb == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
if (jform_vvvvvwbvwb_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
jform_vvvvvwbvwb_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwbvwb_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
jform_vvvvvwbvwb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwc function
|
||||
function vvvvvwc(emptycontributors_vvvvvwc)
|
||||
{
|
||||
// set the function logic
|
||||
if (emptycontributors_vvvvvwc == 1)
|
||||
{
|
||||
jQuery('#jform_number').closest('.control-group').show();
|
||||
}
|
||||
@ -324,114 +359,114 @@ function vvvvvwb(emptycontributors_vvvvvwb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwc function
|
||||
function vvvvvwc(add_license_vvvvvwc)
|
||||
// the vvvvvwd function
|
||||
function vvvvvwd(add_license_vvvvvwd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_license_vvvvvwc == 1)
|
||||
if (add_license_vvvvvwd == 1)
|
||||
{
|
||||
jQuery('#jform_license_type').closest('.control-group').show();
|
||||
if (jform_vvvvvwcvwb_required)
|
||||
if (jform_vvvvvwdvwc_required)
|
||||
{
|
||||
updateFieldRequired('license_type',0);
|
||||
jQuery('#jform_license_type').prop('required','required');
|
||||
jQuery('#jform_license_type').attr('aria-required',true);
|
||||
jQuery('#jform_license_type').addClass('required');
|
||||
jform_vvvvvwcvwb_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_license_type').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwcvwb_required)
|
||||
{
|
||||
updateFieldRequired('license_type',1);
|
||||
jQuery('#jform_license_type').removeAttr('required');
|
||||
jQuery('#jform_license_type').removeAttr('aria-required');
|
||||
jQuery('#jform_license_type').removeClass('required');
|
||||
jform_vvvvvwcvwb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwd function
|
||||
function vvvvvwd(add_admin_event_vvvvvwd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_admin_event_vvvvvwd == 1)
|
||||
{
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwdvwc_required)
|
||||
{
|
||||
updateFieldRequired('php_admin_event',0);
|
||||
jQuery('#jform_php_admin_event').prop('required','required');
|
||||
jQuery('#jform_php_admin_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_admin_event').addClass('required');
|
||||
jform_vvvvvwdvwc_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
||||
jQuery('#jform_license_type').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwdvwc_required)
|
||||
{
|
||||
updateFieldRequired('php_admin_event',1);
|
||||
jQuery('#jform_php_admin_event').removeAttr('required');
|
||||
jQuery('#jform_php_admin_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_admin_event').removeClass('required');
|
||||
updateFieldRequired('license_type',1);
|
||||
jQuery('#jform_license_type').removeAttr('required');
|
||||
jQuery('#jform_license_type').removeAttr('aria-required');
|
||||
jQuery('#jform_license_type').removeClass('required');
|
||||
jform_vvvvvwdvwc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwe function
|
||||
function vvvvvwe(add_site_event_vvvvvwe)
|
||||
function vvvvvwe(add_admin_event_vvvvvwe)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_site_event_vvvvvwe == 1)
|
||||
if (add_admin_event_vvvvvwe == 1)
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').show();
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwevwd_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',0);
|
||||
jQuery('#jform_php_site_event').prop('required','required');
|
||||
jQuery('#jform_php_site_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_site_event').addClass('required');
|
||||
updateFieldRequired('php_admin_event',0);
|
||||
jQuery('#jform_php_admin_event').prop('required','required');
|
||||
jQuery('#jform_php_admin_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_admin_event').addClass('required');
|
||||
jform_vvvvvwevwd_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwevwd_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',1);
|
||||
jQuery('#jform_php_site_event').removeAttr('required');
|
||||
jQuery('#jform_php_site_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_site_event').removeClass('required');
|
||||
updateFieldRequired('php_admin_event',1);
|
||||
jQuery('#jform_php_admin_event').removeAttr('required');
|
||||
jQuery('#jform_php_admin_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_admin_event').removeClass('required');
|
||||
jform_vvvvvwevwd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwf function
|
||||
function vvvvvwf(addreadme_vvvvvwf)
|
||||
function vvvvvwf(add_site_event_vvvvvwf)
|
||||
{
|
||||
// set the function logic
|
||||
if (addreadme_vvvvvwf == 1)
|
||||
if (add_site_event_vvvvvwf == 1)
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwfvwe_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',0);
|
||||
jQuery('#jform_php_site_event').prop('required','required');
|
||||
jQuery('#jform_php_site_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_site_event').addClass('required');
|
||||
jform_vvvvvwfvwe_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwfvwe_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',1);
|
||||
jQuery('#jform_php_site_event').removeAttr('required');
|
||||
jQuery('#jform_php_site_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_site_event').removeClass('required');
|
||||
jform_vvvvvwfvwe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwg function
|
||||
function vvvvvwg(addreadme_vvvvvwg)
|
||||
{
|
||||
// set the function logic
|
||||
if (addreadme_vvvvvwg == 1)
|
||||
{
|
||||
jQuery('.note_readme').closest('.control-group').show();
|
||||
jQuery('#jform_readme-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvvwfvwe_required)
|
||||
if (jform_vvvvvwgvwf_required)
|
||||
{
|
||||
updateFieldRequired('readme',0);
|
||||
jQuery('#jform_readme').prop('required','required');
|
||||
jQuery('#jform_readme').attr('aria-required',true);
|
||||
jQuery('#jform_readme').addClass('required');
|
||||
jform_vvvvvwfvwe_required = false;
|
||||
jform_vvvvvwgvwf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -439,22 +474,22 @@ function vvvvvwf(addreadme_vvvvvwf)
|
||||
{
|
||||
jQuery('.note_readme').closest('.control-group').hide();
|
||||
jQuery('#jform_readme-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwfvwe_required)
|
||||
if (!jform_vvvvvwgvwf_required)
|
||||
{
|
||||
updateFieldRequired('readme',1);
|
||||
jQuery('#jform_readme').removeAttr('required');
|
||||
jQuery('#jform_readme').removeAttr('aria-required');
|
||||
jQuery('#jform_readme').removeClass('required');
|
||||
jform_vvvvvwfvwe_required = true;
|
||||
jform_vvvvvwgvwf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwg function
|
||||
function vvvvvwg(add_update_server_vvvvvwg)
|
||||
// the vvvvvwh function
|
||||
function vvvvvwh(add_update_server_vvvvvwh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwg == 1)
|
||||
if (add_update_server_vvvvvwh == 1)
|
||||
{
|
||||
jQuery('#jform_update_server').closest('.control-group').show();
|
||||
}
|
||||
@ -464,11 +499,11 @@ function vvvvvwg(add_update_server_vvvvvwg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwh function
|
||||
function vvvvvwh(add_sales_server_vvvvvwh)
|
||||
// the vvvvvwi function
|
||||
function vvvvvwi(add_sales_server_vvvvvwi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sales_server_vvvvvwh == 1)
|
||||
if (add_sales_server_vvvvvwi == 1)
|
||||
{
|
||||
jQuery('#jform_sales_server_ftp').closest('.control-group').show();
|
||||
}
|
||||
@ -478,11 +513,11 @@ function vvvvvwh(add_sales_server_vvvvvwh)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwi function
|
||||
function vvvvvwi(add_license_vvvvvwi)
|
||||
// the vvvvvwj function
|
||||
function vvvvvwj(add_license_vvvvvwj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_license_vvvvvwi == 1)
|
||||
if (add_license_vvvvvwj == 1)
|
||||
{
|
||||
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
|
||||
jQuery('#jform_whmcs_key').closest('.control-group').show();
|
||||
@ -496,182 +531,166 @@ function vvvvvwi(add_license_vvvvvwi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwj function
|
||||
function vvvvvwj(add_php_postflight_install_vvvvvwj)
|
||||
// the vvvvvwk function
|
||||
function vvvvvwk(add_php_postflight_install_vvvvvwk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postflight_install_vvvvvwj == 1)
|
||||
if (add_php_postflight_install_vvvvvwk == 1)
|
||||
{
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').show();
|
||||
if (jform_vvvvvwjvwf_required)
|
||||
if (jform_vvvvvwkvwg_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_install',0);
|
||||
jQuery('#jform_php_postflight_install').prop('required','required');
|
||||
jQuery('#jform_php_postflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_install').addClass('required');
|
||||
jform_vvvvvwjvwf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwjvwf_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_install',1);
|
||||
jQuery('#jform_php_postflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_install').removeClass('required');
|
||||
jform_vvvvvwjvwf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwk function
|
||||
function vvvvvwk(add_php_postflight_update_vvvvvwk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postflight_update_vvvvvwk == 1)
|
||||
{
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
||||
if (jform_vvvvvwkvwg_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_update',0);
|
||||
jQuery('#jform_php_postflight_update').prop('required','required');
|
||||
jQuery('#jform_php_postflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_update').addClass('required');
|
||||
jform_vvvvvwkvwg_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwkvwg_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_update',1);
|
||||
jQuery('#jform_php_postflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_update').removeClass('required');
|
||||
updateFieldRequired('php_postflight_install',1);
|
||||
jQuery('#jform_php_postflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_install').removeClass('required');
|
||||
jform_vvvvvwkvwg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwl function
|
||||
function vvvvvwl(add_php_method_uninstall_vvvvvwl)
|
||||
function vvvvvwl(add_php_postflight_update_vvvvvwl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_method_uninstall_vvvvvwl == 1)
|
||||
if (add_php_postflight_update_vvvvvwl == 1)
|
||||
{
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
||||
if (jform_vvvvvwlvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_method_uninstall',0);
|
||||
jQuery('#jform_php_method_uninstall').prop('required','required');
|
||||
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
|
||||
jQuery('#jform_php_method_uninstall').addClass('required');
|
||||
updateFieldRequired('php_postflight_update',0);
|
||||
jQuery('#jform_php_postflight_update').prop('required','required');
|
||||
jQuery('#jform_php_postflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_update').addClass('required');
|
||||
jform_vvvvvwlvwh_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwlvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_method_uninstall',1);
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('required');
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
|
||||
jQuery('#jform_php_method_uninstall').removeClass('required');
|
||||
updateFieldRequired('php_postflight_update',1);
|
||||
jQuery('#jform_php_postflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_update').removeClass('required');
|
||||
jform_vvvvvwlvwh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwm function
|
||||
function vvvvvwm(add_php_preflight_install_vvvvvwm)
|
||||
function vvvvvwm(add_php_method_uninstall_vvvvvwm)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_preflight_install_vvvvvwm == 1)
|
||||
if (add_php_method_uninstall_vvvvvwm == 1)
|
||||
{
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
||||
if (jform_vvvvvwmvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_install',0);
|
||||
jQuery('#jform_php_preflight_install').prop('required','required');
|
||||
jQuery('#jform_php_preflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_install').addClass('required');
|
||||
updateFieldRequired('php_method_uninstall',0);
|
||||
jQuery('#jform_php_method_uninstall').prop('required','required');
|
||||
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
|
||||
jQuery('#jform_php_method_uninstall').addClass('required');
|
||||
jform_vvvvvwmvwi_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwmvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_install',1);
|
||||
jQuery('#jform_php_preflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_install').removeClass('required');
|
||||
updateFieldRequired('php_method_uninstall',1);
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('required');
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
|
||||
jQuery('#jform_php_method_uninstall').removeClass('required');
|
||||
jform_vvvvvwmvwi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwn function
|
||||
function vvvvvwn(add_php_preflight_update_vvvvvwn)
|
||||
function vvvvvwn(add_php_preflight_install_vvvvvwn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_preflight_update_vvvvvwn == 1)
|
||||
if (add_php_preflight_install_vvvvvwn == 1)
|
||||
{
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
||||
if (jform_vvvvvwnvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',0);
|
||||
jQuery('#jform_php_preflight_update').prop('required','required');
|
||||
jQuery('#jform_php_preflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_update').addClass('required');
|
||||
updateFieldRequired('php_preflight_install',0);
|
||||
jQuery('#jform_php_preflight_install').prop('required','required');
|
||||
jQuery('#jform_php_preflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_install').addClass('required');
|
||||
jform_vvvvvwnvwj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwnvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',1);
|
||||
jQuery('#jform_php_preflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_update').removeClass('required');
|
||||
updateFieldRequired('php_preflight_install',1);
|
||||
jQuery('#jform_php_preflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_install').removeClass('required');
|
||||
jform_vvvvvwnvwj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwo function
|
||||
function vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo)
|
||||
function vvvvvwo(add_php_preflight_update_vvvvvwo)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwo == 1 && add_update_server_vvvvvwo == 1)
|
||||
if (add_php_preflight_update_vvvvvwo == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
||||
if (jform_vvvvvwovwk_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',0);
|
||||
jQuery('#jform_php_preflight_update').prop('required','required');
|
||||
jQuery('#jform_php_preflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_update').addClass('required');
|
||||
jform_vvvvvwovwk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwovwk_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',1);
|
||||
jQuery('#jform_php_preflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_update').removeClass('required');
|
||||
jform_vvvvvwovwk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwp function
|
||||
function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
|
||||
function vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwp == 1 && update_server_target_vvvvvwp == 1)
|
||||
if (update_server_target_vvvvvwp == 1 && add_update_server_vvvvvwp == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
@ -684,10 +703,26 @@ function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
|
||||
}
|
||||
|
||||
// the vvvvvwq function
|
||||
function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
|
||||
function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwq == 2 && add_update_server_vvvvvwq == 1)
|
||||
if (add_update_server_vvvvvwq == 1 && update_server_target_vvvvvwq == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwr function
|
||||
function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwr == 2 && add_update_server_vvvvvwr == 1)
|
||||
{
|
||||
jQuery('.note_update_server_note_zip').closest('.control-group').show();
|
||||
}
|
||||
@ -697,11 +732,11 @@ function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvws function
|
||||
function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
|
||||
// the vvvvvwt function
|
||||
function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvws == 3 && add_update_server_vvvvvws == 1)
|
||||
if (update_server_target_vvvvvwt == 3 && add_update_server_vvvvvwt == 1)
|
||||
{
|
||||
jQuery('.note_update_server_note_other').closest('.control-group').show();
|
||||
}
|
||||
@ -711,64 +746,64 @@ function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwu function
|
||||
function vvvvvwu(add_update_server_vvvvvwu)
|
||||
// the vvvvvwv function
|
||||
function vvvvvwv(add_update_server_vvvvvwv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwu == 1)
|
||||
if (add_update_server_vvvvvwv == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_target').closest('.control-group').show();
|
||||
if (jform_vvvvvwuvwk_required)
|
||||
if (jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',0);
|
||||
jQuery('#jform_update_server_target').prop('required','required');
|
||||
jQuery('#jform_update_server_target').attr('aria-required',true);
|
||||
jQuery('#jform_update_server_target').addClass('required');
|
||||
jform_vvvvvwuvwk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_target').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwuvwk_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',1);
|
||||
jQuery('#jform_update_server_target').removeAttr('required');
|
||||
jQuery('#jform_update_server_target').removeAttr('aria-required');
|
||||
jQuery('#jform_update_server_target').removeClass('required');
|
||||
jform_vvvvvwuvwk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwv function
|
||||
function vvvvvwv(buildcomp_vvvvvwv)
|
||||
{
|
||||
// set the function logic
|
||||
if (buildcomp_vvvvvwv == 1)
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').show();
|
||||
if (jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',0);
|
||||
jQuery('#jform_buildcompsql').prop('required','required');
|
||||
jQuery('#jform_buildcompsql').attr('aria-required',true);
|
||||
jQuery('#jform_buildcompsql').addClass('required');
|
||||
jform_vvvvvwvvwl_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').hide();
|
||||
jQuery('#jform_update_server_target').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',1);
|
||||
jQuery('#jform_update_server_target').removeAttr('required');
|
||||
jQuery('#jform_update_server_target').removeAttr('aria-required');
|
||||
jQuery('#jform_update_server_target').removeClass('required');
|
||||
jform_vvvvvwvvwl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvww function
|
||||
function vvvvvww(buildcomp_vvvvvww)
|
||||
{
|
||||
// set the function logic
|
||||
if (buildcomp_vvvvvww == 1)
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').show();
|
||||
if (jform_vvvvvwwvwm_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',0);
|
||||
jQuery('#jform_buildcompsql').prop('required','required');
|
||||
jQuery('#jform_buildcompsql').attr('aria-required',true);
|
||||
jQuery('#jform_buildcompsql').addClass('required');
|
||||
jform_vvvvvwwvwm_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwwvwm_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',1);
|
||||
jQuery('#jform_buildcompsql').removeAttr('required');
|
||||
jQuery('#jform_buildcompsql').removeAttr('aria-required');
|
||||
jQuery('#jform_buildcompsql').removeClass('required');
|
||||
jform_vvvvvwvvwl_required = true;
|
||||
jform_vvvvvwwvwm_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -169,10 +169,27 @@
|
||||
filter="HTML"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT" />
|
||||
<!-- Add_update_server Field. Type: Radio. (joomla)-->
|
||||
<!-- Readme Field. Type: Editor. (joomla)-->
|
||||
<field type="editor"
|
||||
name="readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
|
||||
default="You can use all the normal markdown, including the place-holders."
|
||||
width="100%"
|
||||
height="1200px"
|
||||
buttons="false"
|
||||
editor="none"
|
||||
filter="raw"
|
||||
required="true" />
|
||||
<!-- Note_version_options_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_version_options_two"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_VERSION_OPTIONS_TWO_DESCRIPTION"
|
||||
class="alert alert-info note_version_options_two"
|
||||
showon="mvc_versiondate:2" />
|
||||
<!-- Add_css_site Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL"
|
||||
name="add_css_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_SITE_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -180,19 +197,6 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_version_options_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_version_options_two"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_VERSION_OPTIONS_TWO_DESCRIPTION"
|
||||
class="alert alert-info note_version_options_two"
|
||||
showon="mvc_versiondate:2" />
|
||||
<!-- Note_botton_component_dashboard Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_botton_component_dashboard"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_botton_component_dashboard" />
|
||||
<!-- Note_version_options_three Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_version_options_three"
|
||||
@ -222,16 +226,16 @@
|
||||
<option value="2">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_USE_ONLY_FIRST_TWO_NUMBER_OF_GLOBAL_VERSION_ONEZEROX</option>
|
||||
<option value="3">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_USE_ONLY_FIRST_NUMBER_OF_GLOBAL_VERSION_ONEXX</option>
|
||||
</field>
|
||||
<!-- Php_postflight_update Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_postflight_install Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
name="php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_HINT"
|
||||
required="true" />
|
||||
<!-- Description Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
@ -243,11 +247,11 @@
|
||||
class="text_area span12"
|
||||
filter="HTML"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_HINT" />
|
||||
<!-- Sales_server_ftp Field. Type: Ftps. (custom)-->
|
||||
<!-- Update_server_ftp Field. Type: Ftps. (custom)-->
|
||||
<field type="ftps"
|
||||
name="sales_server_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION"
|
||||
name="update_server_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
@ -282,16 +286,16 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Php_preflight_update Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_preflight_install Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
name="php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_HINT"
|
||||
required="true" />
|
||||
<!-- Addfootable Field. Type: List. (joomla)-->
|
||||
<field type="list"
|
||||
@ -307,16 +311,16 @@
|
||||
<option value="3">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_FOOTABLE_VTHREE</option>
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_FOOTABLE_VTWO</option>
|
||||
</field>
|
||||
<!-- Sql Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_method_uninstall Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
|
||||
name="php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_helper_admin Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
@ -329,13 +333,19 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_update_server_note_zip"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_update_server_note_zip" />
|
||||
<!-- Update_server_target Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="update_server_target"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_FTP</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP</option>
|
||||
<option value="3">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER</option>
|
||||
</field>
|
||||
<!-- Add_php_helper_site Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_helper_site"
|
||||
@ -468,10 +478,10 @@
|
||||
<option value="3">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_LOCK_DOWN_USE_USED_TO_VERIFY_OWNERSHIP</option>
|
||||
<option value="4">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE</option>
|
||||
</field>
|
||||
<!-- Add_css Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_css_admin Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_css"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_LABEL"
|
||||
name="add_css_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_ADMIN_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -486,17 +496,13 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_WHMCS_LISENCING_NOTE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_whmcs_lisencing_note" />
|
||||
<!-- Php_preflight_install Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_HINT"
|
||||
required="true" />
|
||||
<!-- Note_botton_component_dashboard Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_botton_component_dashboard"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_botton_component_dashboard" />
|
||||
<!-- Whmcs_key Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="whmcs_key"
|
||||
@ -508,16 +514,16 @@
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT" />
|
||||
<!-- Php_postflight_install Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_preflight_update Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
name="php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_HINT"
|
||||
required="true" />
|
||||
<!-- Whmcs_url Field. Type: Url. (joomla)-->
|
||||
<field type="url"
|
||||
@ -531,16 +537,16 @@
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_HINT" />
|
||||
<!-- Php_method_uninstall Field. Type: Textarea. (joomla)-->
|
||||
<!-- Php_postflight_update Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
|
||||
name="php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_HINT"
|
||||
required="true" />
|
||||
<!-- License Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
@ -554,16 +560,16 @@
|
||||
filter="HTML"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_LICENSE_HINT"
|
||||
required="true" />
|
||||
<!-- Readme Field. Type: Editor. (joomla)-->
|
||||
<field type="editor"
|
||||
name="readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
|
||||
default="You can use all the normal markdown, including the place-holders."
|
||||
width="100%"
|
||||
height="1200px"
|
||||
buttons="false"
|
||||
editor="none"
|
||||
<!-- Sql Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
|
||||
required="true" />
|
||||
<!-- Bom Field. Type: Filelist. (joomla)-->
|
||||
<field type="filelist"
|
||||
@ -573,18 +579,16 @@
|
||||
default="default.txt"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BOM_DESCRIPTION"
|
||||
hide_default="true" />
|
||||
<!-- Update_server_target Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_update_server Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="update_server_target"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_DESCRIPTION"
|
||||
name="add_update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_FTP</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP</option>
|
||||
<option value="3">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER</option>
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Image Field. Type: Media. (joomla)-->
|
||||
<field type="media"
|
||||
@ -592,15 +596,38 @@
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION"
|
||||
directory="" />
|
||||
<!-- Update_server_ftp Field. Type: Ftps. (custom)-->
|
||||
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_update_server_note_zip"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_update_server_note_zip" />
|
||||
<!-- Buildcomp Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="buildcomp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Sales_server_ftp Field. Type: Ftps. (custom)-->
|
||||
<field type="ftps"
|
||||
name="update_server_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION"
|
||||
name="sales_server_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="true" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Name Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="name"
|
||||
@ -615,27 +642,6 @@
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT" />
|
||||
<!-- Buildcomp Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="buildcomp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Note_display_component_site_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_component_site_views"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION"
|
||||
class="note_display_component_site_views" />
|
||||
<!-- Note_moved_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_moved_views"
|
||||
@ -794,16 +800,16 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info to_ignore_note" />
|
||||
<!-- Css Field. Type: Textarea. (joomla)-->
|
||||
<!-- Css_admin Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_LABEL"
|
||||
name="css_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_HINT"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_HINT"
|
||||
required="true" />
|
||||
<!-- Toignore Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
@ -817,26 +823,26 @@
|
||||
filter="STRING"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_HINT"
|
||||
autocomplete="on" />
|
||||
<!-- Add_php_preflight_install Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Css_site Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_HINT"
|
||||
required="true" />
|
||||
<!-- Spacer_hr_e Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_e"
|
||||
hr="true"
|
||||
class="spacer_hr_e" />
|
||||
<!-- Add_php_preflight_update Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_php_preflight_install Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
name="add_php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -851,10 +857,10 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info jcb_export_package_note" />
|
||||
<!-- Add_php_postflight_install Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_php_preflight_update Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
name="add_php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -874,10 +880,10 @@
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_HINT" />
|
||||
<!-- Add_php_postflight_update Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_php_postflight_install Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
name="add_php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -898,10 +904,10 @@
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_PACKAGE_LINK_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_PACKAGE_LINK_HINT" />
|
||||
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_php_postflight_update Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_METHOD_UNINSTALL_LABEL"
|
||||
name="add_php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -922,10 +928,10 @@
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_BUY_LINK_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_BUY_LINK_HINT" />
|
||||
<!-- Add_sql Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL"
|
||||
name="add_php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_METHOD_UNINSTALL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -938,12 +944,13 @@
|
||||
name="spacer_hr_f"
|
||||
hr="true"
|
||||
class="spacer_hr_f" />
|
||||
<!-- Addreadme Field. Type: Radio. (joomla)-->
|
||||
<!-- Add_sql Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="addreadme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDREADME_LABEL"
|
||||
name="add_sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
@ -955,13 +962,16 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_on_contributors" />
|
||||
<!-- Note_readme Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_readme" />
|
||||
<!-- Addreadme Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="addreadme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDREADME_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Addcontributors Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="addcontributors"
|
||||
@ -1059,6 +1069,24 @@
|
||||
</field>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_readme Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_readme" />
|
||||
<!-- Emptycontributors Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="emptycontributors"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMPTYCONTRIBUTORS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMPTYCONTRIBUTORS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Update_server Field. Type: Url. (joomla)-->
|
||||
<field type="url"
|
||||
name="update_server"
|
||||
@ -1071,24 +1099,6 @@
|
||||
validated="url"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_HINT" />
|
||||
<!-- Emptycontributors Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="emptycontributors"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMPTYCONTRIBUTORS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMPTYCONTRIBUTORS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_update_server_note_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_update_server_note_ftp" />
|
||||
<!-- Number Field. Type: Number. (joomla)-->
|
||||
<field type="number"
|
||||
name="number"
|
||||
@ -1098,13 +1108,13 @@
|
||||
min="1"
|
||||
max="40"
|
||||
step="1" />
|
||||
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_update_server_note_other"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION"
|
||||
name="note_update_server_note_ftp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_update_server_note_other" />
|
||||
class="alert alert-success note_update_server_note_ftp" />
|
||||
<!-- Note_on_admin_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_on_admin_views"
|
||||
@ -1112,6 +1122,18 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_ADMIN_VIEWS_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_on_admin_views" />
|
||||
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_update_server_note_other"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_update_server_note_other" />
|
||||
<!-- Note_display_component_admin_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_component_admin_views"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_ADMIN_VIEWS_DESCRIPTION"
|
||||
class="note_display_component_admin_views" />
|
||||
<!-- Add_sales_server Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_sales_server"
|
||||
@ -1123,18 +1145,6 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_display_component_admin_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_component_admin_views"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_ADMIN_VIEWS_DESCRIPTION"
|
||||
class="note_display_component_admin_views" />
|
||||
<!-- Note_buildcomp_dynamic_mysql Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_buildcomp_dynamic_mysql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_buildcomp_dynamic_mysql" />
|
||||
<!-- Note_on_site_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_on_site_views"
|
||||
@ -1142,6 +1152,18 @@
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_SITE_VIEWS_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_on_site_views" />
|
||||
<!-- Note_buildcomp_dynamic_mysql Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_buildcomp_dynamic_mysql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_buildcomp_dynamic_mysql" />
|
||||
<!-- Note_display_component_site_views Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_component_site_views"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION"
|
||||
class="note_display_component_site_views" />
|
||||
<!-- Buildcompsql Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="buildcompsql"
|
||||
|
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyvvyr_required = false;
|
||||
jform_vvvvvyxvyu_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_view_vvvvvyv);
|
||||
var add_php_view_vvvvvyx = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_view_vvvvvyx);
|
||||
});
|
||||
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_php_view_vvvvvyv)
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_php_view_vvvvvyx)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyv == 1)
|
||||
if (add_php_view_vvvvvyx == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyvvyr_required)
|
||||
if (jform_vvvvvyxvyu_required)
|
||||
{
|
||||
updateFieldRequired('php_view',0);
|
||||
jQuery('#jform_php_view').prop('required','required');
|
||||
jQuery('#jform_php_view').attr('aria-required',true);
|
||||
jQuery('#jform_php_view').addClass('required');
|
||||
jform_vvvvvyvvyr_required = false;
|
||||
jform_vvvvvyxvyu_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyvvyr_required)
|
||||
if (!jform_vvvvvyxvyu_required)
|
||||
{
|
||||
updateFieldRequired('php_view',1);
|
||||
jQuery('#jform_php_view').removeAttr('required');
|
||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||
jQuery('#jform_php_view').removeClass('required');
|
||||
jform_vvvvvyvvyr_required = true;
|
||||
jform_vvvvvyxvyu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,18 +23,12 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzxvzo_required = false;
|
||||
jform_vvvvwadvzp_required = false;
|
||||
jform_vvvvvzzvzr_required = false;
|
||||
jform_vvvvwafvzs_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var how_vvvvvzw = jQuery("#jform_how").val();
|
||||
vvvvvzw(how_vvvvvzw);
|
||||
|
||||
var how_vvvvvzx = jQuery("#jform_how").val();
|
||||
vvvvvzx(how_vvvvvzx);
|
||||
|
||||
var how_vvvvvzy = jQuery("#jform_how").val();
|
||||
vvvvvzy(how_vvvvvzy);
|
||||
|
||||
@ -50,103 +44,16 @@ jQuery(document).ready(function()
|
||||
var how_vvvvwac = jQuery("#jform_how").val();
|
||||
vvvvwac(how_vvvvwac);
|
||||
|
||||
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwad(type_vvvvwad);
|
||||
var how_vvvvwad = jQuery("#jform_how").val();
|
||||
vvvvwad(how_vvvvwad);
|
||||
|
||||
var how_vvvvwae = jQuery("#jform_how").val();
|
||||
vvvvwae(how_vvvvwae);
|
||||
|
||||
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaf(type_vvvvwaf);
|
||||
});
|
||||
|
||||
// the vvvvvzw function
|
||||
function vvvvvzw(how_vvvvvzw)
|
||||
{
|
||||
if (isSet(how_vvvvvzw) && how_vvvvvzw.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvzw = how_vvvvvzw;
|
||||
var how_vvvvvzw = [];
|
||||
how_vvvvvzw.push(temp_vvvvvzw);
|
||||
}
|
||||
else if (!isSet(how_vvvvvzw))
|
||||
{
|
||||
var how_vvvvvzw = [];
|
||||
}
|
||||
var how = how_vvvvvzw.some(how_vvvvvzw_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 vvvvvzw Some function
|
||||
function how_vvvvvzw_SomeFunc(how_vvvvvzw)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvvzw == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvvzx function
|
||||
function vvvvvzx(how_vvvvvzx)
|
||||
{
|
||||
if (isSet(how_vvvvvzx) && how_vvvvvzx.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvzx = how_vvvvvzx;
|
||||
var how_vvvvvzx = [];
|
||||
how_vvvvvzx.push(temp_vvvvvzx);
|
||||
}
|
||||
else if (!isSet(how_vvvvvzx))
|
||||
{
|
||||
var how_vvvvvzx = [];
|
||||
}
|
||||
var how = how_vvvvvzx.some(how_vvvvvzx_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
if (jform_vvvvvzxvzo_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_vvvvvzxvzo_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzxvzo_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_vvvvvzxvzo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzx Some function
|
||||
function how_vvvvvzx_SomeFunc(how_vvvvvzx)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvvzx == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvvzy function
|
||||
function vvvvvzy(how_vvvvvzy)
|
||||
{
|
||||
@ -166,11 +73,11 @@ function vvvvvzy(how_vvvvvzy)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -178,7 +85,7 @@ function vvvvvzy(how_vvvvvzy)
|
||||
function how_vvvvvzy_SomeFunc(how_vvvvvzy)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvvzy == 2 || how_vvvvvzy == 3)
|
||||
if (how_vvvvvzy == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -204,11 +111,28 @@ function vvvvvzz(how_vvvvvzz)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
if (jform_vvvvvzzvzr_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_vvvvvzzvzr_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzzvzr_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_vvvvvzzvzr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -216,7 +140,7 @@ function vvvvvzz(how_vvvvvzz)
|
||||
function how_vvvvvzz_SomeFunc(how_vvvvvzz)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvvzz == 1 || how_vvvvvzz == 2 || how_vvvvvzz == 3)
|
||||
if (how_vvvvvzz == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -242,15 +166,11 @@ function vvvvwaa(how_vvvvwaa)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -258,7 +178,7 @@ function vvvvwaa(how_vvvvwaa)
|
||||
function how_vvvvwaa_SomeFunc(how_vvvvwaa)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwaa == 0)
|
||||
if (how_vvvvwaa == 2 || how_vvvvwaa == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -284,13 +204,11 @@ function vvvvwab(how_vvvvwab)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,7 +216,7 @@ function vvvvwab(how_vvvvwab)
|
||||
function how_vvvvwab_SomeFunc(how_vvvvwab)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwab == 1)
|
||||
if (how_vvvvwab == 1 || how_vvvvwab == 2 || how_vvvvwab == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -321,6 +239,88 @@ function vvvvwac(how_vvvvwac)
|
||||
var how = how_vvvvwac.some(how_vvvvwac_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwac Some function
|
||||
function how_vvvvwac_SomeFunc(how_vvvvwac)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwac == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwad function
|
||||
function vvvvwad(how_vvvvwad)
|
||||
{
|
||||
if (isSet(how_vvvvwad) && how_vvvvwad.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwad = how_vvvvwad;
|
||||
var how_vvvvwad = [];
|
||||
how_vvvvwad.push(temp_vvvvwad);
|
||||
}
|
||||
else if (!isSet(how_vvvvwad))
|
||||
{
|
||||
var how_vvvvwad = [];
|
||||
}
|
||||
var how = how_vvvvwad.some(how_vvvvwad_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 vvvvwad Some function
|
||||
function how_vvvvwad_SomeFunc(how_vvvvwad)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwad == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwae function
|
||||
function vvvvwae(how_vvvvwae)
|
||||
{
|
||||
if (isSet(how_vvvvwae) && how_vvvvwae.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwae = how_vvvvwae;
|
||||
var how_vvvvwae = [];
|
||||
how_vvvvwae.push(temp_vvvvwae);
|
||||
}
|
||||
else if (!isSet(how_vvvvwae))
|
||||
{
|
||||
var how_vvvvwae = [];
|
||||
}
|
||||
var how = how_vvvvwae.some(how_vvvvwae_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
@ -336,44 +336,44 @@ function vvvvwac(how_vvvvwac)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwac Some function
|
||||
function how_vvvvwac_SomeFunc(how_vvvvwac)
|
||||
// the vvvvwae Some function
|
||||
function how_vvvvwae_SomeFunc(how_vvvvwae)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwac == 4)
|
||||
if (how_vvvvwae == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwad function
|
||||
function vvvvwad(type_vvvvwad)
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(type_vvvvwaf)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwad == 2)
|
||||
if (type_vvvvwaf == 2)
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').show();
|
||||
if (jform_vvvvwadvzp_required)
|
||||
if (jform_vvvvwafvzs_required)
|
||||
{
|
||||
updateFieldRequired('libraries',0);
|
||||
jQuery('#jform_libraries').prop('required','required');
|
||||
jQuery('#jform_libraries').attr('aria-required',true);
|
||||
jQuery('#jform_libraries').addClass('required');
|
||||
jform_vvvvwadvzp_required = false;
|
||||
jform_vvvvwafvzs_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').hide();
|
||||
if (!jform_vvvvwadvzp_required)
|
||||
if (!jform_vvvvwafvzs_required)
|
||||
{
|
||||
updateFieldRequired('libraries',1);
|
||||
jQuery('#jform_libraries').removeAttr('required');
|
||||
jQuery('#jform_libraries').removeAttr('aria-required');
|
||||
jQuery('#jform_libraries').removeClass('required');
|
||||
jform_vvvvwadvzp_required = true;
|
||||
jform_vvvvwafvzs_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -416,6 +416,8 @@ function isSet(val)
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
getLinked();
|
||||
// now load the displays
|
||||
getAjaxDisplay('library_config');
|
||||
getAjaxDisplay('library_files_folders_urls');
|
||||
@ -470,6 +472,28 @@ function addButton(type,where){
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function getLinked_server(type){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;
|
||||
if(token.length > 0 && type > 0){
|
||||
var request = 'token='+token+'&type='+type;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: getUrl,
|
||||
dataType: 'jsonp',
|
||||
data: request,
|
||||
jsonp: 'callback'
|
||||
});
|
||||
}
|
||||
|
||||
function getLinked(){
|
||||
getLinked_server(1).done(function(result) {
|
||||
if(result){
|
||||
jQuery('#display_linked_to').html(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getAjaxDisplay(type){
|
||||
getAjaxDisplay_server(type).done(function(result) {
|
||||
|
@ -136,6 +136,11 @@
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_yes_behaviour_one" />
|
||||
<!-- Note_display_library_files_folders_urls Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_library_files_folders_urls"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_FILES_FOLDERS_URLS_DESCRIPTION"
|
||||
class="note_display_library_files_folders_urls" />
|
||||
<!-- Note_build_in_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_build_in_behaviour_one"
|
||||
@ -143,13 +148,13 @@
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_build_in_behaviour_one" />
|
||||
<!-- Note_no_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_no_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_no_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
name="note_no_behaviour_three"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-error note_no_behaviour_two" />
|
||||
class="alert alert-error note_no_behaviour_three" />
|
||||
<!-- Addconditions Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="addconditions"
|
||||
@ -244,13 +249,13 @@
|
||||
required="false" />
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_build_in_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_build_in_behaviour_three"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_DESCRIPTION"
|
||||
name="note_yes_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_build_in_behaviour_three" />
|
||||
class="alert alert-success note_yes_behaviour_two" />
|
||||
<!-- Php_setdocument Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_setdocument"
|
||||
@ -262,13 +267,13 @@
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_LIBRARY_PHP_SETDOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_no_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_build_in_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
name="note_no_behaviour_one"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_build_in_behaviour_two" />
|
||||
class="alert alert-error note_no_behaviour_one" />
|
||||
<!-- Libraries Field. Type: Librariesx. (custom)-->
|
||||
<field type="librariesx"
|
||||
name="libraries"
|
||||
@ -279,13 +284,13 @@
|
||||
default="0"
|
||||
required="false"
|
||||
button="true" />
|
||||
<!-- Note_no_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_build_in_behaviour_three Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_no_behaviour_three"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_THREE_DESCRIPTION"
|
||||
name="note_build_in_behaviour_three"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_THREE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-error note_no_behaviour_three" />
|
||||
class="alert alert-success note_build_in_behaviour_three" />
|
||||
<!-- Note_library_instruction Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_library_instruction"
|
||||
@ -293,34 +298,36 @@
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LIBRARY_INSTRUCTION_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_library_instruction" />
|
||||
<!-- Note_display_library_files_folders_urls Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_no_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_library_files_folders_urls"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_FILES_FOLDERS_URLS_DESCRIPTION"
|
||||
class="note_display_library_files_folders_urls" />
|
||||
<!-- Note_no_behaviour_one Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_no_behaviour_one"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION"
|
||||
name="note_no_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-error note_no_behaviour_one" />
|
||||
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_yes_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_yes_behaviour_two" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
class="alert alert-error note_no_behaviour_two" />
|
||||
<!-- Note_display_library_config Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_display_library_config"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_CONFIG_DESCRIPTION"
|
||||
class="note_display_library_config" />
|
||||
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_build_in_behaviour_two"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_build_in_behaviour_two" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_linked_to_notice"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_NOTE_LINKED_TO_NOTICE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_linked_to_notice" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
|
@ -23,318 +23,318 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyjvyf_required = false;
|
||||
jform_vvvvvykvyg_required = false;
|
||||
jform_vvvvvylvyh_required = false;
|
||||
jform_vvvvvymvyi_required = false;
|
||||
jform_vvvvvynvyj_required = false;
|
||||
jform_vvvvvyovyk_required = false;
|
||||
jform_vvvvvypvyl_required = false;
|
||||
jform_vvvvvyqvym_required = false;
|
||||
jform_vvvvvyrvyn_required = false;
|
||||
jform_vvvvvysvyo_required = false;
|
||||
jform_vvvvvylvyi_required = false;
|
||||
jform_vvvvvymvyj_required = false;
|
||||
jform_vvvvvynvyk_required = false;
|
||||
jform_vvvvvyovyl_required = false;
|
||||
jform_vvvvvypvym_required = false;
|
||||
jform_vvvvvyqvyn_required = false;
|
||||
jform_vvvvvyrvyo_required = false;
|
||||
jform_vvvvvysvyp_required = false;
|
||||
jform_vvvvvytvyq_required = false;
|
||||
jform_vvvvvyuvyr_required = false;
|
||||
jform_vvvvvyuvys_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyj(add_php_view_vvvvvyj);
|
||||
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_view_vvvvvyl);
|
||||
|
||||
var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_jview_display_vvvvvyk);
|
||||
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_jview_display_vvvvvym);
|
||||
|
||||
var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_jview_vvvvvyl);
|
||||
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_jview_vvvvvyn);
|
||||
|
||||
var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_document_vvvvvym);
|
||||
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_document_vvvvvyo);
|
||||
|
||||
var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyn(add_css_document_vvvvvyn);
|
||||
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_document_vvvvvyp);
|
||||
|
||||
var add_javascript_file_vvvvvyo = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyo(add_javascript_file_vvvvvyo);
|
||||
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyq(add_javascript_file_vvvvvyq);
|
||||
|
||||
var add_js_document_vvvvvyp = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_js_document_vvvvvyp);
|
||||
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_js_document_vvvvvyr);
|
||||
|
||||
var add_css_vvvvvyq = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyq(add_css_vvvvvyq);
|
||||
var add_css_vvvvvys = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvys(add_css_vvvvvys);
|
||||
|
||||
var add_php_ajax_vvvvvyr = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyr(add_php_ajax_vvvvvyr);
|
||||
var add_php_ajax_vvvvvyt = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_ajax_vvvvvyt);
|
||||
|
||||
var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvys(add_custom_button_vvvvvys);
|
||||
var add_custom_button_vvvvvyu = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyu(add_custom_button_vvvvvyu);
|
||||
|
||||
var button_position_vvvvvyt = jQuery("#jform_button_position").val();
|
||||
vvvvvyt(button_position_vvvvvyt);
|
||||
var button_position_vvvvvyv = jQuery("#jform_button_position").val();
|
||||
vvvvvyv(button_position_vvvvvyv);
|
||||
});
|
||||
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_php_view_vvvvvyj)
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_php_view_vvvvvyl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyj == 1)
|
||||
if (add_php_view_vvvvvyl == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyjvyf_required)
|
||||
if (jform_vvvvvylvyi_required)
|
||||
{
|
||||
updateFieldRequired('php_view',0);
|
||||
jQuery('#jform_php_view').prop('required','required');
|
||||
jQuery('#jform_php_view').attr('aria-required',true);
|
||||
jQuery('#jform_php_view').addClass('required');
|
||||
jform_vvvvvyjvyf_required = false;
|
||||
jform_vvvvvylvyi_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyjvyf_required)
|
||||
if (!jform_vvvvvylvyi_required)
|
||||
{
|
||||
updateFieldRequired('php_view',1);
|
||||
jQuery('#jform_php_view').removeAttr('required');
|
||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||
jQuery('#jform_php_view').removeClass('required');
|
||||
jform_vvvvvyjvyf_required = true;
|
||||
jform_vvvvvylvyi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_php_jview_display_vvvvvyk)
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_php_jview_display_vvvvvym)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyk == 1)
|
||||
if (add_php_jview_display_vvvvvym == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').show();
|
||||
if (jform_vvvvvykvyg_required)
|
||||
if (jform_vvvvvymvyj_required)
|
||||
{
|
||||
updateFieldRequired('php_jview_display',0);
|
||||
jQuery('#jform_php_jview_display').prop('required','required');
|
||||
jQuery('#jform_php_jview_display').attr('aria-required',true);
|
||||
jQuery('#jform_php_jview_display').addClass('required');
|
||||
jform_vvvvvykvyg_required = false;
|
||||
jform_vvvvvymvyj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').hide();
|
||||
if (!jform_vvvvvykvyg_required)
|
||||
if (!jform_vvvvvymvyj_required)
|
||||
{
|
||||
updateFieldRequired('php_jview_display',1);
|
||||
jQuery('#jform_php_jview_display').removeAttr('required');
|
||||
jQuery('#jform_php_jview_display').removeAttr('aria-required');
|
||||
jQuery('#jform_php_jview_display').removeClass('required');
|
||||
jform_vvvvvykvyg_required = true;
|
||||
jform_vvvvvymvyj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_php_jview_vvvvvyl)
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_php_jview_vvvvvyn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyl == 1)
|
||||
if (add_php_jview_vvvvvyn == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').show();
|
||||
if (jform_vvvvvylvyh_required)
|
||||
if (jform_vvvvvynvyk_required)
|
||||
{
|
||||
updateFieldRequired('php_jview',0);
|
||||
jQuery('#jform_php_jview').prop('required','required');
|
||||
jQuery('#jform_php_jview').attr('aria-required',true);
|
||||
jQuery('#jform_php_jview').addClass('required');
|
||||
jform_vvvvvylvyh_required = false;
|
||||
jform_vvvvvynvyk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').hide();
|
||||
if (!jform_vvvvvylvyh_required)
|
||||
if (!jform_vvvvvynvyk_required)
|
||||
{
|
||||
updateFieldRequired('php_jview',1);
|
||||
jQuery('#jform_php_jview').removeAttr('required');
|
||||
jQuery('#jform_php_jview').removeAttr('aria-required');
|
||||
jQuery('#jform_php_jview').removeClass('required');
|
||||
jform_vvvvvylvyh_required = true;
|
||||
jform_vvvvvynvyk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_php_document_vvvvvym)
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_document_vvvvvyo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvym == 1)
|
||||
if (add_php_document_vvvvvyo == 1)
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').show();
|
||||
if (jform_vvvvvymvyi_required)
|
||||
if (jform_vvvvvyovyl_required)
|
||||
{
|
||||
updateFieldRequired('php_document',0);
|
||||
jQuery('#jform_php_document').prop('required','required');
|
||||
jQuery('#jform_php_document').attr('aria-required',true);
|
||||
jQuery('#jform_php_document').addClass('required');
|
||||
jform_vvvvvymvyi_required = false;
|
||||
jform_vvvvvyovyl_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvymvyi_required)
|
||||
if (!jform_vvvvvyovyl_required)
|
||||
{
|
||||
updateFieldRequired('php_document',1);
|
||||
jQuery('#jform_php_document').removeAttr('required');
|
||||
jQuery('#jform_php_document').removeAttr('aria-required');
|
||||
jQuery('#jform_php_document').removeClass('required');
|
||||
jform_vvvvvymvyi_required = true;
|
||||
jform_vvvvvyovyl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_css_document_vvvvvyn)
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_css_document_vvvvvyp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyn == 1)
|
||||
if (add_css_document_vvvvvyp == 1)
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').show();
|
||||
if (jform_vvvvvynvyj_required)
|
||||
if (jform_vvvvvypvym_required)
|
||||
{
|
||||
updateFieldRequired('css_document',0);
|
||||
jQuery('#jform_css_document').prop('required','required');
|
||||
jQuery('#jform_css_document').attr('aria-required',true);
|
||||
jQuery('#jform_css_document').addClass('required');
|
||||
jform_vvvvvynvyj_required = false;
|
||||
jform_vvvvvypvym_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvynvyj_required)
|
||||
if (!jform_vvvvvypvym_required)
|
||||
{
|
||||
updateFieldRequired('css_document',1);
|
||||
jQuery('#jform_css_document').removeAttr('required');
|
||||
jQuery('#jform_css_document').removeAttr('aria-required');
|
||||
jQuery('#jform_css_document').removeClass('required');
|
||||
jform_vvvvvynvyj_required = true;
|
||||
jform_vvvvvypvym_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_javascript_file_vvvvvyo)
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_javascript_file_vvvvvyq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyo == 1)
|
||||
if (add_javascript_file_vvvvvyq == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').show();
|
||||
if (jform_vvvvvyovyk_required)
|
||||
if (jform_vvvvvyqvyn_required)
|
||||
{
|
||||
updateFieldRequired('javascript_file',0);
|
||||
jQuery('#jform_javascript_file').prop('required','required');
|
||||
jQuery('#jform_javascript_file').attr('aria-required',true);
|
||||
jQuery('#jform_javascript_file').addClass('required');
|
||||
jform_vvvvvyovyk_required = false;
|
||||
jform_vvvvvyqvyn_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyovyk_required)
|
||||
if (!jform_vvvvvyqvyn_required)
|
||||
{
|
||||
updateFieldRequired('javascript_file',1);
|
||||
jQuery('#jform_javascript_file').removeAttr('required');
|
||||
jQuery('#jform_javascript_file').removeAttr('aria-required');
|
||||
jQuery('#jform_javascript_file').removeClass('required');
|
||||
jform_vvvvvyovyk_required = true;
|
||||
jform_vvvvvyqvyn_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_js_document_vvvvvyp)
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_js_document_vvvvvyr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyp == 1)
|
||||
if (add_js_document_vvvvvyr == 1)
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').show();
|
||||
if (jform_vvvvvypvyl_required)
|
||||
if (jform_vvvvvyrvyo_required)
|
||||
{
|
||||
updateFieldRequired('js_document',0);
|
||||
jQuery('#jform_js_document').prop('required','required');
|
||||
jQuery('#jform_js_document').attr('aria-required',true);
|
||||
jQuery('#jform_js_document').addClass('required');
|
||||
jform_vvvvvypvyl_required = false;
|
||||
jform_vvvvvyrvyo_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvypvyl_required)
|
||||
if (!jform_vvvvvyrvyo_required)
|
||||
{
|
||||
updateFieldRequired('js_document',1);
|
||||
jQuery('#jform_js_document').removeAttr('required');
|
||||
jQuery('#jform_js_document').removeAttr('aria-required');
|
||||
jQuery('#jform_js_document').removeClass('required');
|
||||
jform_vvvvvypvyl_required = true;
|
||||
jform_vvvvvyrvyo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_css_vvvvvyq)
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_css_vvvvvys)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyq == 1)
|
||||
if (add_css_vvvvvys == 1)
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').show();
|
||||
if (jform_vvvvvyqvym_required)
|
||||
if (jform_vvvvvysvyp_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvyqvym_required = false;
|
||||
jform_vvvvvysvyp_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyqvym_required)
|
||||
if (!jform_vvvvvysvyp_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvyqvym_required = true;
|
||||
jform_vvvvvysvyp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_php_ajax_vvvvvyr)
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_php_ajax_vvvvvyt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyr == 1)
|
||||
if (add_php_ajax_vvvvvyt == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
|
||||
if (jform_vvvvvyrvyn_required)
|
||||
if (jform_vvvvvytvyq_required)
|
||||
{
|
||||
updateFieldRequired('php_ajaxmethod',0);
|
||||
jQuery('#jform_php_ajaxmethod').prop('required','required');
|
||||
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
|
||||
jQuery('#jform_php_ajaxmethod').addClass('required');
|
||||
jform_vvvvvyrvyn_required = false;
|
||||
jform_vvvvvytvyq_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -342,42 +342,42 @@ function vvvvvyr(add_php_ajax_vvvvvyr)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyrvyn_required)
|
||||
if (!jform_vvvvvytvyq_required)
|
||||
{
|
||||
updateFieldRequired('php_ajaxmethod',1);
|
||||
jQuery('#jform_php_ajaxmethod').removeAttr('required');
|
||||
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
|
||||
jQuery('#jform_php_ajaxmethod').removeClass('required');
|
||||
jform_vvvvvyrvyn_required = true;
|
||||
jform_vvvvvytvyq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_custom_button_vvvvvys)
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_custom_button_vvvvvyu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvys == 1)
|
||||
if (add_custom_button_vvvvvyu == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller').closest('.control-group').show();
|
||||
if (jform_vvvvvysvyo_required)
|
||||
if (jform_vvvvvyuvyr_required)
|
||||
{
|
||||
updateFieldRequired('php_controller',0);
|
||||
jQuery('#jform_php_controller').prop('required','required');
|
||||
jQuery('#jform_php_controller').attr('aria-required',true);
|
||||
jQuery('#jform_php_controller').addClass('required');
|
||||
jform_vvvvvysvyo_required = false;
|
||||
jform_vvvvvyuvyr_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_php_model').closest('.control-group').show();
|
||||
if (jform_vvvvvysvyp_required)
|
||||
if (jform_vvvvvyuvys_required)
|
||||
{
|
||||
updateFieldRequired('php_model',0);
|
||||
jQuery('#jform_php_model').prop('required','required');
|
||||
jQuery('#jform_php_model').attr('aria-required',true);
|
||||
jQuery('#jform_php_model').addClass('required');
|
||||
jform_vvvvvysvyp_required = false;
|
||||
jform_vvvvvyuvys_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -385,40 +385,40 @@ function vvvvvys(add_custom_button_vvvvvys)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller').closest('.control-group').hide();
|
||||
if (!jform_vvvvvysvyo_required)
|
||||
if (!jform_vvvvvyuvyr_required)
|
||||
{
|
||||
updateFieldRequired('php_controller',1);
|
||||
jQuery('#jform_php_controller').removeAttr('required');
|
||||
jQuery('#jform_php_controller').removeAttr('aria-required');
|
||||
jQuery('#jform_php_controller').removeClass('required');
|
||||
jform_vvvvvysvyo_required = true;
|
||||
jform_vvvvvyuvyr_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model').closest('.control-group').hide();
|
||||
if (!jform_vvvvvysvyp_required)
|
||||
if (!jform_vvvvvyuvys_required)
|
||||
{
|
||||
updateFieldRequired('php_model',1);
|
||||
jQuery('#jform_php_model').removeAttr('required');
|
||||
jQuery('#jform_php_model').removeAttr('aria-required');
|
||||
jQuery('#jform_php_model').removeClass('required');
|
||||
jform_vvvvvysvyp_required = true;
|
||||
jform_vvvvvyuvys_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(button_position_vvvvvyt)
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(button_position_vvvvvyv)
|
||||
{
|
||||
if (isSet(button_position_vvvvvyt) && button_position_vvvvvyt.constructor !== Array)
|
||||
if (isSet(button_position_vvvvvyv) && button_position_vvvvvyv.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvyt = button_position_vvvvvyt;
|
||||
var button_position_vvvvvyt = [];
|
||||
button_position_vvvvvyt.push(temp_vvvvvyt);
|
||||
var temp_vvvvvyv = button_position_vvvvvyv;
|
||||
var button_position_vvvvvyv = [];
|
||||
button_position_vvvvvyv.push(temp_vvvvvyv);
|
||||
}
|
||||
else if (!isSet(button_position_vvvvvyt))
|
||||
else if (!isSet(button_position_vvvvvyv))
|
||||
{
|
||||
var button_position_vvvvvyt = [];
|
||||
var button_position_vvvvvyv = [];
|
||||
}
|
||||
var button_position = button_position_vvvvvyt.some(button_position_vvvvvyt_SomeFunc);
|
||||
var button_position = button_position_vvvvvyv.some(button_position_vvvvvyv_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,11 +432,11 @@ function vvvvvyt(button_position_vvvvvyt)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyt Some function
|
||||
function button_position_vvvvvyt_SomeFunc(button_position_vvvvvyt)
|
||||
// the vvvvvyv Some function
|
||||
function button_position_vvvvvyv_SomeFunc(button_position_vvvvvyv)
|
||||
{
|
||||
// set the function logic
|
||||
if (button_position_vvvvvyt == 5)
|
||||
if (button_position_vvvvvyv == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -479,6 +479,33 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
getLinked();
|
||||
});
|
||||
|
||||
function getLinked_server(type){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;
|
||||
if(token.length > 0 && type > 0){
|
||||
var request = 'token='+token+'&type='+type;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: getUrl,
|
||||
dataType: 'jsonp',
|
||||
data: request,
|
||||
jsonp: 'callback'
|
||||
});
|
||||
}
|
||||
|
||||
function getLinked(){
|
||||
getLinked_server(1).done(function(result) {
|
||||
if(result){
|
||||
jQuery('#display_linked_to').html(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getSnippetDetails_server(snippetId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
|
||||
|
@ -138,27 +138,6 @@
|
||||
multiple="false"
|
||||
required="false"
|
||||
button="true" />
|
||||
<!-- Css Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_HINT"
|
||||
required="true" />
|
||||
<!-- Libraries Field. Type: Libraries. (custom)-->
|
||||
<field type="libraries"
|
||||
name="libraries"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="false"
|
||||
button="true" />
|
||||
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_add_language_string"
|
||||
@ -166,175 +145,6 @@
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="note_add_language_string" />
|
||||
<!-- Js_document Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="js_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- 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>
|
||||
<!-- 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_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" />
|
||||
<!-- Css_document Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- Default Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="default"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
|
||||
rows="20"
|
||||
cols="15"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT"
|
||||
required="true" />
|
||||
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_ajaxmethod"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
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">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
|
||||
</field>
|
||||
<!-- Add_php_view Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_view"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW_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: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="javascript_file"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_HINT"
|
||||
required="true" />
|
||||
<!-- 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>
|
||||
<!-- Php_model Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_model"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_HINT"
|
||||
required="false" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- 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>
|
||||
<!-- 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" />
|
||||
<!-- 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>
|
||||
<!-- 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" />
|
||||
<!-- Add_css_document Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_css_document"
|
||||
@ -346,31 +156,16 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
|
||||
</field>
|
||||
<!-- Dynamic_get Field. Type: Dynamicgets. (custom)-->
|
||||
<field type="dynamicgets"
|
||||
name="dynamic_get"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_DESCRIPTION"
|
||||
multiple="false"
|
||||
required="false" />
|
||||
<!-- 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"
|
||||
<!-- Libraries Field. Type: Libraries. (custom)-->
|
||||
<field type="libraries"
|
||||
name="libraries"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
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>
|
||||
<!-- 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" />
|
||||
required="false"
|
||||
button="true" />
|
||||
<!-- Add_php_ajax Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_ajax"
|
||||
@ -382,10 +177,45 @@
|
||||
<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)-->
|
||||
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT"
|
||||
required="true" />
|
||||
<!-- Php_document Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- 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_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" />
|
||||
<!-- Add_css Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_custom_button"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL"
|
||||
name="add_css"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -393,6 +223,12 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_SITE_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_SITE_VIEW_NOTE_SNIPPET_USAGE_LABEL"
|
||||
heading="h4"
|
||||
class="snippet-usage note_snippet_usage" />
|
||||
<!-- Ajax_input Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="ajax_input"
|
||||
@ -500,6 +336,181 @@
|
||||
class="inputbox" />
|
||||
</form>
|
||||
</field>
|
||||
<!-- Default Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="default"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
|
||||
rows="20"
|
||||
cols="15"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT"
|
||||
required="true" />
|
||||
<!-- Php_view Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_view"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_HINT"
|
||||
required="true" />
|
||||
<!-- 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 Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_HINT"
|
||||
required="true" />
|
||||
<!-- 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>
|
||||
<!-- Php_model Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_model"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_HINT"
|
||||
required="false" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Javascript_file Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="javascript_file"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_HINT"
|
||||
required="true" />
|
||||
<!-- 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: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="js_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- 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: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- Dynamic_get Field. Type: Dynamicgets. (custom)-->
|
||||
<field type="dynamicgets"
|
||||
name="dynamic_get"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_DESCRIPTION"
|
||||
multiple="false"
|
||||
required="false" />
|
||||
<!-- Css Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="css"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_HINT"
|
||||
required="true" />
|
||||
<!-- 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: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_ajaxmethod"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_HINT"
|
||||
required="true" />
|
||||
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_custom_button"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_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_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>
|
||||
<!-- Button_position Field. Type: List. (joomla)-->
|
||||
<field type="list"
|
||||
name="button_position"
|
||||
@ -518,17 +529,17 @@
|
||||
<option value="4">COM_COMPONENTBUILDER_SITE_VIEW_BOTTOM_LEFT</option>
|
||||
<option value="5">COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM</option>
|
||||
</field>
|
||||
<!-- Php_document Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_document"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_view Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_view"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_VIEW_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_custom_toolbar_placeholder Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_custom_toolbar_placeholder"
|
||||
@ -536,17 +547,17 @@
|
||||
heading="h4"
|
||||
class="note_custom_toolbar_placeholder"
|
||||
showon="button_position:5" />
|
||||
<!-- Php_view Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_view"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_HINT"
|
||||
required="true" />
|
||||
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
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">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
|
||||
</field>
|
||||
<!-- Custom_button Field. Type: Subform. (joomla)-->
|
||||
<field type="subform"
|
||||
name="custom_button"
|
||||
@ -834,17 +845,17 @@
|
||||
</field>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview_display"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT"
|
||||
required="true" />
|
||||
<!-- 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>
|
||||
<!-- Php_controller Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_controller"
|
||||
@ -856,17 +867,13 @@
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_HINT"
|
||||
required="false" />
|
||||
<!-- Php_jview Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="php_jview"
|
||||
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL"
|
||||
rows="17"
|
||||
cols="5"
|
||||
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_HINT"
|
||||
required="true" />
|
||||
<!-- 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" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
|
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyuvyq_required = false;
|
||||
jform_vvvvvywvyt_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyu = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_view_vvvvvyu);
|
||||
var add_php_view_vvvvvyw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_view_vvvvvyw);
|
||||
});
|
||||
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_php_view_vvvvvyu)
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_php_view_vvvvvyw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyu == 1)
|
||||
if (add_php_view_vvvvvyw == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyuvyq_required)
|
||||
if (jform_vvvvvywvyt_required)
|
||||
{
|
||||
updateFieldRequired('php_view',0);
|
||||
jQuery('#jform_php_view').prop('required','required');
|
||||
jQuery('#jform_php_view').attr('aria-required',true);
|
||||
jQuery('#jform_php_view').addClass('required');
|
||||
jform_vvvvvyuvyq_required = false;
|
||||
jform_vvvvvywvyt_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyuvyq_required)
|
||||
if (!jform_vvvvvywvyt_required)
|
||||
{
|
||||
updateFieldRequired('php_view',1);
|
||||
jQuery('#jform_php_view').removeAttr('required');
|
||||
jQuery('#jform_php_view').removeAttr('aria-required');
|
||||
jQuery('#jform_php_view').removeClass('required');
|
||||
jform_vvvvvyuvyq_required = true;
|
||||
jform_vvvvvywvyt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ class ComponentbuilderModelFtp extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVzzlinked_components()
|
||||
public function getWaclinked_components()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
@ -1493,6 +1493,20 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
|
||||
}
|
||||
// remove from this dataset
|
||||
unset($item->addfolders);
|
||||
// update the add_css
|
||||
if (isset($item->add_css))
|
||||
{
|
||||
$item->add_css_admin = $item->add_css;
|
||||
}
|
||||
// remove from this dataset
|
||||
unset($item->add_css);
|
||||
// update the css
|
||||
if (isset($item->css) && ComponentbuilderHelper::checkString($item->css))
|
||||
{
|
||||
$item->css_admin = $item->css;
|
||||
}
|
||||
// remove from this dataset
|
||||
unset($item->css);
|
||||
// repeatable fields to update
|
||||
$updaterR = array(
|
||||
// repeatablefield => checker
|
||||
|
660
admin/models/import_language_translations.php
Normal file
660
admin/models/import_language_translations.php
Normal file
@ -0,0 +1,660 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage import_language_translations.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
/**
|
||||
* Componentbuilder Import_language_translations Model
|
||||
*/
|
||||
class ComponentbuilderModelImport_language_translations extends JModelLegacy
|
||||
{
|
||||
// set uploading values
|
||||
protected $use_streams = false;
|
||||
protected $allow_unsafe = false;
|
||||
protected $safeFileOptions = array();
|
||||
|
||||
/**
|
||||
* @var object JTable object
|
||||
*/
|
||||
protected $_table = null;
|
||||
|
||||
/**
|
||||
* @var object JTable object
|
||||
*/
|
||||
protected $_url = null;
|
||||
|
||||
/**
|
||||
* Model context string.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_context = 'com_componentbuilder.import_language_translations';
|
||||
|
||||
/**
|
||||
* Import Settings
|
||||
*/
|
||||
protected $getType = NULL;
|
||||
protected $dataType = NULL;
|
||||
|
||||
/**
|
||||
* Method to auto-populate the model state.
|
||||
*
|
||||
* Note. Calling getState in this method will result in recursion.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
protected function populateState()
|
||||
{
|
||||
$app = JFactory::getApplication('administrator');
|
||||
|
||||
$this->setState('message', $app->getUserState('com_componentbuilder.message'));
|
||||
$app->setUserState('com_componentbuilder.message', '');
|
||||
|
||||
// Recall the 'Import from Directory' path.
|
||||
$path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
|
||||
$this->setState('import.directory', $path);
|
||||
parent::populateState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Import an spreadsheet from either folder, url or upload.
|
||||
*
|
||||
* @return boolean result of import
|
||||
*
|
||||
*/
|
||||
public function import()
|
||||
{
|
||||
$this->setState('action', 'import');
|
||||
$app = JFactory::getApplication();
|
||||
$session = JFactory::getSession();
|
||||
$package = null;
|
||||
$continue = false;
|
||||
// get import type
|
||||
$this->getType = $app->input->getString('gettype', NULL);
|
||||
// get import type
|
||||
$this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL);
|
||||
|
||||
if ($package === null)
|
||||
{
|
||||
switch ($this->getType)
|
||||
{
|
||||
case 'folder':
|
||||
// Remember the 'Import from Directory' path.
|
||||
$app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory');
|
||||
$package = $this->_getPackageFromFolder();
|
||||
break;
|
||||
|
||||
case 'upload':
|
||||
$package = $this->_getPackageFromUpload();
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
$package = $this->_getPackageFromUrl();
|
||||
break;
|
||||
|
||||
case 'continue':
|
||||
$continue = true;
|
||||
$package = $session->get('package', null);
|
||||
$package = json_decode($package, true);
|
||||
// clear session
|
||||
$session->clear('package');
|
||||
$session->clear('dataType');
|
||||
$session->clear('hasPackage');
|
||||
break;
|
||||
|
||||
default:
|
||||
$app->setUserState('com_componentbuilder.message', JText::_('COM_COMPONENTBUILDER_IMPORT_NO_IMPORT_TYPE_FOUND'));
|
||||
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Was the package valid?
|
||||
if (!$package || !$package['type'])
|
||||
{
|
||||
if (in_array($this->getType, array('upload', 'url')))
|
||||
{
|
||||
$this->remove($package['packagename']);
|
||||
}
|
||||
|
||||
$app->setUserState('com_componentbuilder.message', JText::_('COM_COMPONENTBUILDER_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// first link data to table headers
|
||||
if(!$continue){
|
||||
$package = json_encode($package);
|
||||
$session->set('package', $package);
|
||||
$session->set('dataType', $this->dataType);
|
||||
$session->set('hasPackage', true);
|
||||
return true;
|
||||
}
|
||||
// set the data
|
||||
$headerList = json_decode($session->get($this->dataType.'_VDM_IMPORTHEADERS', false), true);
|
||||
if (!$this->setData($package,$this->dataType,$headerList))
|
||||
{
|
||||
// There was an error importing the package
|
||||
$msg = JText::_('COM_COMPONENTBUILDER_IMPORT_ERROR');
|
||||
$back = $session->get('backto_VDM_IMPORT', NULL);
|
||||
if ($back)
|
||||
{
|
||||
$app->setUserState('com_componentbuilder.redirect_url', 'index.php?option=com_componentbuilder&view='.$back);
|
||||
$session->clear('backto_VDM_IMPORT');
|
||||
}
|
||||
$result = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Package imported sucessfully
|
||||
$msg = JText::sprintf('COM_COMPONENTBUILDER_IMPORT_SUCCESS', $package['packagename']);
|
||||
$back = $session->get('backto_VDM_IMPORT', NULL);
|
||||
if ($back)
|
||||
{
|
||||
$app->setUserState('com_componentbuilder.redirect_url', 'index.php?option=com_componentbuilder&view='.$back);
|
||||
$session->clear('backto_VDM_IMPORT');
|
||||
}
|
||||
$result = true;
|
||||
}
|
||||
|
||||
// Set some model state values
|
||||
$app->enqueueMessage($msg);
|
||||
|
||||
// remove file after import
|
||||
$this->remove($package['packagename']);
|
||||
$session->clear($this->getType.'_VDM_IMPORTHEADERS');
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Works out an importation spreadsheet from a HTTP upload
|
||||
*
|
||||
* @return spreadsheet definition or false on failure
|
||||
*/
|
||||
protected function _getPackageFromUpload()
|
||||
{
|
||||
// Get the uploaded file information
|
||||
$app = JFactory::getApplication();
|
||||
$input = $app->input;
|
||||
|
||||
// Do not change the filter type 'raw'. We need this to let files containing PHP code to upload. See JInputFiles::get.
|
||||
$userfile = $input->files->get('import_package', null, 'raw');
|
||||
|
||||
// Make sure that file uploads are enabled in php
|
||||
if (!(bool) ini_get('file_uploads'))
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTFILE'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// If there is no uploaded file, we have a problem...
|
||||
if (!is_array($userfile))
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_NO_FILE_SELECTED'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if there was a problem uploading the file.
|
||||
if ($userfile['error'] || $userfile['size'] < 1)
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTUPLOADERROR'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Build the appropriate paths
|
||||
$config = JFactory::getConfig();
|
||||
$tmp_dest = $config->get('tmp_path') . '/' . $userfile['name'];
|
||||
$tmp_src = $userfile['tmp_name'];
|
||||
|
||||
// Move uploaded file
|
||||
jimport('joomla.filesystem.file');
|
||||
$p_file = JFile::upload($tmp_src, $tmp_dest, $this->use_streams, $this->allow_unsafe, $this->safeFileOptions);
|
||||
|
||||
// Was the package downloaded?
|
||||
if (!$p_file)
|
||||
{
|
||||
$session = JFactory::getSession();
|
||||
$session->clear('package');
|
||||
$session->clear('dataType');
|
||||
$session->clear('hasPackage');
|
||||
// was not uploaded
|
||||
return false;
|
||||
}
|
||||
|
||||
// check that this is a valid spreadsheet
|
||||
$package = $this->check($userfile['name']);
|
||||
|
||||
return $package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Import an spreadsheet from a directory
|
||||
*
|
||||
* @return array Spreadsheet details or false on failure
|
||||
*
|
||||
*/
|
||||
protected function _getPackageFromFolder()
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
$input = $app->input;
|
||||
|
||||
// Get the path to the package to import
|
||||
$p_dir = $input->getString('import_directory');
|
||||
$p_dir = JPath::clean($p_dir);
|
||||
// Did you give us a valid path?
|
||||
if (!file_exists($p_dir))
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Detect the package type
|
||||
$type = $this->getType;
|
||||
|
||||
// Did you give us a valid package?
|
||||
if (!$type)
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE'), 'warning');
|
||||
}
|
||||
|
||||
// check the extention
|
||||
if(!$this->checkExtension($p_dir))
|
||||
{
|
||||
// set error message
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
$package['packagename'] = null;
|
||||
$package['dir'] = $p_dir;
|
||||
$package['type'] = $type;
|
||||
|
||||
return $package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Import an spreadsheet from a URL
|
||||
*
|
||||
* @return Package details or false on failure
|
||||
*
|
||||
*/
|
||||
protected function _getPackageFromUrl()
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
$input = $app->input;
|
||||
|
||||
// Get the URL of the package to import
|
||||
$url = $input->getString('import_url');
|
||||
|
||||
// Did you give us a URL?
|
||||
if (!$url)
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_ENTER_A_URL'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Download the package at the URL given
|
||||
$p_file = JInstallerHelper::downloadPackage($url);
|
||||
|
||||
// Was the package downloaded?
|
||||
if (!$p_file)
|
||||
{
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_INVALID_URL'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
// check that this is a valid spreadsheet
|
||||
$package = $this->check($p_file);
|
||||
|
||||
return $package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check a file and verifies it as a spreadsheet file
|
||||
* Supports .csv .xlsx .xls and .ods
|
||||
*
|
||||
* @param string $p_filename The uploaded package filename or import directory
|
||||
*
|
||||
* @return array of elements
|
||||
*
|
||||
*/
|
||||
protected function check($archivename)
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
// Clean the name
|
||||
$archivename = JPath::clean($archivename);
|
||||
|
||||
// check the extention
|
||||
if(!$this->checkExtension($archivename))
|
||||
{
|
||||
// Cleanup the import files
|
||||
$this->remove($archivename);
|
||||
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
$config = JFactory::getConfig();
|
||||
// set Package Name
|
||||
$check['packagename'] = $archivename;
|
||||
|
||||
// set directory
|
||||
$check['dir'] = $config->get('tmp_path'). '/' .$archivename;
|
||||
|
||||
// set type
|
||||
$check['type'] = $this->getType;
|
||||
|
||||
return $check;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the extension
|
||||
*
|
||||
* @param string $file Name of the uploaded file
|
||||
*
|
||||
* @return boolean True on success
|
||||
*
|
||||
*/
|
||||
protected function checkExtension($file)
|
||||
{
|
||||
// check the extention
|
||||
switch(strtolower(pathinfo($file, PATHINFO_EXTENSION)))
|
||||
{
|
||||
case 'xls':
|
||||
case 'ods':
|
||||
case 'csv':
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up temporary uploaded spreadsheet
|
||||
*
|
||||
* @param string $package Name of the uploaded spreadsheet file
|
||||
*
|
||||
* @return boolean True on success
|
||||
*
|
||||
*/
|
||||
protected function remove($package)
|
||||
{
|
||||
jimport('joomla.filesystem.file');
|
||||
|
||||
$config = JFactory::getConfig();
|
||||
$package = $config->get('tmp_path'). '/' .$package;
|
||||
|
||||
// Is the package file a valid file?
|
||||
if (is_file($package))
|
||||
{
|
||||
JFile::delete($package);
|
||||
}
|
||||
elseif (is_file(JPath::clean($package)))
|
||||
{
|
||||
// It might also be just a base filename
|
||||
JFile::delete(JPath::clean($package));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the data from the spreadsheet to the database
|
||||
*
|
||||
* @param string $package Paths to the uploaded package file
|
||||
*
|
||||
* @return boolean false on failure
|
||||
*
|
||||
**/
|
||||
protected function setData($package,$table,$target_headers)
|
||||
{
|
||||
if (ComponentbuilderHelper::checkArray($target_headers))
|
||||
{
|
||||
// make sure the file is loaded
|
||||
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
foreach($target_headers as $header)
|
||||
{
|
||||
$data['target_headers'][$header] = $jinput->getString($header, null);
|
||||
}
|
||||
// set the data
|
||||
if(isset($package['dir']))
|
||||
{
|
||||
$inputFileType = PHPExcel_IOFactory::identify($package['dir']);
|
||||
$excelReader = PHPExcel_IOFactory::createReader($inputFileType);
|
||||
$excelReader->setReadDataOnly(true);
|
||||
$excelObj = $excelReader->load($package['dir']);
|
||||
$data['array'] = $excelObj->getActiveSheet()->toArray(null, true,true,true);
|
||||
$excelObj->disconnectWorksheets();
|
||||
unset($excelObj);
|
||||
return $this->save($data,$table);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Save the data from the file to the database
|
||||
*
|
||||
* @param string $package Paths to the uploaded package file
|
||||
*
|
||||
* @return boolean false on failure
|
||||
*
|
||||
**/
|
||||
protected function save($data,$table)
|
||||
{
|
||||
// import the data if there is any
|
||||
if(ComponentbuilderHelper::checkArray($data['array']))
|
||||
{
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
// remove header if it has headers
|
||||
$id_key = $data['target_headers']['id'];
|
||||
$english_key = $data['target_headers']['English'];
|
||||
// get the first array set
|
||||
$firstSet = reset($data['array']);
|
||||
|
||||
// check if first array is a header array and remove if true
|
||||
if($firstSet[$id_key] == 'id' || $firstSet[$english_key] == 'English')
|
||||
{
|
||||
array_shift($data['array']);
|
||||
}
|
||||
|
||||
// make sure there is still values in array and that it was not only headers
|
||||
if(ComponentbuilderHelper::checkArray($data['array']) && $user->authorise($table.'.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||
{
|
||||
// set target.
|
||||
$target = array_flip($data['target_headers']);
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// set some defaults
|
||||
$todayDate = JFactory::getDate()->toSql();
|
||||
// get global action permissions
|
||||
$canDo = ComponentbuilderHelper::getActions($table);
|
||||
$canEdit = $canDo->get('core.edit');
|
||||
// proses the data
|
||||
foreach($data['array'] as $row)
|
||||
{
|
||||
$found = false;
|
||||
if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0)
|
||||
{
|
||||
// raw items import & update!
|
||||
$query = $db->getQuery(true);
|
||||
$query
|
||||
->select('version')
|
||||
->from($db->quoteName('#__componentbuilder_'.$table))
|
||||
->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key]));
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
}
|
||||
|
||||
if($found && $canEdit)
|
||||
{
|
||||
// update item
|
||||
$id = $row[$id_key];
|
||||
$version = $db->loadResult();
|
||||
// get languages
|
||||
$languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag');
|
||||
// reset all buckets
|
||||
$query = $db->getQuery(true);
|
||||
$fields = array();
|
||||
$translations = array();
|
||||
$counter = 0;
|
||||
// Fields to update.
|
||||
foreach($row as $key => $cell)
|
||||
{
|
||||
// ignore column
|
||||
if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'English' === $target[$key] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// update version
|
||||
if ('version' == $target[$key])
|
||||
{
|
||||
$cell = (int) $version + 1;
|
||||
}
|
||||
// verify publish authority
|
||||
if ('published' == $target[$key] && !$canState)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// set to translations
|
||||
if(in_array($target[$key], $languages))
|
||||
{
|
||||
// only add if it has a string
|
||||
if (ComponentbuilderHelper::checkString($cell))
|
||||
{
|
||||
$translations['translation'.$counter] = array('language' => $target[$key], 'translation' => $cell);
|
||||
$counter++;
|
||||
}
|
||||
}
|
||||
// set to update array
|
||||
elseif(in_array($key, $data['target_headers']) && is_numeric($cell))
|
||||
{
|
||||
$fields[] = $db->quoteName($target[$key]) . ' = ' . $cell;
|
||||
}
|
||||
elseif(in_array($key, $data['target_headers']) && is_string($cell))
|
||||
{
|
||||
$fields[] = $db->quoteName($target[$key]) . ' = ' . $db->quote($cell);
|
||||
}
|
||||
elseif(in_array($key, $data['target_headers']) && is_null($cell))
|
||||
{
|
||||
// if import data is null then set empty
|
||||
$fields[] = $db->quoteName($target[$key]) . " = ''";
|
||||
}
|
||||
}
|
||||
// set the translation
|
||||
if (ComponentbuilderHelper::checkArray($translations))
|
||||
{
|
||||
$fields[] = $db->quoteName('translation') . ' = ' . $db->quote(json_encode($translations, JSON_FORCE_OBJECT));
|
||||
}
|
||||
// load the defaults
|
||||
$fields[] = $db->quoteName('modified_by') . ' = ' . $db->quote($user->id);
|
||||
$fields[] = $db->quoteName('modified') . ' = ' . $db->quote($todayDate);
|
||||
// Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('id') . ' = ' . $id
|
||||
);
|
||||
|
||||
$query->update($db->quoteName('#__componentbuilder_'.$table))->set($fields)->where($conditions);
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function getAlias($name,$type = false)
|
||||
{
|
||||
// sanitize the name to an alias
|
||||
if (JFactory::getConfig()->get('unicodeslugs') == 1)
|
||||
{
|
||||
$alias = JFilterOutput::stringURLUnicodeSlug($name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$alias = JFilterOutput::stringURLSafe($name);
|
||||
}
|
||||
// must be a uniqe alias
|
||||
if ($type)
|
||||
{
|
||||
return $this->getUniqe($alias,'alias',$type);
|
||||
}
|
||||
return $alias;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate a uniqe value.
|
||||
*
|
||||
* @param string $field name.
|
||||
* @param string $value data.
|
||||
* @param string $type table.
|
||||
*
|
||||
* @return string New value.
|
||||
*/
|
||||
protected function getUniqe($value,$field,$type)
|
||||
{
|
||||
// insure the filed is always uniqe
|
||||
while (isset($this->uniqeValueArray[$type][$field][$value]))
|
||||
{
|
||||
$value = JString::increment($value, 'dash');
|
||||
}
|
||||
$this->uniqeValueArray[$type][$field][$value] = $value;
|
||||
return $value;
|
||||
}
|
||||
|
||||
protected function getAliasesUsed($table)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// first we check if there is a alias column
|
||||
$columns = $db->getTableColumns('#__componentbuilder_'.$table);
|
||||
if(isset($columns['alias'])){
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('alias')));
|
||||
$query->from($db->quoteName('#__componentbuilder_'.$table));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$aliases = $db->loadColumn();
|
||||
foreach($aliases as $alias)
|
||||
{
|
||||
$this->uniqeValueArray[$table]['alias'][$alias] = $alias;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
@ -108,28 +108,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->addcontributors = $addcontributors->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_update))
|
||||
if (!empty($item->readme))
|
||||
{
|
||||
// base64 Decode php_postflight_update.
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_update))
|
||||
{
|
||||
// base64 Decode php_preflight_update.
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_install))
|
||||
{
|
||||
// base64 Decode php_preflight_install.
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// base64 Decode readme.
|
||||
$item->readme = base64_decode($item->readme);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_install))
|
||||
@ -138,16 +120,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_install))
|
||||
{
|
||||
// base64 Decode php_preflight_install.
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_method_uninstall))
|
||||
{
|
||||
// base64 Decode php_method_uninstall.
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
}
|
||||
|
||||
if (!empty($item->readme))
|
||||
if (!empty($item->php_preflight_update))
|
||||
{
|
||||
// base64 Decode readme.
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// base64 Decode php_preflight_update.
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_update))
|
||||
{
|
||||
// base64 Decode php_postflight_update.
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_both))
|
||||
@ -186,10 +186,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
}
|
||||
|
||||
if (!empty($item->css))
|
||||
if (!empty($item->css_admin))
|
||||
{
|
||||
// base64 Decode css.
|
||||
$item->css = base64_decode($item->css);
|
||||
// base64 Decode css_admin.
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->css_site))
|
||||
{
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
}
|
||||
|
||||
if (!empty($item->buildcompsql))
|
||||
@ -283,7 +289,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVwmtranslation()
|
||||
public function getVwntranslation()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -408,6 +414,43 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->entranslation = '<small><em>(' . JText::_('COM_COMPONENTBUILDER_NOTRANSLATION') . ')</em></small> ' . ComponentbuilderHelper::htmlEscape($item->entranslation, 'UTF-8', true, 150) . $componentCounter;
|
||||
}
|
||||
}
|
||||
}
|
||||
// prep the lang strings for export
|
||||
if (isset($_export) && $_export && ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// remove some values completely
|
||||
unset($item->components);
|
||||
unset($item->params);
|
||||
unset($item->published);
|
||||
unset($item->created_by);
|
||||
unset($item->modified_by);
|
||||
unset($item->created);
|
||||
unset($item->modified);
|
||||
unset($item->version);
|
||||
unset($item->hits);
|
||||
unset($item->access);
|
||||
unset($item->ordering);
|
||||
// now adapt the entranslation
|
||||
if (isset($item->translation) && ComponentbuilderHelper::checkJson($item->translation))
|
||||
{
|
||||
$translations = json_decode($item->translation, true);
|
||||
if (ComponentbuilderHelper::checkArray($translations))
|
||||
{
|
||||
foreach ($translations as $language)
|
||||
{
|
||||
if (isset($language['translation']) && ComponentbuilderHelper::checkString($language['translation'])
|
||||
&& isset($language['language']) && ComponentbuilderHelper::checkString($language['language']))
|
||||
{
|
||||
$item->{$language['language']} = $language['translation'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// remove translation
|
||||
unset($item->translation);
|
||||
}
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
@ -1196,28 +1239,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['addcontributors'] = '';
|
||||
}
|
||||
|
||||
// Set the php_postflight_update string to base64 string.
|
||||
if (isset($data['php_postflight_update']))
|
||||
// Set the readme string to base64 string.
|
||||
if (isset($data['readme']))
|
||||
{
|
||||
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_update string to base64 string.
|
||||
if (isset($data['php_preflight_update']))
|
||||
{
|
||||
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_install string to base64 string.
|
||||
if (isset($data['php_preflight_install']))
|
||||
{
|
||||
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
|
||||
$data['readme'] = base64_encode($data['readme']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_install string to base64 string.
|
||||
@ -1226,16 +1251,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_install string to base64 string.
|
||||
if (isset($data['php_preflight_install']))
|
||||
{
|
||||
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
|
||||
}
|
||||
|
||||
// Set the php_method_uninstall string to base64 string.
|
||||
if (isset($data['php_method_uninstall']))
|
||||
{
|
||||
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
|
||||
}
|
||||
|
||||
// Set the readme string to base64 string.
|
||||
if (isset($data['readme']))
|
||||
// Set the php_preflight_update string to base64 string.
|
||||
if (isset($data['php_preflight_update']))
|
||||
{
|
||||
$data['readme'] = base64_encode($data['readme']);
|
||||
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_update string to base64 string.
|
||||
if (isset($data['php_postflight_update']))
|
||||
{
|
||||
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_helper_both string to base64 string.
|
||||
@ -1274,10 +1317,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['javascript'] = base64_encode($data['javascript']);
|
||||
}
|
||||
|
||||
// Set the css string to base64 string.
|
||||
if (isset($data['css']))
|
||||
// Set the css_admin string to base64 string.
|
||||
if (isset($data['css_admin']))
|
||||
{
|
||||
$data['css'] = base64_encode($data['css']);
|
||||
$data['css_admin'] = base64_encode($data['css_admin']);
|
||||
}
|
||||
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
{
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
}
|
||||
|
||||
// Set the buildcompsql string to base64 string.
|
||||
|
@ -1526,25 +1526,25 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode php_preflight_install
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// decrypt whmcs_key
|
||||
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
|
||||
}
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_helper_both
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
// decode php_helper_admin
|
||||
@ -1557,8 +1557,10 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode css
|
||||
$item->css = base64_decode($item->css);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// decrypt export_key
|
||||
|
@ -161,6 +161,43 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
}
|
||||
}
|
||||
}
|
||||
// prep the lang strings for export
|
||||
if (isset($_export) && $_export && ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// remove some values completely
|
||||
unset($item->components);
|
||||
unset($item->params);
|
||||
unset($item->published);
|
||||
unset($item->created_by);
|
||||
unset($item->modified_by);
|
||||
unset($item->created);
|
||||
unset($item->modified);
|
||||
unset($item->version);
|
||||
unset($item->hits);
|
||||
unset($item->access);
|
||||
unset($item->ordering);
|
||||
// now adapt the entranslation
|
||||
if (isset($item->translation) && ComponentbuilderHelper::checkJson($item->translation))
|
||||
{
|
||||
$translations = json_decode($item->translation, true);
|
||||
if (ComponentbuilderHelper::checkArray($translations))
|
||||
{
|
||||
foreach ($translations as $language)
|
||||
{
|
||||
if (isset($language['translation']) && ComponentbuilderHelper::checkString($language['translation'])
|
||||
&& isset($language['language']) && ComponentbuilderHelper::checkString($language['language']))
|
||||
{
|
||||
$item->{$language['language']} = $language['translation'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// remove translation
|
||||
unset($item->translation);
|
||||
}
|
||||
}
|
||||
|
||||
// return items
|
||||
return $items;
|
||||
@ -346,6 +383,43 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
$item->entranslation = '<small><em>(' . JText::_('COM_COMPONENTBUILDER_NOTRANSLATION') . ')</em></small> ' . ComponentbuilderHelper::htmlEscape($item->entranslation, 'UTF-8', true, 150) . $componentCounter;
|
||||
}
|
||||
}
|
||||
}
|
||||
// prep the lang strings for export
|
||||
if (isset($_export) && $_export && ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// remove some values completely
|
||||
unset($item->components);
|
||||
unset($item->params);
|
||||
unset($item->published);
|
||||
unset($item->created_by);
|
||||
unset($item->modified_by);
|
||||
unset($item->created);
|
||||
unset($item->modified);
|
||||
unset($item->version);
|
||||
unset($item->hits);
|
||||
unset($item->access);
|
||||
unset($item->ordering);
|
||||
// now adapt the entranslation
|
||||
if (isset($item->translation) && ComponentbuilderHelper::checkJson($item->translation))
|
||||
{
|
||||
$translations = json_decode($item->translation, true);
|
||||
if (ComponentbuilderHelper::checkArray($translations))
|
||||
{
|
||||
foreach ($translations as $language)
|
||||
{
|
||||
if (isset($language['translation']) && ComponentbuilderHelper::checkString($language['translation'])
|
||||
&& isset($language['language']) && ComponentbuilderHelper::checkString($language['language']))
|
||||
{
|
||||
$item->{$language['language']} = $language['translation'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// remove translation
|
||||
unset($item->translation);
|
||||
}
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
@ -353,31 +427,27 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get header.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// get the columns
|
||||
$columns = $db->getTableColumns("#__componentbuilder_language_translation");
|
||||
if (ComponentbuilderHelper::checkArray($columns))
|
||||
{
|
||||
// remove the headers you don't import/export.
|
||||
unset($columns['asset_id']);
|
||||
unset($columns['checked_out']);
|
||||
unset($columns['checked_out_time']);
|
||||
$headers = new stdClass();
|
||||
foreach ($columns as $column => $type)
|
||||
{
|
||||
$headers->{$column} = $column;
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
return false;
|
||||
/**
|
||||
* Method to get header.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
$languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag');
|
||||
// start setup of headers
|
||||
$headers = new stdClass();
|
||||
$headers->id = 'id';
|
||||
$headers->English = 'English';
|
||||
// add the languages
|
||||
if (ComponentbuilderHelper::checkArray($languages))
|
||||
{
|
||||
foreach ($languages as $language)
|
||||
{
|
||||
$headers->{$language} = $language;
|
||||
}
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,6 +64,11 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
public function getTable($type = 'site_view', $prefix = 'ComponentbuilderTable', $config = array())
|
||||
{
|
||||
return JTable::getInstance($type, $prefix, $config);
|
||||
}
|
||||
|
||||
public function getVDM()
|
||||
{
|
||||
return $this->vastDevMod;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,14 +108,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->ajax_input))
|
||||
{
|
||||
// Convert the ajax_input field to an array.
|
||||
@ -119,6 +116,14 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$item->ajax_input = $ajax_input->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.
|
||||
@ -127,10 +132,46 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$item->custom_button = $custom_button->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->css))
|
||||
if (!empty($item->php_jview_display))
|
||||
{
|
||||
// base64 Decode css.
|
||||
$item->css = base64_decode($item->css);
|
||||
// base64 Decode php_jview_display.
|
||||
$item->php_jview_display = base64_decode($item->php_jview_display);
|
||||
}
|
||||
|
||||
if (!empty($item->php_document))
|
||||
{
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
}
|
||||
|
||||
if (!empty($item->default))
|
||||
{
|
||||
// base64 Decode default.
|
||||
$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))
|
||||
{
|
||||
// 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.
|
||||
$item->javascript_file = base64_decode($item->javascript_file);
|
||||
}
|
||||
|
||||
if (!empty($item->js_document))
|
||||
@ -145,10 +186,10 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$item->css_document = base64_decode($item->css_document);
|
||||
}
|
||||
|
||||
if (!empty($item->default))
|
||||
if (!empty($item->css))
|
||||
{
|
||||
// base64 Decode default.
|
||||
$item->default = base64_decode($item->default);
|
||||
// base64 Decode css.
|
||||
$item->css = base64_decode($item->css);
|
||||
}
|
||||
|
||||
if (!empty($item->php_ajaxmethod))
|
||||
@ -157,48 +198,33 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_file))
|
||||
{
|
||||
// base64 Decode javascript_file.
|
||||
$item->javascript_file = base64_decode($item->javascript_file);
|
||||
}
|
||||
|
||||
if (!empty($item->php_model))
|
||||
{
|
||||
// base64 Decode php_model.
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
}
|
||||
|
||||
if (!empty($item->php_document))
|
||||
{
|
||||
// base64 Decode php_document.
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
}
|
||||
|
||||
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_controller))
|
||||
{
|
||||
// base64 Decode php_controller.
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
}
|
||||
|
||||
if (!empty($item->php_jview))
|
||||
{
|
||||
// base64 Decode php_jview.
|
||||
$item->php_jview = base64_decode($item->php_jview);
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
$id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $item->id;
|
||||
}
|
||||
// set the id and view name to session
|
||||
if ($vdm = ComponentbuilderHelper::get('site_view__'.$id))
|
||||
{
|
||||
$this->vastDevMod = $vdm;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->vastDevMod = ComponentbuilderHelper::randomkey(50);
|
||||
ComponentbuilderHelper::set($this->vastDevMod, 'site_view__'.$id);
|
||||
ComponentbuilderHelper::set('site_view__'.$id, $this->vastDevMod);
|
||||
}
|
||||
|
||||
// update the fields
|
||||
$objectUpdate = new stdClass();
|
||||
$objectUpdate->id = (int) $item->id;
|
||||
@ -977,19 +1003,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 ajax_input items to data.
|
||||
if (isset($data['ajax_input']) && is_array($data['ajax_input']))
|
||||
{
|
||||
@ -1003,6 +1016,19 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$data['ajax_input'] = '';
|
||||
}
|
||||
|
||||
// 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']))
|
||||
{
|
||||
@ -1016,10 +1042,46 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$data['custom_button'] = '';
|
||||
}
|
||||
|
||||
// Set the css string to base64 string.
|
||||
if (isset($data['css']))
|
||||
// Set the php_jview_display string to base64 string.
|
||||
if (isset($data['php_jview_display']))
|
||||
{
|
||||
$data['css'] = base64_encode($data['css']);
|
||||
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
|
||||
}
|
||||
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
{
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
}
|
||||
|
||||
// Set the default string to base64 string.
|
||||
if (isset($data['default']))
|
||||
{
|
||||
$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 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']))
|
||||
{
|
||||
$data['javascript_file'] = base64_encode($data['javascript_file']);
|
||||
}
|
||||
|
||||
// Set the js_document string to base64 string.
|
||||
@ -1034,10 +1096,10 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$data['css_document'] = base64_encode($data['css_document']);
|
||||
}
|
||||
|
||||
// Set the default string to base64 string.
|
||||
if (isset($data['default']))
|
||||
// Set the css string to base64 string.
|
||||
if (isset($data['css']))
|
||||
{
|
||||
$data['default'] = base64_encode($data['default']);
|
||||
$data['css'] = base64_encode($data['css']);
|
||||
}
|
||||
|
||||
// Set the php_ajaxmethod string to base64 string.
|
||||
@ -1046,46 +1108,10 @@ class ComponentbuilderModelSite_view extends JModelAdmin
|
||||
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
|
||||
}
|
||||
|
||||
// Set the javascript_file string to base64 string.
|
||||
if (isset($data['javascript_file']))
|
||||
{
|
||||
$data['javascript_file'] = base64_encode($data['javascript_file']);
|
||||
}
|
||||
|
||||
// Set the php_model string to base64 string.
|
||||
if (isset($data['php_model']))
|
||||
{
|
||||
$data['php_model'] = base64_encode($data['php_model']);
|
||||
}
|
||||
|
||||
// Set the php_document string to base64 string.
|
||||
if (isset($data['php_document']))
|
||||
{
|
||||
$data['php_document'] = base64_encode($data['php_document']);
|
||||
}
|
||||
|
||||
// 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_controller string to base64 string.
|
||||
if (isset($data['php_controller']))
|
||||
{
|
||||
$data['php_controller'] = base64_encode($data['php_controller']);
|
||||
}
|
||||
|
||||
// Set the php_jview string to base64 string.
|
||||
if (isset($data['php_jview']))
|
||||
{
|
||||
$data['php_jview'] = base64_encode($data['php_jview']);
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
|
@ -266,30 +266,30 @@ class ComponentbuilderModelSite_views extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode css
|
||||
$item->css = base64_decode($item->css);
|
||||
// decode php_jview_display
|
||||
$item->php_jview_display = base64_decode($item->php_jview_display);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode default
|
||||
$item->default = base64_decode($item->default);
|
||||
// decode php_view
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
// 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
|
||||
$item->js_document = base64_decode($item->js_document);
|
||||
// decode css_document
|
||||
$item->css_document = base64_decode($item->css_document);
|
||||
// decode default
|
||||
$item->default = base64_decode($item->default);
|
||||
// decode css
|
||||
$item->css = base64_decode($item->css);
|
||||
// decode php_ajaxmethod
|
||||
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
|
||||
// decode javascript_file
|
||||
$item->javascript_file = base64_decode($item->javascript_file);
|
||||
// decode php_model
|
||||
$item->php_model = base64_decode($item->php_model);
|
||||
// decode php_document
|
||||
$item->php_document = base64_decode($item->php_document);
|
||||
// decode php_view
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
// decode php_jview_display
|
||||
$item->php_jview_display = base64_decode($item->php_jview_display);
|
||||
// decode php_controller
|
||||
$item->php_controller = base64_decode($item->php_controller);
|
||||
// decode php_jview
|
||||
$item->php_jview = base64_decode($item->php_jview);
|
||||
// unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
|
File diff suppressed because one or more lines are too long
1
admin/sql/updates/mysql/2.6.10.sql
Normal file
1
admin/sql/updates/mysql/2.6.10.sql
Normal file
@ -0,0 +1 @@
|
||||
|
1
admin/sql/updates/mysql/2.6.11.sql
Normal file
1
admin/sql/updates/mysql/2.6.11.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__componentbuilder_admin_view` ADD `php_import_headers` MEDIUMTEXT NOT NULL AFTER `php_import_ext`;
|
13
admin/sql/updates/mysql/2.6.9.sql
Normal file
13
admin/sql/updates/mysql/2.6.9.sql
Normal file
@ -0,0 +1,13 @@
|
||||
ALTER TABLE `#__componentbuilder_custom_admin_view` ADD `add_php_ajax` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_js_document`;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_custom_admin_view` ADD `ajax_input` TEXT NOT NULL AFTER `add_php_view`;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_custom_admin_view` ADD `php_ajaxmethod` MEDIUMTEXT NOT NULL AFTER `not_required`;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_joomla_component` CHANGE `css` `css_admin` TEXT NOT NULL;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_joomla_component` CHANGE `add_css` `add_css_admin` TINYINT(1) NOT NULL DEFAULT 0 ;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_joomla_component` ADD `add_css_site` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_css_admin`;
|
||||
|
||||
ALTER TABLE `#__componentbuilder_joomla_component` ADD `css_site` TEXT NOT NULL AFTER `css_admin`;
|
@ -194,9 +194,9 @@ class ComponentbuilderViewAdmin_fields extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,11 +194,11 @@ class ComponentbuilderViewAdmin_fields_conditions extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields_conditions.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields_conditions.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// Add Ajax Token
|
||||
$this->document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields_conditions/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields_conditions/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -72,6 +72,11 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||
<?php echo JLayoutHelper::render('admin_view.details_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<?php echo JLayoutHelper::render('admin_view.details_fullwidth', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'settings', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_SETTINGS', true)); ?>
|
||||
@ -214,431 +219,416 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvww function
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvwx function
|
||||
jQuery('#jform_add_css_view').on('keyup',function()
|
||||
{
|
||||
var add_css_view_vvvvvww = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvww(add_css_view_vvvvvww);
|
||||
var add_css_view_vvvvvwx = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvwx(add_css_view_vvvvvwx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_view_vvvvvww = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvww(add_css_view_vvvvvww);
|
||||
var add_css_view_vvvvvwx = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvwx(add_css_view_vvvvvwx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvwx function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvwy function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
var add_css_views_vvvvvwx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvwx(add_css_views_vvvvvwx);
|
||||
var add_css_views_vvvvvwy = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvwy(add_css_views_vvvvvwy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_views_vvvvvwx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvwx(add_css_views_vvvvvwx);
|
||||
var add_css_views_vvvvvwy = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvwy(add_css_views_vvvvvwy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvwy function
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvwz function
|
||||
jQuery('#jform_add_javascript_view_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_file_vvvvvwy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvwy(add_javascript_view_file_vvvvvwy);
|
||||
var add_javascript_view_file_vvvvvwz = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvwz(add_javascript_view_file_vvvvvwz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_file_vvvvvwy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvwy(add_javascript_view_file_vvvvvwy);
|
||||
var add_javascript_view_file_vvvvvwz = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvwz(add_javascript_view_file_vvvvvwz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvwz function
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvxa function
|
||||
jQuery('#jform_add_javascript_views_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_file_vvvvvwz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvwz(add_javascript_views_file_vvvvvwz);
|
||||
var add_javascript_views_file_vvvvvxa = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxa(add_javascript_views_file_vvvvvxa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_file_vvvvvwz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvwz(add_javascript_views_file_vvvvvwz);
|
||||
var add_javascript_views_file_vvvvvxa = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxa(add_javascript_views_file_vvvvvxa);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvxa function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvxb function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_footer_vvvvvxa = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxa(add_javascript_view_footer_vvvvvxa);
|
||||
var add_javascript_view_footer_vvvvvxb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxb(add_javascript_view_footer_vvvvvxb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_footer_vvvvvxa = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxa(add_javascript_view_footer_vvvvvxa);
|
||||
var add_javascript_view_footer_vvvvvxb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxb(add_javascript_view_footer_vvvvvxb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvxb function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvxc function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_footer_vvvvvxb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxb(add_javascript_views_footer_vvvvvxb);
|
||||
var add_javascript_views_footer_vvvvvxc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxc(add_javascript_views_footer_vvvvvxc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_footer_vvvvvxb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxb(add_javascript_views_footer_vvvvvxb);
|
||||
var add_javascript_views_footer_vvvvvxc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxc(add_javascript_views_footer_vvvvvxc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvxc function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvxd function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvvxc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxc(add_php_ajax_vvvvvxc);
|
||||
var add_php_ajax_vvvvvxd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxd(add_php_ajax_vvvvvxd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvvxc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxc(add_php_ajax_vvvvvxc);
|
||||
var add_php_ajax_vvvvvxd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxd(add_php_ajax_vvvvvxd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvxd function
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvxe function
|
||||
jQuery('#jform_add_php_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_getitem_vvvvvxd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxd(add_php_getitem_vvvvvxd);
|
||||
var add_php_getitem_vvvvvxe = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxe(add_php_getitem_vvvvvxe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitem_vvvvvxd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxd(add_php_getitem_vvvvvxd);
|
||||
var add_php_getitem_vvvvvxe = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxe(add_php_getitem_vvvvvxe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvxe function
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvxf function
|
||||
jQuery('#jform_add_php_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_vvvvvxe = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxe(add_php_getitems_vvvvvxe);
|
||||
var add_php_getitems_vvvvvxf = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxf(add_php_getitems_vvvvvxf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_vvvvvxe = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxe(add_php_getitems_vvvvvxe);
|
||||
var add_php_getitems_vvvvvxf = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxf(add_php_getitems_vvvvvxf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvxf function
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvxg function
|
||||
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_after_all_vvvvvxf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxf(add_php_getitems_after_all_vvvvvxf);
|
||||
var add_php_getitems_after_all_vvvvvxg = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxg(add_php_getitems_after_all_vvvvvxg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_after_all_vvvvvxf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxf(add_php_getitems_after_all_vvvvvxf);
|
||||
var add_php_getitems_after_all_vvvvvxg = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxg(add_php_getitems_after_all_vvvvvxg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvxg function
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvxh function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvxg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxg(add_php_getlistquery_vvvvvxg);
|
||||
var add_php_getlistquery_vvvvvxh = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_getlistquery_vvvvvxh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvxg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxg(add_php_getlistquery_vvvvvxg);
|
||||
var add_php_getlistquery_vvvvvxh = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_getlistquery_vvvvvxh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxh function
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxi function
|
||||
jQuery('#jform_add_php_before_save').on('keyup',function()
|
||||
{
|
||||
var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_before_save_vvvvvxh);
|
||||
var add_php_before_save_vvvvvxi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_before_save_vvvvvxi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_before_save_vvvvvxh);
|
||||
var add_php_before_save_vvvvvxi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_before_save_vvvvvxi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvxi function
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvxj function
|
||||
jQuery('#jform_add_php_save').on('keyup',function()
|
||||
{
|
||||
var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_save_vvvvvxi);
|
||||
var add_php_save_vvvvvxj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_save_vvvvvxj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_save_vvvvvxi);
|
||||
var add_php_save_vvvvvxj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_save_vvvvvxj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxj function
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxk function
|
||||
jQuery('#jform_add_php_postsavehook').on('keyup',function()
|
||||
{
|
||||
var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_postsavehook_vvvvvxj);
|
||||
var add_php_postsavehook_vvvvvxk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_postsavehook_vvvvvxk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_postsavehook_vvvvvxj);
|
||||
var add_php_postsavehook_vvvvvxk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_postsavehook_vvvvvxk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxk function
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxl function
|
||||
jQuery('#jform_add_php_allowedit').on('keyup',function()
|
||||
{
|
||||
var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_allowedit_vvvvvxk);
|
||||
var add_php_allowedit_vvvvvxl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_allowedit_vvvvvxl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_allowedit_vvvvvxk);
|
||||
var add_php_allowedit_vvvvvxl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_allowedit_vvvvvxl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxl function
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxm function
|
||||
jQuery('#jform_add_php_batchcopy').on('keyup',function()
|
||||
{
|
||||
var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_batchcopy_vvvvvxl);
|
||||
var add_php_batchcopy_vvvvvxm = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_batchcopy_vvvvvxm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_batchcopy_vvvvvxl);
|
||||
var add_php_batchcopy_vvvvvxm = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_batchcopy_vvvvvxm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxm function
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxn function
|
||||
jQuery('#jform_add_php_batchmove').on('keyup',function()
|
||||
{
|
||||
var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_batchmove_vvvvvxm);
|
||||
var add_php_batchmove_vvvvvxn = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_batchmove_vvvvvxn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_batchmove_vvvvvxm);
|
||||
var add_php_batchmove_vvvvvxn = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_batchmove_vvvvvxn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxn function
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxo function
|
||||
jQuery('#jform_add_php_before_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_before_publish_vvvvvxn);
|
||||
var add_php_before_publish_vvvvvxo = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_before_publish_vvvvvxo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_before_publish_vvvvvxn);
|
||||
var add_php_before_publish_vvvvvxo = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_before_publish_vvvvvxo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxo function
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxp function
|
||||
jQuery('#jform_add_php_after_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_after_publish_vvvvvxo);
|
||||
var add_php_after_publish_vvvvvxp = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_after_publish_vvvvvxp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_after_publish_vvvvvxo);
|
||||
var add_php_after_publish_vvvvvxp = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_after_publish_vvvvvxp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvxp function
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvxq function
|
||||
jQuery('#jform_add_php_before_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_before_delete_vvvvvxp);
|
||||
var add_php_before_delete_vvvvvxq = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_before_delete_vvvvvxq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_before_delete_vvvvvxp);
|
||||
var add_php_before_delete_vvvvvxq = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_before_delete_vvvvvxq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvxq function
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvxr function
|
||||
jQuery('#jform_add_php_after_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_after_delete_vvvvvxq);
|
||||
var add_php_after_delete_vvvvvxr = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_after_delete_vvvvvxr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_after_delete_vvvvvxq);
|
||||
var add_php_after_delete_vvvvvxr = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_after_delete_vvvvvxr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvxr function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvxs function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_document_vvvvvxr);
|
||||
var add_php_document_vvvvvxs = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_document_vvvvvxs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_document_vvvvvxr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvxs function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxs(add_sql_vvvvvxs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxs(add_sql_vvvvvxs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvxt function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt);
|
||||
var add_php_document_vvvvvxs = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_document_vvvvvxs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvxt function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt);
|
||||
vvvvvxt(add_sql_vvvvvxt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt);
|
||||
vvvvvxt(add_sql_vvvvvxt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvxv function
|
||||
// #jform_source listeners for source_vvvvvxu function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv);
|
||||
var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv);
|
||||
var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvxv function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvxu function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv);
|
||||
var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv);
|
||||
var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvxx function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
// #jform_source listeners for source_vvvvvxw function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvvxx = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvxx(add_custom_import_vvvvvxx);
|
||||
var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvvxx = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvxx(add_custom_import_vvvvvxx);
|
||||
var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvxw function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw);
|
||||
|
||||
});
|
||||
|
||||
@ -657,18 +647,33 @@ jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvxz function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvxz function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvvxz = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvxz(add_custom_import_vvvvvxz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvvxz = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvxz(add_custom_import_vvvvvxz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvya function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvxz(add_custom_button_vvvvvxz);
|
||||
var add_custom_button_vvvvvya = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvya(add_custom_button_vvvvvya);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvxz(add_custom_button_vvvvvxz);
|
||||
var add_custom_button_vvvvvya = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvya(add_custom_button_vvvvvya);
|
||||
|
||||
});
|
||||
|
||||
|
@ -194,19 +194,20 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_VIEW_NEW' : 'COM_COMPONENTBUILDER_ADMIN_VIEW_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_view.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_view.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// Add Ajax Token
|
||||
$this->document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_view/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_view/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
|
||||
// add Uikit v2 JavaScripts
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , array('version' => 'auto'));
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));
|
||||
// add the Uikit v2 style sheets
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , array('version' => 'auto'));
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , array('version' => 'auto'));
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
|
||||
// add Uikit v2 JavaScripts
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
|
||||
// add var key
|
||||
$this->document->addScriptDeclaration("var vastDevMod = '".$this->get('VDM')."';");
|
||||
JText::script('view not acceptable. Error');
|
||||
|
@ -214,7 +214,7 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_ADMIN_VIEWS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_views.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewAdmins_fields extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_ADMINS_FIELDS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admins_fields.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admins_fields.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewAdmins_fields_conditions extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_ADMINS_FIELDS_CONDITIONS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admins_fields_conditions.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admins_fields_conditions.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -162,12 +162,12 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
// The uikit css.
|
||||
if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3)
|
||||
{
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit'.$style.$size.'.css', array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit'.$style.$size.'.css', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
// The uikit js.
|
||||
if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3)
|
||||
{
|
||||
$this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit'.$size.'.js', array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit'.$size.'.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
}
|
||||
|
||||
// Load the needed uikit components in this view.
|
||||
@ -185,13 +185,13 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
if (JFile::exists(JPATH_ROOT.'/media/com_componentbuilder/uikit-v2/css/components/'.$name.$style.$size.'.css'))
|
||||
{
|
||||
// load the css.
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/'.$name.$style.$size.'.css', array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/'.$name.$style.$size.'.css', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
// check if the JavaScript file exists.
|
||||
if (JFile::exists(JPATH_ROOT.'/media/com_componentbuilder/uikit-v2/js/components/'.$name.$size.'.js'))
|
||||
{
|
||||
// load the js.
|
||||
$this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/'.$name.$size.'.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));
|
||||
$this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/'.$name.$size.'.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -199,7 +199,7 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
// add marked library
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/custom/marked.js");
|
||||
// add the document default css file
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_componentbuilder/assets/css/compiler.css', array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_componentbuilder/assets/css/compiler.css', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// Set the Custom CSS script to view
|
||||
$this->document->addStyleDeclaration("
|
||||
.j-sidebar-container {
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_admin_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_admin_views.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_admin_views/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_admin_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_admin_views/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_config extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_CONFIG_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_CONFIG_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_config.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_config/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_config.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_config/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_custom_admin_menus extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_custom_admin_menus.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_custom_admin_menus/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_custom_admin_menus.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_custom_admin_menus/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_custom_admin_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_custom_admin_views.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_custom_admin_views/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_custom_admin_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_custom_admin_views/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_dashboard extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_dashboard.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_dashboard/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_dashboard.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_dashboard/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_files_folders extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_files_folders.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_files_folders/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_files_folders.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_files_folders/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_mysql_tweaks extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_mysql_tweaks.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_mysql_tweaks/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_mysql_tweaks.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_mysql_tweaks/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_site_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_site_views.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_site_views/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_site_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_site_views/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -194,9 +194,9 @@ class ComponentbuilderViewComponent_updates extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_COMPONENT_UPDATES_NEW' : 'COM_COMPONENTBUILDER_COMPONENT_UPDATES_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_updates.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_updates/submitbutton.js", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/component_updates.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/component_updates/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
@ -91,12 +91,12 @@ JHtml::_('behavior.tooltip');
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'vast_development_method', JText::_('Vast Development Method', true)); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'notice_board', JText::_('Notice Board', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'vast_development_method_accordian', array('active' => 'vast_development_method_one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'vast_development_method_accordian', 'Notice Board', 'vast_development_method_one'); ?>
|
||||
<?php echo $this->loadTemplate('vast_development_method_notice_board');?>
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'notice_board_accordian', array('active' => 'notice_board_one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'Vast Development Method', 'notice_board_one'); ?>
|
||||
<?php echo $this->loadTemplate('notice_board_vast_development_method');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage default_vast_development_method_notice_board.php
|
||||
@subpackage default_notice_board_vast_development_method.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_admin_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_admin_views.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_admin_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_config extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_CONFIG'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_config.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_config.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_custom_admin_menus extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_CUSTOM_ADMIN_MENUS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_custom_admin_menus.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_custom_admin_menus.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_custom_admin_views extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_CUSTOM_ADMIN_VIEWS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_custom_admin_views.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_custom_admin_views.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_dashboard extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_DASHBOARD'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_dashboard.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_dashboard.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_files_folders extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_FILES_FOLDERS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_files_folders.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_files_folders.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,7 @@ class ComponentbuilderViewComponents_mysql_tweaks extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_COMPONENTS_MYSQL_TWEAKS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_mysql_tweaks.css", array('version' => 'auto'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/components_mysql_tweaks.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user