Just a little tweak to make the menu-manager (admin backend - drag and drop menu order) look a little bit more organised by giving all childpages a 'hasparent' class.
changed the following in menu-manager.php on line 66:
Now the menu-items with a parent can be styled differently (for example I've set a margin-right on li.hasparent strong, so every childpage has an indent)
Perhaps someone can simplify the code a bit, and have a look if it has any side effects?
changed the following in menu-manager.php on line 66:
Code:
if ($page['parent'] != '') {
echo '<li class="clearfix hasparent" rel="'.$page['slug'].'">
<strong>#'.$page['menuOrder'].'</strong>
'. $page['menu'] .' <em>'. $page['title'] .'</em>
</li>';
}
else {
echo '<li class="clearfix" rel="'.$page['slug'].'">
<strong>#'.$page['menuOrder'].'</strong>
'. $page['menu'] .' <em>'. $page['title'] .'</em>
</li>';
}
Now the menu-items with a parent can be styled differently (for example I've set a margin-right on li.hasparent strong, so every childpage has an indent)
Perhaps someone can simplify the code a bit, and have a look if it has any side effects?
<º)))><