getSlides();
}
?>
cat_ID);
if ($cat_bg_color == "custom") {
$class = 'breadcrumbs-bar-' . $cat_bg_color . '-' . $category[0]->cat_ID;
} else {
$class = 'breadcrumbs-bar-' . $cat_bg_color;
}
}
} else if ( is_archive() && !is_search() ) {
$class = "";
if (isset($cat->term_id)) {
$cat_bg_color = jwOpt::get_option('cat_bg_color', 'template', 'category', $cat->term_id);
if ($cat_bg_color == "custom") {
$class = 'breadcrumbs-bar-' . $cat_bg_color . '-' . $cat->term_id;
} else {
$class = 'breadcrumbs-bar-' . $cat_bg_color;
}
}
$cat_custom_sheet = jwOpt::get_option('cat_custom_sheet', '0', 'category', $cat->term_id);
$show_bar = $cat_custom_sheet;
if(jwOpt::get_option('cat_custom_sheet_source', '0', 'category', $cat->term_id) == 'sorting'){
$br = '0';
$so = '1';
$cat = null;
}
}
}else{
if ( is_single() ) {
$meta = get_post_meta(get_the_ID());
if (isset($meta['post_custom_sheet'][0])) {
$show_bar = $meta['post_custom_sheet'][0];
}
}
}
if((!function_exists('is_shop') || (function_exists('is_shop') && !is_shop())) && (!function_exists('is_product_category') || (function_exists('is_product_category') && !is_product_category())) && (is_search() || (is_archive() && !is_category()))){
jwRender::get_bar(jwOpt::get_option('ribbon_show', '0'), '0', jwOpt::get_option('ribbon_sort', '0'), jwOpt::get_option('ribbon_search', '0'));
}
if(isset($cat)){
$br = '1';
$so = '0';
}else{
$br = '0';
$so = '1';
}
jwRender::get_bar($show_bar, $br, $so, jwOpt::get_option('ribbon_search', '0') ,$class);
}
}
?>