%3$s', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'bootcake'), get_the_author())), get_the_author());
$bootcake_utility_text = '
';
if ($bootcake_category_list) {
$bootcake_utility_text .= '- %1$s
';
}
if ($bootcake_tag_list) {
$bootcake_utility_text .= '- %2$s
';
}
$bootcake_utility_text .= '- %3$s
- ' . bootcake_comment_number_custom() . '
';
printf(
$bootcake_utility_text, $bootcake_category_list, $bootcake_tag_list, $bootcake_author
);
}
function bootcake_comment_number_custom() {
$bootcake_num_comments = get_comments_number(); // get_comments_number returns only a numeric value
$bootcake_comments = __('No Comments', 'bootcake');
if (comments_open()) {
if ($bootcake_num_comments == 0) {
$bootcake_comments = __('No Comments', 'bootcake');
} elseif ($bootcake_num_comments > 1) {
$bootcake_comments = $bootcake_num_comments . __(' Comments', 'bootcake');
} else {
$bootcake_comments = __('1 Comment', 'bootcake');
}
}
return $bootcake_comments;
}
function bootcake_entry_meta_date() {
$bootcake_date = sprintf(' %2$s %3$s', esc_attr(get_the_date('c')), esc_html(get_the_date('d')), esc_html(get_the_date('M' . ' ' . 'Y'))
);
printf($bootcake_date);
}