?> group"> <?php echo implode("\n", $buttons); ?> </div> </div> </div> <?php } ?> <?php if ($show_share) { ?> <?php if ($show_share_lite) { ?> <div class="product-share"><?php echo do_shortcode('[share title="' . __('Share on:', 'yit') . ' " icon_type="default" socials="facebook, twitter, google, pinterest"]'); ?> </div> <?php } elseif ($sharethis_allowed) { ?> <?php yit_add_sharethis_button_js(); ?> <?php } }
?> <?php } ?> <?php if ( ! empty( $add_to_cart ) || ! empty( $details ) ) : ?> <div class="product-actions-wrapper"> <div class="product-actions"> <?php if ( yit_get_option( 'shop-view-show-rating' ) && ! $is_wishlist ) { echo $product->get_rating_html( 'shop_loop' ); } ?> <?php echo $out_of_stock; ?> <?php if ( $product->is_purchasable() || $product->product_type == 'external' ) { echo $add_to_cart; } ?> <?php if( ! $is_wishlist ): ?> <div class="buttons buttons_<?php echo $count_buttons ?> group"> <?php echo implode( "\n", $buttons ) ?> </div> <?php endif; ?> </div> </div> <?php endif; ?> <?php if ( $show_share ): ?> <?php if ( $sharethis_allowed ): ?> <?php yit_add_sharethis_button_js() ?> <?php else: ?> <div class="product-share"><?php echo do_shortcode( '[share title="' . __( 'Share on:', 'yit' ) . ' " icon_type="default" socials="facebook, twitter, google, pinterest"]' ); ?></div> <?php endif; ?> <?php endif ?>
if (empty($product_ids_on_sale)) { return; } $query_args['post__in'] = $product_ids_on_sale; } $woocommerce_loop['setLast'] = true; //if ( empty( $style ) ) //$style = yit_get_option( 'shop_products_style', 'ribbon' ); //$style = yit_get_option( 'shop_products_style', 'ribbon' ); //$woocommerce_loop['style'] = $style; //$products_per_page = apply_filters( 'loop_shop_columns', 4 ); $products = new WP_Query($query_args); ob_start(); //$woocommerce_loop['columns'] = $products_per_page; if (yit_get_option('shop-view-show-share') && !yit_get_option('shop-share-lite-style') && isset($woocommerce->integrations->integrations['sharethis']) && $woocommerce->integrations->integrations['sharethis']->publisher_id) { yit_add_sharethis_button_js(false); } $woocommerce_loop['view'] = 'grid'; $content_width = yit_get_sidebar_layout() == 'sidebar-no' ? 1170 : 870; $product_width = yit_shop_small_w() + 10 + 2; // 10 = padding & 2 = border $c = floor($content_width / $product_width); $columns = $c; $woocommerce_loop['columns'] = $columns; if (isset($layout) && $layout != 'default') { $woocommerce_loop['layout'] = $layout; } $i = 0; if ($products->have_posts()) { echo '<div class="products-slider-wrapper"><div class="products-slider">'; if (isset($title) && $title != '') {