< class="site-title menu-item">
>
' . $tags_list . '
'; // WPCS: XSS OK
}
}
endif;
if ( ! function_exists( 'suki_entry_comments' ) ) :
/**
* Print comments block in single post page.
*/
function suki_entry_comments() {
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
}
endif;
if ( ! function_exists( 'suki_entry_title' ) ) :
/**
* Print entry title on each post.
*
* @param boolean $size
*/
function suki_entry_title( $size = '' ) {
$class = 'small' === $size ? 'entry-small-title h3' : 'entry-title h1';
if ( is_singular() ) {
the_title( '' . $html . '
'; // WPCS: XSS OK
}
}
}
endif;
if ( ! function_exists( 'suki_entry_header_meta' ) ) :
/**
* Print entry header meta.
*/
function suki_entry_header_meta() {
suki_entry_meta( suki_get_theme_mod( 'entry_header_meta', array() ) );
}
endif;
if ( ! function_exists( 'suki_entry_footer_meta' ) ) :
/**
* Print entry footer meta.
*/
function suki_entry_footer_meta() {
suki_entry_meta( suki_get_theme_mod( 'entry_footer_meta', array() ) );
}
endif;
if ( ! function_exists( 'suki_entry_grid_title' ) ) :
/**
* Print entry grid title.
*/
function suki_entry_grid_title() {
suki_entry_title( 'small' );
}
endif;
if ( ! function_exists( 'suki_entry_grid_featured_media' ) ) :
/**
* Print entry grid featured media.
*/
function suki_entry_grid_featured_media() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
global $content_width;
$width = ceil( intval( $content_width ) / intval( suki_get_theme_mod( 'blog_index_grid_columns' ) ) );
printf( // WPCS: XSS OK
'<%s class="entry-thumbnail">%s%s>',
is_singular() ? 'div' : 'a href="' . esc_url( get_the_permalink() ) . '"',
get_the_post_thumbnail( get_the_ID(), array( $width, 0 ) ),
is_singular() ? 'div' : 'a'
);
}
endif;
if ( ! function_exists( 'suki_entry_grid_header_meta' ) ) :
/**
* Print entry grid header meta.
*/
function suki_entry_grid_header_meta() {
suki_entry_meta( suki_get_theme_mod( 'entry_grid_header_meta', array() ) );
}
endif;
if ( ! function_exists( 'suki_entry_grid_footer_meta' ) ) :
/**
* Print entry grid footer meta.
*/
function suki_entry_grid_footer_meta() {
suki_entry_meta( suki_get_theme_mod( 'entry_grid_footer_meta', array() ) );
}
endif;
if ( ! function_exists( 'suki_entry_small_title' ) ) :
/**
* Print entry small title.
*/
function suki_entry_small_title() {
suki_entry_title( 'small' );
}
endif;
/**
* ====================================================
* All index pages template functions
* ====================================================
*/
if ( ! function_exists( 'suki_content_header' ) ) :
/**
* Render content header.
*/
function suki_content_header() {
if ( is_archive() ) {
?>
3,
'prev_text' => '«',
'next_text' => '»',
) );
break;
default:
the_posts_navigation( array(
'prev_text' => esc_html__( 'Older Posts', 'suki' ) . ' »',
'next_text' => '« ' . esc_html__( 'Newer Posts', 'suki' ),
) );
break;
}
}
endif;
/**
* ====================================================
* Single post template functions
* ====================================================
*/
if ( ! function_exists( 'suki_single_post_author_bio' ) ) :
/**
* Render author bio block in single post page.
*/
function suki_single_post_author_bio() {
if ( ! is_singular( 'post' ) ) return;
?>