Skip to content

Commit

Permalink
Merge branch 'release/1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed May 9, 2019
2 parents 24acdc4 + 50abfcc commit 9f3b0e8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v1.4.2
## 05/09/2019

1. [](#new)
* Add active class for active page [#37](https://github.com/getgrav/grav-plugin-pagination/pull/37)
* Added `ru` and `uk` translations [#38](https://github.com/getgrav/grav-plugin-pagination/pull/38)

# v1.4.1
## 08/28/2018

Expand Down
9 changes: 5 additions & 4 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Pagination
version: 1.4.1
version: 1.4.2
description: "**Pagination** is a very useful plugin to help navigate a large collection of pages, such as for a **blog**."
icon: list-ol
author:
Expand Down Expand Up @@ -28,16 +28,17 @@ form:
delta:
type: number
size: x-small
label: Delta
label: PLUGIN_PAGINATION.DELTA
default: 0
help: How many pages to show left and right of the current page
help: PLUGIN_PAGINATION.DELTA_HELP
validate:
type: number
min: 0

built_in_css:
type: toggle
label: Use built in CSS
label: PLUGIN_PAGINATION.BUILTIN_CSS
help: PLUGIN_PAGINATION.BUILTIN_CSS_HELP
highlight: 1
default: 1
options:
Expand Down
20 changes: 20 additions & 0 deletions languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
en:
PLUGIN_PAGINATION:
DELTA: 'Delta'
DELTA_HELP: 'How many pages to show left and right of the current page'
BUILTIN_CSS: 'Use built in CSS'
BUILTIN_CSS_HELP: 'Include the CSS provided by the Pagination plugin'

ru:
PLUGIN_PAGINATION:
DELTA: 'Дельта'
DELTA_HELP: 'Сколько страниц показывать слева и справа от текущей страницы'
BUILTIN_CSS: 'Использовать встроенный CSS'
BUILTIN_CSS_HELP: 'Использовать CSS, предоставленный плагином Pagination'

uk:
PLUGIN_PAGINATION:
DELTA: 'Дельта'
DELTA_HELP: 'Скільки сторінок відображатиметься ліворуч і праворуч від поточної сторінки'
BUILTIN_CSS: 'Використовувати вбудований CSS'
BUILTIN_CSS_HELP: 'Використовувати CSS, наданий плагіном Pagination'
2 changes: 1 addition & 1 deletion templates/partials/pagination.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% for paginate in pagination %}

{% if paginate.isCurrent %}
<li><span>{{ paginate.number }}</span></li>
<li><span class="active">{{ paginate.number }}</span></li>
{% elseif paginate.isInDelta %}
{% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'/'}) %}
<li><a href="{{ url }}">{{ paginate.number }}</a></li>
Expand Down

0 comments on commit 9f3b0e8

Please sign in to comment.