feat: boutons haut/bas de page dans la sidebar article
This commit is contained in:
@@ -186,6 +186,11 @@ $hasSources = (!empty($externalLinks) || !empty($files))
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="toc-nav">
|
||||
<button class="toc-nav-btn" id="toc-go-top">↑ Haut</button>
|
||||
<button class="toc-nav-btn" id="toc-go-bottom">↓ Bas</button>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($backlinks ?? [])): ?>
|
||||
<h6 class="related-sidebar-title">Rétroliens</h6>
|
||||
<?php foreach ($backlinks as $_bl):
|
||||
@@ -307,9 +312,7 @@ $hasSources = (!empty($externalLinks) || !empty($files))
|
||||
|
||||
</div><!-- /row -->
|
||||
|
||||
<?php if (count($_tocItems) >= 3): ?>
|
||||
<script src="/assets/js/toc.js" defer></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
|
||||
Reference in New Issue
Block a user