« 1 ? ($currentPage - $maxAdditionalPagesHalf < $pages - $maxAdditionalPages ? $currentPage - $maxAdditionalPagesHalf : $pages - $maxAdditionalPages) : 1; $end = $start + $maxAdditionalPages < $pages ? $start + $maxAdditionalPages : $pages; } ?> »