@@ -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, [ |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | use Timber; |
| 6 | 6 | use Flynt\Utils\Asset; |
| 7 | 7 | |
| 8 | -add_action('init', function () { |
|
| 8 | +add_action('init', function() { |
|
| 9 | 9 | register_nav_menus([ |
| 10 | 10 | 'navigation_burger' => __('Navigation Burger', 'flynt') |
| 11 | 11 | ]); |
| 12 | 12 | }); |
| 13 | 13 | |
| 14 | -add_filter('Flynt/addComponentData?name=NavigationBurger', function ($data) { |
|
| 14 | +add_filter('Flynt/addComponentData?name=NavigationBurger', function($data) { |
|
| 15 | 15 | $data['menu'] = new Timber\Menu('navigation_burger'); |
| 16 | 16 | $data['logo'] = [ |
| 17 | 17 | 'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationBurger/Assets/logo.svg'), |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | namespace Flynt\RemoveEditor; |
| 8 | 8 | |
| 9 | -add_action('init', function () { |
|
| 9 | +add_action('init', function() { |
|
| 10 | 10 | remove_post_type_support('page', 'editor'); |
| 11 | 11 | remove_post_type_support('post', 'editor'); |
| 12 | 12 | }); |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Removes Gutenberg default styles on front-end |
| 16 | 16 | */ |
| 17 | -add_action('wp_print_styles', function () { |
|
| 17 | +add_action('wp_print_styles', function() { |
|
| 18 | 18 | wp_dequeue_style('wp-block-library'); |
| 19 | 19 | wp_dequeue_style('wp-block-library-theme'); |
| 20 | 20 | }); |