%1$s %3$s',
_x( 'Author', 'Used before post author name.', 'bloging' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
}
if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
bloging_entry_date();
}
$format = get_post_format();
if ( current_theme_supports( 'post-formats', $format ) ) {
printf( '%1$s%3$s',
sprintf( '%s ', _x( 'Format', 'Used before post format.', 'bloging' ) ),
esc_url( get_post_format_link( $format ) ),
get_post_format_string( $format )
);
}
if ( 'post' === get_post_type() ) {
bloging_entry_taxonomies();
}
if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
}
endif;
if ( ! function_exists( 'bloging_cat_meta' ) ) :
function bloging_cat_meta() {
if ( is_singular() || is_multi_author() ) {
printf( '%1$s %3$s',
_x( 'Author', 'Used before post author name.', 'bloging' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
}
if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
bloging_entry_date();
}
}
endif;
if ( ! function_exists( 'bloging_entry_date' ) ) :
function bloging_entry_date() {
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
get_the_date(),
esc_attr( get_the_modified_date( 'c' ) ),
get_the_modified_date()
);
printf( '%1$s %3$s',
_x( 'Posted on', 'Used before publish date.', 'bloging' ),
esc_url( get_permalink() ),
$time_string
);
}
endif;
if ( ! function_exists( 'bloging_entry_taxonomies' ) ) :
function bloging_entry_taxonomies() {
$categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'bloging' ) );
if ( $categories_list && bloging_categorized_blog() ) {
printf( '%1$s %2$s',
_x( 'Categories', 'Used before category names.', 'bloging' ),
$categories_list
);
}
$tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'bloging' ) );
if ( $tags_list ) {
printf( '%1$s %2$s',
_x( 'Tags', 'Used before tag names.', 'bloging' ),
$tags_list
);
}
}
endif;
if ( ! function_exists( 'bloging_post_thumbnail' ) ) :
function bloging_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() ) :
?>
the_title_attribute( 'echo=0' ) ) ); ?>
%2$s',
esc_url( get_permalink( get_the_ID() ) ),
sprintf( __( 'Continue reading "%s"', 'bloging' ), get_the_title( get_the_ID() ) )
);
return ' … ' . $link;
}
add_filter( 'excerpt_more', 'bloging_excerpt_more' );
endif;
if ( ! function_exists( 'bloging_categorized_blog' ) ) :
function bloging_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'bloging_categories' ) ) ) {
$all_the_cool_cats = get_categories( array(
'fields' => 'ids',
'number' => 2,
) );
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'bloging_categories', $all_the_cool_cats );
}
if ( $all_the_cool_cats > 1 ) {
return true;
} else {
return false;
}
}
endif;
function bloging_category_transient_flusher() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
// Like, beat it. Dig?
delete_transient( 'bloging_categories' );
}
add_action( 'edit_category', 'bloging_category_transient_flusher' );
add_action( 'save_post', 'bloging_category_transient_flusher' );
if ( ! function_exists( 'bloging_the_custom_logo' ) ) :
function bloging_the_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
endif;