@@ -5,11 +5,11 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_action('wp_enqueue_scripts', function () { |
|
8 | +add_action('wp_enqueue_scripts', function() { |
|
9 | 9 | Component::enqueueAssets('BlockMediaText'); |
10 | 10 | }); |
11 | 11 | |
12 | -add_filter('Flynt/addComponentData?name=BlockMediaText', function ($data) { |
|
12 | +add_filter('Flynt/addComponentData?name=BlockMediaText', function($data) { |
|
13 | 13 | if ($data['mediaType'] === 'oembedVideo') { |
14 | 14 | $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
15 | 15 | $data['oembed'], |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderMedia', function ($data) { |
|
9 | - $data['mediaSlides'] = array_map(function ($item) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderMedia', function($data) { |
|
9 | + $data['mediaSlides'] = array_map(function($item) { |
|
10 | 10 | if ($item['mediaType'] == 'oembed') { |
11 | 11 | $item['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
12 | 12 | $item['oembed'], |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | return $data; |
22 | 22 | }); |
23 | 23 | |
24 | -add_action('wp_enqueue_scripts', function () { |
|
24 | +add_action('wp_enqueue_scripts', function() { |
|
25 | 25 | Component::enqueueAssets('SliderMedia', [ |
26 | 26 | [ |
27 | 27 | 'name' => 'slick-carousel', |
@@ -5,11 +5,11 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_action('wp_enqueue_scripts', function () { |
|
8 | +add_action('wp_enqueue_scripts', function() { |
|
9 | 9 | Component::enqueueAssets('BlockVideoOembed'); |
10 | 10 | }); |
11 | 11 | |
12 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
12 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
13 | 13 | $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
14 | 14 | $data['oembed'], |
15 | 15 | [ |