@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * Adding logo and 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', |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | ] |
16 | 16 | ); |
17 | 17 | |
18 | - $wp_customize->add_control (new WP_Customize_Image_Control ( |
|
18 | + $wp_customize->add_control(new WP_Customize_Image_Control( |
|
19 | 19 | $wp_customize, |
20 | 20 | 'custom_header_logo', |
21 | 21 | [ |
@@ -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'), |