2014-04-08 12:32:59 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2017-05-16 06:03:22 +00:00
|
|
|
* @package Joomla.Site
|
|
|
|
* @subpackage com_weblinks
|
2014-04-08 12:32:59 +00:00
|
|
|
*
|
2017-02-13 16:20:35 +00:00
|
|
|
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
|
2014-04-08 12:32:59 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
|
|
|
|
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
|
|
|
JHtml::_('behavior.caption');
|
2014-12-19 10:21:11 +00:00
|
|
|
|
|
|
|
JFactory::getDocument()->addScriptDeclaration("
|
|
|
|
jQuery(function($) {
|
|
|
|
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
|
|
|
var btn = $(btn);
|
|
|
|
btn.on('click', function() {
|
|
|
|
btn.find('span').toggleClass('icon-plus');
|
|
|
|
btn.find('span').toggleClass('icon-minus');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});");
|
2014-04-08 12:32:59 +00:00
|
|
|
?>
|
2015-04-09 12:03:24 +00:00
|
|
|
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
|
|
|
<?php
|
|
|
|
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
|
|
|
echo $this->loadTemplate('items');
|
|
|
|
?>
|
2014-04-08 12:32:59 +00:00
|
|
|
</div>
|