* @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')); ?>
params->get('show_page_heading')) : ?> print) : ?> get('show_print_icon') || $params->get('show_email_icon')) : ?> $params, 'item' => $this->item, 'print' => false]); ?> get('show_print_icon')) : ?> $params, 'item' => $this->item, 'print' => true]); ?> item->event->afterDisplayTitle; ?> get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> item->tags->itemTags); ?> item->event->beforeDisplayContent; ?> urls_position) && $urls->urls_position == '0') || ($params->get('urls_position') == '0' && empty($urls->urls_position))) || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> loadTemplate('links'); ?> get('access-view')) : ?> item); ?> get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> $this->item, 'params' => $params, 'position' => 'above']); ?> get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> item->tags->itemTags); ?>
item->text; ?>
urls_position) && $urls->urls_position == '1') || ($params->get('urls_position') == '1'))) : ?> loadTemplate('links'); ?> get('show_noauth') == true && $this->user->get('guest')) : ?> item); ?> item->introtext); ?> item->event->afterDisplayContent; ?> get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> item->tags->itemTags); ?> $this->item, 'params' => $params, 'position' => 'below']); ?>