name ); $cat_name = apply_filters( 'list_cats', $cat_name, $category ); $link = 'slug; if ( !empty($current_category) ) { $_current_category = get_term( $current_category, $category->taxonomy ); if ( $category->term_id == $current_category ) $class .= ' active'; elseif ( $category->term_id == $_current_category->parent ) $class .= ' current-cat-parent'; } $link .= 'data-filter=".'.strtolower($class).' "'; $link .= '>'; $link .= $cat_name . ''; $output .= "\t$link\n"; } } class aleanta_Portfolio_Walker2 extends Walker_Category { function start_el(&$output, $category, $depth=0, $args=array(), $id=0) { extract($args); $cat_name = esc_attr( $category->name ); $cat_name = apply_filters( 'list_cats', $cat_name, $category ); $link = 'slug; $class = ''; if ( !empty($current_category) ) { $_current_category = get_term( $current_category, $category->taxonomy ); if ( $category->term_id == $current_category ) $class .= 'active'; elseif ( $category->term_id == $_current_category->parent ) $class .= ' current-cat-parent'; } $link .= ' class="'.esc_attr($class).'"'; $link .= '>'; $link .= $cat_name . ''; if ( 'list' == $args['style'] ) { $output .= "\tname ), $category ); $link = 'description ) ) { /** * Filter the category description for display. * * @since 1.2.0 * * @param string $description Category description. * @param object $category Category object. */ $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"'; } $link .= '>'; $link .= $cat_name . ''; if ( 'list' == $args['style'] ) { $output .= "\tterm_id); if ( ! empty( $args['current_category'] ) ) { $_current_category = get_term( $args['current_category'], $category->taxonomy ); if ( $category->term_id == $args['current_category'] ) { $class .= ' current-cat'; } elseif ( $category->term_id == $_current_category->parent ) { $class .= ' current-cat-parent'; } } $output .= ' class="' . esc_attr($class) . '"'; $output .= ">$link\n"; } else { $output .= "\t$link
\n"; } } } ?>