post_excerpt); echo substr($as_woo_owl_exce, 0, $num); } function as_woo_owl_add_cart_button($button, $add_to_cartsdsd, $text = 'Add to cart', $id, $after_carttext = 'View Cart'){ $as_woo_set_value = get_option('as_woo_owl_all_settings_save'); if($button == 'default'){ $button = 'themeforest'; } global $woocommerce; $as_woo_loader = as_woo_owl_url.'/ico/ajax-loader.gif'; $as_woo_loader = (!empty($as_woo_set_value['as_atc_loader_gif'])) ? $as_woo_set_value['as_atc_loader_gif'] : $as_woo_loader ; $as_opc = ($as_woo_set_value['as_woo_add_to_cart_bg_opacity'] == 10) ? 1 : '0.'.$as_woo_set_value['as_woo_add_to_cart_bg_opacity'] ; if ($add_to_cartsdsd == 'true') { return apply_filters( 'as_woo_owl_add_to_cart', sprintf( '%s%s', esc_url( $woocommerce->cart->get_cart_url() ), esc_attr( 'as_woo_owl_ajax_add_to_cart' ), esc_attr( $id ), esc_url( $as_woo_loader ), esc_html( $text ), esc_url( $woocommerce->cart->get_cart_url() ), esc_html( $after_carttext ) ), $product ); }else{ echo 'Add to cart'; } } function as_woocommerce_owl_featured_shortcode($atts, $content = null){ $as_woo_set_value = get_option('as_woo_owl_all_settings_save'); $as_woo_d_limit = (empty($as_woo_set_value)) ? 0 : $as_woo_set_value['as_woo_d_limit'] ; $as_woo_featured = extract(shortcode_atts( array( 'carousel_name' => '', 'items' => '', 'itemsdesktop' => '', 'itemsdesktopsmall' => '', 'itemstablet' => '', 'itemstabletsmall' => '', 'itemsmobile' => '', 'singleitem' => '', 'itemsscaleup' => '', 'slidespeed' => '', 'paginationspeed' => '', 'rewindspeed' => '', 'autoplay' => '', 'stoponhover' => '', 'navigation' => '', 'navigationtext' => '', 'rewindnav' => '', 'scrollperpage' => '', 'pagination' => '', 'paginationnumbers' => '', 'responsive' => '', 'lazyload' => '', 'lazyfollow' => '', 'lazyeffect' => '', 'mousedrag' => '', 'touchdrag' => '', 'afterlazyload' => '', 'add_to_cart' => 'true', 'icon' => 'left11.right11', 'button' => 'default', 'porduct_type' => '_featured', 'show_porducts' => -1, 'product_cat' => '' ), $atts)); ob_start(); //start product query if ($porduct_type == '_featured') { $as_query = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => '_visibility', 'value' => array('catalog', 'visible'), 'compare' => 'IN' ), array( 'key' => '_featured', 'value' => 'yes' ) ) ); }else{ $porduct_type = trim($porduct_type); $porduct_type = preg_replace('/\s+/', '', $porduct_type); $porduct_type = sanitize_text_field( $porduct_type ); $product_cat = trim($product_cat); $product_cat = preg_replace('/\s+/', '', $product_cat); $product_cat = sanitize_text_field( $product_cat ); $as_query = array( 'product_cat' => (!empty($product_cat)) ? $product_cat : '', 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1 ); } $as_product_query = new WP_query($as_query); $icon = explode('.', $icon); ?>
have_posts() ) : $as_product_query->the_post(); ?>
<?php echo get_the_title(); ?>

get_price_html() ) : ?>

id ); ?>