31 lines
970 B
PHP
31 lines
970 B
PHP
<?php
|
|
|
|
/**
|
|
* @package Joomla.Site
|
|
* @subpackage com_weblinks
|
|
*
|
|
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
// phpcs:disable PSR1.Files.SideEffects
|
|
\defined('_JEXEC') or die;
|
|
// phpcs:enable PSR1.Files.SideEffects
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
// Add strings for translations in Javascript.
|
|
Text::script('JGLOBAL_EXPAND_CATEGORIES');
|
|
Text::script('JGLOBAL_COLLAPSE_CATEGORIES');
|
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
|
$wa = $this->document->getWebAssetManager();
|
|
$wa->getRegistry()->addExtensionRegistryFile('com_categories');
|
|
$wa->usePreset('com_categories.shared-categories-accordion');
|
|
|
|
?>
|
|
<div class="com-weblinks-categories categories-list">
|
|
<?php
|
|
echo LayoutHelper::render('joomla.content.categories_default', $this);
|
|
echo $this->loadTemplate('items');
|
|
?>
|
|
</div>
|