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 .= "\t