@@ -23,7 +23,7 @@ |
||
23 | 23 | // This prevents unintended scrolling on pages with few content, when logged in. |
24 | 24 | add_theme_support('admin-bar', array('callback' => '__return_false')); |
25 | 25 | |
26 | -add_action('after_setup_theme', function () { |
|
26 | +add_action('after_setup_theme', function() { |
|
27 | 27 | /** |
28 | 28 | * Make theme available for translation. |
29 | 29 | * Translations can be filed in the /languages/ directory. |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | return false; |
16 | 16 | } |
17 | 17 | |
18 | -add_filter('Flynt/addComponentData?name=FeatureGoogleAnalytics', function ($data) { |
|
18 | +add_filter('Flynt/addComponentData?name=FeatureGoogleAnalytics', function($data) { |
|
19 | 19 | $googleAnalyticsOptions = Options::getGlobal('GoogleAnalytics'); |
20 | 20 | |
21 | 21 | if ($googleAnalyticsOptions) { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $data; |
32 | 32 | }); |
33 | 33 | |
34 | -add_action('Flynt/thirdPartyCookies/initializeOptions', function () { |
|
34 | +add_action('Flynt/thirdPartyCookies/initializeOptions', function() { |
|
35 | 35 | Options::addTranslatable('GoogleAnalytics', [ |
36 | 36 | [ |
37 | 37 | 'label' => __('Accept Google Analytics label', 'flynt'), |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | ]); |
44 | 44 | }); |
45 | 45 | |
46 | -add_action('wp_footer', function () { |
|
46 | +add_action('wp_footer', function() { |
|
47 | 47 | $context = Timber::get_context(); |
48 | 48 | Timber::render_string('{{ renderComponent("FeatureGoogleAnalytics") }}', $context); |
49 | 49 | }); |
50 | 50 | |
51 | -add_filter('Flynt/thirdPartyCookies', function ($features) { |
|
51 | +add_filter('Flynt/thirdPartyCookies', function($features) { |
|
52 | 52 | $googleAnalyticsTranslatableOptions = Options::getTranslatable('GoogleAnalytics'); |
53 | 53 | |
54 | 54 | $features = array_merge($features, [ |