@@ -6,11 +6,11 @@ |
||
6 | 6 | use Flynt\Utils\Component; |
7 | 7 | use Flynt; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=ListSocial', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=ListSocial', function($data) { |
|
10 | 10 | Component::enqueueAssets('ListSocial'); |
11 | 11 | |
12 | 12 | if (!empty($data['social'])) { |
13 | - $data['social'] = array_map(function ($item) { |
|
13 | + $data['social'] = array_map(function($item) { |
|
14 | 14 | $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg"); |
15 | 15 | return $item; |
16 | 16 | }, $data['social']); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=HeroImageText', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=HeroImageText', function($data) { |
|
9 | 9 | Component::enqueueAssets('HeroImageText'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Timber\Post; |
7 | 7 | use Flynt; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=ListPostCards', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=ListPostCards', function($data) { |
|
10 | 10 | Component::enqueueAssets('ListPostCards'); |
11 | 11 | |
12 | 12 | $posts = Timber::get_posts([ |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockNotFound', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockNotFound', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockNotFound'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=GridListSteps', function($data) { |
|
9 | 9 | Component::enqueueAssets('GridListSteps'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockImage', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockImage', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockImage'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderImages', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderImages', function($data) { |
|
9 | 9 | Component::enqueueAssets('SliderImages', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) { |
|
9 | 9 | Component::enqueueAssets('SliderImageGallery', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockBaseStyle', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockBaseStyle', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockBaseStyle'); |
10 | 10 | return $data; |
11 | 11 | }); |