ÿØÿà JFIF ÿÛ „ ( %"1!%)+...383,7(-.+ -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ ß â" ÿÄ ÿÄ H !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ ÿÄ % !1AQa"23‘ÿÚ ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6 öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷ó²·˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%Ìòh´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ÇýÊTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆÑªQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$ËÚsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇl¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉä¢mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ. __CLASS__ . '::product', 'product_page' => __CLASS__ . '::product_page', 'product_category' => __CLASS__ . '::product_category', 'product_categories' => __CLASS__ . '::product_categories', 'add_to_cart' => __CLASS__ . '::product_add_to_cart', 'add_to_cart_url' => __CLASS__ . '::product_add_to_cart_url', 'products' => __CLASS__ . '::products', 'recent_products' => __CLASS__ . '::recent_products', 'sale_products' => __CLASS__ . '::sale_products', 'best_selling_products' => __CLASS__ . '::best_selling_products', 'top_rated_products' => __CLASS__ . '::top_rated_products', 'featured_products' => __CLASS__ . '::featured_products', 'product_attribute' => __CLASS__ . '::product_attribute', 'related_products' => __CLASS__ . '::related_products', 'shop_messages' => __CLASS__ . '::shop_messages', 'woocommerce_order_tracking' => __CLASS__ . '::order_tracking', 'woocommerce_cart' => __CLASS__ . '::cart', 'woocommerce_checkout' => __CLASS__ . '::checkout', 'woocommerce_my_account' => __CLASS__ . '::my_account', ); foreach ( $shortcodes as $shortcode => $function ) { add_shortcode( apply_filters( "{$shortcode}_shortcode_tag", $shortcode ), $function ); } // Alias for pre 2.1 compatibility. add_shortcode( 'woocommerce_messages', __CLASS__ . '::shop_messages' ); } /** * Shortcode Wrapper. * * @param string[] $function Callback function. * @param array $atts Attributes. Default to empty array. * @param array $wrapper Customer wrapper data. * * @return string */ public static function shortcode_wrapper( $function, $atts = array(), $wrapper = array( 'class' => 'woocommerce', 'before' => null, 'after' => null, ) ) { ob_start(); // @codingStandardsIgnoreStart echo empty( $wrapper['before'] ) ? '
'; if ( wc_string_to_bool( $atts['show_price'] ) ) { // @codingStandardsIgnoreStart echo $product->get_price_html(); // @codingStandardsIgnoreEnd } woocommerce_template_loop_add_to_cart( array( 'quantity' => $atts['quantity'], ) ); echo '
'; // Restore Product global in case this is shown inside a product post. wc_setup_product_data( $post ); return ob_get_clean(); } /** * Get the add to cart URL for a product. * * @param array $atts Attributes. * @return string */ public static function product_add_to_cart_url( $atts ) { if ( empty( $atts ) ) { return ''; } if ( isset( $atts['id'] ) ) { $product_data = get_post( $atts['id'] ); } elseif ( isset( $atts['sku'] ) ) { $product_id = wc_get_product_id_by_sku( $atts['sku'] ); $product_data = get_post( $product_id ); } else { return ''; } $product = is_object( $product_data ) && in_array( $product_data->post_type, array( 'product', 'product_variation' ), true ) ? wc_setup_product_data( $product_data ) : false; if ( ! $product ) { return ''; } $_product = wc_get_product( $product_data ); return esc_url( $_product->add_to_cart_url() ); } /** * List all products on sale. * * @param array $atts Attributes. * @return string */ public static function sale_products( $atts ) { $atts = array_merge( array( 'limit' => '12', 'columns' => '4', 'orderby' => 'title', 'order' => 'ASC', 'category' => '', 'cat_operator' => 'IN', ), (array) $atts ); $shortcode = new WC_Shortcode_Products( $atts, 'sale_products' ); return $shortcode->get_content(); } /** * List best selling products on sale. * * @param array $atts Attributes. * @return string */ public static function best_selling_products( $atts ) { $atts = array_merge( array( 'limit' => '12', 'columns' => '4', 'category' => '', 'cat_operator' => 'IN', ), (array) $atts ); $shortcode = new WC_Shortcode_Products( $atts, 'best_selling_products' ); return $shortcode->get_content(); } /** * List top rated products on sale. * * @param array $atts Attributes. * @return string */ public static function top_rated_products( $atts ) { $atts = array_merge( array( 'limit' => '12', 'columns' => '4', 'orderby' => 'title', 'order' => 'ASC', 'category' => '', 'cat_operator' => 'IN', ), (array) $atts ); $shortcode = new WC_Shortcode_Products( $atts, 'top_rated_products' ); return $shortcode->get_content(); } /** * Output featured products. * * @param array $atts Attributes. * @return string */ public static function featured_products( $atts ) { $atts = array_merge( array( 'limit' => '12', 'columns' => '4', 'orderby' => 'date', 'order' => 'DESC', 'category' => '', 'cat_operator' => 'IN', ), (array) $atts ); $atts['visibility'] = 'featured'; $shortcode = new WC_Shortcode_Products( $atts, 'featured_products' ); return $shortcode->get_content(); } /** * Show a single product page. * * @param array $atts Attributes. * @return string */ public static function product_page( $atts ) { if ( empty( $atts ) ) { return ''; } if ( ! isset( $atts['id'] ) && ! isset( $atts['sku'] ) ) { return ''; } $product_id = isset( $atts['id'] ) ? absint( $atts['id'] ) : 0; if ( ! $product_id && isset( $atts['sku'] ) ) { $product_id = wc_get_product_id_by_sku( $atts['sku'] ); } $product_status = empty( $atts['status'] ) ? 'publish' : $atts['status']; /** * Filters the list of invalid statuses for the `product_page` shortcode. * * @since 8.6.0 * @param array $invalid_statuses List of invalid statuses. * @param int $product_id Product ID. * @return array */ $invalid_statuses = apply_filters( 'woocommerce_shortcode_product_page_invalid_statuses', array( 'trash' ), $product_id ); if ( in_array( $product_status, $invalid_statuses, true ) ) { return ''; } /** * Filters whether to override read permissions for unpublished products. * * @since 8.6.0 * @param bool $force_rendering Whether to override read permissions for unpublished products. `true` to force rendering the product page, `false` to block rendering, or `null` to use the default behavior. * @param int $product_id Product ID. * @return bool */ $force_rendering = apply_filters( 'woocommerce_shortcode_product_page_force_rendering', null, $product_id ); if ( isset( $force_rendering ) && ! $force_rendering ) { return ''; } $args = array( 'posts_per_page' => 1, 'post_type' => 'product', 'post_status' => $product_status, 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, ); if ( isset( $atts['sku'] ) ) { $args['meta_query'][] = array( 'key' => '_sku', 'value' => sanitize_text_field( $atts['sku'] ), 'compare' => '=', ); $args['post_type'] = array( 'product', 'product_variation' ); } if ( isset( $atts['id'] ) ) { $args['p'] = absint( $atts['id'] ); } // Don't render titles if desired. if ( isset( $atts['show_title'] ) && ! $atts['show_title'] ) { remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); } // Change form action to avoid redirect. add_filter( 'woocommerce_add_to_cart_form_action', '__return_empty_string' ); $single_product = new WP_Query( $args ); if ( ! isset( $force_rendering ) && $single_product->have_posts() && 'publish' !== $single_product->post->post_status && ! current_user_can( 'read_product', $single_product->post->ID ) ) { return ''; } $preselected_id = '0'; // Check if sku is a variation. if ( isset( $atts['sku'] ) && $single_product->have_posts() && 'product_variation' === $single_product->post->post_type ) { $variation = wc_get_product_object( 'variation', $single_product->post->ID ); $attributes = $variation->get_attributes(); // Set preselected id to be used by JS to provide context. $preselected_id = $single_product->post->ID; // Get the parent product object. $args = array( 'posts_per_page' => 1, 'post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'p' => $single_product->post->post_parent, ); $single_product = new WP_Query( $args ); ?> is_single = true; ob_start(); global $wp_query; // Backup query object so following loops think this is a product page. $previous_wp_query = $wp_query; // @codingStandardsIgnoreStart $wp_query = $single_product; // @codingStandardsIgnoreEnd wp_enqueue_script( 'wc-single-product' ); while ( $single_product->have_posts() ) { $single_product->the_post() ?>