'.esc_html( 'Related Articles' ).'
'; } else { echo '

'.esc_html( 'Related Articles' ).'

'; } } if ( ! class_exists( 'Ts_Tags' ) ) { class Ts_Tags { public static function pagination() { if ( class_exists( 'Ts_Framewk' ) && get_theme_mod('paginate_select_style') === 'load_more' && ! is_archive() && ! is_search() ) { ?>
Loading...'; } else { global $wp_query; if( is_singular() || is_404() ) return; /** Stop execution if there's only 1 page */ if( $wp_query->max_num_pages <= 1 ) return; $paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1; $max = intval( $wp_query->max_num_pages ); /** Add current page to the array */ if ( $paged >= 1 ) $links[] = $paged; /** Add the pages around the current page to the array */ if ( $paged >= 3 ) { $links[] = $paged - 1; $links[] = $paged - 2; } if ( ( $paged + 2 ) <= $max ) { $links[] = $paged + 2; $links[] = $paged + 1; } echo "
\n"; } } public static function featured_image() { $theme_settings = bansta_get_theme_settings(); if ( $theme_settings['show_home_image'] && has_post_thumbnail() && is_home() ) { ?>

-
-
-
-
'.esc_html__( 'Read more', 'bansta' ).' '.get_the_title().' '); } } public static function breadcrumbs() { // Settings $separator = ''; $breadcrums_id = 'breadcrumbs'; $breadcrums_class = 'breadcrumbs'; $home_title = 'Home'; // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat) $custom_taxonomy = 'product_cat'; // Get the query & post information global $post,$wp_query; // Do not display on the homepage if ( !is_front_page() ) { //Wrapper echo ''; } } } }