@@ -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', |