@@ -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', |
@@ -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, [ |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | use Flynt\FieldVariables; |
| 7 | 7 | use Timber\Timber; |
| 8 | 8 | |
| 9 | -add_action('wp_footer', function () { |
|
| 9 | +add_action('wp_footer', function() { |
|
| 10 | 10 | $context = Timber::get_context(); |
| 11 | 11 | Timber::render_string('{{ renderComponent("BlockCookieNotice") }}', $context); |
| 12 | 12 | }); |