-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters