'; } add_action( 'bootstrapx_entry_header', 'gule_entry_header_markup_open', 5 ); /*-----------------------------------------------------------------------------------*/ /* Posted date on Index/Post */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_do_posted_on' ) ) : function gule_do_posted_on() { printf( __( ' ', 'gule' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } add_action( 'gule_entry_header', 'gule_do_posted_on', 6 ); endif; /*-----------------------------------------------------------------------------------*/ /* Post Author on Index/Post */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_do_post_author' ) ) : function gule_do_post_author() { printf( __( ' ', 'gule' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'gule' ), get_the_author() ) ), esc_html( get_the_author() ) ); } add_action( 'gule_entry_header', 'gule_do_post_author', 7 ); endif; /*-----------------------------------------------------------------------------------*/ /* Comments/Leave a comment on Index/Post */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_do_post_comments_link' ) ): function gule_do_post_comments_link() { if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) { ?> '; } add_action( 'gule_entry_header', 'gule_entry_header_markup_close', 9 ); /*-----------------------------------------------------------------------------------*/ /* List of categories on Index/Post */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_do_post_categories' ) ): function gule_do_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( 'gule_entry_footer', 'gule_do_post_categories', 6 ); endif; /*-----------------------------------------------------------------------------------*/ /* List post tags on Index/Posts */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_do_post_tags' ) ): function gule_do_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( 'gule_entry_footer', 'gule_do_post_tags', 7 ); endif; /*-----------------------------------------------------------------------------------*/ /* Recent post widget date & comments Hook : gule_recent_post_widget_meta */ /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'gule_recent_widget_date' ) ) : function gule_recent_widget_date() { printf( __( ' ', 'gule' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } add_action( 'gule_recent_post_widget_meta', 'gule_recent_widget_date', 2 ); endif; // comment link if ( ! function_exists( 'gule_recent_widget_comments' ) ): function gule_recent_widget_comments() { if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) { ?>