';
if( $icon ){
blogexpress_the_theme_svg('calendar');
}
echo $posted_on; // WPCS: XSS OK.
echo '
';
}
}
endif;
if( !function_exists('blogexpress_posted_by') ) :
/**
* Prints HTML with meta information for the current author.
*/
function blogexpress_posted_by( $icon = true){
$blogexpress_default = blogexpress_get_default_theme_options();
$ed_post_author = absint( get_theme_mod( 'ed_post_author',$blogexpress_default['ed_post_author'] ) );
if( $ed_post_author ){
echo '';
/* translators: 1: list of categories. */
foreach( $categories as $category ){
$cat_name = $category->name;
$cat_slug = $category->slug;
$cat_url = get_category_link( $category->term_id );
?>
';
}
}
if( $tags && $ed_post_tags ){
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'blogexpress'));
if( $tags_list ){
echo '
';
/* translators: 1: list of tags. */
echo '';
echo wp_kses_post($tags_list) . ''; // WPCS: XSS OK.
echo '
';
}
}
if( $edits ){
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__('Edit
%s', 'blogexpress'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'
',
''
);
}
}
}
endif;
if ( !function_exists('blogexpress_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 blogexpress_post_thumbnail($image_size = 'full'){
if( post_password_required() || is_attachment() || !has_post_thumbnail() ){ return; }
if ( is_singular() ) : ?>
the_title_attribute(array(
'echo' => false,
)),
)); ?>
user_id > 0) {
$user = get_userdata($comment->user_id);
$post = get_post($comment->comment_post_ID);
if (!empty($user) && !empty($post)) {
return $comment->user_id === $post->post_author;
}
}
return false;
}
endif;
if( !function_exists('blogexpress_breadcrumb') ) :
/**
* BlogExpress Breadcrumb
*/
function blogexpress_breadcrumb($comment = null){
echo '
';
breadcrumb_trail();
echo '
';
}
endif;