mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 16:55:46 +00:00

- add podcast sidebar navigation - add podcast dashboard with latest episodes - add pagination to podcast episodes - add components helper to reuse ui components (button, data_table, etc.) - enhance podcast and episode forms by splitting them into form sections - add hint tooltips to podcast and episode forms - transform radio inputs as buttons for better ux - replace explicit field by parental_advisory - replace author field by publisher - add podcasts_categories table to set multiple categories - use choices.js to enhance multiselect fields - update Language files - update js dependencies to latest versions closes #31, #9
68 lines
2.4 KiB
PHP
68 lines
2.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*
|
|
* @var \CodeIgniter\Pager\PagerRenderer $pager
|
|
*/
|
|
|
|
$pager->setSurroundCount(2); ?>
|
|
|
|
<nav aria-label="<?= lang('Pager.pageNavigation') ?>">
|
|
<ul class="flex justify-center">
|
|
<?php if ($pager->hasPreviousPage()): ?>
|
|
<li>
|
|
<a href="<?= $pager->getFirst() ?>" aria-label="<?= lang(
|
|
'Pager.first'
|
|
) ?>" class="block px-3 py-2 text-gray-700 hover:bg-gray-200 hover:text-black">
|
|
<span aria-hidden="true"><?= lang('Pager.first') ?></span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="<?= $pager->getPreviousPage() ?>" aria-label="<?= lang(
|
|
'Pager.previous'
|
|
) ?>" class="block px-3 py-2 text-gray-700 hover:bg-gray-200 hover:text-black">
|
|
<span aria-hidden="true"><?= lang(
|
|
'Pager.previous'
|
|
) ?></span>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php foreach ($pager->links() as $link): ?>
|
|
<li>
|
|
<?php if ($link['active']): ?>
|
|
<span class="block px-4 py-2 font-semibold text-white bg-green-500 rounded-full">
|
|
<?= $link['title'] ?>
|
|
</span>
|
|
<?php else: ?>
|
|
<a href="<?= $link[
|
|
'uri'
|
|
] ?>" class="block px-4 py-2 text-gray-700 rounded-full hover:bg-gray-200 hover:text-black">
|
|
<?= $link['title'] ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
|
|
<?php if ($pager->hasNextPage()): ?>
|
|
<li>
|
|
<a href="<?= $pager->getNextPage() ?>" aria-label="<?= lang(
|
|
'Pager.next'
|
|
) ?>" class="block px-3 py-2 text-gray-700 hover:bg-gray-200 hover:text-black">
|
|
<span aria-hidden="true"><?= lang('Pager.next') ?></span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="<?= $pager->getLast() ?>" aria-label="<?= lang(
|
|
'Pager.last'
|
|
) ?>" class="block px-3 py-2 text-gray-700 hover:bg-gray-200 hover:text-black">
|
|
<span aria-hidden="true"><?= lang('Pager.last') ?></span>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</nav>
|