Version Description
Download this release
Release Info
| Developer | artstorm |
| Plugin | |
| Version | 1.8.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.1 to 1.8.2
- lang/paypal-donations.pot +43 -38
- paypal-donations.php +10 -9
- readme.txt +14 -11
- {lib → src}/PayPalDonations/Admin.php +33 -2
- {lib → src}/PayPalDonations/Help.php +0 -0
- {lib → src}/PayPalDonations/View.php +0 -0
- {lib → src}/PayPalDonations/Widget.php +0 -0
- views/paypal-button.php +7 -1
lang/paypal-donations.pot
CHANGED
|
@@ -8,10 +8,11 @@ msgid ""
|
|
| 8 |
msgstr ""
|
| 9 |
"Project-Id-Version: PACKAGE VERSION\n"
|
| 10 |
"Report-Msgid-Bugs-To: \n"
|
| 11 |
-
"POT-Creation-Date:
|
| 12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
|
|
| 15 |
"MIME-Version: 1.0\n"
|
| 16 |
"Content-Type: text/plain; charset=CHARSET\n"
|
| 17 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -40,45 +41,45 @@ msgstr ""
|
|
| 40 |
msgid "Reference:"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
-
#:
|
| 44 |
msgid "Account Setup"
|
| 45 |
msgstr ""
|
| 46 |
|
| 47 |
-
#:
|
| 48 |
msgid "PayPal Account"
|
| 49 |
msgstr ""
|
| 50 |
|
| 51 |
-
#:
|
| 52 |
msgid "Your PayPal Email or Secure Merchant Account ID."
|
| 53 |
msgstr ""
|
| 54 |
|
| 55 |
-
#:
|
| 56 |
msgid "Currency"
|
| 57 |
msgstr ""
|
| 58 |
|
| 59 |
-
#:
|
| 60 |
msgid "The currency to use for the donations."
|
| 61 |
msgstr ""
|
| 62 |
|
| 63 |
-
#:
|
| 64 |
msgid "Optional Settings"
|
| 65 |
msgstr ""
|
| 66 |
|
| 67 |
-
#:
|
| 68 |
msgid "Page Style"
|
| 69 |
msgstr ""
|
| 70 |
|
| 71 |
-
#:
|
| 72 |
msgid ""
|
| 73 |
"The name of a custom payment page style that exist in your\n"
|
| 74 |
" PayPal account profile."
|
| 75 |
msgstr ""
|
| 76 |
|
| 77 |
-
#:
|
| 78 |
msgid "Return Page"
|
| 79 |
msgstr ""
|
| 80 |
|
| 81 |
-
#:
|
| 82 |
msgid ""
|
| 83 |
"URL to which the donator comes to after completing the\n"
|
| 84 |
" donation; for example, a URL on your site that displays "
|
|
@@ -86,110 +87,114 @@ msgid ""
|
|
| 86 |
" \"Thank you for your donation\"."
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
-
#:
|
| 90 |
msgid "Defaults"
|
| 91 |
msgstr ""
|
| 92 |
|
| 93 |
-
#:
|
| 94 |
msgid "Amount"
|
| 95 |
msgstr ""
|
| 96 |
|
| 97 |
-
#:
|
| 98 |
msgid "The default amount for a donation (Optional)."
|
| 99 |
msgstr ""
|
| 100 |
|
| 101 |
-
#:
|
| 102 |
msgid "Purpose"
|
| 103 |
msgstr ""
|
| 104 |
|
| 105 |
-
#:
|
| 106 |
msgid "The default purpose of a donation (Optional)."
|
| 107 |
msgstr ""
|
| 108 |
|
| 109 |
-
#:
|
| 110 |
msgid "Reference"
|
| 111 |
msgstr ""
|
| 112 |
|
| 113 |
-
#:
|
| 114 |
msgid "Default reference for the donation (Optional)."
|
| 115 |
msgstr ""
|
| 116 |
|
| 117 |
-
#:
|
| 118 |
msgid "Donation Button"
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
-
#:
|
| 122 |
msgid "Select Button"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
-
#:
|
| 126 |
msgid "Custom Button"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
-
#:
|
| 130 |
msgid "Enter a URL to a custom donation button."
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
-
#:
|
| 134 |
msgid "Country and Language"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#:
|
| 138 |
msgid "Localize the language and the country for the button."
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
-
#:
|
| 142 |
msgid "Extras"
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
-
#:
|
| 146 |
msgid "Disable PayPal Statistics"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
-
#:
|
| 150 |
msgid "Theme CSS Override: Center Button"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
msgid "Enable Checkout Language"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#:
|
| 158 |
msgid "Checkout Language"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#:
|
| 162 |
msgid "Return Method"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
-
#:
|
| 166 |
msgid "Takes effect only if the return page is set."
|
| 167 |
msgstr ""
|
| 168 |
|
| 169 |
-
#:
|
| 170 |
msgid "Required fields."
|
| 171 |
msgstr ""
|
| 172 |
|
| 173 |
-
#:
|
| 174 |
msgid "Optional extra settings to fine tune the setup in certain scenarios."
|
| 175 |
msgstr ""
|
| 176 |
|
| 177 |
-
#:
|
| 178 |
msgid "GET method (default)"
|
| 179 |
msgstr ""
|
| 180 |
|
| 181 |
-
#:
|
| 182 |
msgid "GET method, no variables"
|
| 183 |
msgstr ""
|
| 184 |
|
| 185 |
-
#:
|
| 186 |
msgid "POST method"
|
| 187 |
msgstr ""
|
| 188 |
|
| 189 |
-
#:
|
| 190 |
msgid "PayPal Donation Button"
|
| 191 |
msgstr ""
|
| 192 |
|
| 193 |
-
#:
|
| 194 |
msgid "Donate"
|
| 195 |
msgstr ""
|
| 8 |
msgstr ""
|
| 9 |
"Project-Id-Version: PACKAGE VERSION\n"
|
| 10 |
"Report-Msgid-Bugs-To: \n"
|
| 11 |
+
"POT-Creation-Date: 2014-03-22 04:16+0000\n"
|
| 12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 15 |
+
"Language: \n"
|
| 16 |
"MIME-Version: 1.0\n"
|
| 17 |
"Content-Type: text/plain; charset=CHARSET\n"
|
| 18 |
"Content-Transfer-Encoding: 8bit\n"
|
| 41 |
msgid "Reference:"
|
| 42 |
msgstr ""
|
| 43 |
|
| 44 |
+
#: src/PayPalDonations/Admin.php:105
|
| 45 |
msgid "Account Setup"
|
| 46 |
msgstr ""
|
| 47 |
|
| 48 |
+
#: src/PayPalDonations/Admin.php:111
|
| 49 |
msgid "PayPal Account"
|
| 50 |
msgstr ""
|
| 51 |
|
| 52 |
+
#: src/PayPalDonations/Admin.php:118
|
| 53 |
msgid "Your PayPal Email or Secure Merchant Account ID."
|
| 54 |
msgstr ""
|
| 55 |
|
| 56 |
+
#: src/PayPalDonations/Admin.php:125
|
| 57 |
msgid "Currency"
|
| 58 |
msgstr ""
|
| 59 |
|
| 60 |
+
#: src/PayPalDonations/Admin.php:132
|
| 61 |
msgid "The currency to use for the donations."
|
| 62 |
msgstr ""
|
| 63 |
|
| 64 |
+
#: src/PayPalDonations/Admin.php:140
|
| 65 |
msgid "Optional Settings"
|
| 66 |
msgstr ""
|
| 67 |
|
| 68 |
+
#: src/PayPalDonations/Admin.php:146
|
| 69 |
msgid "Page Style"
|
| 70 |
msgstr ""
|
| 71 |
|
| 72 |
+
#: src/PayPalDonations/Admin.php:153
|
| 73 |
msgid ""
|
| 74 |
"The name of a custom payment page style that exist in your\n"
|
| 75 |
" PayPal account profile."
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
+
#: src/PayPalDonations/Admin.php:161
|
| 79 |
msgid "Return Page"
|
| 80 |
msgstr ""
|
| 81 |
|
| 82 |
+
#: src/PayPalDonations/Admin.php:168
|
| 83 |
msgid ""
|
| 84 |
"URL to which the donator comes to after completing the\n"
|
| 85 |
" donation; for example, a URL on your site that displays "
|
| 87 |
" \"Thank you for your donation\"."
|
| 88 |
msgstr ""
|
| 89 |
|
| 90 |
+
#: src/PayPalDonations/Admin.php:178
|
| 91 |
msgid "Defaults"
|
| 92 |
msgstr ""
|
| 93 |
|
| 94 |
+
#: src/PayPalDonations/Admin.php:184
|
| 95 |
msgid "Amount"
|
| 96 |
msgstr ""
|
| 97 |
|
| 98 |
+
#: src/PayPalDonations/Admin.php:191
|
| 99 |
msgid "The default amount for a donation (Optional)."
|
| 100 |
msgstr ""
|
| 101 |
|
| 102 |
+
#: src/PayPalDonations/Admin.php:198
|
| 103 |
msgid "Purpose"
|
| 104 |
msgstr ""
|
| 105 |
|
| 106 |
+
#: src/PayPalDonations/Admin.php:205
|
| 107 |
msgid "The default purpose of a donation (Optional)."
|
| 108 |
msgstr ""
|
| 109 |
|
| 110 |
+
#: src/PayPalDonations/Admin.php:212
|
| 111 |
msgid "Reference"
|
| 112 |
msgstr ""
|
| 113 |
|
| 114 |
+
#: src/PayPalDonations/Admin.php:219
|
| 115 |
msgid "Default reference for the donation (Optional)."
|
| 116 |
msgstr ""
|
| 117 |
|
| 118 |
+
#: src/PayPalDonations/Admin.php:227
|
| 119 |
msgid "Donation Button"
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
+
#: src/PayPalDonations/Admin.php:233
|
| 123 |
msgid "Select Button"
|
| 124 |
msgstr ""
|
| 125 |
|
| 126 |
+
#: src/PayPalDonations/Admin.php:244 src/PayPalDonations/Admin.php:513
|
| 127 |
msgid "Custom Button"
|
| 128 |
msgstr ""
|
| 129 |
|
| 130 |
+
#: src/PayPalDonations/Admin.php:251
|
| 131 |
msgid "Enter a URL to a custom donation button."
|
| 132 |
msgstr ""
|
| 133 |
|
| 134 |
+
#: src/PayPalDonations/Admin.php:258
|
| 135 |
msgid "Country and Language"
|
| 136 |
msgstr ""
|
| 137 |
|
| 138 |
+
#: src/PayPalDonations/Admin.php:265
|
| 139 |
msgid "Localize the language and the country for the button."
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
+
#: src/PayPalDonations/Admin.php:280
|
| 143 |
msgid "Extras"
|
| 144 |
msgstr ""
|
| 145 |
|
| 146 |
+
#: src/PayPalDonations/Admin.php:286
|
| 147 |
msgid "Disable PayPal Statistics"
|
| 148 |
msgstr ""
|
| 149 |
|
| 150 |
+
#: src/PayPalDonations/Admin.php:298
|
| 151 |
msgid "Theme CSS Override: Center Button"
|
| 152 |
msgstr ""
|
| 153 |
|
| 154 |
+
#: src/PayPalDonations/Admin.php:312
|
| 155 |
+
msgid "Open PayPal in New Tab"
|
| 156 |
+
msgstr ""
|
| 157 |
+
|
| 158 |
+
#: src/PayPalDonations/Admin.php:325
|
| 159 |
msgid "Enable Checkout Language"
|
| 160 |
msgstr ""
|
| 161 |
|
| 162 |
+
#: src/PayPalDonations/Admin.php:336
|
| 163 |
msgid "Checkout Language"
|
| 164 |
msgstr ""
|
| 165 |
|
| 166 |
+
#: src/PayPalDonations/Admin.php:347
|
| 167 |
msgid "Return Method"
|
| 168 |
msgstr ""
|
| 169 |
|
| 170 |
+
#: src/PayPalDonations/Admin.php:354
|
| 171 |
msgid "Takes effect only if the return page is set."
|
| 172 |
msgstr ""
|
| 173 |
|
| 174 |
+
#: src/PayPalDonations/Admin.php:374
|
| 175 |
msgid "Required fields."
|
| 176 |
msgstr ""
|
| 177 |
|
| 178 |
+
#: src/PayPalDonations/Admin.php:388
|
| 179 |
msgid "Optional extra settings to fine tune the setup in certain scenarios."
|
| 180 |
msgstr ""
|
| 181 |
|
| 182 |
+
#: src/PayPalDonations/Admin.php:647
|
| 183 |
msgid "GET method (default)"
|
| 184 |
msgstr ""
|
| 185 |
|
| 186 |
+
#: src/PayPalDonations/Admin.php:648
|
| 187 |
msgid "GET method, no variables"
|
| 188 |
msgstr ""
|
| 189 |
|
| 190 |
+
#: src/PayPalDonations/Admin.php:649
|
| 191 |
msgid "POST method"
|
| 192 |
msgstr ""
|
| 193 |
|
| 194 |
+
#: src/PayPalDonations/Widget.php:18
|
| 195 |
msgid "PayPal Donation Button"
|
| 196 |
msgstr ""
|
| 197 |
|
| 198 |
+
#: src/PayPalDonations/Widget.php:89
|
| 199 |
msgid "Donate"
|
| 200 |
msgstr ""
|
paypal-donations.php
CHANGED
|
@@ -5,11 +5,11 @@ Plugin URI: http://johansteen.se/code/paypal-donations/
|
|
| 5 |
Description: Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well.
|
| 6 |
Author: Johan Steen
|
| 7 |
Author URI: http://johansteen.se/
|
| 8 |
-
Version: 1.8.
|
| 9 |
License: GPLv2 or later
|
| 10 |
-
Text Domain: paypal-donations
|
| 11 |
|
| 12 |
-
Copyright 2009-
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License as published by
|
|
@@ -37,13 +37,16 @@ spl_autoload_register('PayPalDonations::autoload');
|
|
| 37 |
*/
|
| 38 |
class PayPalDonations
|
| 39 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
const MIN_PHP_VERSION = '5.2.4';
|
| 41 |
const MIN_WP_VERSION = '3.0';
|
| 42 |
const OPTION_DB_KEY = 'paypal_donations_options';
|
| 43 |
const TEXT_DOMAIN = 'paypal-donations';
|
| 44 |
const FILE = __FILE__;
|
| 45 |
|
| 46 |
-
private static $instance = false;
|
| 47 |
|
| 48 |
// -------------------------------------------------------------------------
|
| 49 |
// Define constant data arrays
|
|
@@ -158,8 +161,6 @@ class PayPalDonations
|
|
| 158 |
/**
|
| 159 |
* PSR-0 compliant autoloader to load classes as needed.
|
| 160 |
*
|
| 161 |
-
* @since 1.7
|
| 162 |
-
*
|
| 163 |
* @param string $classname The name of the class
|
| 164 |
* @return null Return early if the class name does not start with the
|
| 165 |
* correct prefix
|
|
@@ -178,7 +179,7 @@ class PayPalDonations
|
|
| 178 |
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
|
| 179 |
$fileName .= DIRECTORY_SEPARATOR;
|
| 180 |
}
|
| 181 |
-
$fileName .= str_replace('_', DIRECTORY_SEPARATOR, '
|
| 182 |
$fileName .='.php';
|
| 183 |
|
| 184 |
require $fileName;
|
|
@@ -251,7 +252,7 @@ class PayPalDonations
|
|
| 251 |
$button_url
|
| 252 |
);
|
| 253 |
}
|
| 254 |
-
|
| 255 |
/**
|
| 256 |
* Generate the PayPal button HTML code
|
| 257 |
*/
|
|
@@ -270,7 +271,7 @@ class PayPalDonations
|
|
| 270 |
$amount = (!$amount) ? $pd_options['amount'] : $amount;
|
| 271 |
$return_page = (!$return_page) ? $pd_options['return_page'] : $return_page;
|
| 272 |
$button_url = (!$button_url) ? $pd_options['button_url'] : $button_url;
|
| 273 |
-
|
| 274 |
$data = array(
|
| 275 |
'pd_options' => $pd_options,
|
| 276 |
'return_page' => $return_page,
|
| 5 |
Description: Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well.
|
| 6 |
Author: Johan Steen
|
| 7 |
Author URI: http://johansteen.se/
|
| 8 |
+
Version: 1.8.2
|
| 9 |
License: GPLv2 or later
|
| 10 |
+
Text Domain: paypal-donations
|
| 11 |
|
| 12 |
+
Copyright 2009-2014 Johan Steen (email : artstorm [at] gmail [dot] com)
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License as published by
|
| 37 |
*/
|
| 38 |
class PayPalDonations
|
| 39 |
{
|
| 40 |
+
/** Holds the plugin instance */
|
| 41 |
+
private static $instance = false;
|
| 42 |
+
|
| 43 |
+
/** Define plugin constants */
|
| 44 |
const MIN_PHP_VERSION = '5.2.4';
|
| 45 |
const MIN_WP_VERSION = '3.0';
|
| 46 |
const OPTION_DB_KEY = 'paypal_donations_options';
|
| 47 |
const TEXT_DOMAIN = 'paypal-donations';
|
| 48 |
const FILE = __FILE__;
|
| 49 |
|
|
|
|
| 50 |
|
| 51 |
// -------------------------------------------------------------------------
|
| 52 |
// Define constant data arrays
|
| 161 |
/**
|
| 162 |
* PSR-0 compliant autoloader to load classes as needed.
|
| 163 |
*
|
|
|
|
|
|
|
| 164 |
* @param string $classname The name of the class
|
| 165 |
* @return null Return early if the class name does not start with the
|
| 166 |
* correct prefix
|
| 179 |
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
|
| 180 |
$fileName .= DIRECTORY_SEPARATOR;
|
| 181 |
}
|
| 182 |
+
$fileName .= str_replace('_', DIRECTORY_SEPARATOR, 'src_'.$className);
|
| 183 |
$fileName .='.php';
|
| 184 |
|
| 185 |
require $fileName;
|
| 252 |
$button_url
|
| 253 |
);
|
| 254 |
}
|
| 255 |
+
|
| 256 |
/**
|
| 257 |
* Generate the PayPal button HTML code
|
| 258 |
*/
|
| 271 |
$amount = (!$amount) ? $pd_options['amount'] : $amount;
|
| 272 |
$return_page = (!$return_page) ? $pd_options['return_page'] : $return_page;
|
| 273 |
$button_url = (!$button_url) ? $pd_options['button_url'] : $button_url;
|
| 274 |
+
|
| 275 |
$data = array(
|
| 276 |
'pd_options' => $pd_options,
|
| 277 |
'return_page' => $return_page,
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: artstorm
|
|
| 3 |
Donate link: http://johansteen.se/donate/
|
| 4 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
| 5 |
Requires at least: 3.0
|
| 6 |
-
Tested up to: 3.
|
| 7 |
-
Stable tag: 1.8.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -32,11 +32,11 @@ This donation plugin generates valid XHTML Transitional and Strict code.
|
|
| 32 |
|
| 33 |
= Related Links =
|
| 34 |
|
| 35 |
-
* [Documentation](http://johansteen.se/code/paypal-donations/
|
| 36 |
"Usage instructions")
|
| 37 |
-
* [Support Forum](http://wordpress.org/support/plugin/paypal-donations
|
| 38 |
"Use this for support and feature requests")
|
| 39 |
-
* [GitHub](https://github.com/artstorm/paypal-donations
|
| 40 |
"Develop and contribute your code or report bugs")
|
| 41 |
|
| 42 |
|
|
@@ -59,7 +59,7 @@ This donation plugin generates valid XHTML Transitional and Strict code.
|
|
| 59 |
|
| 60 |
= Where can I get support? =
|
| 61 |
|
| 62 |
-
Please visit the [Support Forum](http://wordpress.org/support/plugin/paypal-donations "Use this for support and feature requests")
|
| 63 |
for questions, answers, support and feature requests.
|
| 64 |
|
| 65 |
= Where can I send bug reports? =
|
|
@@ -82,6 +82,9 @@ Contributions are appreciated and encouraged.
|
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
|
|
|
|
|
|
|
|
|
|
| 85 |
= Version 1.8.1 - 27 Apr 2013 =
|
| 86 |
* Various minor code improvements.
|
| 87 |
* Bumps required WordPress version to v3.0.
|
|
@@ -96,8 +99,8 @@ Contributions are appreciated and encouraged.
|
|
| 96 |
* Updated Swedish translation.
|
| 97 |
|
| 98 |
= Version 1.7 - 19 Feb 2013 =
|
| 99 |
-
* Moved the development to
|
| 100 |
-
[GitHub](https://github.com/artstorm/paypal-donations).
|
| 101 |
* Refactored code to comply with the PSR-2 standard.
|
| 102 |
* Bumped minimum PHP version to 5.2.4.
|
| 103 |
* Bumped minimum required WordPress version to WordPress 2.8.
|
|
@@ -119,7 +122,7 @@ Contributions are appreciated and encouraged.
|
|
| 119 |
* Added filter 'paypal_donations_url', to hook into the URL used, to be able to
|
| 120 |
try the button against PayPal's Sandbox for instance.
|
| 121 |
* Added filter 'paypal_donations_amount', to hook into the set amount before
|
| 122 |
-
rendering the button.
|
| 123 |
* Included Lithuanian translation by Nata Strazda.
|
| 124 |
* Changed the plugin class name from paypal_donations to Paypal_Donations.
|
| 125 |
|
|
@@ -128,7 +131,7 @@ Contributions are appreciated and encouraged.
|
|
| 128 |
|
| 129 |
= Version 1.4.9.3 - 18 Apr 2011 =
|
| 130 |
* Added Turkish Lira (TRY) to the list of currencies.
|
| 131 |
-
|
| 132 |
= Version 1.4.9.2 - 02 Apr 2011 =
|
| 133 |
* Added four new currencies that PayPal supports for donations to choose from:
|
| 134 |
Brazilian Real (BRL), Taiwan New Dollar (TWD), Philippine Peso (PHP), Thai
|
|
@@ -176,7 +179,7 @@ Contributions are appreciated and encouraged.
|
|
| 176 |
|
| 177 |
= Version 1.3.2 - 28 Aug 2009 =
|
| 178 |
* Included Russian translation by FatCow.
|
| 179 |
-
|
| 180 |
= Version 1.3.1 - 25 August 2009 =
|
| 181 |
* Added Swedish translation.
|
| 182 |
* Added the .pot file and textdomained all strings to allow translations.
|
| 3 |
Donate link: http://johansteen.se/donate/
|
| 4 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
| 5 |
Requires at least: 3.0
|
| 6 |
+
Tested up to: 3.8.1
|
| 7 |
+
Stable tag: 1.8.2
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 32 |
|
| 33 |
= Related Links =
|
| 34 |
|
| 35 |
+
* [Documentation](http://johansteen.se/code/paypal-donations/
|
| 36 |
"Usage instructions")
|
| 37 |
+
* [Support Forum](http://wordpress.org/support/plugin/paypal-donations
|
| 38 |
"Use this for support and feature requests")
|
| 39 |
+
* [GitHub](https://github.com/artstorm/paypal-donations
|
| 40 |
"Develop and contribute your code or report bugs")
|
| 41 |
|
| 42 |
|
| 59 |
|
| 60 |
= Where can I get support? =
|
| 61 |
|
| 62 |
+
Please visit the [Support Forum](http://wordpress.org/support/plugin/paypal-donations "Use this for support and feature requests")
|
| 63 |
for questions, answers, support and feature requests.
|
| 64 |
|
| 65 |
= Where can I send bug reports? =
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
|
| 85 |
+
= Version 1.8.2 - 22 Mar 2014 =
|
| 86 |
+
* Adds the option to have PayPal open in a new tab.
|
| 87 |
+
|
| 88 |
= Version 1.8.1 - 27 Apr 2013 =
|
| 89 |
* Various minor code improvements.
|
| 90 |
* Bumps required WordPress version to v3.0.
|
| 99 |
* Updated Swedish translation.
|
| 100 |
|
| 101 |
= Version 1.7 - 19 Feb 2013 =
|
| 102 |
+
* Moved the development to
|
| 103 |
+
[GitHub](https://github.com/artstorm/paypal-donations).
|
| 104 |
* Refactored code to comply with the PSR-2 standard.
|
| 105 |
* Bumped minimum PHP version to 5.2.4.
|
| 106 |
* Bumped minimum required WordPress version to WordPress 2.8.
|
| 122 |
* Added filter 'paypal_donations_url', to hook into the URL used, to be able to
|
| 123 |
try the button against PayPal's Sandbox for instance.
|
| 124 |
* Added filter 'paypal_donations_amount', to hook into the set amount before
|
| 125 |
+
rendering the button.
|
| 126 |
* Included Lithuanian translation by Nata Strazda.
|
| 127 |
* Changed the plugin class name from paypal_donations to Paypal_Donations.
|
| 128 |
|
| 131 |
|
| 132 |
= Version 1.4.9.3 - 18 Apr 2011 =
|
| 133 |
* Added Turkish Lira (TRY) to the list of currencies.
|
| 134 |
+
|
| 135 |
= Version 1.4.9.2 - 02 Apr 2011 =
|
| 136 |
* Added four new currencies that PayPal supports for donations to choose from:
|
| 137 |
Brazilian Real (BRL), Taiwan New Dollar (TWD), Philippine Peso (PHP), Thai
|
| 179 |
|
| 180 |
= Version 1.3.2 - 28 Aug 2009 =
|
| 181 |
* Included Russian translation by FatCow.
|
| 182 |
+
|
| 183 |
= Version 1.3.1 - 25 August 2009 =
|
| 184 |
* Added Swedish translation.
|
| 185 |
* Added the .pot file and textdomained all strings to allow translations.
|
{lib → src}/PayPalDonations/Admin.php
RENAMED
|
@@ -57,7 +57,7 @@ class PayPalDonations_Admin
|
|
| 57 |
array($this, 'renderpage')
|
| 58 |
);
|
| 59 |
}
|
| 60 |
-
|
| 61 |
public function renderpage()
|
| 62 |
{
|
| 63 |
$data = array(
|
|
@@ -306,6 +306,20 @@ class PayPalDonations_Admin
|
|
| 306 |
'description' => ''
|
| 307 |
)
|
| 308 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
add_settings_field(
|
| 310 |
'set_checkout_language',
|
| 311 |
__('Enable Checkout Language', PayPalDonations::TEXT_DOMAIN),
|
|
@@ -567,6 +581,23 @@ class PayPalDonations_Admin
|
|
| 567 |
echo "<p class='description'>{$args['description']}</p>";
|
| 568 |
}
|
| 569 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
public function setCheckoutLangugageCallback($args)
|
| 571 |
{
|
| 572 |
$optionKey = PayPalDonations::OPTION_DB_KEY;
|
|
@@ -639,7 +670,7 @@ class PayPalDonations_Admin
|
|
| 639 |
// -------------------------------------------------------------------------
|
| 640 |
// HTML and Form element methods
|
| 641 |
// -------------------------------------------------------------------------
|
| 642 |
-
|
| 643 |
/**
|
| 644 |
* Checkbox.
|
| 645 |
* Renders the HTML for an input checkbox.
|
| 57 |
array($this, 'renderpage')
|
| 58 |
);
|
| 59 |
}
|
| 60 |
+
|
| 61 |
public function renderpage()
|
| 62 |
{
|
| 63 |
$data = array(
|
| 306 |
'description' => ''
|
| 307 |
)
|
| 308 |
);
|
| 309 |
+
add_settings_field(
|
| 310 |
+
'new_tab',
|
| 311 |
+
__(
|
| 312 |
+
'Open PayPal in New Tab',
|
| 313 |
+
PayPalDonations::TEXT_DOMAIN
|
| 314 |
+
),
|
| 315 |
+
array($this, 'newTabCallback'),
|
| 316 |
+
self::PAGE_SLUG,
|
| 317 |
+
'extras_section',
|
| 318 |
+
array(
|
| 319 |
+
'label_for' => 'new_tab',
|
| 320 |
+
'description' => ''
|
| 321 |
+
)
|
| 322 |
+
);
|
| 323 |
add_settings_field(
|
| 324 |
'set_checkout_language',
|
| 325 |
__('Enable Checkout Language', PayPalDonations::TEXT_DOMAIN),
|
| 581 |
echo "<p class='description'>{$args['description']}</p>";
|
| 582 |
}
|
| 583 |
|
| 584 |
+
public function newTabCallback($args)
|
| 585 |
+
{
|
| 586 |
+
$optionKey = PayPalDonations::OPTION_DB_KEY;
|
| 587 |
+
$options = get_option($optionKey);
|
| 588 |
+
$checked = isset($options['new_tab']) ?
|
| 589 |
+
$options['new_tab'] :
|
| 590 |
+
false;
|
| 591 |
+
echo "<input type='checkbox' id='new_tab' ";
|
| 592 |
+
echo "name='{$optionKey}[new_tab]' value='1' ";
|
| 593 |
+
if ($checked) {
|
| 594 |
+
echo 'checked ';
|
| 595 |
+
}
|
| 596 |
+
echo "/>";
|
| 597 |
+
|
| 598 |
+
echo "<p class='description'>{$args['description']}</p>";
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
public function setCheckoutLangugageCallback($args)
|
| 602 |
{
|
| 603 |
$optionKey = PayPalDonations::OPTION_DB_KEY;
|
| 670 |
// -------------------------------------------------------------------------
|
| 671 |
// HTML and Form element methods
|
| 672 |
// -------------------------------------------------------------------------
|
| 673 |
+
|
| 674 |
/**
|
| 675 |
* Checkbox.
|
| 676 |
* Renders the HTML for an input checkbox.
|
{lib → src}/PayPalDonations/Help.php
RENAMED
|
File without changes
|
{lib → src}/PayPalDonations/View.php
RENAMED
|
File without changes
|
{lib → src}/PayPalDonations/Widget.php
RENAMED
|
File without changes
|
views/paypal-button.php
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
<!-- Begin PayPal Donations by http://johansteen.se/ -->
|
| 2 |
-
<form
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
<div class="paypal-donations">
|
| 4 |
<input type="hidden" name="cmd" value="_donations" />
|
| 5 |
<input type="hidden" name="business" value="<?php echo $pd_options['paypal_account']; ?>" />
|
| 1 |
<!-- Begin PayPal Donations by http://johansteen.se/ -->
|
| 2 |
+
<form
|
| 3 |
+
action="<?php echo apply_filters( 'paypal_donations_url', 'https://www.paypal.com/cgi-bin/webscr'); ?>"
|
| 4 |
+
method="post"
|
| 5 |
+
<?php if ($pd_options['new_tab']) {
|
| 6 |
+
echo 'target="_blank"';
|
| 7 |
+
} ?>
|
| 8 |
+
>
|
| 9 |
<div class="paypal-donations">
|
| 10 |
<input type="hidden" name="cmd" value="_donations" />
|
| 11 |
<input type="hidden" name="business" value="<?php echo $pd_options['paypal_account']; ?>" />
|
