%s
', get_permalink(), the_title_attribute( 'echo=0' ), CHILD_URL, 'post' );
}
}
endif;
add_action( 'bizznis_entry_header', 'bizznis_entry_header_markup_open', 5 );
/**
* Echo the opening structural markup for the entry header.
*
* @since 1.0.0
*/
if ( ! function_exists( 'bizznis_entry_header_markup_open' ) ) :
function bizznis_entry_header_markup_open() {
printf( '%s
' . $entry_meta . '
', bizznis_attr( 'entry-meta' ) ); } endif; add_action( 'bizznis_entry_footer', 'bizznis_entry_footer_markup_open', 5 ); /** * Echo the opening structural markup for the entry footer. * * @since 1.0.0 */ if ( ! function_exists( 'bizznis_entry_footer_markup_open' ) ) : function bizznis_entry_footer_markup_open() { if ( 'post' === get_post_type() ) { printf( ''; } } endif; add_filter( 'bizznis_post_meta', 'do_shortcode', 20 ); add_action( 'bizznis_entry_footer', 'bizznis_post_meta' ); /** * Echo the post meta after the post content. * * @since 1.0.0 */ if ( ! function_exists( 'bizznis_post_meta' ) ) : function bizznis_post_meta() { # Doesn't do post meta on pages. if ( 'page' === get_post_type() ) { return; } $entry_meta = apply_filters( 'bizznis_post_meta', '[post_categories] [post_tags]' ); printf( '' . $entry_meta . '
', bizznis_attr( 'entry-meta' ) ); } endif; add_action( 'bizznis_after_entry', 'bizznis_do_author_box_single' ); /** * Conditionally add the author box after single posts or pages. * * @since 1.0.0 */ if ( ! function_exists( 'bizznis_do_author_box_single' ) ) : function bizznis_do_author_box_single() { if ( ! is_single() ) { return; } if ( get_the_author_meta( 'bizznis_author_box_single', get_the_author_meta( 'ID' ) ) ) { bizznis_author_box( 'single' ); } } endif; /** * Echo the the author box and its contents. * * @since 1.0.0 */ if ( ! function_exists( 'bizznis_author_box' ) ) : function bizznis_author_box( $context = '', $echo = true ) { global $authordata; $authordata = is_object( $authordata ) ? $authordata : get_userdata( get_query_var( 'author' ) ); $gravatar_size = apply_filters( 'bizznis_author_box_gravatar_size', 60, $context ); $gravatar = get_avatar( get_the_author_meta( 'email' ), $gravatar_size ); $description = wpautop( get_the_author_meta( 'description' ) ); # The author box markup, contextual $title = __( 'About', 'bizznis' ) . ' ' . get_the_author() . ''; /** * Author box title filter. * * Allows you to filter the title of the author box. $context passed as second parameter to allow for contextual filtering. * * @since unknown * * @param string $title Assembled Title. * @param string $context Context. */ $title = apply_filters( 'bizznis_author_box_title', $title, $context ); $pattern = sprintf( '