%3$s', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'blogpal'), get_the_author())), get_the_author());
$blogpal_utility_text = '
';
if ($blogpal_category_list) {
$blogpal_utility_text .= '- %1$s
';
}
if ($blogpal_tag_list) {
$blogpal_utility_text .= '- %2$s
';
}
$blogpal_utility_text .= '- %3$s
- ' . blogpal_comment_number_custom() . '
';
printf(
$blogpal_utility_text, $blogpal_category_list, $blogpal_tag_list, $blogpal_author
);
}
function blogpal_comment_number_custom() {
$blogpal_num_comments = get_comments_number(); // get_comments_number returns only a numeric value
$blogpal_comments = __('No Comments', 'blogpal');
if (comments_open()) {
if ($blogpal_num_comments == 0) {
$blogpal_comments = __('No Comments', 'blogpal');
} elseif ($blogpal_num_comments > 1) {
$blogpal_comments = $blogpal_num_comments . __(' Comments', 'blogpal');
} else {
$blogpal_comments = __('1 Comment', 'blogpal');
}
}
return $blogpal_comments;
}
function blogpal_entry_meta_date() {
$blogpal_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($blogpal_date);
}