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;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JFactory::getDocument()->addScriptDeclaration("
jQuery(function($) {
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {

View File

@ -9,6 +9,5 @@
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$this->subtemplatename = 'items';
echo JLayoutHelper::render('joomla.content.category_default', $this);

View File

@ -9,6 +9,8 @@
defined('_JEXEC') or die;
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
$class = ' class="first"';
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; ?>>
<?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>
</span>

View File

@ -9,8 +9,6 @@
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
// JHtml::_('behavior.framework');
// Create a shortcut for params.