54 lines
1.7 KiB
PHP
54 lines
1.7 KiB
PHP
|
<main>
|
||
|
<h1 class="page-title" id="title-featured">
|
||
|
<?php
|
||
|
$tag = new Tag($url->slug());
|
||
|
echo $tag->name();
|
||
|
?>
|
||
|
</h1>
|
||
|
<ul class="">
|
||
|
<?php foreach ($content as $page) : ?>
|
||
|
<li>
|
||
|
<?php echo $page->date('j F Y') ?> : « <a href="<?php echo $page->permalink(); ?>" ><?php echo $page->title(); ?></a> »
|
||
|
</li>
|
||
|
<?php endforeach ?>
|
||
|
</ul>
|
||
|
|
||
|
<!-- Pagination -->
|
||
|
<?php if (Paginator::numberOfPages() > 1) : ?>
|
||
|
<nav class="paginator mb-2 mt-1">
|
||
|
<ul class="pagination flex-that no-pills">
|
||
|
|
||
|
<!-- Previous button -->
|
||
|
<?php if (Paginator::showPrev()) : ?>
|
||
|
<li class="page-item m-0 p-0">
|
||
|
<a class="page-link m-0" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1">← <?php echo $L->get('Previous'); ?></a>
|
||
|
</li>
|
||
|
<?php else : ?>
|
||
|
<li class="page-item m-0 p-0">
|
||
|
<span class="page-link m-0" tabindex="-1">← <?php echo $L->get('Previous'); ?></span>
|
||
|
</li>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<!-- Home button -->
|
||
|
<li class="page-item p-0 m-0">
|
||
|
<span>Page <?php echo Paginator::currentPage(); ?> sur <?php echo Paginator::numberOfPages(); ?> </span>
|
||
|
</li>
|
||
|
|
||
|
<!-- Next button -->
|
||
|
<?php if (Paginator::showNext()) : ?>
|
||
|
<li class="page-item m-0 p-0">
|
||
|
<a class="page-link m-0" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $L->get('Next'); ?> →</a>
|
||
|
</li>
|
||
|
<?php else : ?>
|
||
|
<li class="page-item m-0 p-0">
|
||
|
<span class="page-link m-0" tabindex="-1"><?php echo $L->get('Next'); ?> →</span>
|
||
|
</li>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
<?php endif ?>
|
||
|
</main>
|
||
|
|
||
|
<?php include(THEME_DIR_PHP.'sidebar.php'); ?>
|