Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Salamander_Advent_Walker extends Walker_page {
- private $color_idx = 1;
- function start_el(&$output, $item, $depth, $args) {
- $output .= '
- <li class="color'.$this->color_idx.' active">' . apply_filters( 'the_title', $item->post_title, $item->ID );
- $this->color_idx++;
- if ($this->color_idx > 4) {
- $this->color_idx = 1;
- }
- //__return_zero;
- //__return_false;
- } // ends function
- } // ends class
Add Comment
Please, Sign In to add comment