Skip to content

Commit 9729f09

Browse files
committed
fix(Navigation): fixed namespace issue with build process
1 parent 511db3d commit 9729f09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Components/NavigationBurger/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Flynt\Components\NavigationBurger;
44

5-
use Timber;
5+
use Timber\Menu;
66
use Flynt\Utils\Asset;
77

88
add_action('init', function () {
@@ -12,7 +12,7 @@
1212
});
1313

1414
add_filter('Flynt/addComponentData?name=NavigationBurger', function ($data) {
15-
$data['menu'] = new Timber\Menu('navigation_burger');
15+
$data['menu'] = new Menu('navigation_burger');
1616
$data['logo'] = [
1717
'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationBurger/Assets/logo.svg'),
1818
'alt' => get_bloginfo('name')

Components/NavigationMain/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Flynt\Components\NavigationMain;
44

5-
use Timber;
5+
use Timber\Menu;
66
use Flynt\Utils\Asset;
77

88
add_action('init', function () {
@@ -12,7 +12,7 @@
1212
});
1313

1414
add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) {
15-
$data['menu'] = new Timber\Menu('navigation_main');
15+
$data['menu'] = new Menu('navigation_main');
1616
$data['logo'] = [
1717
'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('Components/NavigationMain/Assets/logo.svg'),
1818
'alt' => get_bloginfo('name')

0 commit comments

Comments
 (0)