"; } function bootstrap_grid_col_6(){ echo "
"; } function bootstrap_grid_col_4(){ echo "
"; } function bellini_woocommerce_before_shop_filter(){ global $bellini; $filter_ver = absint($bellini['bellini_woo_shop_product_pagination_layout']) ; echo "
"; } /*-------------------------------------------------------------- ## WooCommerce Product Items Container --------------------------------------------------------------*/ if ( ! function_exists( 'bellini_before_shop_products' ) ): function bellini_before_shop_products() { global $bellini; if(esc_attr($bellini['bellini_show_woocommerce_sidebar']) == true && is_active_sidebar( 'sidebar-woo-sidebar' )){ if(esc_attr($bellini['bellini_woocommerce_sidebar_position']) == 'right'): echo '
'; endif; // Left Sidebar if(esc_attr($bellini['bellini_woocommerce_sidebar_position']) == 'left'): echo '
'; endif; }else{ echo '
'; } } endif; /*-------------------------------------------------------------- ## WooCommerce Sidebar --------------------------------------------------------------*/ if ( ! function_exists( 'bellini_woocommerce_shop_sidebar' ) ): function bellini_woocommerce_shop_sidebar() { global $bellini; ?> '; endif; // Left Sidebar if(esc_attr($bellini['bellini_woocommerce_sidebar_position']) == 'left'): echo '
'; endif; dynamic_sidebar( 'sidebar-woo-sidebar' ); echo '
'; } } endif; /*-------------------------------------------------------------- ## Shop / Archive - WooCommerce Products Per Page --------------------------------------------------------------*/ add_filter( 'loop_shop_per_page', 'bellini_woo_product_per_page', 20 ); function bellini_woo_product_per_page( $count ) { global $bellini; return absint($bellini['bellini_woo_shop_product_per_page']); } /*-------------------------------------------------------------- ## Bellini WooCommerce Price --------------------------------------------------------------*/ if ( ! function_exists( 'bellini_woocommerce_template_loop_price' ) ): function bellini_woocommerce_template_loop_price() { global $product; ?>
get_price_html() ) : ?>
'; } function bellini_single_product_one_right(){ echo '
'; } 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 --------------------------------------------------------------*/ 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', '
    ' ); while ( $r->have_posts() ) { $r->the_post(); global $product; ?>
  • get_image(); ?>
    get_name(); ?> get_average_rating() ); ?> get_price_html(); ?>
  • ' ); $this->widget_end( $args ); } wp_reset_postdata(); $content = ob_get_clean(); echo $content; $this->cache_widget( $args, $content ); } } class Bellini_Woo_Product_Widget extends WC_Widget_Products { public function widget( $args, $instance ) { if ( $this->get_cached_widget( $args ) ) { return; } ob_start(); if ( ( $products = $this->get_products( $args, $instance ) ) && $products->have_posts() ) { $this->widget_start( $args, $instance ); echo apply_filters( 'woocommerce_before_widget_product_list', '
      ' ); while ( $products->have_posts() ) { $products->the_post(); global $product; ?>
    • get_image(); ?>
      get_name(); ?> get_average_rating() ); ?> get_price_html(); ?>
    • ' ); $this->widget_end( $args ); } wp_reset_postdata(); echo $this->cache_widget( $args, ob_get_clean() ); } } class Bellini_Woo_recently_viewed_product_Widget extends WC_Widget_Recently_Viewed { public function widget( $args, $instance ) { $viewed_products = ! empty( $_COOKIE['woocommerce_recently_viewed'] ) ? (array) explode( '|', $_COOKIE['woocommerce_recently_viewed'] ) : array(); $viewed_products = array_reverse( array_filter( array_map( 'absint', $viewed_products ) ) ); if ( empty( $viewed_products ) ) { 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', 'post__in' => $viewed_products, 'orderby' => 'post__in', ); if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) { $query_args['tax_query'] = array( array( 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => 'outofstock', 'operator' => 'NOT IN', ), ); } $r = new WP_Query( $query_args ); if ( $r->have_posts() ) { $this->widget_start( $args, $instance ); echo apply_filters( 'woocommerce_before_widget_product_list', '
        ' ); while ( $r->have_posts() ) { $r->the_post(); global $product; ?>
      • get_image(); ?>
        get_name(); ?> get_average_rating() ); ?> get_price_html(); ?>
      • ' ); $this->widget_end( $args ); } wp_reset_postdata(); $content = ob_get_clean(); echo $content; } }