'; } else { if ( is_front_page() ) { $logo = '
' . get_bloginfo( 'name' ) . '
'; } } return $logo; } endif; if ( ! function_exists( 'hestia_category' ) ) : /** * Display the first category of the post. * * @since Hestia 1.0 */ function hestia_category() { $category = get_the_category(); if ( $category ) { echo '' . esc_html( $category[0]->name ) . ' '; } } endif; if ( ! function_exists( 'hestia_pagination' ) ) : /** * Display a custom number page navigation. * * @since Hestia 1.0 */ function hestia_pagination() { global $wp_query; $big = 999999999; // need an unlikely integer $pages = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'type' => 'array', ) ); if ( is_array( $pages ) ) { echo '