|
@@ -6,8 +6,8 @@ discard block |
|
|
block discarded – undo |
|
6
|
6
|
*/ |
|
7
|
7
|
|
|
8
|
8
|
if (!class_exists('Timber')) { |
|
9
|
|
- add_action('admin_notices', function () { |
|
10
|
|
- echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="' . esc_url(admin_url('plugins.php#timber')) . '">' . esc_url(admin_url('plugins.php')) . '</a></p></div>'; |
|
|
9
|
+ add_action('admin_notices', function() { |
|
|
10
|
+ echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="'.esc_url(admin_url('plugins.php#timber')).'">'.esc_url(admin_url('plugins.php')).'</a></p></div>'; |
|
11
|
11
|
}); |
|
12
|
12
|
|
|
13
|
13
|
return; |
|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
$twig->addExtension(new Twig_Extension_StringLoader()); |
|
59
|
59
|
$twig->addGlobal('image', new ImageHelper()); |
|
60
|
60
|
|
|
61
|
|
- $filter = new Twig_SimpleFilter("translate", function ($string) { |
|
|
61
|
+ $filter = new Twig_SimpleFilter("translate", function($string) { |
|
62
|
62
|
pll_register_string($string, $string, "stash"); |
|
63
|
63
|
|
|
64
|
64
|
return pll__($string); |
Please login to merge, or discard this patch.