'#awooc', 'product_id' => $product->get_id(), 'class' => apply_filters( 'awooc_classes_button', 'awooc-custom-order button alt ' . awooc_mode_classes() ), 'id' => apply_filters( 'awooc_id_button', 'awooc-custom-order-button' ), 'label' => get_option( 'woocommerce_awooc_title_button' ), ); $args = apply_filters( 'awooc_button_args', wp_parse_args( $args, $defaults ), $product ); ob_start(); do_action( 'awooc_before_button' ); ?> > ', esc_attr( 'awooc-form-custom-order-title' ) ), $product ) ); } } } if ( ! function_exists( 'awooc_popup_window_image' ) ) { /** * Output of a product thumbnail in a popup window * * @param $elements * * @since 1.5.0 * @since 1.8.0 */ function awooc_popup_window_image( $elements ) { if ( in_array( 'image', $elements, true ) ) { echo '
'; } } } if ( ! function_exists( 'awooc_popup_window_price' ) ) { /** * Output of a product price in a popup window * * @param $elements * @param $product * * @since 1.5.0 * @since 1.8.10 */ function awooc_popup_window_price( $elements, $product ) { if ( in_array( 'price', $elements, true ) ) { echo wp_kses_post( apply_filters( 'awooc_popup_price_html', '
', $product ) ); } } } if ( ! function_exists( 'awooc_popup_window_sku' ) ) { /** * Output of a product sku in a popup window * * @param $elements * * @since 1.5.0 * @since 1.5.0 */ function awooc_popup_window_sku( $elements ) { if ( in_array( 'sku', $elements, true ) ) { echo '
'; } } } if ( ! function_exists( 'awooc_popup_window_qty' ) ) { /** * Output of a product quantity in a popup window * * @param $elements * * @since 2.1.0 */ function awooc_popup_window_qty( $elements ) { if ( in_array( 'qty', $elements, true ) ) { echo '
'; } } } if ( ! function_exists( 'awooc_popup_window_attr' ) ) { /** * Output of a product attributes in a popup window * * @param $elements * * * @since 1.5.0 * @since 1.8.9 */ function awooc_popup_window_attr( $elements ) { if ( in_array( 'attr', $elements, true ) ) { echo '
'; } } } if ( ! function_exists( 'awooc_popup_window_select_form' ) ) { /** * Output form in a popup window * * @since 1.5.0 * @since 1.8.0 * */ function awooc_popup_window_select_form() { $select_form = get_option( 'woocommerce_awooc_select_form' ); if ( $select_form ) { do_action( 'awooc_popup_before_form' ); if ( apply_filters( 'awooc_using_cf7', true ) ) { echo do_shortcode( '[contact-form-7 id="' . esc_attr( $select_form ) . '"]' ); } do_action( 'awooc_popup_after_form' ); } } }