diff --git a/libs/timeline.css b/libs/timeline.css index 243c6bf..71f9fbd 100644 --- a/libs/timeline.css +++ b/libs/timeline.css @@ -359,7 +359,7 @@ article small a:hover { min-width: 33%; } -nav.pagnation { +nav.pagination { display: flex; justify-content: center; padding: 0.5rem 0; @@ -406,18 +406,18 @@ nav.pagnation { } -.pagnation { +.pagination { display: flex; justify-content: center; margin: 1rem; } -.pagnation a { +.pagination a { text-decoration: none; background-color: var(--accent-bg); } -.pagnation strong { +.pagination strong { padding: 0 1rem; } diff --git a/partials/pagnation.php b/partials/pagination.php similarity index 92% rename from partials/pagnation.php rename to partials/pagination.php index f6f675c..9ad2e33 100644 --- a/partials/pagnation.php +++ b/partials/pagination.php @@ -4,7 +4,7 @@ $maxTwts = $config['twts_per_page'] ?? 50; // Fallback number if twts_per_page n $totalTwts = count($twts); -if ( ($maxTwts >= $totalTwts) || ($paginateTwts == false) ) { +if ( ($maxTwts >= $totalTwts) || ($paginateTwts === false) ) { // echo "Only " . $totalTwts . " so no need for pagnation. (max: ". $maxTwts . ")
"; $paginateTwts = false; @@ -20,7 +20,7 @@ if ( ($maxTwts >= $totalTwts) || ($paginateTwts == false) ) { $startingTwt = (($currentPage - 1) * $maxTwts); $twts = array_slice($twts, $startingTwt, $maxTwts); - // Fingure out base URL for prev/next links + // Figure out base URL for prev/next links $pageURL = $_SERVER['REQUEST_URI']; //echo $pageURL."
"; diff --git a/partials/timeline.php b/partials/timeline.php index 9aeb0fd..6e32ef1 100644 --- a/partials/timeline.php +++ b/partials/timeline.php @@ -9,7 +9,7 @@ @@ -58,7 +58,7 @@ include_once 'partials/pagnation.php'; if ($paginateTwts) { ?> -
+