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
<?php | |
class My_Walker_Page extends Walker_Page { | |
public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { | |
if ( $depth ) { | |
$indent = str_repeat( "\t", $depth ); | |
} else { | |
$indent = ''; | |
} | |
$css_class = array( 'page_item', 'page-item-' . $page->ID ); |
OlderNewer