mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-28 04:59:04 +00:00
Remove un-necessary JHtml::addIncludePath usage
This commit is contained in:
parent
554dde6c03
commit
d455713663
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
|
||||||
|
|
||||||
JFactory::getDocument()->addScriptDeclaration("
|
JFactory::getDocument()->addScriptDeclaration("
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
||||||
|
@ -9,6 +9,5 @@
|
|||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
|
||||||
$this->subtemplatename = 'items';
|
$this->subtemplatename = 'items';
|
||||||
echo JLayoutHelper::render('joomla.content.category_default', $this);
|
echo JLayoutHelper::render('joomla.content.category_default', $this);
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
|
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
|
||||||
|
|
||||||
$class = ' class="first"';
|
$class = ' class="first"';
|
||||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
||||||
?>
|
?>
|
||||||
@ -23,7 +25,7 @@ if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
|||||||
?>
|
?>
|
||||||
<li<?php echo $class; ?>>
|
<li<?php echo $class; ?>>
|
||||||
<?php $class = ''; ?>
|
<?php $class = ''; ?>
|
||||||
<span class="item-title"><a href="<?php echo JRoute::_(WeblinksHelperRoute::getCategoryRoute($child->id));?>">
|
<span class="item-title"><a href="<?php echo JRoute::_(RouteHelper::getCategoryRoute($child->id));?>">
|
||||||
<?php echo $this->escape($child->title); ?></a>
|
<?php echo $this->escape($child->title); ?></a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
|
||||||
|
|
||||||
// JHtml::_('behavior.framework');
|
// JHtml::_('behavior.framework');
|
||||||
|
|
||||||
// Create a shortcut for params.
|
// Create a shortcut for params.
|
||||||
|
Loading…
Reference in New Issue
Block a user