-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
14 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,2 +1 @@ | ||
assets/logo.svg | ||
*.xcf | ||
.idea |
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
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 | ||
/** | ||
* Themer v1.0.2 | ||
* Themer v1.0.3 | ||
* | ||
* This plugin enables you to use different themes on one site | ||
* individual set per page or collection. | ||
|
@@ -9,7 +9,7 @@ | |
* http://benjamin-regler.de/license/ | ||
* | ||
* @package Themer | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* @link <https://github.com/sommerregen/grav-plugin-themer> | ||
* @author Benjamin Regler <[email protected]> | ||
* @copyright 2015, Benjamin Regler | ||
|
@@ -91,8 +91,9 @@ public function onPageInitialized() | |
$twig->twig_paths = []; | ||
$twig->init(); | ||
|
||
// Update TwigCollector for DebugBar | ||
if ($enabled && $debug) { | ||
// Update TwigCollector for DebugBar (deprecated since Grav v0.9.43+) | ||
$deprecated = version_compare(GRAV_VERSION, '0.9.43', '<'); | ||
if ($deprecated && $enabled && $debug) { | ||
$twig->twig = new TraceableTwigEnvironment($twig->twig); | ||
$collector = $this->grav['debugger']->getCollector('twig'); | ||
$collector->twig = $twig->twig; | ||
|