From 92f25811e89d724c8b6d319dd80bef990d2b51da Mon Sep 17 00:00:00 2001 From: buttle Date: Thu, 28 Apr 2022 17:23:07 +0200 Subject: [PATCH] fixes menu and logo link --- view/common/header-collections.phtml | 2 +- view/common/header-default.phtml | 2 +- view/common/wordpress-menu.phtml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/view/common/header-collections.phtml b/view/common/header-collections.phtml index 7de2b81..69bf896 100644 --- a/view/common/header-collections.phtml +++ b/view/common/header-collections.phtml @@ -1,6 +1,6 @@
- + themeSetting('logo')): ?> <?php echo $site->title(); ?> - + themeSetting('logo')): ?> <?php echo $site->title(); ?>title; + /* if ($lowered_title == 'collections') { if ($wordpress_site) { // change Collections item @@ -38,13 +39,13 @@ if ($wordpress_endpoint) { continue; // do not render the Collections item } } + */ $item = [ "id" => $menu_item->ID, "title" => $item_title, "url" => $item_url ]; if (!isset($items[$menu_item->menu_item_parent])) { - //if (!array_key_exists($menu_item->menu_item_parent, $items)) { $items[$menu_item->menu_item_parent] = new ArrayObject(); } $items[$menu_item->menu_item_parent][$menu_item->ID] =$item; @@ -90,7 +91,6 @@ if (!function_exists('render_menu')) { } echo ''.$menu_item['title'].''.PHP_EOL; if (isset($items[$menu_item['id']])) { - //if (array_key_exists($menu_item['id'], $items)) { render_menu($items, $menu_item['id']); // render sub menu } echo '' . PHP_EOL;