mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-03 06:50:49 +00:00
93a093441c
Ported to com_weblinks from a similar PR in core (https://github.com/joomla/joomla-cms/pull/5469)
30 lines
782 B
PHP
30 lines
782 B
PHP
<?php
|
|
/**
|
|
* @package Joomla.Site
|
|
* @subpackage com_weblinks
|
|
*
|
|
* @copyright Copyright (C) 2005 - 2014 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');
|
|
JHtml::_('behavior.caption');
|
|
|
|
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');
|
|
});
|
|
});
|
|
});");
|
|
|
|
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
|
echo $this->loadTemplate('items');
|
|
?>
|
|
</div>
|