develop #63

Merged
chris merged 14 commits from develop into main 2022-04-23 21:10:16 +02:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit f9d2d65931 - Show all commits

View File

@ -17,12 +17,13 @@ if ($wordpress_endpoint) {
if (!$response->isClientError() && $response_data) { if (!$response->isClientError() && $response_data) {
foreach ($response_data as $menu_item) { foreach ($response_data as $menu_item) {
$lowered_title = strtolower($menu_item->title);
$item_url = $menu_item->url; $item_url = $menu_item->url;
if (strtolower($menu_item->title) == 'login') { if ($lowered_title == 'login') { // manipulate login url
$item_url = "/login"; $item_url = "/login";
} }
$item_title = $menu_item->title; $item_title = $menu_item->title;
if (strtolower($menu_item->title) == 'collections') { if ($lowered_title == 'collections') { // change Collections item
$item_title = "Project"; $item_title = "Project";
$item_url = $wordpress_site; $item_url = $wordpress_site;
} }