function seamless_donations_shortcode_thanks_filter($atts)
{
    $shortcode_mode = '';
    $output = '';
    if (isset($_GET['thanks'])) {
        $shortcode_mode = 'show_thanks';
    } else {
        if (isset($_GET['auth'])) {
            $shortcode_mode = 'show_thanks';
        }
    }
    if ($shortcode_mode == 'show_thanks') {
        $output = dgx_donate_display_thank_you();
    }
    return $output;
}
예제 #2
0
function dgx_donate_shortcode($atts)
{
    $show_thanks = false;
    if (isset($_GET['thanks'])) {
        $show_thanks = true;
    } else {
        if (isset($_GET['auth'])) {
            $show_thanks = true;
        }
    }
    // Switch
    if ($show_thanks) {
        $output = dgx_donate_display_thank_you();
    } else {
        $output = "";
        $output = apply_filters('dgx_donate_donation_form', $output);
        if (empty($output)) {
            $output = "<p>Error: No payment gateway selected.  Please choose a payment gateway in Seamless Donations >> Settings.</p>";
        }
    }
    return $output;
}
예제 #3
0
function dgx_donate_shortcode($atts)
{
    $show_thanks = false;
    if (isset($_GET['thanks'])) {
        $show_thanks = true;
    } else {
        if (isset($_GET['auth'])) {
            $show_thanks = true;
        }
    }
    // Switch
    if ($show_thanks) {
        $output = dgx_donate_display_thank_you();
    } else {
        $output = "";
        $sd4_mode = get_option('dgx_donate_start_in_sd4_mode');
        if ($sd4_mode != false) {
            $output .= "<div style='background-color:red; color:white'>";
            $output .= "<P style='padding:5px;'>Warning: This form is out of date. ";
            $output .= "Please update using the [seamless-donations] shortcode.</P>";
            $output .= "</div>";
        } else {
            $output = apply_filters('dgx_donate_donation_form', $output);
            if (empty($output)) {
                $output = "<p>Error: No payment gateway selected.  Please choose a payment gateway in Seamless Donations >> Settings.</p>";
            }
        }
    }
    return $output;
}