* * This file is part of a Moko Consulting project. * * SPDX-License-Identifier: GPL-3.0-or-later * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see https://www.gnu.org/licenses/ . * ========================================================================= * FILE INFORMATION * DEFGROUP: Joomla * INGROUP: Moko-Cassiopeia * PATH: templates/moko-cassiopeia/html/com_content/article/toc-right.php * VERSION: 02.01.05 * BRIEF: Template override for Joomla articles with Table of Contents aligned right * ========================================================================= */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\FileLayout; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; use Joomla\Component\Content\Administrator\Extension\ContentComponent; use Joomla\Component\Content\Site\Helper\RouteHelper; // Create shortcuts to some parameters. $params = $this->item->params; $canEdit = $params->get('access-edit'); $user = Factory::getUser(); $info = $params->get('info_block_position', 0); $htag = $this->params->get('show_page_heading') ? 'h2' : 'h1'; // Check if associations are implemented. If they are, define the parameter. $assocParam = (Associations::isEnabled() && $params->get('show_associations')); $currentDate = Factory::getDate()->format('Y-m-d H:i:s'); $isNotPublishedYet = $this->item->publish_up > $currentDate; $isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate; ?>