';
if( $icon ){
boundlessnews_the_theme_svg('calendar');
}
echo $posted_on; // WPCS: XSS OK.
echo '
';
}
}
endif;
if( !function_exists('boundlessnews_posted_by') ) :
/**
* Prints HTML with meta information for the current author.
*/
function boundlessnews_posted_by(){
echo '';
if( $icon ){
boundlessnews_the_theme_svg('folder');
}
if( $text ){
echo '
';
esc_html_e('In', 'boundlessnews');
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 );
$twp_term_color = get_term_meta( $category->term_id, 'boundlessnews-cat-color', true ); ?>
style="background: " href="" rel="category tag">
';
}
}
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', 'boundlessnews'));
if( $tags_list ){
echo '
';
boundlessnews_the_theme_svg('tag');
echo '';
esc_html_e('In', 'boundlessnews');
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', 'boundlessnews'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'
',
'
'
);
}
}
}
endif;
if ( !function_exists('boundlessnews_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 boundlessnews_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('boundlessnews_breadcrumb_with_title_block') ) :
/**
* BoundlessNews Breadcrumb
*/
function boundlessnews_breadcrumb_with_title_block($comment = null){
$boundlessnews_default = boundlessnews_get_default_theme_options();
$ed_breadcrumb = absint( get_theme_mod( 'ed_breadcrumb',$boundlessnews_default['ed_breadcrumb'] ) );
if ($ed_breadcrumb) {
echo '
';
breadcrumb_trail();
echo '
';
}
if( is_search() ){ ?>