Last minute pre production changes #65

Merged
chris merged 12 commits from develop into main 2022-04-28 19:05:29 +02:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 92f25811e8 - Show all commits

View File

@ -1,6 +1,6 @@
<main class=""> <main class="">
<!-- <a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off"> --> <!-- <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')): ?> <?php if ($this->themeSetting('logo')): ?>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>" <img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
alt="<?php echo $site->title(); ?>" alt="<?php echo $site->title(); ?>"

View File

@ -19,7 +19,7 @@ $img_src = null;
<main class=""> <main class="">
<!-- <a href="<?php echo $site->url(); ?>" class="site-brand arc-hive-off"> --> <!-- <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')): ?> <?php if ($this->themeSetting('logo')): ?>
<img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>" <img src="<?php echo $this->themeSettingAssetUrl('logo'); ?>"
alt="<?php echo $site->title(); ?>" alt="<?php echo $site->title(); ?>"

View File

@ -29,6 +29,7 @@ if ($wordpress_endpoint) {
$item_url = "/login"; $item_url = "/login";
} }
$item_title = $menu_item->title; $item_title = $menu_item->title;
/*
if ($lowered_title == 'collections') { if ($lowered_title == 'collections') {
if ($wordpress_site) { if ($wordpress_site) {
// change Collections item // change Collections item
@ -38,13 +39,13 @@ if ($wordpress_endpoint) {
continue; // do not render the Collections item continue; // do not render the Collections item
} }
} }
*/
$item = [ $item = [
"id" => $menu_item->ID, "id" => $menu_item->ID,
"title" => $item_title, "title" => $item_title,
"url" => $item_url "url" => $item_url
]; ];
if (!isset($items[$menu_item->menu_item_parent])) { 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] = new ArrayObject();
} }
$items[$menu_item->menu_item_parent][$menu_item->ID] =$item; $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; echo '<a role="" href="'.$menu_item['url'].'">'.$menu_item['title'].'</a>'.PHP_EOL;
if (isset($items[$menu_item['id']])) { if (isset($items[$menu_item['id']])) {
//if (array_key_exists($menu_item['id'], $items)) {
render_menu($items, $menu_item['id']); // render sub menu render_menu($items, $menu_item['id']); // render sub menu
} }
echo '</li>' . PHP_EOL; echo '</li>' . PHP_EOL;