Skip to content

Commit

Permalink
Add dynamic neighbour amount back.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ville Siltala committed Mar 15, 2018
1 parent 8020a2d commit b19a027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/pagination.php
Expand Up @@ -34,8 +34,8 @@ public function output() {
$params = $this->params; $params = $this->params;
$data = (object) []; $data = (object) [];
$pages = array(); $pages = array();
$visible = 7; $neighbours = isset( $params->neighbours ) ? (int) $params->neighbours : 3;
$neighbours = 3; $visible = 1 + ( 2 * $neighbours );
$hellip_start = true; $hellip_start = true;
$hellip_end = true; $hellip_end = true;
$strings = isset( $params->strings ) ? $params->strings : []; $strings = isset( $params->strings ) ? $params->strings : [];
Expand Down

0 comments on commit b19a027

Please sign in to comment.