!
( functions.php ), , div div
class Walker_Page_Custom extends Walker_Nav_Menu {
/**
* @see Walker::start_lvl()
* @since 2.1.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function start_lvl(&$output, $depth) {
$indent = str_repeat("\t", $depth);
$output .= "\n$indent<div class='sub'><div class='sub-top'></div><div class='sub-mid'><ul>\n";
}
/**
* @see Walker::end_lvl()
* @since 2.1.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function end_lvl(&$output, $depth) {
$indent = str_repeat("\t", $depth);
$output .= "$indent</ul><span class='clear'></span></div><div class='sub-bottom'></div><span class='clear'></span></div>\n";
}
}
wp_nav_menu,
'walker' => new Walker_Page_Custom
, -!
Dave