|
@@ -7,8 +7,8 @@ discard block |
|
|
block discarded – undo |
|
7
|
7
|
*/ |
|
8
|
8
|
|
|
9
|
9
|
if (!class_exists('Timber')) { |
|
10
|
|
- add_action('admin_notices', function () { |
|
11
|
|
- 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>'; |
|
|
10
|
+ add_action('admin_notices', function() { |
|
|
11
|
+ 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>'; |
|
12
|
12
|
}); |
|
13
|
13
|
|
|
14
|
14
|
return; |
|
@@ -61,7 +61,7 @@ discard block |
|
|
block discarded – undo |
|
61
|
61
|
$twig->addGlobal('image', new ImageHelper()); |
|
62
|
62
|
|
|
63
|
63
|
if (function_exists('pll_register_string')) { |
|
64
|
|
- $filter = new Twig_SimpleFilter("translate", function ($string) { |
|
|
64
|
+ $filter = new Twig_SimpleFilter("translate", function($string) { |
|
65
|
65
|
pll_register_string($string, $string, "stash"); |
|
66
|
66
|
|
|
67
|
67
|
return pll__($string); |
|
@@ -71,7 +71,7 @@ discard block |
|
|
block discarded – undo |
|
71
|
71
|
} |
|
72
|
72
|
|
|
73
|
73
|
if (function_exists('wpautop')) { |
|
74
|
|
- $filter = new Twig_SimpleFilter("p", function ($object) { |
|
|
74
|
+ $filter = new Twig_SimpleFilter("p", function($object) { |
|
75
|
75
|
return wpautop($object); |
|
76
|
76
|
}); |
|
77
|
77
|
|
Please login to merge, or discard this patch.