fixes menu and logo link
This commit is contained in:
parent
5f4867d3f1
commit
92f25811e8
|
@ -1,6 +1,6 @@
|
|||
<main class="">
|
||||
<!-- <a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off"> -->
|
||||
<a href="/" class="site-brand arc-hive-off">
|
||||
<a href="https://arc-hive.zone/" class="site-brand arc-hive-off">
|
||||
<?php if ($this->themeSetting('logo')): ?>
|
||||
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
|
||||
alt="<?php echo $site->title(); ?>"
|
||||
|
|
|
@ -19,7 +19,7 @@ $img_src = null;
|
|||
|
||||
<main class="">
|
||||
<!-- <a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off"> -->
|
||||
<a href="/" class="site-brand arc-hive-off">
|
||||
<a href="https://arc-hive.zone/" class="site-brand arc-hive-off">
|
||||
<?php if ($this->themeSetting('logo')): ?>
|
||||
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
|
||||
alt="<?php echo $site->title(); ?>"
|
||||
|
|
|
@ -29,6 +29,7 @@ if ($wordpress_endpoint) {
|
|||
$item_url = "/login";
|
||||
}
|
||||
$item_title = $menu_item->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 '<a role="" href="'.$menu_item['url'].'">'.$menu_item['title'].'</a>'.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 '</li>' . PHP_EOL;
|
||||
|
|
Loading…
Reference in New Issue