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) {
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;