@@ -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['image'] = $item['posterImage']; |
| 12 | 12 | $item['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | return $data; |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | -add_action('wp_enqueue_scripts', function () { |
|
| 25 | +add_action('wp_enqueue_scripts', function() { |
|
| 26 | 26 | Component::enqueueAssets('SliderMedia', [ |
| 27 | 27 | [ |
| 28 | 28 | 'name' => 'slick-carousel', |