%s', $post->post_title );
$output = sprintf( '
%s', $post->post_title );
}
if( is_archive() ) {
if ( is_day() ) :
$h1 = sprintf( '%s
%s', __( 'Daily Archives', 'agama' ), get_the_date() );
$output = sprintf( '%s', __( 'Daily Archives', 'agama' ) );
elseif ( is_month() ) :
$h1 = sprintf( '%s
%s', __( 'Monthly Archives', 'agama' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'agama' ) ) );
$output = sprintf( '%s', __( 'Monthly Archives', 'agama' ) );
elseif ( is_year() ) :
$h1 = sprintf( '%s
%s', __( 'Yearly Archives', 'agama' ), get_the_date( _x( 'Y', 'yearly archives date format', 'agama' ) ) );
$output = sprintf( '%s', __( 'Yearly Archives', 'agama' ) );
else :
$h1 = __( 'Archives', 'agama' );
$output = sprintf( '%s', __( 'Archives', 'agama' ) );
endif;
}
if( is_category() ) {
$span = '';
if( category_description() ) {
$cat_desc = strip_tags( category_description() );
$span = sprintf( '%s', $cat_desc );
}
$category = get_the_category();
$cat_ID = $category[0]->cat_ID;
$h1 = sprintf( '%s
', single_cat_title( '', false ) ) . $span;
$output = sprintf( '%s', single_cat_title( '', false ) );
}
if( is_tag() ) {
$h1 = sprintf( '%s
', __( 'Tag', 'agama' ) );
$output = sprintf( '%s', single_tag_title('', false) );
}
if( is_404() ) {
$h1 = sprintf( '%s
%s', '404', __( 'Page not Found', 'agama' ) );
$output = sprintf( '%s', __( 'Page not Found', 'agama' ) );
}
if( is_search() ) {
$h1 = sprintf( '%s
', __( 'Search', 'agama' ) );
$output = sprintf( '%s', __( 'Search', 'agama' ) );
}
// WooCommerce
if( class_exists('Woocommerce') ) {
if( is_shop() ) {
$h1 = sprintf( '%s
', __( 'Shop', 'agama' ) );
$output = sprintf( '%s', __( 'Shop', 'agama' ) );
}
}
if( is_home() || is_front_page() ) {
$h1 = sprintf( '%s
', __( 'Homepage', 'agama' ) );
$output = '';
}
$style = get_theme_mod( 'agama_breadcrumb_style', 'mini' ) == 'mini' ? 'page-title-mini' : ''; ?>