@@ -7,13 +7,13 @@ |
||
7 | 7 | use Flynt\Utils\Asset; |
8 | 8 | use Flynt\Utils\Options; |
9 | 9 | |
10 | -add_action('init', function () { |
|
10 | +add_action('init', function() { |
|
11 | 11 | register_nav_menus([ |
12 | 12 | 'navigation_footer_columns' => __('Navigation Footer Columns', 'flynt') |
13 | 13 | ]); |
14 | 14 | }); |
15 | 15 | |
16 | -add_filter('Flynt/addComponentData?name=NavigationFooterColumns', function ($data) { |
|
16 | +add_filter('Flynt/addComponentData?name=NavigationFooterColumns', function($data) { |
|
17 | 17 | $area = 'navigation_footer_columns'; |
18 | 18 | $id = 1; |
19 | 19 | $menu = new Menu($area); |
@@ -3,8 +3,10 @@ |
||
3 | 3 | function menuOptions() |
4 | 4 | { |
5 | 5 | $screen = get_current_screen(); |
6 | - if ($screen->id != 'nav-menus') // phpcs:ignore |
|
6 | + if ($screen->id != 'nav-menus') { |
|
7 | + // phpcs:ignore |
|
7 | 8 | return; |
9 | + } |
|
8 | 10 | ?> |
9 | 11 | <script type="text/javascript"> |
10 | 12 | jQuery(function($) { |