';
}
add_action( 'gule_entry_header', 'gule_entry_header_markup_open', 5 );
if ( ! function_exists( 'gule_do_posted_on' ) ) :
/**
* Prints HTML with date posted information for the current post.
*/
function gule_do_posted_on() {
printf( __( ' ', 'GuleThene' ),
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;
if ( ! function_exists( 'gule_do_post_author' ) ) :
/**
* Prints HTML with meta information for the current post's author.
*
* @since 0.59
*/
function gule_do_post_author() {
printf( __( ' %3$s', 'GuleThene' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'GuleThene' ), get_the_author() ) ),
esc_html( get_the_author() )
);
}
add_action( 'gule_entry_header', 'gule_do_post_author', 7 );
endif;
if ( ! function_exists( 'gule_do_post_comments_link' ) ):
/**
* Display the "Leave a comment" message
* @since .74
*/
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 );
if ( ! function_exists( 'gule_do_post_categories' ) ):
/**
* Customize the list of categories displayed on index and on a post
* @since 0.3
*/
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;
if ( ! function_exists( 'gule_do_post_tags' ) ):
/**
* Customize the list of tags displayed on index and on a post
* @since 0.3
*/
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;