';
if ( !bazaarlite_is_woocommerce_active('is_woocommerce') ) {
echo '
' . __("Home","bazaar-lite") . " / ";
if ( is_category() ) {
echo '' . bazaarlite_get_archive_title(). '';
} elseif (is_single() && !is_attachment()) {
echo "" . the_category(' / ') . ' / ' . get_the_title() . '';
} elseif (is_page()) {
echo "" . get_the_title() . '';
} else if ( bazaarlite_get_archive_title()) {
echo "" . bazaarlite_get_archive_title() . "";
} else if ( is_search() ) {
echo "" . __( 'Search results for ', 'bazaar-lite' ) . $s . "";
} else if ( is_404() ) {
echo "" . __( 'Page 404', 'bazaar-lite' ) . $s . "";
} else if ( is_attachment() ) {
echo "" . __( 'Attachment: ', 'bazaar-lite' ) . get_the_title() . "";
}
} else if ( bazaarlite_is_woocommerce_active('is_woocommerce') ) {
woocommerce_breadcrumb(
array(
'wrap_before' => '',
'wrap_after' => '',
'before' => '',
'after' => '',
)
);
}
echo '';
}
}
/*-----------------------------------------------------------------------------------*/
/* LOGO */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_get_logo')) {
function bazaarlite_get_logo() {
if ( function_exists( 'the_custom_logo' ) && get_custom_logo() ) :
the_custom_logo();
else :
echo '';
if ( bazaarlite_setting('wip_custom_logo') ):
echo "
";
else:
bloginfo('name');
endif;
echo '';
endif;
}
}
/*-----------------------------------------------------------------------------------*/
/* READ MORE */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_remove_readmore')) {
function bazaarlite_remove_readmore($more) {
return '';
}
add_filter('excerpt_more', 'bazaarlite_remove_readmore' );
}
if (!function_exists('bazaarlite_manual_excerpt_more')) {
function bazaarlite_manual_excerpt_more( $excerpt ) {
global $post;
$class = 'button';
$button = __('Read more','bazaar-lite');
if ( bazaarlite_setting('wip_readmore_button') == "off" ):
$class = 'more';
$button = ' […] ';
endif;
return $excerpt . ''.$button.'';
}
add_filter( 'get_the_excerpt', 'bazaarlite_manual_excerpt_more' );
}
/*-----------------------------------------------------------------------------------*/
/* POST ICON */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_posticon')) {
function bazaarlite_posticon( $view = "off" ) {
$icons = array (
"video" => "genericon-video" ,
"gallery" => "genericon-image" ,
"audio" => "genericon-audio" ,
"chat" => "genericon-chat",
"status" => "genericon-status",
"image" => "genericon-picture",
"quote" => "genericon-quote" ,
"link" => "genericon-external",
"aside" => "genericon-aside"
);
if (get_post_format()) :
$icon = '';
else:
$icon = '';
endif;
if ( $view == "on" ):
return $icon;
endif;
}
}
/*-----------------------------------------------------------------------------------*/
/* Woocommerce template */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_template')) {
function bazaarlite_template($id) {
$template = array (
"full" => "col-md-12" ,
"left-sidebar" => "col-md-8" ,
"right-sidebar" => "col-md-8",
"masonry" => "col-md-4"
);
$span = $template["right-sidebar"];
$sidebar = "right-sidebar";
if ( bazaarlite_is_woocommerce_active('is_woocommerce') && ( bazaarlite_is_woocommerce_active('is_product_category') || bazaarlite_is_woocommerce_active('is_product_tag') ) && bazaarlite_setting('wip_woocommerce_category_layout') ) {
$span = $template[bazaarlite_setting('wip_woocommerce_category_layout')];
$sidebar = bazaarlite_setting('wip_woocommerce_category_layout');
} else if ( bazaarlite_is_woocommerce_active('is_woocommerce') && is_search() && bazaarlite_postmeta('wip_template') ) {
$span = $template[bazaarlite_postmeta('wip_template')];
$sidebar = bazaarlite_postmeta('wip_template');
} else if ( ( is_page() || is_single() || bazaarlite_is_woocommerce_active('is_shop') ) && bazaarlite_postmeta('wip_template') ) {
$span = $template[bazaarlite_postmeta('wip_template')];
$sidebar = bazaarlite_postmeta('wip_template');
} else if ( !bazaarlite_is_woocommerce_active('is_woocommerce') && ( is_category() || is_tag() || is_tax() || is_month() ) && bazaarlite_setting('wip_category_layout') ) {
$span = $template[bazaarlite_setting('wip_category_layout')];
$sidebar = bazaarlite_setting('wip_category_layout');
} else if ( is_home() && bazaarlite_setting('wip_home') ) {
$span = $template[bazaarlite_setting('wip_home')];
$sidebar = bazaarlite_setting('wip_home');
} else if ( ! bazaarlite_is_woocommerce_active('is_woocommerce') && is_search() && bazaarlite_setting('wip_search_layout') ) {
$span = $template[bazaarlite_setting('wip_search_layout')];
$sidebar = bazaarlite_setting('wip_search_layout');
}
return ${$id};
}
}
/*-----------------------------------------------------------------------------------*/
/* PRETTYPHOTO */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_prettyPhoto')) {
function bazaarlite_prettyPhoto( $html, $id, $size, $permalink, $icon, $text ) {
if ( ! $permalink )
return str_replace( '";
}
add_filter( 'gallery_style', 'bazaarlite_my_gallery_style', 99 );
}
?>