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;