Guest User

Untitled

a guest
Jul 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. class Salamander_Advent_Walker extends Walker_page {
  2.     private $color_idx = 1;
  3.     function start_el(&$output, $item, $depth, $args) {
  4.  
  5.         $output .= '
  6.                     <li class="color'.$this->color_idx.' active">' . apply_filters( 'the_title', $item->post_title, $item->ID );
  7.         $this->color_idx++;
  8.         if ($this->color_idx > 4) {
  9.             $this->color_idx = 1;
  10.         }
  11. //__return_zero;
  12. //__return_false;
  13.     } // ends function
  14. } // ends class
Add Comment
Please, Sign In to add comment