';
if( class_exists( 'ReduxFramework' ) ){
$piller_page_title_switcher = piller_opt('piller_page_title_switcher');
}else{
$piller_page_title_switcher = '1';
}
if( $piller_page_title_switcher ){
if( class_exists( 'ReduxFramework' ) ){
$piller_page_title_tag = piller_opt('piller_page_title_tag');
}else{
$piller_page_title_tag = 'h1';
}
if( class_exists('woocommerce') && is_shop() ) {
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( woocommerce_page_title( false ), $allowhtml ),
'class' => 'breadcumb-title'
)
);
}elseif ( is_archive() ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( get_the_archive_title(), $allowhtml ),
'class' => 'breadcumb-title'
)
);
}elseif ( is_home() ){
$piller_blog_page_title_setting = piller_opt('piller_blog_page_title_setting');
$piller_blog_page_title_switcher = piller_opt('piller_blog_page_title_switcher');
$piller_blog_page_custom_title = piller_opt('piller_blog_page_custom_title');
if( class_exists('ReduxFramework') ){
if( $piller_blog_page_title_switcher ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => !empty( $piller_blog_page_custom_title ) && $piller_blog_page_title_setting == 'custom' ? esc_html( $piller_blog_page_custom_title) : esc_html__( 'Latest News', 'piller' ),
'class' => 'breadcumb-title'
)
);
}
}else{
echo piller_heading_tag(
array(
"tag" => "h1",
"text" => esc_html__( 'Latest News', 'piller' ),
'class' => 'breadcumb-title',
)
);
}
}elseif( is_search() ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => esc_html__( 'Search Result', 'piller' ),
'class' => 'breadcumb-title'
)
);
}elseif( is_404() ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => esc_html__( 'Error Page', 'piller' ),
'class' => 'breadcumb-title'
)
);
}elseif( is_singular( 'product' ) ){
$posttitle_position = piller_opt('piller_product_details_title_position');
$postTitlePos = false;
if( class_exists( 'ReduxFramework' ) ){
if( $posttitle_position && $posttitle_position != 'header' ){
$postTitlePos = true;
}
}else{
$postTitlePos = false;
}
if( $postTitlePos != true ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( get_the_title( ), $allowhtml ),
'class' => 'breadcumb-title'
)
);
} else {
if( class_exists( 'ReduxFramework' ) ){
$piller_post_details_custom_title = piller_opt('piller_product_details_custom_title');
}else{
$piller_post_details_custom_title = __( 'Shop Details','piller' );
}
if( !empty( $piller_post_details_custom_title ) ) {
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( $piller_post_details_custom_title, $allowhtml ),
'class' => 'breadcumb-title'
)
);
}
}
}else{
$posttitle_position = piller_opt('piller_post_details_title_position');
$postTitlePos = false;
if( is_single() ){
if( class_exists( 'ReduxFramework' ) ){
if( $posttitle_position && $posttitle_position != 'header' ){
$postTitlePos = true;
}
}else{
$postTitlePos = false;
}
}
if( is_singular( 'product' ) ){
$posttitle_position = piller_opt('piller_product_details_title_position');
$postTitlePos = false;
if( class_exists( 'ReduxFramework' ) ){
if( $posttitle_position && $posttitle_position != 'header' ){
$postTitlePos = true;
}
}else{
$postTitlePos = false;
}
}
if( $postTitlePos != true ){
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( get_the_title( ), $allowhtml ),
'class' => 'breadcumb-title'
)
);
} else {
if( class_exists( 'ReduxFramework' ) ){
$piller_post_details_custom_title = piller_opt('piller_post_details_custom_title');
}else{
$piller_post_details_custom_title = __( 'Blog Details','piller' );
}
if( !empty( $piller_post_details_custom_title ) ) {
echo piller_heading_tag(
array(
"tag" => esc_attr( $piller_page_title_tag ),
"text" => wp_kses( $piller_post_details_custom_title, $allowhtml ),
'class' => 'breadcumb-title'
)
);
}
}
}
}
if( class_exists('ReduxFramework') ) {
$piller_breadcrumb_switcher = piller_opt( 'piller_enable_breadcrumb' );
} else {
$piller_breadcrumb_switcher = '1';
}
if( $piller_breadcrumb_switcher == '1' ) {
if(piller_breadcrumbs()){
echo '
';
piller_breadcrumbs(
array(
'breadcrumbs_classes' => 'nav',
)
);
echo '
';
}
}
echo '