You've already forked joomla_test
first commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
193
administrator/components/com_modules/views/module/tmpl/edit.php
Normal file
193
administrator/components/com_modules/views/module/tmpl/edit.php
Normal file
@ -0,0 +1,193 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.combobox');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
$hasContent = empty($this->item->module) || $this->item->module == 'custom' || $this->item->module == 'mod_custom';
|
||||
|
||||
// Get Params Fieldsets
|
||||
$this->fieldsets = $this->form->getFieldsets('params');
|
||||
|
||||
|
||||
$script = "Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'module.cancel' || document.formvalidator.isValid(document.id('module-form'))) {";
|
||||
if ($hasContent)
|
||||
{
|
||||
$script .= $this->form->getField('content')->save();
|
||||
}
|
||||
$script .= " Joomla.submitform(task, document.getElementById('module-form'));
|
||||
if (self != top)
|
||||
{
|
||||
window.top.setTimeout('window.parent.SqueezeBox.close()', 1000);
|
||||
}
|
||||
}
|
||||
}";
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration($script);
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_modules&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="module-form" class="form-validate form-horizontal">
|
||||
<fieldset>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#details" data-toggle="tab"><?php echo JText::_('JDETAILS'); ?></a></li>
|
||||
<li><a href="#options" data-toggle="tab"><?php echo JText::_('JOPTIONS'); ?></a></li>
|
||||
|
||||
<?php if ($hasContent) : ?>
|
||||
<li><a href="#custom" data-toggle="tab"><?php echo JText::_('COM_MODULES_CUSTOM_OUTPUT'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->client_id == 0) : ?>
|
||||
<li><a href="#assignment" data-toggle="tab"><?php echo JText::_('COM_MODULES_MENU_ASSIGNMENT'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="details">
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('title'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('title'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('showtitle'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('showtitle'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('position'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->loadTemplate('positions'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ((string) $this->item->xml->name != 'Login Form') : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('published'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('published'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('access'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('access'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('ordering'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('ordering'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ((string) $this->item->xml->name != 'Login Form') : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('publish_up'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('publish_up'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('publish_down'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('publish_down'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('language'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('language'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('note'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('note'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php if ($this->item->xml) : ?>
|
||||
<?php if ($text = trim($this->item->xml->description)) : ?>
|
||||
<blockquote>
|
||||
<h4>
|
||||
<?php echo JText::_('COM_MODULES_MODULE_DESCRIPTION'); ?>
|
||||
<?php if ($this->item->id) : ?>
|
||||
<span class="label label-info"><?php echo JText::_('JGRID_HEADING_ID'); ?> : <?php echo $this->item->id; ?></span>
|
||||
<?php endif; ?>
|
||||
</h4>
|
||||
<hr />
|
||||
<div>
|
||||
<?php echo JText::_($text); ?>
|
||||
</div>
|
||||
<hr />
|
||||
<div>
|
||||
<span class="label"><?php echo $this->item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?></span> / <span class="label"><?php if ($this->item->xml) echo ($text = (string) $this->item->xml->name) ? JText::_($text) : $this->item->module;else echo JText::_('COM_MODULES_ERR_XML');?></span>
|
||||
</div>
|
||||
</blockquote>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<div class="alert alert-error"><?php echo JText::_('COM_MODULES_ERR_XML'); ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="options">
|
||||
<?php echo $this->loadTemplate('options'); ?>
|
||||
</div>
|
||||
|
||||
<?php if ($hasContent) : ?>
|
||||
<div class="tab-pane" id="custom">
|
||||
<?php echo $this->form->getInput('content'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->client_id == 0) : ?>
|
||||
<div class="tab-pane" id="assignment">
|
||||
<?php echo $this->loadTemplate('assignment'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
<?php echo $this->form->getInput('module'); ?>
|
||||
<?php echo $this->form->getInput('client_id'); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -0,0 +1,150 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Initiasile related data.
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_menus/helpers/menus.php';
|
||||
$menuTypes = MenusHelper::getMenuLinks();
|
||||
|
||||
JHtml::_('script', 'jui/treeselectmenu.jquery.min.js', false, true);
|
||||
|
||||
$script = "
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
menuHide(jQuery('#jform_assignment').val());
|
||||
jQuery('#jform_assignment').change(function()
|
||||
{
|
||||
menuHide(jQuery(this).val());
|
||||
})
|
||||
});
|
||||
function menuHide(val)
|
||||
{
|
||||
if (val == 0 || val == '-')
|
||||
{
|
||||
jQuery('#menuselect-group').hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#menuselect-group').show();
|
||||
}
|
||||
}
|
||||
";
|
||||
// Add the script to the document head
|
||||
JFactory::getDocument()->addScriptDeclaration($script);
|
||||
?>
|
||||
<div class="control-group">
|
||||
<label id="jform_menus-lbl" class="control-label" for="jform_menus"><?php echo JText::_('COM_MODULES_MODULE_ASSIGN'); ?></label>
|
||||
|
||||
<div id="jform_menus" class="controls">
|
||||
<select name="jform[assignment]" id="jform_assignment">
|
||||
<?php echo JHtml::_('select.options', ModulesHelper::getAssignmentOptions($this->item->client_id), 'value', 'text', $this->item->assignment, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="menuselect-group" class="control-group">
|
||||
<label id="jform_menuselect-lbl" class="control-label" for="jform_menuselect"><?php echo JText::_('JGLOBAL_MENU_SELECTION'); ?></label>
|
||||
|
||||
<div id="jform_menuselect" class="controls">
|
||||
<?php if (!empty($menuTypes)) : ?>
|
||||
<?php $id = 'jform_menuselect'; ?>
|
||||
|
||||
<div class="well well-small">
|
||||
<div class="form-inline">
|
||||
<span class="small"><?php echo JText::_('JSELECT'); ?>:
|
||||
<a id="treeCheckAll" href="javascript://"><?php echo JText::_('JALL'); ?></a>,
|
||||
<a id="treeUncheckAll" href="javascript://"><?php echo JText::_('JNONE'); ?></a>
|
||||
</span>
|
||||
<span class="width-20">|</span>
|
||||
<span class="small"><?php echo JText::_('COM_MODULES_EXPAND'); ?>:
|
||||
<a id="treeExpandAll" href="javascript://"><?php echo JText::_('JALL'); ?></a>,
|
||||
<a id="treeCollapseAll" href="javascript://"><?php echo JText::_('JNONE'); ?></a>
|
||||
</span>
|
||||
<input type="text" id="treeselectfilter" name="treeselectfilter" class="input-medium search-query pull-right" size="16"
|
||||
autocomplete="off" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" aria-invalid="false" tabindex="-1">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<hr class="hr-condensed" />
|
||||
|
||||
<ul class="treeselect">
|
||||
<?php foreach ($menuTypes as &$type) : ?>
|
||||
<?php if (count($type->links)) : ?>
|
||||
<?php $prevlevel = 0; ?>
|
||||
<li>
|
||||
<div class="treeselect-item pull-left">
|
||||
<label class="pull-left nav-header"><?php echo $type->title; ?></label></div>
|
||||
<?php foreach ($type->links as $i => $link) : ?>
|
||||
<?php
|
||||
if ($prevlevel < $link->level)
|
||||
{
|
||||
echo '<ul class="treeselect-sub">';
|
||||
} elseif ($prevlevel > $link->level)
|
||||
{
|
||||
echo str_repeat('</li></ul>', $prevlevel - $link->level);
|
||||
} else {
|
||||
echo '</li>';
|
||||
}
|
||||
$selected = 0;
|
||||
if ($this->item->assignment == 0)
|
||||
{
|
||||
$selected = 1;
|
||||
} elseif ($this->item->assignment < 0)
|
||||
{
|
||||
$selected = in_array(-$link->value, $this->item->assigned);
|
||||
} elseif ($this->item->assignment > 0)
|
||||
{
|
||||
$selected = in_array($link->value, $this->item->assigned);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<div class="treeselect-item pull-left">
|
||||
<input type="checkbox" class="pull-left" name="jform[assigned][]" id="<?php echo $id . $link->value; ?>" value="<?php echo (int) $link->value; ?>"<?php echo $selected ? ' checked="checked"' : ''; ?> />
|
||||
<label for="<?php echo $id . $link->value; ?>" class="pull-left"><?php echo $link->text; ?> <span class="small"><?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($link->alias));?></span></label>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
if (!isset($type->links[$i + 1]))
|
||||
{
|
||||
echo str_repeat('</li></ul>', $link->level);
|
||||
}
|
||||
$prevlevel = $link->level;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div style="display:none;" id="treeselectmenu">
|
||||
<div class="pull-left nav-hover treeselect-menu">
|
||||
<div class="btn-group">
|
||||
<a href="#" data-toggle="dropdown" class="dropdown-toggle btn btn-micro">
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="nav-header"><?php echo JText::_('COM_MODULES_SUBITEMS'); ?></li>
|
||||
<li class="divider"></li>
|
||||
<li class=""><a class="checkall" href="javascript://"><i class="icon-checkbox"></i> <?php echo JText::_('JSELECT'); ?></a>
|
||||
</li>
|
||||
<li><a class="uncheckall" href="javascript://"><i class="icon-checkbox-unchecked"></i> <?php echo JText::_('COM_MODULES_DESELECT'); ?></a>
|
||||
</li>
|
||||
<div class="treeselect-menu-expand">
|
||||
<li class="divider"></li>
|
||||
<li><a class="expandall" href="javascript://"><i class="icon-plus"></i> <?php echo JText::_('COM_MODULES_EXPAND'); ?></a></li>
|
||||
<li><a class="collapseall" href="javascript://"><i class="icon-minus"></i> <?php echo JText::_('COM_MODULES_COLLAPSE'); ?></a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<?php
|
||||
echo JHtml::_('bootstrap.startAccordion', 'moduleOptions', array('active' => 'collapse0'));
|
||||
$fieldSets = $this->form->getFieldsets('params');
|
||||
$i = 0;
|
||||
|
||||
foreach ($fieldSets as $name => $fieldSet) :
|
||||
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MODULES_'.$name.'_FIELDSET_LABEL';
|
||||
$class = isset($fieldSet->class) && !empty($fieldSet->class) ? $fieldSet->class : '';
|
||||
|
||||
echo JHtml::_('bootstrap.addSlide', 'moduleOptions', JText::_($label), 'collapse' . $i++, $class);
|
||||
if (isset($fieldSet->description) && trim($fieldSet->description)) :
|
||||
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
|
||||
endif;
|
||||
?>
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach;
|
||||
echo JHtml::_('bootstrap.endSlide');
|
||||
endforeach;
|
||||
echo JHtml::_('bootstrap.endAccordion');
|
||||
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_templates/helpers/templates.php';
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
$clientId = $this->item->client_id;
|
||||
$state = 1;
|
||||
$selectedPosition = $this->item->position;
|
||||
$positions = JHtml::_('modules.positions', $clientId, $state, $selectedPosition);
|
||||
|
||||
|
||||
// Add custom position to options
|
||||
$customGroupText = JText::_('COM_MODULES_CUSTOM_POSITION');
|
||||
|
||||
// Build field
|
||||
$attr = array(
|
||||
'id' => 'jform_position',
|
||||
'list.select' => $this->item->position,
|
||||
'list.attr' => 'class="chzn-custom-value input-xlarge" '
|
||||
. 'data-custom_group_text="' . $customGroupText . '" '
|
||||
. 'data-no_results_text="' . JText::_('COM_MODULES_ADD_CUSTOM_POSITION') . '" '
|
||||
. 'data-placeholder="' . JText::_('COM_MODULES_TYPE_OR_SELECT_POSITION') . '" '
|
||||
);
|
||||
|
||||
echo JHtml::_('select.groupedlist', $positions, 'jform[position]', $attr);
|
||||
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('module.save');">
|
||||
<?php echo JText::_('JSAVE');?></button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn" onclick="window.parent.SqueezeBox.close();">
|
||||
<?php echo JText::_('JCANCEL');?></button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->setLayout('edit');
|
||||
echo $this->loadTemplate();
|
||||
103
administrator/components/com_modules/views/module/view.html.php
Normal file
103
administrator/components/com_modules/views/module/view.html.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* View to edit a module.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_modules
|
||||
* @since 1.6
|
||||
*/
|
||||
class ModulesViewModule extends JViewLegacy
|
||||
{
|
||||
protected $form;
|
||||
|
||||
protected $item;
|
||||
|
||||
protected $state;
|
||||
|
||||
/**
|
||||
* Display the view
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$this->form = $this->get('Form');
|
||||
$this->item = $this->get('Item');
|
||||
$this->state = $this->get('State');
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
JError::raiseError(500, implode("\n", $errors));
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->addToolbar();
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the page title and toolbar.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JFactory::getApplication()->input->set('hidemainmenu', true);
|
||||
|
||||
$user = JFactory::getUser();
|
||||
$isNew = ($this->item->id == 0);
|
||||
$checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
|
||||
$canDo = ModulesHelper::getActions($this->state->get('filter.category_id'), $this->item->id);
|
||||
|
||||
JToolbarHelper::title(JText::sprintf('COM_MODULES_MANAGER_MODULE', JText::_($this->item->module)), 'module.png');
|
||||
|
||||
// If not checked out, can save the item.
|
||||
if (!$checkedOut && ($canDo->get('core.edit') || $canDo->get('core.create') ))
|
||||
{
|
||||
JToolbarHelper::apply('module.apply');
|
||||
JToolbarHelper::save('module.save');
|
||||
}
|
||||
if (!$checkedOut && $canDo->get('core.create'))
|
||||
{
|
||||
JToolbarHelper::save2new('module.save2new');
|
||||
}
|
||||
// If an existing item, can save to a copy.
|
||||
if (!$isNew && $canDo->get('core.create'))
|
||||
{
|
||||
JToolbarHelper::save2copy('module.save2copy');
|
||||
}
|
||||
if (empty($this->item->id))
|
||||
{
|
||||
JToolbarHelper::cancel('module.cancel');
|
||||
}
|
||||
else
|
||||
{
|
||||
JToolbarHelper::cancel('module.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
|
||||
// Get the help information for the menu item.
|
||||
$lang = JFactory::getLanguage();
|
||||
|
||||
$help = $this->get('Help');
|
||||
if ($lang->hasKey($help->url))
|
||||
{
|
||||
$debug = $lang->setDebug(false);
|
||||
$url = JText::_($help->url);
|
||||
$lang->setDebug($debug);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = null;
|
||||
}
|
||||
JToolbarHelper::help($help->key, false, $url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user