From 3c6bb4bf362d49c6c4022a128d386dc4844d40b5 Mon Sep 17 00:00:00 2001 From: Wolfgang Hollaus Date: Thu, 10 Jan 2019 15:43:37 +0100 Subject: [PATCH 1/4] Add "active" class for the active page (#37) Add "active" class for the active page --- templates/partials/pagination.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/partials/pagination.html.twig b/templates/partials/pagination.html.twig index 6a0eff4..d7f05ff 100644 --- a/templates/partials/pagination.html.twig +++ b/templates/partials/pagination.html.twig @@ -14,7 +14,7 @@ {% for paginate in pagination %} {% if paginate.isCurrent %} -
  • {{ paginate.number }}
  • +
  • {{ paginate.number }}
  • {% elseif paginate.isInDelta %} {% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'/'}) %}
  • {{ paginate.number }}
  • From 2a0d627d7c9a3dee07ed383f7fbf96587ef9eafc Mon Sep 17 00:00:00 2001 From: Aleksey Smirnov Date: Sun, 5 May 2019 20:24:12 +0300 Subject: [PATCH 2/4] Added translations (ru, uk) (#38) * Update blueprints.yaml * Create languages.yaml * Update languages.yaml --- blueprints.yaml | 7 ++++--- languages.yaml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 languages.yaml diff --git a/blueprints.yaml b/blueprints.yaml index e3dccdf..a1aef9b 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -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: diff --git a/languages.yaml b/languages.yaml new file mode 100644 index 0000000..c8c32f4 --- /dev/null +++ b/languages.yaml @@ -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' From 625dc81d9f2a3b76743b26eb6a3945fb73dbcd57 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 9 May 2019 10:31:45 -0600 Subject: [PATCH 3/4] updated changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f54eb35..d90c4b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# v1.4.2 +## 05/09/2018 + +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 From 50abfcca38f0730f99f6d2c5f8a17b861bbfe9e3 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 9 May 2019 10:32:16 -0600 Subject: [PATCH 4/4] prepare for release --- CHANGELOG.md | 2 +- blueprints.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d90c4b7..1d80bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # v1.4.2 -## 05/09/2018 +## 05/09/2019 1. [](#new) * Add active class for active page [#37](https://github.com/getgrav/grav-plugin-pagination/pull/37) diff --git a/blueprints.yaml b/blueprints.yaml index a1aef9b..2d08b8a 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -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: