';
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 '';
}
}
/*-----------------------------------------------------------------------------------*/
/* READ MORE */
/*-----------------------------------------------------------------------------------*/
if (!function_exists('bazaarlite_readmore_function')) {
function bazaarlite_readmore_function() {
global $post,$more;
$more = 0;
$class = 'button';
$button = __('Read more','bazaar-lite');
if ( bazaarlite_setting('wip_readmore_button') == "off" ):
$class = 'more';
$button = ' […] ';
endif;
if ($pos=strpos($post->post_content, '')):
$content = substr(apply_filters( 'the_content', get_the_content()), 0, -5);
else:
$content = substr(apply_filters( 'the_excerpt', get_the_excerpt()), 0, -5);
endif;
$html = $content. ''.$button.'';
return $html;
}
}
/*-----------------------------------------------------------------------------------*/
/* 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 );
}
?>