Skip to content

Commit

Permalink
tmpl for toc
Browse files Browse the repository at this point in the history
  • Loading branch information
ReLater committed Apr 19, 2018
1 parent c6d1f14 commit 14a0b3f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions plugins/content/pagebreak/tmpl/toc.php
@@ -0,0 +1,29 @@
<?php
/**
* @package Joomla.Plugin
* @subpackage Content.pagebreak
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;
?>
<div class="pull-right article-index">

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

<ul class="nav nav-tabs nav-stacked">
<?php foreach ($list as $listItem) :
$class = $listItem->liClass ? ' class="' . $listItem->liClass . '"' : '';
?>
<li<?php echo $class; ?>>
<a href="<?php echo $listItem->link; ?>" class="<?php echo $listItem->class; ?>">
<?php echo $listItem->title; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>

0 comments on commit 14a0b3f

Please sign in to comment.