2Checkout Donate Options

'; wp_nonce_field('update-options'); echo ''; //http://garmanonline.com/ads/garmanonline-728x90.gif echo ''; $settings = twoco_settings_list(); foreach ($settings as $setting) { echo ''; } echo '
GarmanOnline VPS Hosting
'.$setting['display'].''; if ($setting['type']=='radio') { echo $setting['yes'].' '; } else { echo ' />'; } echo $setting['no'].' '; } else { echo ' />'; } } elseif ($setting['type']=='select') { $values=$setting['values']; echo ''; } else { echo ''; } echo ' ('.$setting['hint'].')
'; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '

Say Thanks to Developers

While you may not always be able to donate to developers for the time and effort put into the plugins we create. When you find a plugin that does exactly what you need and works perfectly be sure to at least send over an email to show your appreciation.

Plugin Support Forum
Submit a Support Ticket
Signup for a 2Checkout Account
VPS Hosting
-- 30% OFF Promo Code: 2COdonate
View Patrick\'s Other Plugins
';//http://www.patrickgarman.com/redirect/2co echo '
'; echo ''; } function twoco_settings_list() { $settings = array( array( 'display' => '2CO Seller ID', 'name' => 'twoco_sid', 'value' => '', 'type' => 'textbox', 'hint' => 'your 2CO account number / seller id -- need an account? click here' ), array( 'display' => 'Default Type', 'name' => 'twoco_type', 'value' => 'button', 'values' => array('button'=>'Button w/Fixed Value','manual'=>'Button w/Text Box','link'=>'Link w/Fixed Value'), 'type' => 'select', 'hint' => 'set the default type -- button vs link' ), array( 'display' => 'Default Donation Amount', 'name' => 'twoco_amount', 'value' => '5.00', 'type' => 'textbox', 'hint' => 'the default donation amount, WITHOUT currency signs -- ie. 5.00' ), array( 'display' => 'Default Button/Link Text', 'name' => 'twoco_content', 'value' => 'Donate', 'type' => 'textbox', 'hint' => 'the default text to be used for buttons or links if none is provided' ), array( 'display' => 'Single or Multi-Page Checkout', 'name' => 'twoco_checkout', 'value' => '_self', 'values' => array('purchase'=>'Multi-Page Checkout','spurchase'=>'Single Page Checkout'), 'type' => 'select', 'hint' => 'single page ONLY supports credit cards' ), array( 'display' => 'Default Button/Link Target', 'name' => 'twoco_target', 'value' => '_self', 'values' => array('_self'=>'Same Window','_blank'=>'New Window'), 'type' => 'select', 'hint' => 'change the default target of where clicking links/buttons takes you to' ), array( 'display' => 'Default Language', 'name' => 'twoco_lang', 'value' => 'en', 'values' => array( 'en'=>'English', 'es_ib'=>'Español (European)', 'es_la'=>'Español (Latin)', 'jp'=>'日本語', 'it'=>'Italiano', 'nl'=>'Nederlands', 'pt'=>'Português', 'el'=>'Ελληνική', 'sv'=>'Svenska', 'zh'=>'語言名稱', 'sl'=>'Slovene', 'da'=>'Dansk', 'no'=>'Norsk', ), 'type' => 'select', 'hint' => 'change the default language' ), array( 'display' => 'Default Currency', 'name' => 'twoco_currency', 'value' => 'USD', 'values' => array( 'USD'=>'U.S. Dollar', 'AED'=>'United Arab Emirates Dirham', 'ARS'=>'Argentina Peso', 'AUD'=>'Australian Dollar', 'BGN'=>'Bulgarian Lev', 'BRL'=>'Brazilian Real', 'CAD'=>'Canadian Dollar', 'CHF'=>'Swiss Franc', 'CLP'=>'Chilean Peso', 'DKK'=>'Danish Krone', 'EUR'=>'Euro', 'GBP'=>'British Pound', 'HKD'=>'Hong Kong Dollar', 'IDR'=>'Indonesian Rupiah', 'ILS'=>'Israeli New Shekel', 'INR'=>'Indian Rupee', 'JPY'=>'Japanese Yen', 'LTL'=>'Lithuanian Litas', 'MXN'=>'Mexican Peso', 'MYR'=>'Malaysian Ringgit', 'NOK'=>'Norwegian Krone', 'NZD'=>'New Zealand Dollar', 'PHP'=>'Philippine Peso', 'RON'=>'Romanian New Leu', 'RUB'=>'Russian Ruble', 'SEK'=>'Swedish Krona', 'SGD'=>'Singapore Dollar', 'TRY'=>'Turkish Lira', 'UAH'=>'Ukrainian Hryvnia', 'ZAR'=>'South African Rand', ), 'type' => 'select', 'hint' => 'change the default currency' ), array( 'display' => 'Default Skip Landing', 'name' => 'twoco_skip_landing', 'value' => 0, 'type' => 'radio', 'yes' => 'Skip', 'no' => 'Show', 'hint' => 'skip the order review page of the purchase process' ), array( 'display' => 'Include Amount by Default', 'name' => 'twoco_noval', 'value' => 0, 'type' => 'radio', 'yes' => 'Yes', 'no' => 'No', 'hint' => 'include the amount in the content by default -- ie. Donate vs. Donate $5.00' ), array( 'display' => 'Force Demo Mode', 'name' => 'twoco_demo', 'value' => 0, 'type' => 'radio', 'yes' => 'On', 'no' => 'Off', 'hint' => 'force all links/buttons to use demo mode' ), ); return $settings; } function twoco_register_settings() { $settings = twoco_settings_list(); foreach ($settings as $setting) { register_setting($setting['name'], $setting['value']); } } function twoco_activation() { $settings = twoco_settings_list(); foreach ($settings as $setting) { add_option($setting['name'], $setting['value']); } } function twoco_deactivation() { $settings = twoco_settings_list(); foreach ($settings as $setting) { delete_option($setting['name']); } } function twoco_settings_link($links) { $support_link = 'Plugin Support'; array_unshift($links, $support_link); $settings_link = 'Settings'; array_unshift($links, $settings_link); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", 'twoco_settings_link' ); // [2checkout] function twoco_donate_button( $atts, $content = null ) { extract( shortcode_atts( array( 'type' => get_option('twoco_type'), 'sid' => get_option('twoco_sid'), 'demo' => get_option('twoco_demo'), 'target' => get_option('twoco_target'), 'amount' => get_option('twoco_amount'), 'noval' => get_option('twoco_noval'), 'lang' => get_option('twoco_lang'), 'checkout' => get_option('twoco_checkout'), 'currency' => get_option('twoco_currency'), 'skip_landing' => get_option('twoco_skip_landing'), ), $atts ) ); if ($content=='') {$content = get_option('twoco_content');} if ($noval==1) { $content .= ' $'.number_format($amount, 2, '.', ','); } if ($checkout=='single'){$checkout='spurchase';} else {$checkout='purchase';} if ($type=='button' || $type=='manual') { $total_type='hidden'; // lets set the amount field either to hidden if($type=='manual'){$total_type='text';} // or a textbox for manual input! $html='

'; if ($demo==1) {$html .= '';} $html .= ''; $html.='

'; } elseif ($type=='link') { $html=''.$content.''; } return $html; } add_shortcode( '2checkout', 'twoco_donate_button' ); // [/2checkout]