REFACTOR cleaning and removing debug logging and unnecessary conditions for menu item handling
This commit is contained in:
parent
0045513e8e
commit
56e1be0251
|
|
@ -30,22 +30,11 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
|||
$subtitle_html = '<span class="page_subtitle">' . $page_subtitle . '</span>';
|
||||
|
||||
|
||||
if ($item->url === 'https://carhop.local/a-propos/equipe/') {
|
||||
write_log($item);
|
||||
write_log($subtitle_html);
|
||||
write_log($icon_html);
|
||||
// $icon_html = get_archive_page_icon_html($item->object);
|
||||
// $subtitle_html = get_archive_page_subtitle_html($item->object);
|
||||
}
|
||||
if ($item->type === 'post_type_archive') {
|
||||
$icon_html = get_archive_page_icon_html($item->object);
|
||||
$subtitle_html = get_archive_page_subtitle_html($item->object);
|
||||
}
|
||||
|
||||
if ($item->ID === 494) {
|
||||
write_log($item);
|
||||
}
|
||||
|
||||
$output = '<a href="' . $item->url . '" class="menu-item__content">' . $icon_html . '<div class="menu-item__content-inner"><p class="menu-item__title">' . $item->title . '</p>' . $subtitle_html . '</div></a>';
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user