PayPal Donations - Version 1.4.8

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 PayPal Donations
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

languages/paypal-donations-de_DE.mo ADDED
Binary file
languages/paypal-donations-de_DE.po ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin PayPal Donations 1.4.5 by Johan Steen.
2
+ # Copyright (C) 2010 Johan Steen
3
+ # This file is distributed under the same license as the PayPal Donations package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: PayPal Donations 1.4.7\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
10
+ "POT-Creation-Date: 2010-02-18 23:46+0000\n"
11
+ "PO-Revision-Date: 2010-06-24 14:12+0100\n"
12
+ "Last-Translator: Rian van Spaandonk <rian.vanspaandonk@pangaea.nl>\n"
13
+ "Language-Team: \n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1)\n"
18
+ "X-Poedit-Language: German\n"
19
+ "X-Poedit-Country: GERMANY\n"
20
+
21
+ #: paypal-donations.php:111
22
+ msgid "PayPal Donations requires WordPress version 2.7 or later!"
23
+ msgstr "PayPal Donations erfordert WordPress Version 2.7 oder h&ouml;her!"
24
+
25
+ #: paypal-donations.php:223
26
+ msgid "The PayPal Donations settings have been updated."
27
+ msgstr "Die PayPal Donations Einstellungen sind aktualisiert."
28
+
29
+ #: paypal-donations.php:234
30
+ msgid "PayPal Account"
31
+ msgstr "PayPal-Konto"
32
+
33
+ #: paypal-donations.php:235
34
+ msgid "Your PayPal email address or your PayPal secure merchant account ID."
35
+ msgstr "Ihre PayPal E-Mail-Adresse oder das ID Ihres sicheren H&auml;ndlerkonto f&uuml;r PayPal."
36
+
37
+ #: paypal-donations.php:238
38
+ msgid "Currency"
39
+ msgstr "W&auml;hrung"
40
+
41
+ #: paypal-donations.php:246
42
+ msgid "The currency to use for the donations."
43
+ msgstr "W&auml;hrung die f&uuml;r Spenden verwendet wird."
44
+
45
+ #: paypal-donations.php:250
46
+ msgid "Optional Settings"
47
+ msgstr "Optionale Einstellungen"
48
+
49
+ #: paypal-donations.php:253
50
+ msgid "Page Style"
51
+ msgstr "Seitenformat"
52
+
53
+ #: paypal-donations.php:254
54
+ msgid "Specify the name of a custom payment page style from your PayPal account profile."
55
+ msgstr "Geben Sie den Name eines benutzerdefinierten Seitenformat Ihres PayPal Kontoprofil."
56
+
57
+ #: paypal-donations.php:257
58
+ msgid "Return Page"
59
+ msgstr "R&uuml;ckkehrseite"
60
+
61
+ #: paypal-donations.php:258
62
+ msgid "URL to which the donator comes to after completing the donation; for example, a URL on your site that displays a \"Thank you for your donation\"."
63
+ msgstr "URL-Adresse wo der Spender nach dem Spenden landet; zB. eine URL-Adresse Ihrer Seite mit dem Nachricht \"Vielen Dank f&uuml;r Ihre Spende\"."
64
+
65
+ #: paypal-donations.php:262
66
+ msgid "Defaults"
67
+ msgstr "Standardwerte"
68
+
69
+ #: paypal-donations.php:265
70
+ msgid "Amount"
71
+ msgstr "Betrag"
72
+
73
+ #: paypal-donations.php:266
74
+ msgid "The default amount for a donation (Optional)."
75
+ msgstr "Standard Betrag der Spende (optional)."
76
+
77
+ #: paypal-donations.php:269
78
+ msgid "Purpose"
79
+ msgstr "Ziel"
80
+
81
+ #: paypal-donations.php:270
82
+ msgid "The default purpose of a donation (Optional)."
83
+ msgstr "Standard Ziel der Spende (optional)."
84
+
85
+ #: paypal-donations.php:273
86
+ msgid "Reference"
87
+ msgstr "Referenz"
88
+
89
+ #: paypal-donations.php:274
90
+ msgid "Default reference for the donation (Optional)."
91
+ msgstr "Standard Referenz der Spende (optional)."
92
+
93
+ #: paypal-donations.php:278
94
+ msgid "Donation Button"
95
+ msgstr "Spendeschaltfl&auml;che"
96
+
97
+ #: paypal-donations.php:281
98
+ msgid "Select Button"
99
+ msgstr "Schaltfl&auml;che \"Ausw&auml;hlen\""
100
+
101
+ #: paypal-donations.php:299
102
+ msgid "Custom Button:"
103
+ msgstr "Benutzerdefinierte Schaltfl&auml;che"
104
+
105
+ #: paypal-donations.php:302
106
+ msgid "Enter a URL to a custom donation button."
107
+ msgstr "Geben Sie eine URL-Adresse f&uuml;r die benutzerdefinierte Spendeschaltfl&auml;che ein."
108
+
109
+ #: paypal-donations.php:307
110
+ msgid "Country and Language"
111
+ msgstr "Land und Sprache"
112
+
113
+ #: paypal-donations.php:314
114
+ msgid "Localize the language and the country for the button (Updated after saving the settings)."
115
+ msgstr "Lokalisiert die Sprache und das Land f&uuml;r die Schaltfl&auml;che (aktualisiert nach dem Speichern der Einstellungen)."
116
+
117
+ #: paypal-donations.php:319
118
+ msgid "Save Changes"
119
+ msgstr "Einstellungen speichern"
120
+
121
+ #: paypal-donations.php:339
122
+ msgid "PayPal Donation Button"
123
+ msgstr "PayPal Spendeschaltfl&auml;che"
124
+
125
+ #: paypal-donations.php:392
126
+ msgid "Donate"
127
+ msgstr "Spenden"
128
+
129
+ #: paypal-donations.php:396
130
+ msgid "Title:"
131
+ msgstr "Titel:"
132
+
133
+ #: paypal-donations.php:402
134
+ msgid "Text:"
135
+ msgstr "Text:"
136
+
137
+ #: paypal-donations.php:408
138
+ msgid "Purpose:"
139
+ msgstr "Ziel:"
140
+
141
+ #: paypal-donations.php:414
142
+ msgid "Reference:"
143
+ msgstr "Referenz:"
144
+
145
+ #. Plugin Name of an extension
146
+ msgid "PayPal Donations"
147
+ msgstr "PayPal Donations"
148
+
149
+ #. Plugin URI of an extension
150
+ msgid "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
151
+ msgstr "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
152
+
153
+ #. Description of an extension
154
+ msgid "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."
155
+ msgstr "Einfaches Setup und Einf&uuml;gen von PayPal Spendeschaltfl&auml;chen mit einer Kurzcode oder Randliste-Widget. Spendeziel kann f&uuml;r jede Schaltfl&auml;che eingestellt werden, genause wie einige weiteren benutzerdefinierten Optionen."
156
+
157
+ #. Author of an extension
158
+ msgid "Johan Steen"
159
+ msgstr "Johan Steen"
160
+
161
+ #. Author URI of an extension
162
+ msgid "http://coding.cglounge.com/"
163
+ msgstr "http://coding.cglounge.com/"
164
+
paypal-donations.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: PayPal Donations
4
  Plugin URI: http://wpstorm.net/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
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: paypal-donations
@@ -128,16 +128,17 @@ class paypal_donations {
128
  'reference' => '',
129
  'amount' => '',
130
  'return_page' => '',
 
131
  ), $atts));
