Version Description
Download this release
Release Info
Developer | artstorm |
Plugin | PayPal Donations |
Version | 1.4.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.5
- paypal-donations.php +22 -236
- readme.txt +5 -2
paypal-donations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: PayPal Donations
|
4 |
Plugin URI: http://coding.cglounge.com/wordpress-plugins/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 |
-
Version: 1.4.
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://coding.cglounge.com/
|
9 |
Text Domain: paypal-donations
|
@@ -50,238 +50,22 @@ class paypal_donations {
|
|
50 |
'ILS' => 'Israeli Shekel',
|
51 |
'MXN' => 'Mexican Peso');
|
52 |
// Languages that PayPal default to en_US has been commented out for the time being.
|
53 |
-
var $localized_buttons = array(
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
'
|
64 |
-
'
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
//'en_BH' => 'Bahrain - U.K. English',
|
70 |
-
//'en_BB' => 'Barbados - U.K. English',
|
71 |
-
//'en_US/BE' => 'Belgium - U.S. English', //en_US/BE/i (en_BE) -- ACTIVATE THIS ONE
|
72 |
-
'nl_NL/BE' => 'Belgium - Dutch', //nl_NL/BE/i (nl_BE)
|
73 |
-
'fr_FR/BE' => 'Belgium - French', //fr_FR/BE/i (fr_BE)
|
74 |
-
//'en_BZ' => 'Belize - U.K. English',
|
75 |
-
//'en_BJ' => 'Benin - U.K. English',
|
76 |
-
//'en_BM' => 'Bermuda - U.K. English',
|
77 |
-
//'en_BT' => 'Bhutan - U.K. English',
|
78 |
-
|
79 |
-
//'en_BO' => 'Bolivia - U.K. English',
|
80 |
-
//'en_BA' => 'Bosnia and Herzegovina - U.K. English',
|
81 |
-
//'en_BW' => 'Botswana - U.K. English',
|
82 |
-
//'en_BR' => 'Brazil - U.K. English',
|
83 |
-
//'en_VG' => 'British Virgin Islands - U.K. English',
|
84 |
-
//'en_BN' => 'Brunei - U.K. English',
|
85 |
-
//'en_BG' => 'Bulgaria - U.K. English',
|
86 |
-
//'en_BF' => 'Burkina Faso - U.K. English',
|
87 |
-
//'en_BI' => 'Burundi - U.K. English',
|
88 |
-
|
89 |
-
//'en_KH' => 'Cambodia - U.K. English',
|
90 |
-
//'en_CA' => 'Canada - U.S. English',
|
91 |
-
'fr_XC' => 'Canada - French', //fr_XC/i (fr_CA)
|
92 |
-
//'en_CV' => 'Cape Verde - U.K. English',
|
93 |
-
//'en_KY' => 'Cayman Islands - U.K. English',
|
94 |
-
//'en_TD' => 'Chad - U.K. English',
|
95 |
-
//'en_CL' => 'Chile - U.K. English',
|
96 |
-
//'en_C2' => 'China - U.S. English',
|
97 |
-
'zh_XC' => 'China - Simplified Chinese', //zh_XC/i (zh_C2)
|
98 |
-
|
99 |
-
//'en_CO' => 'Colombia - U.K. English',
|
100 |
-
//'en_KM' => 'Comoros - U.K. English',
|
101 |
-
//'en_CK' => 'Cook Islands - U.K. English',
|
102 |
-
//'en_CR' => 'Costa Rica - U.K. English',
|
103 |
-
//'en_HR' => 'Croatia - U.K. English',
|
104 |
-
//'en_CY' => 'Cyprus - U.K. English',
|
105 |
-
//'en_CZ' => 'Czech Republic - U.K. English',
|
106 |
-
//'en_CD' => 'Democratic Republic of the Congo - U.K. English',
|
107 |
-
//'en_DK' => 'Denmark - U.K. English',
|
108 |
-
|
109 |
-
//'en_DJ' => 'Djibouti - U.K. English',
|
110 |
-
//'en_DM' => 'Dominica - U.K. English',
|
111 |
-
//'en_DO' => 'Dominican Republic - U.K. English',
|
112 |
-
//'en_EC' => 'Ecuador - U.K. English',
|
113 |
-
//'en_SV' => 'El Salvador - U.K. English',
|
114 |
-
//'en_ER' => 'Eritrea - U.K. English',
|
115 |
-
//'en_EE' => 'Estonia - U.K. English',
|
116 |
-
//'en_ET' => 'Ethiopia - U.K. English',
|
117 |
-
//'en_FK' => 'Falkland Islands - U.K. English',
|
118 |
-
|
119 |
-
//'en_FO' => 'Faroe Islands - U.K. English',
|
120 |
-
//'en_FM' => 'Federated States of Micronesia - U.K. English',
|
121 |
-
//'en_FJ' => 'Fiji - U.K. English',
|
122 |
-
//'en_FI' => 'Finland - U.K. English',
|
123 |
-
'fr_FR/FR' => 'France - French', //fr_FR/FR/i/ (fr_FR)
|
124 |
-
//'en_US/FR' => 'France - U.S. English', //en_US/FR/i/ (en_FR) -- ACTIVATE THIS ONE
|
125 |
-
//'en_GF' => 'French Guiana - U.K. English',
|
126 |
-
//'en_PF' => 'French Polynesia - U.K. English',
|
127 |
-
//'en_GA' => 'Gabon Republic - U.K. English',
|
128 |
-
|
129 |
-
//'en_GM' => 'Gambia - U.K. English',
|
130 |
-
'de_DE/DE' => 'Germany - German', //de_DE/DE/i (de_DE)
|
131 |
-
//'en_US/DE' => 'Germany - U.S. English', //en_US/DE/i (en_DE) -- ACTIVATE THIS ONE
|
132 |
-
//'en_GI' => 'Gibraltar - U.K. English',
|
133 |
-
//'en_GR' => 'Greece - U.K. English',
|
134 |
-
//'en_GL' => 'Greenland - U.K. English',
|
135 |
-
//'en_GD' => 'Grenada - U.K. English',
|
136 |
-
//'en_GP' => 'Guadeloupe - U.K. English',
|
137 |
-
//'en_GT' => 'Guatemala - U.K. English',
|
138 |
-
|
139 |
-
//'en_GN' => 'Guinea - U.K. English',
|
140 |
-
//'en_GW' => 'Guinea Bissau - U.K. English',
|
141 |
-
//'en_GY' => 'Guyana - U.K. English',
|
142 |
-
//'en_HN' => 'Honduras - U.K. English',
|
143 |
-
//'zh_HK/HK' => 'Hong Kong - Traditional Chinese', //zh_HK/HK/i (zh_HK) -- ACTIVATE THIS ONE
|
144 |
-
//'en_GB/HK' => 'Hong Kong - U.K. English', //en_GB/HK/i (en_HK) -- ACTIVATE THIS ONE
|
145 |
-
//'en_HU' => 'Hungary - U.K. English',
|
146 |
-
//'en_IS' => 'Iceland - U.K. English',
|
147 |
-
//'en_IN' => 'India - U.K. English',
|
148 |
-
|
149 |
-
//'en_ID' => 'Indonesia - U.K. English',
|
150 |
-
//'en_IE' => 'Ireland - U.K. English',
|
151 |
-
//'en_IL' => 'Israel - U.K. English',
|
152 |
-
'it_IT/IT' => 'Italy - Italian', //it_IT/IT/i (it_IT)
|
153 |
-
//'en_US/IT' => 'Italy - U.S. English', //en_US/IT/i (en_IT -- ACTIVATE THIS ONE
|
154 |
-
//'en_JM' => 'Jamaica - U.K. English',
|
155 |
-
'ja_JP/JP' => 'Japan - Japanese', //ja_JP/JP/i (ja_JP)
|
156 |
-
//'en_US/JP' => 'Japan - U.S. English', //en_US/JP/i (en_JP) -- ACTIVATE THIS ONE
|
157 |
-
//'en_JO' => 'Jordan - U.K. English',
|
158 |
-
|
159 |
-
//'en_KZ' => 'Kazakhstan - U.K. English',
|
160 |
-
//'en_KE' => 'Kenya - U.K. English',
|
161 |
-
//'en_KI' => 'Kiribati - U.K. English',
|
162 |
-
//'en_KW' => 'Kuwait - U.K. English',
|
163 |
-
//'en_KG' => 'Kyrgyzstan - U.K. English',
|
164 |
-
//'en_LA' => 'Laos - U.K. English',
|
165 |
-
//'en_LV' => 'Latvia - U.K. English',
|
166 |
-
//'en_LS' => 'Lesotho - U.K. English',
|
167 |
-
//'en_LI' => 'Liechtenstein - U.K. English',
|
168 |
-
|
169 |
-
//'en_LT' => 'Lithuania - U.K. English',
|
170 |
-
//'en_LU' => 'Luxembourg - U.K. English',
|
171 |
-
//'en_MG' => 'Madagascar - U.K. English',
|
172 |
-
//'en_MW' => 'Malawi - U.K. English',
|
173 |
-
//'en_MY' => 'Malaysia - U.K. English',
|
174 |
-
//'en_MV' => 'Maldives - U.K. English',
|
175 |
-
//'en_ML' => 'Mali - U.K. English',
|
176 |
-
//'en_MT' => 'Malta - U.K. English',
|
177 |
-
//'en_MH' => 'Marshall Islands - U.K. English',
|
178 |
-
|
179 |
-
//'en_MQ' => 'Martinique - U.K. English',
|
180 |
-
//'en_MR' => 'Mauritania - U.K. English',
|
181 |
-
//'en_MU' => 'Mauritius - U.K. English',
|
182 |
-
//'en_YT' => 'Mayotte - U.K. English',
|
183 |
-
'es_XC' => 'Mexico - Spanish', //es_XC/i (es_MX)
|
184 |
-
//'en_MX' => 'Mexico - U.S. English',
|
185 |
-
//'en_MN' => 'Mongolia - U.K. English',
|
186 |
-
//'en_MS' => 'Montserrat - U.K. English',
|
187 |
-
//'en_MA' => 'Morocco - U.K. English',
|
188 |
-
|
189 |
-
//'en_MZ' => 'Mozambique - U.K. English',
|
190 |
-
//'en_NA' => 'Namibia - U.K. English',
|
191 |
-
//'en_NR' => 'Nauru - U.K. English',
|
192 |
-
//'en_NP' => 'Nepal - U.K. English',
|
193 |
-
'nl_NL/NL' => 'Netherlands - Dutch', //nl_NL/NL/i (nl_NL)
|
194 |
-
//'en_US/NL' => 'Netherlands - U.S. English', //en_US/NL/i (en_NL) -- ACTIVATE THIS ONE
|
195 |
-
//'en_AN' => 'Netherlands Antilles - U.K. English',
|
196 |
-
//'en_NC' => 'New Caledonia - U.K. English',
|
197 |
-
//'en_NZ' => 'New Zealand - U.K. English',
|
198 |
-
|
199 |
-
//'en_NI' => 'Nicaragua - U.K. English',
|
200 |
-
//'en_NE' => 'Niger - U.K. English',
|
201 |
-
//'en_NU' => 'Niue - U.K. English',
|
202 |
-
//'en_NF' => 'Norfolk Island - U.K. English',
|
203 |
-
//'en_NO' => 'Norway - U.K. English',
|
204 |
-
//'en_OM' => 'Oman - U.K. English',
|
205 |
-
//'en_PW' => 'Palau - U.K. English',
|
206 |
-
//'en_PA' => 'Panama - U.K. English',
|
207 |
-
//'en_PG' => 'Papua New Guinea - U.K. English',
|
208 |
-
|
209 |
-
//'en_PE' => 'Peru - U.K. English',
|
210 |
-
//'en_PH' => 'Philippines - U.K. English',
|
211 |
-
//'en_PN' => 'Pitcairn Islands - U.K. English',
|
212 |
-
'pl_PL/PL' => 'Poland - Polish', //pl_PL/PL/i (pl_PL)
|
213 |
-
//'en_US/PL' => 'Poland - U.S. English', //en_US/PL/i (en_PL) -- ACTIVATE THIS ONE
|
214 |
-
//'en_PT' => 'Portugal - U.K. English',
|
215 |
-
//'en_QA' => 'Qatar - U.K. English',
|
216 |
-
//'en_CG' => 'Republic of the Congo - U.K. English',
|
217 |
-
//'en_RE' => 'Reunion - U.K. English',
|
218 |
-
|
219 |
-
//'en_RO' => 'Romania - U.K. English',
|
220 |
-
//'en_RU' => 'Russia - U.K. English',
|
221 |
-
//'en_RW' => 'Rwanda - U.K. English',
|
222 |
-
//'en_VC' => 'Saint Vincent and the Grenadines - U.K. English',
|
223 |
-
//'en_WS' => 'Samoa - U.K. English',
|
224 |
-
//'en_SM' => 'San Marino - U.K. English',
|
225 |
-
//'en_ST' => 'S�o Tom� and Pr�ncipe - U.K. English',
|
226 |
-
//'en_SA' => 'Saudi Arabia - U.K. English',
|
227 |
-
//'en_SN' => 'Senegal - U.K. English',
|
228 |
-
|
229 |
-
//'en_SC' => 'Seychelles - U.K. English',
|
230 |
-
//'en_SL' => 'Sierra Leone - U.K. English',
|
231 |
-
//'en_SG' => 'Singapore - U.K. English',
|
232 |
-
//'en_SK' => 'Slovakia - U.K. English',
|
233 |
-
//'en_SI' => 'Slovenia - U.K. English',
|
234 |
-
//'en_SB' => 'Solomon Islands - U.K. English',
|
235 |
-
//'en_SO' => 'Somalia - U.K. English',
|
236 |
-
//'en_ZA' => 'South Africa - U.K. English',
|
237 |
-
//'en_KR' => 'South Korea - U.K. English',
|
238 |
-
|
239 |
-
'es_ES/ES' => 'Spain - Spanish', //es_ES/ES/i (es_ES)
|
240 |
-
//'en_US/ES' => 'Spain - U.S. English', //en_US/ES/i (en_ES) -- ACTIVATE THIS ONE
|
241 |
-
//'en_LK' => 'Sri Lanka - U.K. English',
|
242 |
-
//'en_SH' => 'St. Helena - U.K. English',
|
243 |
-
//'en_KN' => 'St. Kitts and Nevis - U.K. English',
|
244 |
-
//'en_LC' => 'St. Lucia - U.K. English',
|
245 |
-
//'en_PM' => 'St. Pierre and Miquelon - U.K. English',
|
246 |
-
//'en_SR' => 'Suriname - U.K. English',
|
247 |
-
//'en_SJ' => 'Svalbard and Jan Mayen Islands - U.K. English',
|
248 |
-
|
249 |
-
//'en_SZ' => 'Swaziland - U.K. English',
|
250 |
-
//'en_SE' => 'Sweden - U.K. English',
|
251 |
-
'de_DE/CH' => 'Switzerland - German', //de_DE/CH/i (de_CH)
|
252 |
-
'fr_FR/CH' => 'Switzerland - French', //fr_FR/CH/i (fr_CH)
|
253 |
-
//'en_US/CH' => 'Switzerland - U.S. English', //en_US/CH/i (en_CH) -- ACTIVATE THIS ONE
|
254 |
-
//'en_TW' => 'Taiwan - U.K. English',
|
255 |
-
//'en_TJ' => 'Tajikistan - U.K. English',
|
256 |
-
//'en_TZ' => 'Tanzania - U.K. English',
|
257 |
-
//'en_TH' => 'Thailand - U.K. English',
|
258 |
-
|
259 |
-
//'en_TG' => 'Togo - U.K. English',
|
260 |
-
//'en_TO' => 'Tonga - U.K. English',
|
261 |
-
//'en_TT' => 'Trinidad and Tobago - U.K. English',
|
262 |
-
//'en_TN' => 'Tunisia - U.K. English',
|
263 |
-
//'en_TR' => 'Turkey - U.K. English',
|
264 |
-
//'en_TM' => 'Turkmenistan - U.K. English',
|
265 |
-
//'en_TC' => 'Turks and Caicos Islands - U.K. English',
|
266 |
-
//'en_TV' => 'Tuvalu - U.K. English',
|
267 |
-
//'en_UG' => 'Uganda - U.K. English',
|
268 |
-
|
269 |
-
//'en_UA' => 'Ukraine - U.K. English',
|
270 |
-
//'en_AE' => 'United Arab Emirates - U.K. English',
|
271 |
-
//'en_US/GB' => 'United Kingdom - U.K. English', //en_US/GB/i (en_GB) -- ACTIVATE THIS ONE
|
272 |
'en_US' => 'United States - U.S. English');
|
273 |
-
//'fr_US' => 'United States - French', //fr_XC/i
|
274 |
-
//'es_US' => 'United States - Spanish', //es_XC/i
|
275 |
-
//'zh_US' => 'United States - Simplified Chinese', //zh_XC/i
|
276 |
-
//'en_UY' => 'Uruguay - U.K. English',
|
277 |
-
//'en_VU' => 'Vanuatu - U.K. English',
|
278 |
-
|
279 |
-
//'en_VA' => 'Vatican City State - U.K. English',
|
280 |
-
//'en_VE' => 'Venezuela - U.K. English',
|
281 |
-
//'en_VN' => 'Vietnam - U.K. English',
|
282 |
-
//'en_WF' => 'Wallis and Futuna Islands - U.K. English',
|
283 |
-
//'en_YE' => 'Yemen - U.K. English',
|
284 |
-
//'en_ZM' => 'Zambia - U.K. English');
|
285 |
/**
|
286 |
* Constructor
|
287 |
*
|
@@ -344,22 +128,24 @@ class paypal_donations {
|
|
344 |
'purpose' => '',
|
345 |
'reference' => '',
|
346 |
'amount' => '',
|
|
|
347 |
), $atts));
|
348 |
|
349 |
-
return $this->generate_html($purpose, $reference, $amount);
|
350 |
}
|
351 |
|
352 |
/**
|
353 |
* Generate the PayPal button HTML code
|
354 |
*
|
355 |
*/
|
356 |
-
function generate_html($purpose = null, $reference = null, $amount = null) {
|
357 |
$pd_options = get_option($this->plugin_options);
|
358 |
|
359 |
// Set overrides for purpose and reference if defined
|
360 |
$purpose = (!$purpose) ? $pd_options['purpose'] : $purpose;
|
361 |
$reference = (!$reference) ? $pd_options['reference'] : $reference;
|
362 |
$amount = (!$amount) ? $pd_options['amount'] : $amount;
|
|
|
363 |
|
364 |
# Build the button
|
365 |
$paypal_btn = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
|
@@ -370,8 +156,8 @@ class paypal_donations {
|
|
370 |
// Optional Settings
|
371 |
if ($pd_options['page_style'])
|
372 |
$paypal_btn .= '<input type="hidden" name="page_style" value="' .$pd_options['page_style']. '" />';
|
373 |
-
if ($
|
374 |
-
$paypal_btn .= '<input type="hidden" name="return" value="' .$
|
375 |
if ($purpose)
|
376 |
$paypal_btn .= '<input type="hidden" name="item_name" value="' .$purpose. '" />'; // Purpose
|
377 |
if ($reference)
|
3 |
Plugin Name: PayPal Donations
|
4 |
Plugin URI: http://coding.cglounge.com/wordpress-plugins/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 |
+
Version: 1.4.5
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://coding.cglounge.com/
|
9 |
Text Domain: paypal-donations
|
50 |
'ILS' => 'Israeli Shekel',
|
51 |
'MXN' => 'Mexican Peso');
|
52 |
// Languages that PayPal default to en_US has been commented out for the time being.
|
53 |
+
var $localized_buttons = array('en_AU' => 'Australia - Australian English',
|
54 |
+
'de_DE/AT' => 'Austria - German',
|
55 |
+
'nl_NL/BE' => 'Belgium - Dutch',
|
56 |
+
'fr_XC' => 'Canada - French',
|
57 |
+
'zh_XC' => 'China - Simplified Chinese',
|
58 |
+
'fr_FR/FR' => 'France - French',
|
59 |
+
'de_DE/DE' => 'Germany - German',
|
60 |
+
'it_IT/IT' => 'Italy - Italian',
|
61 |
+
'ja_JP/JP' => 'Japan - Japanese',
|
62 |
+
'es_XC' => 'Mexico - Spanish',
|
63 |
+
'nl_NL/NL' => 'Netherlands - Dutch',
|
64 |
+
'pl_PL/PL' => 'Poland - Polish',
|
65 |
+
'es_ES/ES' => 'Spain - Spanish',
|
66 |
+
'de_DE/CH' => 'Switzerland - German',
|
67 |
+
'fr_FR/CH' => 'Switzerland - French',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
'en_US' => 'United States - U.S. English');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
/**
|
70 |
* Constructor
|
71 |
*
|
128 |
'purpose' => '',
|
129 |
'reference' => '',
|
130 |
'amount' => '',
|
131 |
+
'return_page' => '',
|
132 |
), $atts));
|
133 |
|
134 |
+
return $this->generate_html($purpose, $reference, $amount, $return_page);
|
135 |
}
|
136 |
|
137 |
/**
|
138 |
* Generate the PayPal button HTML code
|
139 |
*
|
140 |
*/
|
141 |
+
function generate_html($purpose = null, $reference = null, $amount = null, $return_page = null) {
|
142 |
$pd_options = get_option($this->plugin_options);
|
143 |
|
144 |
// Set overrides for purpose and reference if defined
|
145 |
$purpose = (!$purpose) ? $pd_options['purpose'] : $purpose;
|
146 |
$reference = (!$reference) ? $pd_options['reference'] : $reference;
|
147 |
$amount = (!$amount) ? $pd_options['amount'] : $amount;
|
148 |
+
$return_page = (!$return_page) ? $pd_options['return_page'] : $return_page;
|
149 |
|
150 |
# Build the button
|
151 |
$paypal_btn = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
|
156 |
// Optional Settings
|
157 |
if ($pd_options['page_style'])
|
158 |
$paypal_btn .= '<input type="hidden" name="page_style" value="' .$pd_options['page_style']. '" />';
|
159 |
+
if ($return_page)
|
160 |
+
$paypal_btn .= '<input type="hidden" name="return" value="' .$return_page. '" />'; // Return Page
|
161 |
if ($purpose)
|
162 |
$paypal_btn .= '<input type="hidden" name="item_name" value="' .$purpose. '" />'; // Purpose
|
163 |
if ($reference)
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: artstorm
|
|
3 |
Donate link: http://coding.cglounge.com/wordpress-plugins/paypal-donations/#pintware
|
4 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 2.
|
7 |
-
Stable tag: 1.4.
|
8 |
|
9 |
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.
|
10 |
|
@@ -60,6 +60,9 @@ Please visit [PayPal Donations' Comments](http://coding.cglounge.com/wordpress-p
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
63 |
= Version 1.4.4 - 4 Nov 2009 =
|
64 |
* Included Hebrew translation by [Daniel Chcouri](http://www.anarchy.co.il/).
|
65 |
|
3 |
Donate link: http://coding.cglounge.com/wordpress-plugins/paypal-donations/#pintware
|
4 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 2.9.1
|
7 |
+
Stable tag: 1.4.5
|
8 |
|
9 |
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.
|
10 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= Version 1.4.5 - 28 Nov 2009 =
|
64 |
+
* Added shortcode for the return_page (Thanks [Bob King](http://wealthynetizen.com/)).
|
65 |
+
|
66 |
= Version 1.4.4 - 4 Nov 2009 =
|
67 |
* Included Hebrew translation by [Daniel Chcouri](http://www.anarchy.co.il/).
|
68 |
|