Last active
August 29, 2015 13:56
-
-
Save ryantheleach/8887801 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Walker_Nav_Menu_Append extends Walker_Nav_Menu { | |
var $appendage = ''; | |
function __construct($appendage = ''){ | |
$this->appendage = $appendage; | |
} | |
public function start_lvl(&$output, $depth){ | |
return parent::start_lvl($output, $depth); | |
} | |
public function start_el(&$output, $item, $depth, $args){ | |
return parent::start_el($output, $depth); | |
} | |
function end_el( &$output, $item, $depth = 0, $args = array() ) { | |
return parent::end_el($output,$item,$depth); | |
} | |
public function end_lvl( &$output, $depth = 0, $args = array() ) { | |
$retval = parent::end_lvl($output, $depth); | |
echo('<!--'); | |
var_dump($output); | |
var_dump($depth); | |
var_dump($args); | |
echo('-->'); | |
return $retval; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment