/** * Return "Add to Wishlist" button. */ static function add_to_wishlist($atts, $content = null) { global $product, $king_wishlist; $html = king_WISHLIST_UI::add_to_wishlist_button($king_wishlist->get_wishlist_url(), $product->product_type, $king_wishlist->is_product_in_wishlist($product->id)); $html .= king_WISHLIST_UI::popup_message(); return $html; }