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