ID);
if ($post_categories) {
$output = '
';
foreach ($post_categories as $post_category) {
$t_id = $post_category->term_id;
$color_id = "category_color_" . $t_id;
// retrieve the existing value(s) for this meta field. This returns an array
$term_meta = get_option($color_id);
$color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1';
$output .= '-
' . esc_html($post_category->name) . '
';
}
$output .= '
';
echo $output;
}
}
}
endif;
if (!function_exists('magnitude_get_category_color_class')) :
function magnitude_get_category_color_class($term_id)
{
$color_id = "category_color_" . $term_id;
// retrieve the existing value(s) for this meta field. This returns an array
$term_meta = get_option($color_id);
$color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : '';
return $color_class;
}
endif;
if (!function_exists('magnitude_post_item_meta')) :
function magnitude_post_item_meta()
{
global $post;
if ('post' == get_post_type($post->ID)):
$author_id = $post->post_author;
$display_setting = magnitude_get_option('global_post_date_author_setting');
$date_display_setting = magnitude_get_option('global_date_display_setting');
?>
' . esc_html('Tags: %1$s') . '', $tags_list); // WPCS: XSS OK.
}
}
if (is_single()) {
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__('Edit %s', 'magnitude'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'',
''
);
}
}
endif;