';
foreach($categories as $category) {
$color_code = eblog_lite_category_color( get_cat_id( $category->cat_name ) );
if (!empty($color_code)) {
$output .= ''.esc_attr( $category->cat_name ).''.$separator;
} else {
$output .= ''.$category->cat_name.''.$separator;
}
}
$output .='';
echo trim( $output, $separator );
}
}#end Category Section
}
}
if ( ! function_exists( 'eblog_lite_category_color' ) ){
function eblog_lite_category_color( $wp_category_id ) {
$args = array(
'orderby' => 'id',
'hide_empty' => 0
);
$category = get_categories( $args );
foreach ( $category as $category_list ) {
$color = get_theme_mod( 'eblog_lite_category_color_'.$wp_category_id );
return $color;
}
}
}