@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | // NOTE: Datamodelling: done |
| 3 | 3 | namespace Flynt\Components\NavigationFooter; |
| 4 | 4 | |
| 5 | -add_action('init', function () { |
|
| 5 | +add_action('init', function() { |
|
| 6 | 6 | register_nav_menus([ |
| 7 | 7 | 'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme') |
| 8 | 8 | ]); |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | use Flynt\Utils\Asset; |
| 13 | 13 | use Timber\Menu; |
| 14 | 14 | |
| 15 | -add_filter('Flynt/addComponentData?name=NavigationFooter', function ($data) { |
|
| 16 | - add_action('wp_enqueue_scripts', function () { |
|
| 15 | +add_filter('Flynt/addComponentData?name=NavigationFooter', function($data) { |
|
| 16 | + add_action('wp_enqueue_scripts', function() { |
|
| 17 | 17 | Component::enqueueAssets('NavigationFooter'); |
| 18 | 18 | }); |
| 19 | 19 | |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Components\NavigationMain; |
| 4 | 4 | |
| 5 | -add_action('init', function () { |
|
| 5 | +add_action('init', function() { |
|
| 6 | 6 | register_nav_menus([ |
| 7 | 7 | 'navigation_main' => __('Navigation Main', 'flynt-starter-theme') |
| 8 | 8 | ]); |
@@ -11,11 +11,11 @@ discard block |
||
| 11 | 11 | use Flynt\Features\Components\Component; |
| 12 | 12 | use Timber\Menu; |
| 13 | 13 | |
| 14 | -add_action('wp_enqueue_scripts', function () { |
|
| 14 | +add_action('wp_enqueue_scripts', function() { |
|
| 15 | 15 | Component::enqueueAssets('NavigationMain'); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | -add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) { |
|
| 18 | +add_filter('Flynt/addComponentData?name=NavigationMain', function($data) { |
|
| 19 | 19 | // set max level of the menu |
| 20 | 20 | $data['maxLevel'] = 0; |
| 21 | 21 | $data['menuSlug'] = !empty($data['menuSlug']) ? $data['menuSlug'] : ''; |