', '', '', '', '', '', '', '', '', '', ]; $form = '
'; $form .= implode("\n", $fields); // Determine button display $button_text = ucfirst(esc_html($atts['type'])); $button_content = ''; if ($atts['style'] === 'custom' && $atts['button_image']) { $button_content = '' . $button_text . ''; } elseif (in_array($atts['style'], ['classic', 'elegant'])) { $button_img = aa_spaypal_get_button_image($atts['type'], $atts['style']); $button_content = '' . $button_text . ''; } else { $button_content = '' . $button_text . ''; } $form .= ''; $form .= '
'; return $form; } add_shortcode('aa_paypal', 'aa_spaypal_shortcode'); add_shortcode('aa_paypal_button', 'aa_spaypal_shortcode'); // alias