CoreFiles by mySites.guru
toc.php34 lines, 964 bytes, from Joomla_6.1.2-Stable-Full_Package.zip
Raw History Compare with 6.1.1
md5
47506f82069e8aa94ffe2ef1f3ec98f1
sha1
5019903c7c3153e1071390726ebac2354b0eb534
sha256
258b0e31c662517c0735d20b771bb2377e9f08dbb19660334af4314a77a6c412
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Content.pagebreak
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Router\Route;

?>
<div class="card float-end article-index ms-3 mb-3">
    <div class="card-body">

        <?php if ($headingtext) : ?>
        <h3><?php echo $headingtext; ?></h3>
        <?php endif; ?>

        <ul class="nav flex-column">
        <?php foreach ($list as $listItem) : ?>
            <?php $class = $listItem->active ? ' active' : ''; ?>
            <li class="py-1">
                <a href="<?php echo Route::_($listItem->link); ?>" class="toclink<?php echo $class; ?>">
                    <?php echo htmlspecialchars($listItem->title, ENT_QUOTES, 'UTF-8'); ?>
                </a>
            </li>
        <?php endforeach; ?>
        </ul>
    </div>
</div>

The same content is in 53 releases, Joomla 5.4.2 to 6.3.0-alpha1. See them all, or every version of this file.