@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=HeroImageText', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=HeroImageText', function($data) { |
|
8 | 8 | Component::enqueueAssets('HeroImageText'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=BlockNotFound', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=BlockNotFound', function($data) { |
|
8 | 8 | Component::enqueueAssets('BlockNotFound'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=GridListSteps', function($data) { |
|
8 | 8 | Component::enqueueAssets('GridListSteps'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=ListTestimorialsCards', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=ListTestimorialsCards', function($data) { |
|
8 | 8 | Component::enqueueAssets('ListTestimorialsCards'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockMediaText', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockMediaText', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockMediaText'); |
10 | 10 | if ($data['mediaType'] === 'oembedVideo') { |
11 | 11 | $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderMedia', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderMedia', function($data) { |
|
9 | 9 | Component::enqueueAssets('SliderMedia', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | ] |
20 | 20 | ]); |
21 | 21 | |
22 | - $data['mediaSlides'] = array_map(function ($item) { |
|
22 | + $data['mediaSlides'] = array_map(function($item) { |
|
23 | 23 | if ($item['mediaType'] == 'oembed') { |
24 | 24 | $item['image'] = $item['posterImage']; |
25 | 25 | $item['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute( |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=BlockImage', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=BlockImage', function($data) { |
|
8 | 8 | Component::enqueueAssets('BlockImage'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=SliderImages', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=SliderImages', function($data) { |
|
8 | 8 | Component::enqueueAssets('SliderImages', [ |
9 | 9 | [ |
10 | 10 | 'name' => 'slick-carousel', |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) { |
|
8 | 8 | Component::enqueueAssets('SliderImageGallery', [ |
9 | 9 | [ |
10 | 10 | 'name' => 'slick-carousel', |