Header.
if ( get_header_image() ) :
// Hide header image on front page.
if ( true === $theme_options['custom_header_hide'] and is_front_page() ) {
return;
}
?>
' . $postmeta . '';
}
endif;
if ( ! function_exists( 'gridbox_meta_date' ) ) :
/**
* Displays the post date
*/
function gridbox_meta_date() {
$time_string = sprintf( '',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
return '' . $time_string . '';
}
endif;
if ( ! function_exists( 'gridbox_meta_author' ) ) :
/**
* Displays the post author
*/
function gridbox_meta_author() {
$author_string = sprintf( '%3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( esc_html__( 'View all posts by %s', 'gridbox' ), get_the_author() ) ),
esc_html( get_the_author() )
);
return ' ' . $author_string . '';
}
endif;
if ( ! function_exists( 'gridbox_meta_category' ) ) :
/**
* Displays the category of posts
*/
function gridbox_meta_category() {
return ' ' . get_the_category_list( ', ' ) . '';
}
endif;
if ( ! function_exists( 'gridbox_entry_tags' ) ) :
/**
* Displays the post tags on single post view
*/
function gridbox_entry_tags() {
// Get tags.
$tag_list = get_the_tag_list( '', '' );
// Display tags.
if ( $tag_list ) : ?>