home/abhiramc/public_html/wp-content/themes/whistle/tpl-wpsl_stores.php 0000644 00000014214 15021264702 0022501 0 ustar 00 ID,'_tpl_default_settings',TRUE);
$settings = is_array( $settings ) ? array_filter( $settings ) : array();
$global_breadcrumb = cs_get_option( 'show-breadcrumb' );
$header_class = '';
if( !$settings['enable-sub-title'] || !isset( $settings['enable-sub-title'] ) ) {
if( isset( $settings['show_slider'] ) && $settings['show_slider'] ) {
if( isset( $settings['slider_type'] ) ) {
$header_class = $settings['slider_position'];
}
}
}
if( !empty( $global_breadcrumb ) ) {
if( isset( $settings['enable-sub-title'] ) && $settings['enable-sub-title'] ) {
$header_class = $settings['breadcrumb_position'];
}
}?>
';
} elseif( $settings['slider_type'] == 'revolutionslider' && !empty( $settings['revolutionslider_id'] ) ) {
echo '';
echo '
';
echo do_shortcode('[rev_slider '.$settings['revolutionslider_id'].'/]');
echo '
';
echo '
';
} elseif( $settings['slider_type'] == 'customslider' && !empty( $settings['customslider_sc'] ) ) {
echo '';
echo '
';
echo do_shortcode( $settings['customslider_sc'] );
echo '
';
echo '
';
}
}
}
}
?>
post_parent ) {
$parent_id = $post->post_parent;
$parents = array();
while( $parent_id ) {
$page = get_page( $parent_id );
$parents[] = '' . get_the_title( $page->ID ) . '';
$parent_id = $page->post_parent;
}
$parents = array_reverse( $parents );
$breadcrumbs = array_merge_recursive($breadcrumbs, $parents);
}
$breadcrumbs[] = the_title( '', '', false );
$style = whistle_breadcrumb_css( $settings['breadcrumb_background'] );
whistle_breadcrumb_output ( the_title( '', '
',false ), $breadcrumbs, $bstyle, $style);
}
}
?>