@@ -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); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | use Flynt\FieldVariables; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
10 | 10 | $data['video'] = Oembed::setSrcAsDataAttribute( |
11 | 11 | $data['oembed'], |
12 | 12 | [ |
@@ -6,9 +6,9 @@ |
||
6 | 6 | use Flynt\FieldVariables; |
7 | 7 | use Flynt\Utils\Asset; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=ListSocial', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=ListSocial', function($data) { |
|
10 | 10 | if (!empty($data['social'])) { |
11 | - $data['social'] = array_map(function ($item) { |
|
11 | + $data['social'] = array_map(function($item) { |
|
12 | 12 | $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg"); |
13 | 13 | return $item; |
14 | 14 | }, $data['social']); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Flynt\FieldVariables; |
7 | 7 | use Flynt\Utils\Options; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=SliderImages', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=SliderImages', function($data) { |
|
10 | 10 | $translatableOptions = Options::get('translatableOptions', 'feature', 'SliderOptions'); |
11 | 11 | $data['jsonData'] = [ |
12 | 12 | 'options' => array_merge($translatableOptions, $data['options']), |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Flynt\FieldVariables; |
7 | 7 | use Flynt\Utils\Options; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=SliderImagesCentered', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=SliderImagesCentered', function($data) { |
|
10 | 10 | $translatableOptions = Options::get('translatableOptions', 'feature', 'SliderOptions'); |
11 | 11 | $data['jsonData'] = [ |
12 | 12 | 'options' => array_merge($translatableOptions, $data['options']), |