@@ -5,10 +5,10 @@ |
||
5 | 5 | use Flynt\Api; |
6 | 6 | use Flynt\FieldVariables; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=ListLogos', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=ListLogos', function($data) { |
|
9 | 9 | |
10 | 10 | if (!empty($data['items'])) { |
11 | - $data['items'] = array_map(function ($item) { |
|
11 | + $data['items'] = array_map(function($item) { |
|
12 | 12 | if (isset($item['image']->post_mime_type) && $item['image']->post_mime_type === 'image/svg+xml') { |
13 | 13 | $path = get_attached_file($item['image']->ID); |
14 | 14 | $item['image']->svg = file_get_contents($path); |