@@ -4,11 +4,11 @@ |
||
| 4 | 4 | use Flynt\Features\Components\Component; |
| 5 | 5 | use Flynt\Utils\Oembed; |
| 6 | 6 | |
| 7 | -add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_action('wp_enqueue_scripts', function() { |
|
| 8 | 8 | Component::enqueueAssets('BlockVideoOembed'); |
| 9 | 9 | }); |
| 10 | 10 | |
| 11 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
| 11 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
| 12 | 12 | $data['oembedLazyLoad'] = Oembed::setOembedSrcAsDataAttribute( |
| 13 | 13 | $data['oembed'], |
| 14 | 14 | [ |
@@ -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'] : ''; |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Features\Components\Component; |
| 6 | 6 | |
| 7 | -add_action('wp_enqueue_scripts', function () { |
|
| 7 | +add_action('wp_enqueue_scripts', function() { |
|
| 8 | 8 | Component::enqueueAssets('ListPosts'); |
| 9 | 9 | }); |
| 10 | 10 | |
| 11 | -add_filter('Flynt/addComponentData?name=ListPosts', function ($data, $parentData) { |
|
| 11 | +add_filter('Flynt/addComponentData?name=ListPosts', function($data, $parentData) { |
|
| 12 | 12 | $data['isArchive'] = is_home() || is_archive(); |
| 13 | 13 | |
| 14 | 14 | $data['pagination'] = (isset($parentData['pagination'])) ? $parentData['pagination'] : null; |