@@ -3,6 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Flynt\Features\Components\Component; |
| 5 | 5 | |
| 6 | -add_action('wp_enqueue_scripts', function () { |
|
| 6 | +add_action('wp_enqueue_scripts', function() { |
|
| 7 | 7 | Component::enqueueAssets('BlockWysiwyg'); |
| 8 | 8 | }); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | use Flynt\Features\Components\Component; |
| 5 | 5 | use Flynt\Utils\Oembed; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=SliderMedia', function ($data) { |
|
| 8 | - $data['mediaSlides'] = array_map(function ($item) { |
|
| 7 | +add_filter('Flynt/addComponentData?name=SliderMedia', function($data) { |
|
| 8 | + $data['mediaSlides'] = array_map(function($item) { |
|
| 9 | 9 | if ($item['mediaType'] == 'oembed') { |
| 10 | 10 | $item['oembedLazyLoad'] = Oembed::setOembedSrcAsDataAttribute( |
| 11 | 11 | $item['oembed'], |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | return $data; |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | -add_action('wp_enqueue_scripts', function () { |
|
| 23 | +add_action('wp_enqueue_scripts', function() { |
|
| 24 | 24 | Component::enqueueAssets('SliderMedia', [ |
| 25 | 25 | [ |
| 26 | 26 | 'name' => 'slick-carousel', |
@@ -5,11 +5,11 @@ |
||
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | use Timber\Menu; |
| 7 | 7 | |
| 8 | -add_action('wp_enqueue_scripts', function () { |
|
| 8 | +add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | Component::enqueueAssets('NavigationMain'); |
| 10 | 10 | }); |
| 11 | 11 | |
| 12 | -add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) { |
|
| 12 | +add_filter('Flynt/addComponentData?name=NavigationMain', function($data) { |
|
| 13 | 13 | // set max level of the menu |
| 14 | 14 | $data['maxLevel'] = 0; |
| 15 | 15 | $data['menuSlug'] = !empty($data['menuSlug']) ? $data['menuSlug'] : ''; |