1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Fisharebest\Webtrees\Module\ModuleListInterface; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var string $filter 9 * @var string $folder 10 * @var string $format 11 * @var ModuleListInterface $module 12 * @var int $page 13 * @var int $pages 14 * @var string $subdirs 15 * @var Tree $tree 16 */ 17 18?> 19 20<div class="row text-center"> 21 <div class="col"> 22 <?php if ($page > 1) : ?> 23 <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])) ?>"> 24 <?= I18N::translate('first') ?> 25 </a> 26 <?php endif ?> 27 </div> 28 29 <div class="col"> 30 <?php if ($page > 1) : ?> 31 <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])) ?>"> 32 <?= I18N::translate('previous') ?> 33 </a> 34 <?php endif ?> 35 </div> 36 37 <div class="col"> 38 <?= I18N::translate('Page %s of %s', $page, $pages) ?> 39 </div> 40 41 <div class="col"> 42 <?php if ($page < $pages) : ?> 43 <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])) ?>"> 44 <?= I18N::translate('next') ?> 45 </a> 46 <?php endif ?> 47 </div> 48 49 <div class="col"> 50 <?php if ($page < $pages) : ?> 51 <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])) ?>"> 52 <?= I18N::translate('last') ?> 53 </a> 54 <?php endif ?> 55 </div> 56</div> 57