'; } add_action( 'bootstrapx_entry_header', 'bootstrapx_entry_header_opening', 5 ); /** * entry post date */ if ( ! function_exists( 'bootstrapx_post_date' ) ) : function bootstrapx_post_date() { printf( __( '', 'bootstrap-x' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } add_action( 'bootstrapx_entry_header', 'bootstrapx_post_date', 6 ); endif; /** * entry author */ if ( ! function_exists( 'bootstrapx_post_author' ) ) : function bootstrapx_post_author() { printf( __( '', 'bootstrap-x' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'bootstrap-x' ), get_the_author() ) ), esc_html( get_the_author() ) ); } add_action( 'bootstrapx_entry_header', 'bootstrapx_post_author', 7 ); endif; /** * post comments */ if ( ! function_exists( 'bootstrapx_post_comments' ) ): function bootstrapx_post_comments() { if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) { ?> '; } add_action( 'bootstrapx_entry_header', 'bootstrapx_entry_header_closing', 9 ); /** * entry footer opening */ function bootstrapx_entry_footer_opening() { echo '
'; } add_action( 'bootstrapx_entry_footer', 'bootstrapx_entry_footer_opening', 5 ); /** * post categories - entry footer */ if ( ! function_exists( 'bootstrapx_post_categories' ) ): function bootstrapx_post_categories() { $post_categories = get_the_category(); if ( $post_categories ) { echo ''; $num_categories = count( $post_categories ); $category_count = 1; foreach ( $post_categories as $category ) { $html_before = ''; $html_after = ''; if ( $category_count < $num_categories ) $sep = ', '; elseif ( $category_count == $num_categories ) $sep = ''; echo $html_before . $category->name . $html_after . $sep; $category_count++; } echo ''; } } add_action( 'bootstrapx_entry_footer', 'bootstrapx_post_categories', 6 ); endif; /** * post tags - entry footer */ if ( ! function_exists( 'bootstrapx_post_tags' ) ): function bootstrapx_post_tags() { $post_tags = get_the_tags(); if ( $post_tags ) { echo ''; $num_tags = count( $post_tags ); $tag_count = 1; foreach( $post_tags as $tag ) { $html_before = ''; $html_after = ''; if ( $tag_count < $num_tags ) $sep = ', '; elseif ( $tag_count == $num_tags ) $sep = ''; echo $html_before . $tag->name . $html_after . $sep; $tag_count++; } echo ''; } } add_action( 'bootstrapx_entry_footer', 'bootstrapx_post_tags', 7 ); endif; /** * entry footer closing */ function bootstrapx_entry_footer_closing() { echo '
'; } add_action( 'bootstrapx_entry_footer', 'bootstrapx_entry_footer_closing', 8 );