@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | |
7 | -add_action('wp_enqueue_scripts', function () { |
|
7 | +add_action('wp_enqueue_scripts', function() { |
|
8 | 8 | Component::enqueueAssets('BlockImage'); |
9 | 9 | }); |
@@ -3,6 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Flynt\Features\Components\Component; |
5 | 5 | |
6 | -add_action('wp_enqueue_scripts', function () { |
|
6 | +add_action('wp_enqueue_scripts', function() { |
|
7 | 7 | Component::enqueueAssets('BlockWysiwyg'); |
8 | 8 | }); |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | use Flynt\Features\Components\Component; |
5 | 5 | use Flynt\Utils\Oembed; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=SliderMedia', function ($data) { |
|
8 | - $data['mediaSlides'] = array_map(function ($item) { |
|
7 | +add_filter('Flynt/addComponentData?name=SliderMedia', function($data) { |
|
8 | + $data['mediaSlides'] = array_map(function($item) { |
|
9 | 9 | if ($item['mediaType'] == 'oembed') { |
10 | 10 | $item['oembedLazyLoad'] = Oembed::setOembedSrcAsDataAttribute( |
11 | 11 | $item['oembed'], |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | return $data; |
21 | 21 | }); |
22 | 22 | |
23 | -add_action('wp_enqueue_scripts', function () { |
|
23 | +add_action('wp_enqueue_scripts', function() { |
|
24 | 24 | Component::enqueueAssets('SliderMedia', [ |
25 | 25 | [ |
26 | 26 | 'name' => 'slick-carousel', |
@@ -4,11 +4,11 @@ |
||
4 | 4 | use Flynt\Features\Components\Component; |
5 | 5 | use Flynt\Utils\Oembed; |
6 | 6 | |
7 | -add_action('wp_enqueue_scripts', function () { |
|
7 | +add_action('wp_enqueue_scripts', function() { |
|
8 | 8 | Component::enqueueAssets('BlockMediaText'); |
9 | 9 | }); |
10 | 10 | |
11 | -add_filter('Flynt/addComponentData?name=BlockMediaText', function ($data) { |
|
11 | +add_filter('Flynt/addComponentData?name=BlockMediaText', function($data) { |
|
12 | 12 | if ($data['mediaType'] === 'oembedVideo') { |
13 | 13 | $data['oembedLazyLoad'] = Oembed::setOembedSrcAsDataAttribute( |
14 | 14 | $data['oembed'], |
@@ -5,11 +5,11 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Timber\Menu; |
7 | 7 | |
8 | -add_action('wp_enqueue_scripts', function () { |
|
8 | +add_action('wp_enqueue_scripts', function() { |
|
9 | 9 | Component::enqueueAssets('NavigationMain'); |
10 | 10 | }); |
11 | 11 | |
12 | -add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) { |
|
12 | +add_filter('Flynt/addComponentData?name=NavigationMain', function($data) { |
|
13 | 13 | // set max level of the menu |
14 | 14 | $data['maxLevel'] = 0; |
15 | 15 | $data['menuSlug'] = !empty($data['menuSlug']) ? $data['menuSlug'] : ''; |