* @license GNU General Public License version 3 or later; see LICENSE.txt * * FILE INFORMATION * DEFGROUP: Joomla.Template.Site * INGROUP: MokoCassiopeia * PATH: ./templates/mokocassiopeia/html/com_content/article/toc-right.php * VERSION: 03.06.02 * BRIEF: Article layout with table of contents on the right side using Bootstrap TOC */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Associations; use Joomla\CMS\Layout\LayoutHelper; // Load Bootstrap TOC assets $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->useStyle('vendor.bootstrap-toc'); $wa->useScript('vendor.bootstrap-toc.js'); // Get article params $params = $this->item->params; $images = json_decode($this->item->images); $urls = json_decode($this->item->urls); $canEdit = $params->get('access-edit'); $info = $params->get('info_block_position', 0); // Check if associations are implemented $assocParam = (Associations::isEnabled() && $params->get('show_associations')); ?>