%2$s%3$s
',
esc_url( home_url( '/' ) ),
get_bloginfo( 'name' ),
get_bloginfo( 'description' )
);
}elseif( $_site_logo_condition == '0' && $_site_logo_link != '' ){
printf('',
esc_url( home_url( '/' ) ),
get_bloginfo( 'name' ),
esc_url( $_site_logo_link )
);
}else{
printf('',
esc_url( home_url( '/' ) ),
get_bloginfo( 'name' ),
esc_url( $_site_logo_link )
);
}
}
}
/**
* Pagination.
*/
if(! function_exists( 'inspirelite_pagination' ) ){
function inspirelite_pagination( $numpages = '', $pagerange = '', $paged='' ){
if( $numpages >= absint( '2' ) ):
global $paged, $wp_query;
if ( empty($pagerange) ){
$pagerange = absint('2');
}
if ( empty($paged) ){
$paged = absint('1');
}
if ($numpages == ''){
$numpages = $wp_query->max_num_pages;
if(!$numpages){
$numpages = absint('1');
}
}
$big = absint('999999999'); // need an unlikely integer
$pagination_args = array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '&paged=%#%',
'total' => $numpages,
'current' => $paged,
'show_all' => false,
'end_size' => 1,
'mid_size' => $pagerange,
'prev_next' => true,
'type' => 'array',
'add_args' => false,
'add_fragment' => '',
'prev_text' => esc_html__('«','inspirelite'),
'next_text' => esc_html__('»','inspirelite'),
);
$pages = paginate_links($pagination_args);
if( is_array( $pages ) ) { $paged = ( get_query_var('paged') == absint('0') ) ? absint('1') : get_query_var('paged');
print '';
}
endif;
}
}
/**
* the_achive description.
*/
if( ! function_exists('inspirelite_the_archive_title') ){
function inspirelite_the_archive_title() {
if ( is_category() ) {
$title = sprintf( esc_html__( 'Category: %s', 'inspirelite' ), single_cat_title( '', false ) );
} elseif ( is_tag() ) {
$title = sprintf( esc_html__( 'Tag: %s', 'inspirelite' ), single_tag_title( '', false ) );
} elseif ( is_author() ) {
$title = sprintf( esc_html__( 'Author: %s', 'inspirelite' ), '' . get_the_author() . '' );
} elseif ( is_year() ) {
$title = sprintf( esc_html__( 'Year: %s', 'inspirelite' ), get_the_date( esc_html_x( 'Y', 'yearly archives date format', 'inspirelite' ) ) );
} elseif ( is_month() ) {
$title = sprintf( esc_html__( 'Month: %s', 'inspirelite' ), get_the_date( esc_html_x( 'F Y', 'monthly archives date format', 'inspirelite' ) ) );
} elseif ( is_day() ) {
$title = sprintf( esc_html__( 'Day: %s', 'inspirelite' ), get_the_date( esc_html_x( 'F j, Y', 'daily archives date format', 'inspirelite' ) ) );
} elseif ( is_tax( 'post_format' ) ) {
if ( is_tax( 'post_format', 'post-format-aside' ) ) {
$title = esc_html_x( 'Asides', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) {
$title = esc_html_x( 'Galleries', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
$title = esc_html_x( 'Images', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
$title = esc_html_x( 'Videos', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
$title = esc_html_x( 'Quotes', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
$title = esc_html_x( 'Links', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-status' ) ) {
$title = esc_html_x( 'Statuses', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-audio' ) ) {
$title = esc_html_x( 'Audio', 'post format archive title', 'inspirelite' );
} elseif ( is_tax( 'post_format', 'post-format-chat' ) ) {
$title = esc_html_x( 'Chats', 'post format archive title', 'inspirelite' );
}
} elseif ( is_post_type_archive() ) {
$title = sprintf( esc_html__( 'Archives: %s', 'inspirelite' ), post_type_archive_title( '', false ) );
} elseif ( is_tax() ) {
$tax = get_taxonomy( get_queried_object()->taxonomy );
/* translators: 1: Taxonomy singular name, 2: Current taxonomy term */
$title = sprintf( esc_html__( '%1$s: %2$s', 'inspirelite' ), $tax->labels->singular_name, single_term_title( '', false ) );
} else {
$title = esc_html__( 'Archives', 'inspirelite' );
}
return apply_filters( 'get_the_archive_title', $title );
}
}
?>