-
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
4 changed files
with
32 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# German | ||
de: | ||
PLUGINS: | ||
THEMER: | ||
GLOBAL_CONFIG: "Globale Einstellungen" | ||
PLUGIN_STATUS: "Plugin Status" | ||
|
||
# English | ||
en: | ||
PLUGINS: | ||
THEMER: | ||
GLOBAL_CONFIG: "Global plugin configurations" | ||
PLUGIN_STATUS: "Plugin status" |
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.1 | ||
* Themer v1.0.2 | ||
* | ||
* 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.1 | ||
* @version 1.0.2 | ||
* @link <https://github.com/sommerregen/grav-plugin-themer> | ||
* @author Benjamin Regler <[email protected]> | ||
* @copyright 2015, Benjamin Regler | ||
|
@@ -80,7 +80,8 @@ public function onPageInitialized() | |
$this->grav['themes']->init(); | ||
|
||
// Silent DebugBar error :: 'twig' is already a registered collector | ||
if ($debug = $this->config->get('system.debugger.twig', false)) { | ||
$enabled = $this->config->get('system.debugger.enabled'); | ||
if ($enabled && ($debug = $this->config->get('system.debugger.twig', false))) { | ||
$this->config->set('system.debugger.twig', false); | ||
} | ||
|
||
|
@@ -91,7 +92,7 @@ public function onPageInitialized() | |
$twig->init(); | ||
|
||
// Update TwigCollector for DebugBar | ||
if ($debug) { | ||
if ($enabled && $debug) { | ||
$twig->twig = new TraceableTwigEnvironment($twig->twig); | ||
$collector = $this->grav['debugger']->getCollector('twig'); | ||
$collector->twig = $twig->twig; | ||
|