30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-21 07:22:24 +00:00

Remove un-necessary JHtml::addIncludePath usage

This commit is contained in:
Tuan Pham Ngoc 2021-06-20 20:25:16 +07:00
parent 554dde6c03
commit d455713663
4 changed files with 3 additions and 6 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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>

View File

@ -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.