Merge branch 'master' into master

This commit is contained in:
Stéphane Goetz 2017-05-18 22:23:36 +02:00 committed by GitHub
commit 399ca791d5
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@
<?= $page['content']; ?>
</div>
<?php if ((!isset($params['html']['jump_buttons']) || $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">
<?php if (!empty($page['prev'])) {