max_num_pages < 2 ) {
return;
}
?>
post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
if ( ! $next && ! $previous ) {
return;
}
?>
%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
$posted_on = '' . $time_string . '';
$byline = '' . esc_html( get_the_author() ) . '';
$categories = get_the_category_list( esc_html__( ', ', 'golpo' ) );
if ( $categories ) {
$categories = ' ' . wp_kses($categories, array('a' => array('href' => array(), 'rel' => array()))) . ''; // WPCS: XSS OK.
}
echo ' ' . $posted_on . ' ' . $byline . ' '.$categories; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'golpo_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function golpo_entry_footer() {
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
// Hide category and tag text for pages.
if ( 'post' == get_post_type() ) {
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html__( ', ', 'golpo' ) );
if ( $tags_list ) {
printf( '' . wp_kses(__( ' %1$s', 'golpo' ), array('i' => array( 'class' => array() ))) . '', $tags_list ); // WPCS: XSS OK.
}
}
edit_post_link( esc_html__( 'Edit', 'golpo' ), ' ', '' );
}
endif;
if ( ! function_exists( 'golpo_category_transient_flusher' ) ) :
/**
* Flush out the transients used in golpo_categorized_blog.
*/
function golpo_category_transient_flusher() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
// Like, beat it. Dig?
delete_transient( 'golpo_categories' );
}
add_action( 'edit_category', 'golpo_category_transient_flusher' );
add_action( 'save_post', 'golpo_category_transient_flusher' );
endif;