Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class dropdown extends Walker_CategoryDropdown {
- function start_el(&$output, $category, $depth, $args) {
- $pad = str_repeat(' ', $depth * 3);
- $cat_name = apply_filters( 'list_cats', $category->name, $category );
- $output .= "\t<option class=\"level-$depth\" value=\"".$category->slug."\"";
- $output .= '>';
- $output .= $pad.$cat_name;
- if ( $args['show_count'] )
- $output .= ' ('. $category->count .')';
- if ( $args['show_last_update'] ) {
- $format = 'Y-m-d';
- $output .= ' ' . gmdate($format, $category->last_update_timestamp);
- }
- $output .= "</option>\n";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement