'; // WPCS: XSS OK.
}
endif;
if (!function_exists('blogger_buzz_posted_by')) :
/**
* Prints HTML with meta information for the current author.
*/
function blogger_buzz_posted_by(){
echo '
'; // WPCS: XSS OK.
}
endif;
if (!function_exists('blogger_buzz_comments')) :
/**
* Prints HTML with meta information for the current author.
*/
function blogger_buzz_comments(){
echo '
';
comments_popup_link(
sprintf(
wp_kses(
/* translators: %s: post title */
__('Leave a Comment on %s', 'blogger-buzz'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
echo '
'; // WPCS: XSS OK.
}
endif;
/**
* Category Lists.
*/
if (!function_exists('blogger_buzz_category')) :
function blogger_buzz_category(){
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category();
foreach ($categories_list as $category) {
echo '
';
}
}
endif;
if (!function_exists('blogger_buzz_tags')) :
function blogger_buzz_tags(){
/* translators: used between list items, there is a space after the comma */
$posttags = get_the_tags();
$count = 0;
$sep = '
';
}
}
endif;
if (!function_exists('blogger_buzz_entry_footer')) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function blogger_buzz_entry_footer(){
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__('Edit %s', 'blogger-buzz'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'',
''
);
}
endif;
if (!function_exists('blogger_buzz_post_thumbnail')) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function blogger_buzz_post_thumbnail(){
if (post_password_required() || is_attachment() || !has_post_thumbnail()) {
return;
}
if (is_singular()) : ?>