@@ -4,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('GridDownloadPortrait'); |
| 10 | 10 | }); |
| 11 | 11 | |
| 12 | 12 | if (!empty($data['items'])) { |
| 13 | - $data['items'] = array_map(function ($item) { |
|
| 13 | + $data['items'] = array_map(function($item) { |
|
| 14 | 14 | if ($item['itemType'] === 'itemFile') { |
| 15 | 15 | $fileSize = filesize(get_attached_file($item['file']['id'])); |
| 16 | 16 | $item['file']['fileSize'] = size_format($fileSize); |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=GridListSteps', function($data) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('GridListSteps'); |
| 10 | 10 | }); |
| 11 | 11 | |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=HeroImage', function ($data) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=HeroImage', function($data) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('HeroImage', [ |
| 10 | 10 | [ |
| 11 | 11 | 'name' => 'lazysizes', |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=GridPosts', function ($data, $parentData) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=GridPosts', function($data, $parentData) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('GridPosts'); |
| 10 | 10 | }); |
| 11 | 11 | |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | use Flynt\Utils\Asset; |
| 6 | 6 | use Flynt\Features\Components\Component; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=ListSocial', function ($data) { |
|
| 9 | - add_action('wp_enqueue_scripts', function () { |
|
| 8 | +add_filter('Flynt/addComponentData?name=ListSocial', function($data) { |
|
| 9 | + add_action('wp_enqueue_scripts', function() { |
|
| 10 | 10 | Component::enqueueAssets('ListSocial'); |
| 11 | 11 | }); |
| 12 | 12 | |
| 13 | 13 | if (!empty($data['social'])) { |
| 14 | - $data['social'] = array_map(function ($item) { |
|
| 14 | + $data['social'] = array_map(function($item) { |
|
| 15 | 15 | $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg"); |
| 16 | 16 | return $item; |
| 17 | 17 | }, $data['social']); |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | use Flynt\Utils\Asset; |
| 6 | 6 | use Flynt\Features\Components\Component; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=ListSearchResults', function ($data, $parentData) { |
|
| 9 | - add_action('wp_enqueue_scripts', function () { |
|
| 8 | +add_filter('Flynt/addComponentData?name=ListSearchResults', function($data, $parentData) { |
|
| 9 | + add_action('wp_enqueue_scripts', function() { |
|
| 10 | 10 | Component::enqueueAssets('ListSearchResults'); |
| 11 | 11 | }); |
| 12 | 12 | |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=ListTestimonialCards', function ($data) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=ListTestimonialCards', function($data) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('ListTestimonialCards'); |
| 10 | 10 | }); |
| 11 | 11 | |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=ListFacts', function ($data) { |
|
| 8 | - add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_filter('Flynt/addComponentData?name=ListFacts', function($data) { |
|
| 8 | + add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('ListFacts', [ |
| 10 | 10 | [ |
| 11 | 11 | 'name' => 'countup', |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | // use Flynt\Utils\Asset; |
| 6 | 6 | use Flynt\Features\Components\Component; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { |
|
| 9 | - add_action('wp_enqueue_scripts', function () { |
|
| 8 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { |
|
| 9 | + add_action('wp_enqueue_scripts', function() { |
|
| 10 | 10 | Component::enqueueAssets('GridPostsSlider', [ |
| 11 | 11 | [ |
| 12 | 12 | 'name' => 'slick-carousel', |