Skip to content

Commit

Permalink
refactor(NavigationBurger): use Timber\Menu sub-namespace instead of …
Browse files Browse the repository at this point in the history
…Timber (#352)
  • Loading branch information
timohubois authored Aug 26, 2021
1 parent d38b7e3 commit c7a763f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Components/NavigationBurger/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Flynt\Components\NavigationBurger;

use Timber;
use Flynt\Utils\Asset;
use Timber\Menu;

add_action('init', function () {
register_nav_menus([
Expand All @@ -12,7 +12,7 @@
});

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

0 comments on commit c7a763f

Please sign in to comment.