SHARE
TWEET

Untitled

a guest May 2nd, 2014 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         class megaMenuWalker extends Walker_Nav_Menu {
  2.             function start_lvl(&$output, $depth = 0, $args = array()) {
  3.                 $indent = str_repeat("\t", $depth);
  4.                         if ($depth == 0) {
  5.                         $output .= "\n$indent<section>\n";
  6.                         }
  7.                         $output .= "<ul class=\"sub-menu\">\n";
  8.             }
  9.             function end_lvl(&$output, $depth = 0, $args = array()) {
  10.                 $indent = str_repeat("\t", $depth);
  11.                 $output .= "\n$indent</ul>\n";
  12.                         if ($depth == 0) {
  13.                                 $output .= "</section>\n";
  14.                         }
  15.             }
  16.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top