From 5a954e684e0b19e89463b310c2849bebe7b08560 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 11 Jun 2024 10:41:35 +0200 Subject: [PATCH] wip #6953 @0.5 --- src/Links/Link.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Links/Link.php b/src/Links/Link.php index 037877c..314d4cf 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -622,7 +622,7 @@ class Link public function getHTMLContainerClass() { $res = trim('link ' . $this->class); - if ((int)$this->page % 2 == 1) { + if ($this->isOnNormalPage() && (int)$this->page % 2 == 1) { $res .= ' odd'; } if ($this->rightClone) { @@ -722,7 +722,7 @@ class Link public function moveOnEvenPage() { - if (is_numeric($this->page) && $this->page % 2 === 0 && $this->left < $this->compiler->getWidthForLinks()) { + if ($this->isOnNormalPage() && is_numeric($this->page) && $this->page % 2 === 0 && $this->left < $this->compiler->getWidthForLinks()) { return false; } return $this->attachLeft; -- 2.39.5