106a438b4SGreg Roach<?php 206a438b4SGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 506a438b4SGreg Roachuse Fisharebest\Webtrees\I18N; 606a438b4SGreg Roachuse Fisharebest\Webtrees\Module\ModuleListInterface; 706a438b4SGreg Roachuse Fisharebest\Webtrees\Tree; 806a438b4SGreg Roach 906a438b4SGreg Roach/** 1006a438b4SGreg Roach * @var string $filter 1106a438b4SGreg Roach * @var string $folder 1206a438b4SGreg Roach * @var string $format 13dc270d8cSGreg Roach * @var int $max 1406a438b4SGreg Roach * @var ModuleListInterface $module 1506a438b4SGreg Roach * @var int $page 1606a438b4SGreg Roach * @var int $pages 1706a438b4SGreg Roach * @var string $subdirs 1806a438b4SGreg Roach * @var Tree $tree 1906a438b4SGreg Roach */ 2006a438b4SGreg Roach 2106a438b4SGreg Roach?> 2206a438b4SGreg Roach 2306a438b4SGreg Roach<div class="row text-center"> 2406a438b4SGreg Roach <div class="col"> 2506a438b4SGreg Roach <?php if ($page > 1) : ?> 2606a438b4SGreg Roach <a class="btn btn-outline-secondary" href="<?= e($module->listUrl($tree, ['go' => '1', 'folder' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'page' => 1])) ?>"> 2706a438b4SGreg Roach <?= I18N::translate('first') ?> 2806a438b4SGreg Roach </a> 2906a438b4SGreg Roach <?php endif ?> 3006a438b4SGreg Roach </div> 3106a438b4SGreg Roach 3206a438b4SGreg Roach <div class="col"> 3306a438b4SGreg Roach <?php if ($page > 1) : ?> 3406a438b4SGreg Roach <a class="btn btn-outline-secondary" href="<?= e($module->listUrl($tree, ['go' => '1', 'folder' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'page' => $page - 1])) ?>"> 3506a438b4SGreg Roach <?= I18N::translate('previous') ?> 3606a438b4SGreg Roach </a> 3706a438b4SGreg Roach <?php endif ?> 3806a438b4SGreg Roach </div> 3906a438b4SGreg Roach 4006a438b4SGreg Roach <div class="col"> 41dc270d8cSGreg Roach <?= I18N::translate('Page %s of %s', I18N::number($page), I18N::number($pages)) ?> 4206a438b4SGreg Roach </div> 4306a438b4SGreg Roach 4406a438b4SGreg Roach <div class="col"> 4506a438b4SGreg Roach <?php if ($page < $pages) : ?> 4606a438b4SGreg Roach <a class="btn btn-outline-secondary" href="<?= e($module->listUrl($tree, ['go' => '1', 'folder' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'page' => $page + 1])) ?>"> 4706a438b4SGreg Roach <?= I18N::translate('next') ?> 4806a438b4SGreg Roach </a> 4906a438b4SGreg Roach <?php endif ?> 5006a438b4SGreg Roach </div> 5106a438b4SGreg Roach 5206a438b4SGreg Roach <div class="col"> 5306a438b4SGreg Roach <?php if ($page < $pages) : ?> 5406a438b4SGreg Roach <a class="btn btn-outline-secondary" href="<?= e($module->listUrl($tree, ['go' => '1', 'folder' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'page' => $pages])) ?>"> 5506a438b4SGreg Roach <?= I18N::translate('last') ?> 5606a438b4SGreg Roach </a> 5706a438b4SGreg Roach <?php endif ?> 5806a438b4SGreg Roach </div> 5906a438b4SGreg Roach</div> 60