Compare commits

..

No commits in common. "f9d2d659313d50e25ed587df7f5305345456fe92" and "f79b7af69c4630ed42f7b8179748a62ec13c1ce6" have entirely different histories.

1 changed files with 3 additions and 6 deletions

View File

@ -17,13 +17,12 @@ if ($wordpress_endpoint) {
if (!$response->isClientError() && $response_data) {
foreach ($response_data as $menu_item) {
$lowered_title = strtolower($menu_item->title);
$item_url = $menu_item->url;
if ($lowered_title == 'login') { // manipulate login url
if (strtolower($menu_item->title) == 'login') {
$item_url = "/login";
}
$item_title = $menu_item->title;
if ($lowered_title == 'collections') { // change Collections item
if (strtolower($menu_item->title) == 'collections') {
$item_title = "Project";
$item_url = $wordpress_site;
}
@ -55,8 +54,6 @@ function render_menu($items, $level_id) {
echo '</ul>' . PHP_EOL;
}
if (count($items[0]) > 0) {
render_menu($items, 0);
}
render_menu($items, 0);
?>