I've been trying to implement an opencube menu in wordpress 2.8 for a while now. I'm using the following code to get the desired output from wp_list_pages function:
$my_pages = wp_list_pages('title_li=&echo=0');
$my_pages = str_replace('<li class="page_item', '<li><span class="qmdivider qmdividery"></span></li><li class="page_item', $my_pages);
$my_pages = str_replace('<ul', '<ul class="wordp_listsubs_sec"', $my_pages);
The problem is that I only want to assign the string <li><span class="qmdivider qmdividery"></span></li> to all top level pages (meaning the links that is displayed as main menu items when you visit blogger.steinberg.se).
The li string above works as a divider between the main menu items. But when this string is assigned to the submenus as well it ****s upp the spacing between the submenu items in older browsers ;-(
Please help me with this one, I'm pulling my hair right now... I'm originally an ASP developer som I'm struggling a alittle bit with the PHP ;-)
Thanks in advance! /Daniel