Make it possible to not have a `jump_buttons` option set

Fixes #458
This commit is contained in:
Stéphane Goetz 2017-05-17 23:15:44 +02:00
parent ea61ca0210
commit 7021580b2c
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@
<?= $page['content']; ?>
</div>
<?php if ($params['html']['jump_buttons'] && (!empty($page['prev']) || !empty($page['next']))) {
<?php
$buttons = (!empty($page['prev']) || !empty($page['next']));
$has_option = array_key_exists('jump_buttons', $params['html']);
if ($buttons && (($has_option && $params['html']['jump_buttons']) || !$has_option)) {
?>
<nav>
<ul class="Pager">