Skip to content

Commit

Permalink
Merge branch 'release/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommerregen committed Aug 17, 2015
2 parents 604cef6 + 7d54b9e commit 4534488
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
52 changes: 29 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,70 @@
# v1.3.1
## 08/17/2015

3. [](#bugfix)
* Fixed broken path translation

# v1.3.0
## 08/08/2015

1. [](#new)
* Added admin configurations **(requires Grav 0.9.34+)**
* Added admin configurations **(requires Grav 0.9.34+)**
2. [](#improved)
* Updated `README.md`
* Updated `README.md`
3. [](#bugfix)
* Fixed Czech translation
* Fixed Czech translation

# v1.2.0
## 07/25/2015

1. [](#new)
* Added multi-language support **(requires Grav 0.9.33+)**
* Added `Show more` button below blogger-like hierarchical menu, when list of items is truncated
* Added multi-language support **(requires Grav 0.9.33+)**
* Added `Show more` button below blogger-like hierarchical menu, when list of items is truncated
2. [](#improved)
* Refactored code
* Updated `README.md`
* Improved speed (plugin now caches the results)
* Slight style changes in the blogger-like hierarchical menu
* Refactored code
* Updated `README.md`
* Improved speed (plugin now caches the results)
* Slight style changes in the blogger-like hierarchical menu
3. [](#bugfix)
* Fixed improper path to item if nested [#2](https://github.com/Sommerregen/grav-plugin-archive-plus/issues/2)
* Fixed improper path to item if nested [#2](https://github.com/Sommerregen/grav-plugin-archive-plus/issues/2)

# v1.1.1
## 05/10/2015

2. [](#improved)
* Better expandable blogger-like hierarchical menu
* PSR fixes
* Better expandable blogger-like hierarchical menu
* PSR fixes

# v1.1.0
## 02/21/2015

1. [](#new)
* Implemented new `param_sep` variable **(requires Grav 0.9.18+)**
* Implemented new `param_sep` variable **(requires Grav 0.9.18+)**
2. [](#improved)
* Refactored code, fixed INSTALL.md
* Refactored code, fixed INSTALL.md

# v1.0.2
## 02/05/2015

1. [](#new)
* Added new option `limit.items` to hide items [#1](https://github.com/Sommerregen/grav-plugin-archive-plus/pull/1)
* Added new option `limit.items` to hide items [#1](https://github.com/Sommerregen/grav-plugin-archive-plus/pull/1)
2. [](#improved)
* Updated documentation
* Updated documentation

# v1.0.1
## 01/22/2015

1. [](#bugfix)
* Fixed issue with ignored `enabled: false` option
* Fixed issue with ignored `enabled: false` option

# v1.0.0
## 01/19/2015

1. [](#new)
* Added a blogger like hierarchical (year/month/post) archive menu
* Fork of *Archives* plugin v1.2.0 by _Grav Team_ (see https://github.com/getgrav/grav-plugin-archives)
* ChangeLog started...
* Added a blogger like hierarchical (year/month/post) archive menu
* Fork of *Archives* plugin v1.2.0 by _Grav Team_ (see https://github.com/getgrav/grav-plugin-archives)
* ChangeLog started...
2. [](#improved)
* Improved readability of code
* Added more configuration options to Admin Panel
* Automatically add taxonomy type (`archive`) for months and years
* Improved readability of code
* Added more configuration options to Admin Panel
* Automatically add taxonomy type (`archive`) for months and years
10 changes: 5 additions & 5 deletions archive_plus.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Archive Plus v1.3.0
* Archive Plus v1.3.1
*
* An enhanced version of the Grav Archives plugin with more
* configuration options and the ability to show a blogger-like
Expand All @@ -10,7 +10,7 @@
* http://benjamin-regler.de/license/
*
* @package Archive Plus
* @version 1.3.0
* @version 1.3.1
* @link <https://github.com/sommerregen/grav-plugin-archive-plus>
* @author Benjamin Regler <[email protected]>
* @copyright 2015, Benjamin Regler
Expand Down Expand Up @@ -107,16 +107,16 @@ public function onPageProcessed(Event $event)

// Extract language from page extension
$active = preg_match('~(\w+)\.\w+$~i', $page->extension(), $match) ? $match[1] : '';
$key = $language->translate(['PLUGIN_ARCHIVE_PLUS.NAME'], ['en']);
$key = $language->translate(['PLUGINS.ARCHIVE_PLUS.NAME'], ['en']);

if (!isset($taxonomy[$key])) {
$index = date('n', $page->date()) - 1;
$year = date('Y', $page->date());
$languages = $active ? [$active]: $language->getLanguages();

foreach ($languages as $lang) {
$key = $language->translate(['PLUGIN_ARCHIVE_PLUS.NAME'], [$lang]);
$month = strtolower($language->translateArray('PLUGIN_ARCHIVE_PLUS.SHORT_MONTHS', $index, [$lang]));
$key = $language->translate(['PLUGINS.ARCHIVE_PLUS.NAME'], [$lang]);
$month = strtolower($language->translateArray('PLUGINS.ARCHIVE_PLUS.SHORT_MONTHS', $index, [$lang]));

// Track month taxonomy in "jan_2015" and year in "2015" format
$taxonomy[$key] = ["{$month}_{$year}", $year];
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Archive Plus
version: 1.3.0
version: 1.3.1
description: "The **Archive Plus** plugin is an enhanced version of the [Grav Archives plugin](https://github.com/getgrav/grav-plugin-archives) with more configuration options and the ability to show a blogger like hierarchical archive menu for links grouped by month and/or year."
icon: university
author:
Expand Down

0 comments on commit 4534488

Please sign in to comment.