Get Demo Component to work on both J3! and J4! via legacy approach #1
@ -1,37 +1,37 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
||||||
Vast Development Method
|
Vast Development Method
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.0.3
|
@version 2.0.3
|
||||||
@build 8th February, 2021
|
@build 8th February, 2021
|
||||||
@created 18th October, 2016
|
@created 18th October, 2016
|
||||||
@package Demo
|
@package Demo
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
JHtml::_('behavior.tooltip');
|
//JHtml::_('behavior.tooltip');
|
||||||
JHtml::_('behavior.multiselect');
|
JHtml::_('behavior.multiselect');
|
||||||
JHtml::_('dropdown.init');
|
JHtml::_('dropdown.init');
|
||||||
JHtml::_('formbehavior.chosen', '.multipleAccessLevels', null, array('placeholder_text_multiple' => '- ' . JText::_('COM_DEMO_FILTER_SELECT_ACCESS') . ' -'));
|
JHtml::_('formbehavior.chosen', '.multipleAccessLevels', null, array('placeholder_text_multiple' => '- ' . JText::_('COM_DEMO_FILTER_SELECT_ACCESS') . ' -'));
|
||||||
JHtml::_('formbehavior.chosen', 'select');
|
JHtml::_('formbehavior.chosen', 'select');
|
||||||
if ($this->saveOrder)
|
if ($this->saveOrder)
|
||||||
{
|
{
|
||||||
$saveOrderingUrl = 'index.php?option=com_demo&task=looks.saveOrderAjax&tmpl=component';
|
$saveOrderingUrl = 'index.php?option=com_demo&task=looks.saveOrderAjax&tmpl=component';
|
||||||
JHtml::_('sortablelist.sortable', 'lookList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
|
JHtml::_('sortablelist.sortable', 'lookList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_demo&view=looks'); ?>" method="post" name="adminForm" id="adminForm">
|
<form action="<?php echo JRoute::_('index.php?option=com_demo&view=looks'); ?>" method="post" name="adminForm" id="adminForm">
|
||||||
<?php if(!empty( $this->sidebar)): ?>
|
<?php if(!empty( $this->sidebar)): ?>
|
||||||
<div id="j-sidebar-container" class="span2">
|
<div id="j-sidebar-container" class="span2">
|
||||||
@ -74,4 +74,4 @@ if ($this->saveOrder)
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<input type="hidden" name="task" value="" />
|
<input type="hidden" name="task" value="" />
|
||||||
<?php echo JHtml::_('form.token'); ?>
|
<?php echo JHtml::_('form.token'); ?>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user