@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=BlockImageText', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=BlockImageText', function($data) { |
|
8 | 8 | Component::enqueueAssets('BlockImageText'); |
9 | 9 | |
10 | 10 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockVideoOembed'); |
10 | 10 | |
11 | 11 | $data['video'] = Oembed::setSrcAsDataAttribute( |
@@ -5,11 +5,11 @@ |
||
5 | 5 | use Flynt\Utils\Asset; |
6 | 6 | use Flynt\Features\Components\Component; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=ListSocial', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=ListSocial', function($data) { |
|
9 | 9 | Component::enqueueAssets('ListSocial'); |
10 | 10 | |
11 | 11 | if (!empty($data['social'])) { |
12 | - $data['social'] = array_map(function ($item) { |
|
12 | + $data['social'] = array_map(function($item) { |
|
13 | 13 | $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg"); |
14 | 14 | return $item; |
15 | 15 | }, $data['social']); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Features\Components\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; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Timber\Timber; |
6 | 6 | use Timber\Post; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=ListPostCards', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=ListPostCards', function($data) { |
|
9 | 9 | Component::enqueueAssets('ListPostCards'); |
10 | 10 | |
11 | 11 | $posts = Timber::get_posts([ |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt\Features\Components\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\Features\Components\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\Features\Components\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\Features\Components\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( |