';
echo wp_kses_post( $cat_item );
}
/*
* Allow child themes and plugins to filter the arguments of the get_categories function.
*
* @param array Arguments, passed to get_categories and then to get_terms functions, Default array().
*/
$args = apply_filters( 'basho_blog_categories_args', array() );
$categories = get_categories( $args );
// Output remaining list items with categories.
if ( ! empty( $categories ) ) {
foreach ( $categories as $category ) {
$id = $category->term_id;
$name = $category->name;
$post_count = $category->category_count;
// For current category item add a .current-cat class and output h1 tag instead of a link.
if ( $id === get_queried_object_id() ) {
$cat_item = '