@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Flynt\Utils\Component; |
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', |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Flynt; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) { |
|
8 | 8 | if (!empty($data['items'])) { |
9 | - $data['items'] = array_map(function ($item) { |
|
9 | + $data['items'] = array_map(function($item) { |
|
10 | 10 | if ($item['itemType'] === 'itemFile') { |
11 | 11 | $fileSize = filesize(get_attached_file($item['file']['id'])); |
12 | 12 | $item['file']['fileSize'] = size_format($fileSize); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Flynt\Utils\Component; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=ListFacts', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=ListFacts', function($data) { |
|
9 | 9 | Component::enqueueAssets('ListFacts', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'countup', |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Flynt\Utils\Component; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { |
|
9 | 9 | Component::enqueueAssets('GridPostsSlider', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=BlockImage', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=BlockImage', function($data) { |
|
8 | 8 | return $data; |
9 | 9 | }); |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=GridListSteps', function($data) { |
|
8 | 8 | return $data; |
9 | 9 | }); |
10 | 10 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Flynt\Utils\Options; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=ListPosts', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=ListPosts', function($data) { |
|
9 | 9 | return $data; |
10 | 10 | }); |
11 | 11 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Flynt; |
6 | 6 | |
7 | -add_filter('Flynt/addComponentData?name=BlockWysiwyg', function ($data) { |
|
7 | +add_filter('Flynt/addComponentData?name=BlockWysiwyg', function($data) { |
|
8 | 8 | return $data; |
9 | 9 | }); |
10 | 10 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Flynt\Utils\Component; |
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', |