-
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
20 additions
and
11 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
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 1.0 | ||
* Archive Plus 1.0.1 | ||
* | ||
* An enhanced version of the Grav Archives plugin with more | ||
* configuration options and the ability to show a blogger-like | ||
|
@@ -9,7 +9,7 @@ | |
* Licensed under MIT, see LICENSE. | ||
* | ||
* @package Archive Plus | ||
* @version 1.0 | ||
* @version 1.0.1 | ||
* @link <https://github.com/sommerregen/grav-plugin-archive-plus> | ||
* @author Benjamin Regler <[email protected]> | ||
* @copyright 2015, Benjamin Regler | ||
|
@@ -62,12 +62,15 @@ public function onPluginsInitialized() { | |
return; | ||
} | ||
|
||
if ( $this->config->get('plugins.archive_plus.enabled') ) { | ||
// Emulate Archives plugin; switch it off, if present | ||
$this->config->set('plugins.archives.enabled', FALSE); | ||
$this->config->set('plugins.archives.emulated', TRUE); | ||
// Activate plugin only if 'enabled' option is set true | ||
if ( !$this->config->get('plugins.archive_plus.enabled') ) { | ||
return; | ||
} | ||
|
||
// Emulate Archives plugin; switch it off, if present | ||
$this->config->set('plugins.archives.enabled', FALSE); | ||
$this->config->set('plugins.archives.emulated', TRUE); | ||
|
||
// Dynamically add the needed taxonomy types to the taxonomies config | ||
$taxonomy_config = array_merge((array) | ||
$this->config->get('site.taxonomies'), ['archive']); | ||
|
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,9 +1,9 @@ | ||
name: Archive Plus | ||
version: 1.0.0 | ||
version: 1.0.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: | ||
name: Benjamin Regler | ||
name: Sommerregen | ||
email: [email protected] | ||
homepage: https://github.com/sommerregen/grav-plugin-archive-plus | ||
docs: https://github.com/sommerregen/grav-plugin-archive-plus/blob/master/README.md | ||
|