CoreFiles by mySites.guru
toc.php33 lines, 810 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
c619d98edc7b0641c104e9eb9413e074
sha1
8be7f4083d5df2c66fef9c3f6cd67f1756521266
sha256
db7133ec96a732006d8607de05f51e699e18e611d8b0dbf9e02d2ed33e998790
<?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 $listItem->title; ?>
				</a>
			</li>
		<?php endforeach; ?>
		</ul>
	</div>
</div>

The same content is in 49 releases, Joomla 4.0.0-rc1 to 4.2.0-beta2. See them all, or every version of this file.