Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 42d2788

Browse files
authoredJun 27, 2020
Merge pull request #40 from 8fold/8fold-sites
Update Pagination.php
2 parents 783c277 + 85a7fe2 commit 42d2788

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/UIKit/Elements/Compound/Pagination.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function unfold(): string
152152
UIKit::listWith(...
153153
Shoop::array([$this->anchorFor(1), $this->anchorFor(2)])
154154
)
155-
);
155+
)->attr("class pagination");
156156

157157
}
158158

@@ -182,12 +182,12 @@ public function unfold(): string
182182
$hasPrevious = $this->currentPage()->isGreaterThanUnfolded(1);
183183
$hasNext = $this->currentPage()->isLessThanUnfolded($this->totalPages());
184184

185-
$navClass = "class pagination"; // both
185+
$navClass = "class pagination next previous"; // both
186186
if (! $hasNext and $hasPrevious) {
187-
$navClass = "class pagination-previous";
187+
$navClass = "class pagination previous";
188188

189189
} elseif ($hasNext and ! $hasPrevious) {
190-
$navClass = "class pagination-next";
190+
$navClass = "class pagination next";
191191

192192
}
193193

0 commit comments

Comments
 (0)
This repository has been archived.