';
}
}
if ( ! function_exists( 'bellini_column_twelve' ) ) {
function bellini_column_twelve(){
echo '
';
}
}
if ( ! function_exists( 'bellini_product_cat_class' ) ) {
function bellini_product_cat_class() {
global $bellini;
$classes[] = esc_attr($bellini['bellini_woo_shop_product_column']);
$classes[] = 'woo__cat';
return array_unique( array_filter( $classes ) );
}
}
add_filter( 'product_cat_class' , 'bellini_product_cat_class' );
/*--------------------------------------------------------------
## Checkout Order Heading
--------------------------------------------------------------*/
if ( ! function_exists( 'bellini_woo_order_heading' ) ) {
function bellini_woo_order_heading(){ ?>
cart->get_cart_contents_count() === 0){
echo "empty__cart";
}else{
echo "animate__cart";
}
}
}
// Product Category Layout 1
if ( ! function_exists( 'bellini_woo_product_category_layout_one_inner_open' ) ):
function bellini_woo_product_category_layout_one_inner_open() { ?>
get_cached_widget( $args ) ) {
return;
}
ob_start();
$number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : $this->settings['number']['std'];
$query_args = array(
'posts_per_page' => $number,
'no_found_rows' => 1,
'post_status' => 'publish',
'post_type' => 'product',
'meta_key' => '_wc_average_rating',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'meta_query' => WC()->query->get_meta_query(),
'tax_query' => WC()->query->get_tax_query(),
);
$r = new WP_Query( $query_args );
if ( $r->have_posts() ) {
$this->widget_start( $args, $instance );
echo apply_filters( 'woocommerce_before_widget_product_list', '