@@ -5,13 +5,13 @@ |
||
5 | 5 | use Timber; |
6 | 6 | use Flynt\Utils\Asset; |
7 | 7 | |
8 | -add_action('init', function () { |
|
8 | +add_action('init', function() { |
|
9 | 9 | register_nav_menus([ |
10 | 10 | 'navigation_main' => __('Navigation Main', 'flynt') |
11 | 11 | ]); |
12 | 12 | }); |
13 | 13 | |
14 | -add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) { |
|
14 | +add_filter('Flynt/addComponentData?name=NavigationMain', function($data) { |
|
15 | 15 | $data['menu'] = new Timber\Menu('navigation_main'); |
16 | 16 | $data['logo'] = [ |
17 | 17 | 'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationMain/Assets/logo.svg'), |
@@ -6,13 +6,13 @@ |
||
6 | 6 | use Flynt\Utils\Asset; |
7 | 7 | use Flynt\Utils\Options; |
8 | 8 | |
9 | -add_action('init', function () { |
|
9 | +add_action('init', function() { |
|
10 | 10 | register_nav_menus([ |
11 | 11 | 'navigation_burger' => __('Navigation Burger', 'flynt') |
12 | 12 | ]); |
13 | 13 | }); |
14 | 14 | |
15 | -add_filter('Flynt/addComponentData?name=NavigationBurger', function ($data) { |
|
15 | +add_filter('Flynt/addComponentData?name=NavigationBurger', function($data) { |
|
16 | 16 | $data['menu'] = new Timber\Menu('navigation_burger'); |
17 | 17 | $data['logo'] = [ |
18 | 18 | 'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationBurger/Assets/logo.svg'), |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * Add theme options to customizer |
5 | 5 | */ |
6 | 6 | |
7 | -add_action('customize_register', function ($wp_customize) { |
|
7 | +add_action('customize_register', function($wp_customize) { |
|
8 | 8 | // Add option to replace header logo |
9 | 9 | $wp_customize->add_setting( |
10 | 10 | 'custom_header_logo', |