' . $byline . '
';
echo ' ' . $byline . '
';
}
endif;
if( !function_exists('allinone_entry_footer') ):
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function allinone_entry_footer( $cats = true, $tags = true, $edits = true, $text = true, $icon = true ){
$allinone_default = allinone_get_default_theme_options();
$ed_post_category = absint( get_theme_mod( 'ed_post_category',$allinone_default['ed_post_category'] ) );
$ed_post_tags = absint( get_theme_mod( 'ed_post_tags',$allinone_default['ed_post_tags'] ) );
// Hide category and tag text for pages.
if ('post' === get_post_type()) {
if( $cats && $ed_post_category ){
/* translators: used between list items, there is a space after the comma */
$categories = get_the_category();
if ($categories) {
echo '';
if( $icon ){
echo '
';
allinone_theme_svg('folder');
echo '';
}
if( $text ){
echo '
';
esc_html_e('In', 'allinone');
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, 'allinone-cat-color', true ); ?>
style="background-color: " 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', 'allinone'));
if( $tags_list ){
echo '
';
echo ' ';
allinone_theme_svg('tag');
echo '';
echo '';
esc_html_e('In', 'allinone');
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', 'allinone'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'
',
'
'
);
}
}
}
endif;
if ( !function_exists('allinone_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 allinone_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('allinone_breadcrumb') ) :
/**
* Allinone Breadcrumb
*/
function allinone_breadcrumb_with_title_block($comment = null){
echo '
';
breadcrumb_trail();
if( is_search() ){ ?>
';
}
endif;