@@ -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']); |