/** * @see Walker::start_el() * @since 2.1.0 * * @param string $output Passed by reference. Used to append additional content. * @param object $category Category data object. * @param int $depth Depth of category in reference to parents. * @param integer $current_object_id */ function start_el(&$output, $cat, $depth = 0, $args = array(), $current_object_id = 0) { $term_meta = get_option("taxonomy_{$cat->term_id}"); $output .= '<li class="list-group-item cat-item cat-item-' . $cat->term_id; if ($args['current_category'] == $cat->term_id) { $output .= ' current-cat'; } if ($args['has_children'] && $args['hierarchical']) { $output .= ' cat-parent'; } if ($args['current_category_ancestors'] && $args['current_category'] && in_array($cat->term_id, $args['current_category_ancestors'])) { $output .= ' current-cat-parent'; } $output .= '"><a href="' . get_term_link((int) $cat->term_id, 'product_cat') . '">'; if (isset($term_meta['icon']) && $term_meta['icon'] != '') { $output .= '<i class="fa ' . $term_meta['icon'] . '"></i>'; } else { //$output .= '<i class="fa fa-star"></i>'; } $output .= '<span class="heading">'; $output .= '<span class="menu-title">' . __($cat->name, 'woocommerce') . '</span>'; if ($cat->category_description != '') { $output .= '<span class="menu-desc">' . wpo_string_limit_words($cat->category_description, 5) . '</span>'; } $output .= '</span>'; $output .= '</a>'; if ($args['show_count']) { $output .= ' <span class="badge count">(' . $cat->count . ')</span>'; } }
echo strip_tags($comment->comment_author); ?> <?php __('says', TEXTDOMAIN); ?> : </h6> <a class="comment-text-side" href="<?php echo get_permalink($comment->ID); ?> #comment-<?php echo $comment->comment_ID; ?> " title="<?php echo strip_tags($comment->comment_author); ?> on <?php echo $comment->post_title; ?> "> <?php echo wpo_string_limit_words(strip_tags($comment->com_excerpt), 12); ?> ... </a> </div> </article> <?php } ?> </div>