132
 
133
- return $this->generate_html($purpose, $reference, $amount, $return_page);
134
  }
135
 
136
  /**
137
  * Generate the PayPal button HTML code
138
  *
139
  */
140
- function generate_html($purpose = null, $reference = null, $amount = null, $return_page = null) {
141
  $pd_options = get_option($this->plugin_options);
142
 
143
  // Set overrides for purpose and reference if defined
@@ -145,9 +146,11 @@ class paypal_donations {
145
  $reference = (!$reference) ? $pd_options['reference'] : $reference;
146
  $amount = (!$amount) ? $pd_options['amount'] : $amount;
147
  $return_page = (!$return_page) ? $pd_options['return_page'] : $return_page;
 
148
 
149
  # Build the button
150
- $paypal_btn = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
 
151
  $paypal_btn .= '<div class="paypal-donations">';
152
  $paypal_btn .= '<input type="hidden" name="cmd" value="_donations" />';
153
  $paypal_btn .= '<input type="hidden" name="business" value="' .$pd_options['paypal_account']. '" />';
@@ -174,15 +177,14 @@ class paypal_donations {
174
  // $paypal_btn .= '<input type="hidden" name="amount" value="20" />';
175
 
176
  // Get the button URL
177
- if ( $pd_options['button'] == "custom" )
178
- $button_url = $pd_options['button_url'];
179
- else
180
  $button_url = str_replace('en_US', $button_localized, $this->donate_buttons[$pd_options['button']]);
181
 
182
  $paypal_btn .= '<input type="image" src="' .$button_url. '" name="submit" alt="PayPal - The safer, easier way to pay online." />';
183
  $paypal_btn .= '<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />';
184
  $paypal_btn .= '</div>';
185
  $paypal_btn .= '</form>';
 
186
 
187
  return $paypal_btn;
188
  }
@@ -193,7 +195,7 @@ class paypal_donations {
193
  */
194
  function wp_admin() {
195
  if (function_exists('add_options_page')) {
196
- add_options_page( 'PayPal Donations Options', 'PayPal Donations', 10, __FILE__, array(&$this, 'options_page') );
197
  }
198
  }
199
 
@@ -285,7 +287,7 @@ class paypal_donations {
285
  if (isset($pd_options['button_localized'])) { $button_localized = $pd_options['button_localized']; } else { $button_localized = 'en_US'; }
286
  if (isset($pd_options['button'])) { $current_button = $pd_options['button']; } else { $current_button = 'large'; }
287
  foreach ( $this->donate_buttons as $key => $button ) {
288
- echo "\t<label title='" . attribute_escape($key) . "'><input style='padding: 10px 0 10px 0;' type='radio' name='button' value='" . attribute_escape($key) . "'";
289
  if ( $current_button === $key ) { // checked() uses "==" rather than "==="
290
  echo " checked='checked'";
291
  $custom = FALSE;
@@ -435,4 +437,16 @@ function paypal_donations_deinstall() {
435
  // Start the Plugin
436
  add_action( 'plugins_loaded', create_function( '', 'global $paypal_donations; $paypal_donations = new paypal_donations();' ) );
437
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  ?>
3
  Plugin Name: PayPal Donations
4
  Plugin URI: http://wpstorm.net/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.8
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: paypal-donations
128
  'reference' => '',
129
  'amount' => '',
130
  'return_page' => '',
131
+ 'button_url' => '',
132
  ), $atts));
133
 
134
+ return $this->generate_html($purpose, $reference, $amount, $return_page, $button_url);
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, $button_url = null) {
142
  $pd_options = get_option($this->plugin_options);
143
 
144
  // Set overrides for purpose and reference if defined
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
+ $button_url = (!$button_url) ? $pd_options['button_url'] : $button_url;
150
 
151
  # Build the button
152
+ $paypal_btn = "\n<!-- Begin PayPal Donations by http://wpstorm.net/ -->\n";
153
+ $paypal_btn .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
154
  $paypal_btn .= '<div class="paypal-donations">';
155
  $paypal_btn .= '<input type="hidden" name="cmd" value="_donations" />';
156
  $paypal_btn .= '<input type="hidden" name="business" value="' .$pd_options['paypal_account']. '" />';
177
  // $paypal_btn .= '<input type="hidden" name="amount" value="20" />';
178
 
179
  // Get the button URL
180
+ if ( $pd_options['button'] != "custom" && !$button_url)
 
 
181
  $button_url = str_replace('en_US', $button_localized, $this->donate_buttons[$pd_options['button']]);
182
 
183
  $paypal_btn .= '<input type="image" src="' .$button_url. '" name="submit" alt="PayPal - The safer, easier way to pay online." />';
184
  $paypal_btn .= '<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />';
185
  $paypal_btn .= '</div>';
186
  $paypal_btn .= '</form>';
187
+ $paypal_btn .= "\n<!-- End PayPal Donations -->\n";
188
 
189
  return $paypal_btn;
190
  }
195
  */
196
  function wp_admin() {
197
  if (function_exists('add_options_page')) {
198
+ add_options_page( 'PayPal Donations Options', 'PayPal Donations', 'administrator', __FILE__, array(&$this, 'options_page') );
199
  }
200
  }
201
 
287
  if (isset($pd_options['button_localized'])) { $button_localized = $pd_options['button_localized']; } else { $button_localized = 'en_US'; }
288
  if (isset($pd_options['button'])) { $current_button = $pd_options['button']; } else { $current_button = 'large'; }
289
  foreach ( $this->donate_buttons as $key => $button ) {
290
+ echo "\t<label title='" . esc_attr($key) . "'><input style='padding: 10px 0 10px 0;' type='radio' name='button' value='" . esc_attr($key) . "'";
291
  if ( $current_button === $key ) { // checked() uses "==" rather than "==="
292
  echo " checked='checked'";
293
  $custom = FALSE;
437
  // Start the Plugin
438
  add_action( 'plugins_loaded', create_function( '', 'global $paypal_donations; $paypal_donations = new paypal_donations();' ) );
439
 
440
+ /**
441
+ * For backwards compability with earlier WordPress Versions
442
+ *
443
+ * @since PayPal Donations 1.4.8
444
+ */
445
+
446
+ # esc_attr isn't available in WordPress < 2.8.
447
+ if (!function_exists('esc_attr')) :
448
+ function esc_attr($arg) {
449
+ return attribute_escape($arg);
450
+ }
451
+ endif;
452
  ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: artstorm
3
  Donate link: http://wpstorm.net/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.2
7
- Stable tag: 1.4.7
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,11 @@ Please visit [PayPal Donations' Comments](http://wpstorm.net/wordpress-plugins/p
60
 
61
  == Changelog ==
62
 
 
 
 
 
 
63
  = Version 1.4.7 - 30 Apr 2010 =
64
  * Included Spanish translation by [Neoshinji](http://blog.tuayudainformatica.com/).
65
 
3
  Donate link: http://wpstorm.net/wordpress-plugins/paypal-donations/#pintware
4
  Tags: paypal, donation, shortcode, widget, donate, button, sidebar
5
  Requires at least: 2.7
6
+ Tested up to: 3.0
7
+ Stable tag: 1.4.8
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.8 - 29 Jun 2010 =
64
+ * Added shortcodes for button_url.
65
+ * Removed a few deprecated functions from the code.
66
+ * Included German translation by [Rian Kremer](http://heftruckcursus.tel/).
67
+
68
  = Version 1.4.7 - 30 Apr 2010 =
69
  * Included Spanish translation by [Neoshinji](http://blog.tuayudainformatica.com/).
70