@@ -5,8 +5,8 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Flynt\Utils\Oembed; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
9 | - add_action('wp_enqueue_scripts', function () { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
9 | + add_action('wp_enqueue_scripts', function() { |
|
10 | 10 | Component::enqueueAssets('BlockVideoOembed'); |
11 | 11 | }); |
12 | 12 |
@@ -9,24 +9,24 @@ |
||
9 | 9 | add_action('wp_enqueue_scripts', function () { |
10 | 10 | Component::enqueueAssets('DocumentDefault', [ |
11 | 11 | [ |
12 | - 'name' => 'console-polyfill', |
|
13 | - 'type' => 'script', |
|
14 | - 'path' => 'vendor/console.js' |
|
12 | + 'name' => 'console-polyfill', |
|
13 | + 'type' => 'script', |
|
14 | + 'path' => 'vendor/console.js' |
|
15 | 15 | ], |
16 | 16 | [ |
17 | - 'name' => 'babel-polyfill', |
|
18 | - 'type' => 'script', |
|
19 | - 'path' => 'vendor/babel-polyfill.js' |
|
17 | + 'name' => 'babel-polyfill', |
|
18 | + 'type' => 'script', |
|
19 | + 'path' => 'vendor/babel-polyfill.js' |
|
20 | 20 | ], |
21 | 21 | [ |
22 | - 'name' => 'document-register-element', |
|
23 | - 'type' => 'script', |
|
24 | - 'path' => 'vendor/document-register-element.js' |
|
22 | + 'name' => 'document-register-element', |
|
23 | + 'type' => 'script', |
|
24 | + 'path' => 'vendor/document-register-element.js' |
|
25 | 25 | ], |
26 | 26 | [ |
27 | - 'name' => 'normalize', |
|
28 | - 'path' => 'vendor/normalize.css', |
|
29 | - 'type' => 'style' |
|
27 | + 'name' => 'normalize', |
|
28 | + 'path' => 'vendor/normalize.css', |
|
29 | + 'type' => 'style' |
|
30 | 30 | ] |
31 | 31 | ]); |
32 | 32 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use Flynt\Features\Components\Component; |
7 | 7 | use Flynt\Utils\Asset; |
8 | 8 | |
9 | -add_action('wp_enqueue_scripts', function () { |
|
9 | +add_action('wp_enqueue_scripts', function() { |
|
10 | 10 | Component::enqueueAssets('DocumentDefault', [ |
11 | 11 | [ |
12 | 12 | 'name' => 'console-polyfill', |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | ]); |
38 | 38 | }, 0); |
39 | 39 | |
40 | -add_filter('Flynt/addComponentData?name=DocumentDefault', function ($data) { |
|
40 | +add_filter('Flynt/addComponentData?name=DocumentDefault', function($data) { |
|
41 | 41 | $context = Timber::get_context(); |
42 | 42 | |
43 | 43 | $output = [ |
@@ -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=ListTestimorialsCards', function ($data) { |
|
8 | - add_action('wp_enqueue_scripts', function () { |
|
7 | +add_filter('Flynt/addComponentData?name=ListTestimorialsCards', function($data) { |
|
8 | + add_action('wp_enqueue_scripts', function() { |
|
9 | 9 | Component::enqueueAssets('ListTestimorialsCards'); |
10 | 10 | }); |
11 | 11 |