PayPal Donations - Version 1.8.1

Version Description

Download this release

Release Info

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

Code changes from version 1.8 to 1.8.1

lang/paypal-donations-ro_RO.mo CHANGED
Binary file
lang/paypal-donations-ro_RO.po CHANGED
@@ -1,166 +1,330 @@
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
- # Traducción al español del plugin PayPal Donations - v.1.0 - 29/04/2010
5
- # Autor: Neoshinji - <Neoshinji[at]gmail[dot]com>
6
- # Website traducción: http://blog.tuayudainformatica.com/ - <helpdesk@tuayudainformatica.com>
7
- #
8
  msgid ""
9
  msgstr ""
10
- "Project-Id-Version: PayPal Donations 1.4.5\n"
11
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
12
- "POT-Creation-Date: 2010-02-18 23:46+0000\n"
13
- "PO-Revision-Date: 2012-02-16 18:19+0300\n"
14
- "Last-Translator: Marko <mymakeit@gmail.com>\n"
15
- "Language-Team: http://allsciencemag.com <marko.pozner@gmail.com>\n"
16
  "MIME-Version: 1.0\n"
17
  "Content-Type: text/plain; charset=utf-8\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
- "X-Poedit-Language: Romanian\n"
20
- "X-Poedit-Country: Romania\n"
21
- "X-Poedit-SourceCharset: utf-8\n"
22
-
23
- #: paypal-donations.php:111
24
- msgid "PayPal Donations requires WordPress version 2.7 or later!"
25
- msgstr "Donaţii PayPal cere WordPress versiunea 2.7 sau mai tarziu!"
26
-
27
- #: paypal-donations.php:223
28
- msgid "The PayPal Donations settings have been updated."
29
- msgstr "Setările PayPal Donatii au fost actualizate."
30
-
31
- #: paypal-donations.php:234
32
  msgid "PayPal Account"
33
- msgstr "PayPal cont"
34
-
35
- #: paypal-donations.php:235
36
- msgid "Your PayPal email address or your PayPal secure merchant account ID."
37
- msgstr "Adresa dvs. de e-mail PayPal sau PayPal sigur ID de cont de comerciant."
38
-
39
- #: paypal-donations.php:238
 
 
 
 
 
 
40
  msgid "Currency"
41
- msgstr "Valută"
42
 
43
- #: paypal-donations.php:246
 
 
 
44
  msgid "The currency to use for the donations."
45
- msgstr "Moneda de a utiliza pentru donaţii."
46
 
47
- #: paypal-donations.php:250
 
 
 
48
  msgid "Optional Settings"
49
  msgstr "Setări opţionale"
50
 
51
- #: paypal-donations.php:253
 
 
 
52
  msgid "Page Style"
53
- msgstr "Stil pagina"
54
 
55
- #: paypal-donations.php:254
56
- msgid "Specify the name of a custom payment page style from your PayPal account profile."
57
- msgstr "Specificaţi numele unui stil personalizat pagina de plata de la profilul dvs. de cont PayPal."
 
 
 
 
 
 
 
58
 
59
- #: paypal-donations.php:257
 
 
 
60
  msgid "Return Page"
61
- msgstr "Înapoi Pagina"
62
-
63
- #: paypal-donations.php:258
64
- 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\"."
65
- msgstr "URL-ul care vine la donator după finalizarea donare, de exemplu, un URL pe site-ul dvs, care afişează un \"Va multumim pentru donatia ta\"."
66
 
67
- #: paypal-donations.php:262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  msgid "Defaults"
69
- msgstr "Defaults"
70
 
71
- #: paypal-donations.php:265
 
 
 
72
  msgid "Amount"
73
  msgstr "Sumă"
74
 
75
- #: paypal-donations.php:266
 
 
 
76
  msgid "The default amount for a donation (Optional)."
77
  msgstr "Valoarea implicită pentru o donaţie (opţional)."
78
 
79
- #: paypal-donations.php:269
 
 
 
80
  msgid "Purpose"
81
  msgstr "Scop"
82
 
83
- #: paypal-donations.php:270
 
 
 
84
  msgid "The default purpose of a donation (Optional)."
85
  msgstr "Scopul implicit al unei donaţii (opţional)."
86
 
87
- #: paypal-donations.php:273
 
 
 
88
  msgid "Reference"
89
  msgstr "Referinţă"
90
 
91
- #: paypal-donations.php:274
 
 
 
92
  msgid "Default reference for the donation (Optional)."
93
- msgstr "De referinţă implicit pentru donare (opţional)."
94
 
95
- #: paypal-donations.php:278
 
 
 
96
  msgid "Donation Button"
97
- msgstr "Donaţie buton"
98
 
99
- #: paypal-donations.php:281
 
 
 
100
  msgid "Select Button"
101
- msgstr "Butonul de selectare"
102
-
103
- #: paypal-donations.php:299
104
- msgid "Custom Button:"
105
- msgstr "Personalizat buton:"
106
-
107
- #: paypal-donations.php:302
 
 
 
 
 
 
 
108
  msgid "Enter a URL to a custom donation button."
109
- msgstr "Introduceţi un URL de la un buton de donatie particularizat."
110
 
111
- #: paypal-donations.php:307
 
 
 
112
  msgid "Country and Language"
113
  msgstr "Ţara şi limba"
114
 
115
- #: paypal-donations.php:314
116
- msgid "Localize the language and the country for the button (Updated after saving the settings)."
117
- msgstr "Localiza limba şi ţara pentru butonul (Actualizat după salvarea setărilor)."
118
-
119
- #: paypal-donations.php:319
120
- msgid "Save Changes"
121
- msgstr "Salvaţi Modificările"
122
-
123
- #: paypal-donations.php:339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  msgid "PayPal Donation Button"
125
- msgstr "Donatie PayPal Button"
126
 
127
- #: paypal-donations.php:392
 
 
 
128
  msgid "Donate"
129
- msgstr "Dona"
130
-
131
- #: paypal-donations.php:396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  msgid "Title:"
133
  msgstr "Titlu:"
134
 
135
- #: paypal-donations.php:402
 
 
 
136
  msgid "Text:"
137
  msgstr "Text:"
138
 
139
- #: paypal-donations.php:408
 
 
 
140
  msgid "Purpose:"
141
  msgstr "Scop:"
142
 
143
- #: paypal-donations.php:414
 
 
 
144
  msgid "Reference:"
145
- msgstr "De referinţă:"
146
-
147
- #. Plugin Name of an extension
148
- msgid "PayPal Donations"
149
- msgstr "Paypal Donations"
150
-
151
- #. Plugin URI of an extension
152
- msgid "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
153
- msgstr "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
154
-
155
- #. Description of an extension
156
- 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."
157
- msgstr "Configurare simplă şi rapidă şi inserarea de butoane PayPal doneaza cu o scurtătură sau prin intermediul unui widget sidebar. Scopul donaţie poate fi setat pentru fiecare buton. Şi alte câteva opţiuni de personalizare sunt de asemenea disponibile."
158
-
159
- #. Author of an extension
160
- msgid "Johan Steen"
161
- msgstr "Johan Steen"
162
-
163
- #. Author URI of an extension
164
- msgid "http://coding.cglounge.com/"
165
- msgstr "http://coding.cglounge.com/"
166
-
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress or WordPressMU site into a full featured multilingual content management system.
3
+ # http://wpml.org
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
+ "Project-Id-Version: \n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
8
+ "POT-Creation-Date: 2013-03-09 16:48+0700\n"
9
+ "PO-Revision-Date: \n"
10
+ "Last-Translator: < >\n"
11
+ "Language-Team: \n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=utf-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
+
17
+ # 'account_setup_section',
18
+ # __('Account Setup', 'paypal-donations'),
19
+ # array($this, 'accountSetupCallback'),
20
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:106
21
+ msgid "Account Setup"
22
+ msgstr "Setarea contului"
23
+
24
+ # 'paypal_account',
25
+ # __('PayPal Account', 'paypal-donations'),
26
+ # array($this, 'paypalAccountCallback'),
27
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:112
28
  msgid "PayPal Account"
29
+ msgstr "Contul PayPal"
30
+
31
+ # 'label_for' => 'paypal_account',
32
+ # 'description' => __(
33
+ # 'Your PayPal Email or Secure Merchant Account ID.',
34
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:119
35
+ msgid "Your PayPal Email or Secure Merchant Account ID."
36
+ msgstr "Emailul dumneavoastră PayPal sau ID-ul Secure Merchant Account."
37
+
38
+ # 'currency_code',
39
+ # __('Currency', 'paypal-donations'),
40
+ # array($this, 'currencyCallback'),
41
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:126
42
  msgid "Currency"
43
+ msgstr "Moneda de utilizare"
44
 
45
+ # 'label_for' => 'currency_code',
46
+ # 'description' => __(
47
+ # 'The currency to use for the donations.',
48
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:133
49
  msgid "The currency to use for the donations."
50
+ msgstr "Moneda de utilizare pentru donații."
51
 
52
+ # 'optional_section',
53
+ # __('Optional Settings', 'paypal-donations'),
54
+ # '',
55
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:141
56
  msgid "Optional Settings"
57
  msgstr "Setări opţionale"
58
 
59
+ # 'page_style',
60
+ # __('Page Style', 'paypal-donations'),
61
+ # array($this, 'pageStyleCallback'),
62
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:147
63
  msgid "Page Style"
64
+ msgstr "Stilul paginii"
65
 
66
+ # 'label_for' => 'page_style',
67
+ # 'description' => __(
68
+ # 'The name of a custom payment page style that exist in your
69
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:154
70
+ msgid ""
71
+ "The name of a custom payment page style that exist in your\n"
72
+ " PayPal account profile."
73
+ msgstr ""
74
+ "Numele stilului personalizat pentru pagina de plată care există în profilul "
75
+ "contului dumneavoastră PayPal."
76
 
77
+ # 'return_page',
78
+ # __('Return Page', 'paypal-donations'),
79
+ # array($this, 'returnPageCallback'),
80
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:162
81
  msgid "Return Page"
82
+ msgstr "Pagina de întoarcere"
 
 
 
 
83
 
84
+ # 'label_for' => 'return_page',
85
+ # 'description' => __(
86
+ # 'URL to which the donator comes to after completing the
87
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:169
88
+ msgid ""
89
+ "URL to which the donator comes to after completing the\n"
90
+ " donation; for example, a URL on your site that displays "
91
+ "a\n"
92
+ " \"Thank you for your donation\"."
93
+ msgstr ""
94
+ "URL-ul la care donatorul se întoarce după completarea procesului de donare; "
95
+ "de exemplu, un URL pe site-ul dumneavoastră care afișează o notă ”Mulțumim "
96
+ "pentru donația dumneavoastră”."
97
+
98
+ # 'default_section',
99
+ # __('Defaults', 'paypal-donations'),
100
+ # '',
101
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:179
102
  msgid "Defaults"
103
+ msgstr "Setările implicite"
104
 
105
+ # 'amount',
106
+ # __('Amount', 'paypal-donations'),
107
+ # array($this, 'amountCallback'),
108
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:185
109
  msgid "Amount"
110
  msgstr "Sumă"
111
 
112
+ # 'label_for' => 'amount',
113
+ # 'description' => __(
114
+ # 'The default amount for a donation (Optional).',
115
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:192
116
  msgid "The default amount for a donation (Optional)."
117
  msgstr "Valoarea implicită pentru o donaţie (opţional)."
118
 
119
+ # 'purpose',
120
+ # __('Purpose', 'paypal-donations'),
121
+ # array($this, 'purposeCallback'),
122
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:199
123
  msgid "Purpose"
124
  msgstr "Scop"
125
 
126
+ # 'label_for' => 'purpose',
127
+ # 'description' => __(
128
+ # 'The default purpose of a donation (Optional).',
129
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:206
130
  msgid "The default purpose of a donation (Optional)."
131
  msgstr "Scopul implicit al unei donaţii (opţional)."
132
 
133
+ # 'reference',
134
+ # __('Reference', 'paypal-donations'),
135
+ # array($this, 'referenceCallback'),
136
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:213
137
  msgid "Reference"
138
  msgstr "Referinţă"
139
 
140
+ # 'label_for' => 'reference',
141
+ # 'description' => __(
142
+ # 'Default reference for the donation (Optional).',
143
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:220
144
  msgid "Default reference for the donation (Optional)."
145
+ msgstr "Referința implicită pentru donație (opțional)."
146
 
147
+ # 'donate_button_section',
148
+ # __('Donation Button', 'paypal-donations'),
149
+ # '',
150
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:228
151
  msgid "Donation Button"
152
+ msgstr "Butonul de donare"
153
 
154
+ # 'button',
155
+ # __('Select Button', 'paypal-donations'),
156
+ # array($this, 'buttonCallback'),
157
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:234
158
  msgid "Select Button"
159
+ msgstr "Selectare buton"
160
+
161
+ # 'button_url',
162
+ # __('Custom Button', 'paypal-donations'),
163
+ # array($this, 'buttonUrlCallback'),
164
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:245
165
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:494
166
+ msgid "Custom Button"
167
+ msgstr "Buton personalizat"
168
+
169
+ # 'label_for' => 'button_url',
170
+ # 'description' => __(
171
+ # 'Enter a URL to a custom donation button.',
172
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:252
173
  msgid "Enter a URL to a custom donation button."
174
+ msgstr "Introduceți un URL de la un buton de donație personalizat"
175
 
176
+ # 'button_localized',
177
+ # __('Country and Language', 'paypal-donations'),
178
+ # array($this, 'localizeButtonCallback'),
179
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:259
180
  msgid "Country and Language"
181
  msgstr "Ţara şi limba"
182
 
183
+ # 'label_for' => 'button_localized',
184
+ # 'description' => __(
185
+ # 'Localize the language and the country for the button.',
186
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:266
187
+ msgid "Localize the language and the country for the button."
188
+ msgstr "Localizarea limbii și a țării pentru buton."
189
+
190
+ # 'extras_section',
191
+ # __('Extras', 'paypal-donations'),
192
+ # array($this, 'extrasCallback'),
193
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:281
194
+ msgid "Extras"
195
+ msgstr "Extras"
196
+
197
+ # 'disable_stats',
198
+ # __('Disable PayPal Statistics', 'paypal-donations'),
199
+ # array($this, 'disableStatsCallback'),
200
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:287
201
+ msgid "Disable PayPal Statistics"
202
+ msgstr "Dezactivare statisticile PayPal"
203
+
204
+ # 'center_button',
205
+ # __('Theme CSS Override: Center Button', 'paypal-donations'),
206
+ # array($this, 'centerButtonCallback'),
207
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:298
208
+ msgid "Theme CSS Override: Center Button"
209
+ msgstr "Suprascriere CSS-ul temei: centrare buton"
210
+
211
+ # 'set_checkout_language',
212
+ # __('Enable Checkout Language', 'paypal-donations'),
213
+ # array($this, 'setCheckoutLangugageCallback'),
214
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:309
215
+ msgid "Enable Checkout Language"
216
+ msgstr "Activare limbă pentru procesare"
217
+
218
+ # 'checkout_language',
219
+ # __('Checkout Language', 'paypal-donations'),
220
+ # array($this, 'checkoutLangugageCallback'),
221
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:320
222
+ msgid "Checkout Language"
223
+ msgstr "Limba pentru procesare"
224
+
225
+ # 'return_method',
226
+ # __('Return Method', 'paypal-donations'),
227
+ # array($this, 'returnMethodCallback'),
228
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:331
229
+ msgid "Return Method"
230
+ msgstr "Metoda de întoarcere (Return)"
231
+
232
+ # 'label_for' => 'return_method',
233
+ # 'description' => __(
234
+ # 'Takes effect only if the return page is set.',
235
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:338
236
+ msgid "Takes effect only if the return page is set."
237
+ msgstr "Se efectuează doar dacă pagina de întoarcere este activată."
238
+
239
+ # {
240
+ # printf('<p>%s</p>', __('Required fields.', 'paypal-donations'));
241
+ # }
242
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:356
243
+ msgid "Required fields."
244
+ msgstr "Câmpuri obligatorii."
245
+
246
+ # '<p>%s</p>',
247
+ # __('Optional extra settings to fine tune the setup in certain
248
+ # scenarios.',
249
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:368
250
+ msgid ""
251
+ "Optional extra settings to fine tune the setup in certain\n"
252
+ " scenarios."
253
+ msgstr "Setări opționale pentru finisarea setărilor în anumite situații."
254
+
255
+ # $methods = array(
256
+ # __('GET method (default)', 'post-snippets'),
257
+ # __('GET method, no variables', 'post-snippets'),
258
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:611
259
+ msgid "GET method (default)"
260
+ msgstr "Metoda GET (implicită)"
261
+
262
+ # __('GET method (default)', 'post-snippets'),
263
+ # __('GET method, no variables', 'post-snippets'),
264
+ # __('POST method', 'post-snippets')
265
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:612
266
+ msgid "GET method, no variables"
267
+ msgstr "Metoda GET, fără variabile"
268
+
269
+ # __('GET method, no variables', 'post-snippets'),
270
+ # __('POST method', 'post-snippets')
271
+ # );
272
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:613
273
+ msgid "POST method"
274
+ msgstr "Metoda POST"
275
+
276
+ # 'classname' => 'widget_paypal_donations',
277
+ # 'description' => __('PayPal Donation Button', 'paypal-donations')
278
+ # );
279
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Widget.php:17
280
  msgid "PayPal Donation Button"
281
+ msgstr "Butonul de donație PayPal"
282
 
283
+ # $defaults = array(
284
+ # 'title' => __('Donate', 'paypal-donations'),
285
+ # 'text' => '', 'purpose' => '',
286
+ #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Widget.php:86
287
  msgid "Donate"
288
+ msgstr "Donare"
289
+
290
+ # <ul id="paypal-donations-tabs">
291
+ # <li id="paypal-donations-tab_1" class="nav-tab nav-tab-active"><?php _e('General', 'paypal-donations'); ?></li>
292
+ # <li id="paypal-donations-tab_2" class="nav-tab"><?php _e('Advanced', 'paypal-donations'); ?></li>
293
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/admin.php:8
294
+ msgid "General"
295
+ msgstr "General"
296
+
297
+ # <li id="paypal-donations-tab_1" class="nav-tab nav-tab-active"><?php _e('General', 'paypal-donations'); ?></li>
298
+ # <li id="paypal-donations-tab_2" class="nav-tab"><?php _e('Advanced', 'paypal-donations'); ?></li>
299
+ # </ul>
300
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/admin.php:9
301
+ msgid "Advanced"
302
+ msgstr "Avansat"
303
+
304
+ # <p>
305
+ # <label for="<?php echo $title_id; ?>"><?php _e('Title:', 'paypal-donations'); ?>
306
+ # <input class="widefat" id="<?php echo $title_id; ?>" name="<?php echo $title_name; ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
307
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:2
308
  msgid "Title:"
309
  msgstr "Titlu:"
310
 
311
+ # <p>
312
+ # <label for="<?php echo $text_id; ?>"><?php _e('Text:', 'paypal-donations'); ?>
313
+ # <textarea class="widefat" id="<?php echo $text_id; ?>" name="<?php echo $text_name; ?>"><?php echo esc_attr($instance['text']); ?></textarea>
314
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:8
315
  msgid "Text:"
316
  msgstr "Text:"
317
 
318
+ # <p>
319
+ # <label for="<?php echo $purpose_id; ?>"><?php _e('Purpose:', 'paypal-donations'); ?>
320
+ # <input class="widefat" id="<?php echo $purpose_id; ?>" name="<?php echo $purpose_name; ?>" type="text" value="<?php echo esc_attr($instance['purpose']); ?>" />
321
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:14
322
  msgid "Purpose:"
323
  msgstr "Scop:"
324
 
325
+ # <p>
326
+ # <label for="<?php echo $reference_id; ?>"><?php _e('Reference:', 'paypal-donations'); ?>
327
+ # <input class="widefat" id="<?php echo $reference_id; ?>" name="<?php echo $reference_name; ?>" type="text" value="<?php echo esc_attr($instance['reference']); ?>" />
328
+ #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:20
329
  msgid "Reference:"
330
+ msgstr "Referință:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/paypal-donations.pot CHANGED
@@ -1,60 +1,84 @@
1
- # Copyright (C) 2012 PayPal Donations
2
- # This file is distributed under the same license as the PayPal Donations package.
 
 
 
 
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: PayPal Donations 1.8\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
7
- "POT-Creation-Date: 2013-03-09 16:48+0700\n"
8
- "PO-Revision-Date: 2013-03-09 16:49+0700\n"
9
- "Last-Translator: \n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Poedit 1.5.5\n"
15
- "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Poedit-SearchPath-0: D:\\Dropbox\\Code\\WordPress\\paypal-donations\n"
18
 
19
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgid "Account Setup"
21
  msgstr ""
22
 
23
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:112
24
  msgid "PayPal Account"
25
  msgstr ""
26
 
27
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:119
28
  msgid "Your PayPal Email or Secure Merchant Account ID."
29
  msgstr ""
30
 
31
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:126
32
  msgid "Currency"
33
  msgstr ""
34
 
35
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:133
36
  msgid "The currency to use for the donations."
37
  msgstr ""
38
 
39
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:141
40
  msgid "Optional Settings"
41
  msgstr ""
42
 
43
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:147
44
  msgid "Page Style"
45
  msgstr ""
46
 
47
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:154
48
  msgid ""
49
  "The name of a custom payment page style that exist in your\n"
50
  " PayPal account profile."
51
  msgstr ""
52
 
53
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:162
54
  msgid "Return Page"
55
  msgstr ""
56
 
57
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:169
58
  msgid ""
59
  "URL to which the donator comes to after completing the\n"
60
  " donation; for example, a URL on your site that displays "
@@ -62,137 +86,110 @@ msgid ""
62
  " \"Thank you for your donation\"."
63
  msgstr ""
64
 
65
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:179
66
  msgid "Defaults"
67
  msgstr ""
68
 
69
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:185
70
  msgid "Amount"
71
  msgstr ""
72
 
73
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:192
74
  msgid "The default amount for a donation (Optional)."
75
  msgstr ""
76
 
77
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:199
78
  msgid "Purpose"
79
  msgstr ""
80
 
81
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:206
82
  msgid "The default purpose of a donation (Optional)."
83
  msgstr ""
84
 
85
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:213
86
  msgid "Reference"
87
  msgstr ""
88
 
89
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:220
90
  msgid "Default reference for the donation (Optional)."
91
  msgstr ""
92
 
93
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:228
94
  msgid "Donation Button"
95
  msgstr ""
96
 
97
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:234
98
  msgid "Select Button"
99
  msgstr ""
100
 
101
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:245
102
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:494
103
  msgid "Custom Button"
104
  msgstr ""
105
 
106
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:252
107
  msgid "Enter a URL to a custom donation button."
108
  msgstr ""
109
 
110
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:259
111
  msgid "Country and Language"
112
  msgstr ""
113
 
114
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:266
115
  msgid "Localize the language and the country for the button."
116
  msgstr ""
117
 
118
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:281
119
  msgid "Extras"
120
  msgstr ""
121
 
122
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:287
123
  msgid "Disable PayPal Statistics"
124
  msgstr ""
125
 
126
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:298
127
  msgid "Theme CSS Override: Center Button"
128
  msgstr ""
129
 
130
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:309
131
  msgid "Enable Checkout Language"
132
  msgstr ""
133
 
134
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:320
135
  msgid "Checkout Language"
136
  msgstr ""
137
 
138
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:331
139
  msgid "Return Method"
140
  msgstr ""
141
 
142
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:338
143
  msgid "Takes effect only if the return page is set."
144
  msgstr ""
145
 
146
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:356
147
  msgid "Required fields."
148
  msgstr ""
149
 
150
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:368
151
- msgid ""
152
- "Optional extra settings to fine tune the setup in certain\n"
153
- " scenarios."
154
  msgstr ""
155
 
156
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:611
157
  msgid "GET method (default)"
158
  msgstr ""
159
 
160
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:612
161
  msgid "GET method, no variables"
162
  msgstr ""
163
 
164
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Admin.php:613
165
  msgid "POST method"
166
  msgstr ""
167
 
168
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Widget.php:17
169
  msgid "PayPal Donation Button"
170
  msgstr ""
171
 
172
- #: D:\Dropbox\Code\WordPress\paypal-donations/lib/PayPalDonations/Widget.php:86
173
  msgid "Donate"
174
  msgstr ""
175
-
176
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/admin.php:8
177
- msgid "General"
178
- msgstr ""
179
-
180
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/admin.php:9
181
- msgid "Advanced"
182
- msgstr ""
183
-
184
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:2
185
- msgid "Title:"
186
- msgstr ""
187
-
188
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:8
189
- msgid "Text:"
190
- msgstr ""
191
-
192
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:14
193
- msgid "Purpose:"
194
- msgstr ""
195
-
196
- #: D:\Dropbox\Code\WordPress\paypal-donations/views/widget-form.php:20
197
- msgid "Reference:"
198
- msgstr ""
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2013-04-27 13:45+0700\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
  "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
 
18
 
19
+ #: views/admin.php:8
20
+ msgid "General"
21
+ msgstr ""
22
+
23
+ #: views/admin.php:9
24
+ msgid "Advanced"
25
+ msgstr ""
26
+
27
+ #: views/widget-form.php:2
28
+ msgid "Title:"
29
+ msgstr ""
30
+
31
+ #: views/widget-form.php:8
32
+ msgid "Text:"
33
+ msgstr ""
34
+
35
+ #: views/widget-form.php:14
36
+ msgid "Purpose:"
37
+ msgstr ""
38
+
39
+ #: views/widget-form.php:20
40
+ msgid "Reference:"
41
+ msgstr ""
42
+
43
+ #: lib/PayPalDonations/Admin.php:105
44
  msgid "Account Setup"
45
  msgstr ""
46
 
47
+ #: lib/PayPalDonations/Admin.php:111
48
  msgid "PayPal Account"
49
  msgstr ""
50
 
51
+ #: lib/PayPalDonations/Admin.php:118
52
  msgid "Your PayPal Email or Secure Merchant Account ID."
53
  msgstr ""
54
 
55
+ #: lib/PayPalDonations/Admin.php:125
56
  msgid "Currency"
57
  msgstr ""
58
 
59
+ #: lib/PayPalDonations/Admin.php:132
60
  msgid "The currency to use for the donations."
61
  msgstr ""
62
 
63
+ #: lib/PayPalDonations/Admin.php:140
64
  msgid "Optional Settings"
65
  msgstr ""
66
 
67
+ #: lib/PayPalDonations/Admin.php:146
68
  msgid "Page Style"
69
  msgstr ""
70
 
71
+ #: lib/PayPalDonations/Admin.php:153
72
  msgid ""
73
  "The name of a custom payment page style that exist in your\n"
74
  " PayPal account profile."
75
  msgstr ""
76
 
77
+ #: lib/PayPalDonations/Admin.php:161
78
  msgid "Return Page"
79
  msgstr ""
80
 
81
+ #: lib/PayPalDonations/Admin.php:168
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
  " \"Thank you for your donation\"."
87
  msgstr ""
88
 
89
+ #: lib/PayPalDonations/Admin.php:178
90
  msgid "Defaults"
91
  msgstr ""
92
 
93
+ #: lib/PayPalDonations/Admin.php:184
94
  msgid "Amount"
95
  msgstr ""
96
 
97
+ #: lib/PayPalDonations/Admin.php:191
98
  msgid "The default amount for a donation (Optional)."
99
  msgstr ""
100
 
101
+ #: lib/PayPalDonations/Admin.php:198
102
  msgid "Purpose"
103
  msgstr ""
104
 
105
+ #: lib/PayPalDonations/Admin.php:205
106
  msgid "The default purpose of a donation (Optional)."
107
  msgstr ""
108
 
109
+ #: lib/PayPalDonations/Admin.php:212
110
  msgid "Reference"
111
  msgstr ""
112
 
113
+ #: lib/PayPalDonations/Admin.php:219
114
  msgid "Default reference for the donation (Optional)."
115
  msgstr ""
116
 
117
+ #: lib/PayPalDonations/Admin.php:227
118
  msgid "Donation Button"
119
  msgstr ""
120
 
121
+ #: lib/PayPalDonations/Admin.php:233
122
  msgid "Select Button"
123
  msgstr ""
124
 
125
+ #: lib/PayPalDonations/Admin.php:244 lib/PayPalDonations/Admin.php:499
 
126
  msgid "Custom Button"
127
  msgstr ""
128
 
129
+ #: lib/PayPalDonations/Admin.php:251
130
  msgid "Enter a URL to a custom donation button."
131
  msgstr ""
132
 
133
+ #: lib/PayPalDonations/Admin.php:258
134
  msgid "Country and Language"
135
  msgstr ""
136
 
137
+ #: lib/PayPalDonations/Admin.php:265
138
  msgid "Localize the language and the country for the button."
139
  msgstr ""
140
 
141
+ #: lib/PayPalDonations/Admin.php:280
142
  msgid "Extras"
143
  msgstr ""
144
 
145
+ #: lib/PayPalDonations/Admin.php:286
146
  msgid "Disable PayPal Statistics"
147
  msgstr ""
148
 
149
+ #: lib/PayPalDonations/Admin.php:298
150
  msgid "Theme CSS Override: Center Button"
151
  msgstr ""
152
 
153
+ #: lib/PayPalDonations/Admin.php:311
154
  msgid "Enable Checkout Language"
155
  msgstr ""
156
 
157
+ #: lib/PayPalDonations/Admin.php:322
158
  msgid "Checkout Language"
159
  msgstr ""
160
 
161
+ #: lib/PayPalDonations/Admin.php:333
162
  msgid "Return Method"
163
  msgstr ""
164
 
165
+ #: lib/PayPalDonations/Admin.php:340
166
  msgid "Takes effect only if the return page is set."
167
  msgstr ""
168
 
169
+ #: lib/PayPalDonations/Admin.php:360
170
  msgid "Required fields."
171
  msgstr ""
172
 
173
+ #: lib/PayPalDonations/Admin.php:374
174
+ msgid "Optional extra settings to fine tune the setup in certain scenarios."
 
 
175
  msgstr ""
176
 
177
+ #: lib/PayPalDonations/Admin.php:616
178
  msgid "GET method (default)"
179
  msgstr ""
180
 
181
+ #: lib/PayPalDonations/Admin.php:617
182
  msgid "GET method, no variables"
183
  msgstr ""
184
 
185
+ #: lib/PayPalDonations/Admin.php:618
186
  msgid "POST method"
187
  msgstr ""
188
 
189
+ #: lib/PayPalDonations/Widget.php:18
190
  msgid "PayPal Donation Button"
191
  msgstr ""
192
 
193
+ #: lib/PayPalDonations/Widget.php:89
194
  msgid "Donate"
195
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/PayPalDonations/Admin.php CHANGED
@@ -64,8 +64,7 @@ class PayPalDonations_Admin
64
  'pageSlug' => PayPalDonations_Admin::PAGE_SLUG,
65
  'optionDBKey' => PayPalDonations::OPTION_DB_KEY,
66
  );
67
- echo PayPalDonations_View::render(
68
- plugin_dir_path(__FILE__).'../../views/admin.php', $data);
69
  }
70
 
71
  /**
@@ -103,13 +102,13 @@ class PayPalDonations_Admin
103
  {
104
  add_settings_section(
105
  'account_setup_section',
106
- __('Account Setup', 'paypal-donations'),
107
  array($this, 'accountSetupCallback'),
108
  self::PAGE_SLUG
109
  );
110
  add_settings_field(
111
  'paypal_account',
112
- __('PayPal Account', 'paypal-donations'),
113
  array($this, 'paypalAccountCallback'),
114
  self::PAGE_SLUG,
115
  'account_setup_section',
@@ -117,13 +116,13 @@ class PayPalDonations_Admin
117
  'label_for' => 'paypal_account',
118
  'description' => __(
119
  'Your PayPal Email or Secure Merchant Account ID.',
120
- 'paypal-donations'
121
  ),
122
  )
123
  );
124
  add_settings_field(
125
  'currency_code',
126
- __('Currency', 'paypal-donations'),
127
  array($this, 'currencyCallback'),
128
  self::PAGE_SLUG,
129
  'account_setup_section',
@@ -131,20 +130,20 @@ class PayPalDonations_Admin
131
  'label_for' => 'currency_code',
132
  'description' => __(
133
  'The currency to use for the donations.',
134
- 'paypal-donations'
135
  ),
136
  )
137
  );
138
 
139
  add_settings_section(
140
  'optional_section',
141
- __('Optional Settings', 'paypal-donations'),
142
  '',
143
  self::PAGE_SLUG
144
  );
145
  add_settings_field(
146
  'page_style',
147
- __('Page Style', 'paypal-donations'),
148
  array($this, 'pageStyleCallback'),
149
  self::PAGE_SLUG,
150
  'optional_section',
@@ -153,13 +152,13 @@ class PayPalDonations_Admin
153
  'description' => __(
154
  'The name of a custom payment page style that exist in your
155
  PayPal account profile.',
156
- 'paypal-donations'
157
  ),
158
  )
159
  );
160
  add_settings_field(
161
  'return_page',
162
- __('Return Page', 'paypal-donations'),
163
  array($this, 'returnPageCallback'),
164
  self::PAGE_SLUG,
165
  'optional_section',
@@ -169,20 +168,20 @@ class PayPalDonations_Admin
169
  'URL to which the donator comes to after completing the
170
  donation; for example, a URL on your site that displays a
171
  "Thank you for your donation".',
172
- 'paypal-donations'
173
  ),
174
  )
175
  );
176
 
177
  add_settings_section(
178
  'default_section',
179
- __('Defaults', 'paypal-donations'),
180
  '',
181
  self::PAGE_SLUG
182
  );
183
  add_settings_field(
184
  'amount',
185
- __('Amount', 'paypal-donations'),
186
  array($this, 'amountCallback'),
187
  self::PAGE_SLUG,
188
  'default_section',
@@ -190,13 +189,13 @@ class PayPalDonations_Admin
190
  'label_for' => 'amount',
191
  'description' => __(
192
  'The default amount for a donation (Optional).',
193
- 'paypal-donations'
194
  ),
195
  )
196
  );
197
  add_settings_field(
198
  'purpose',
199
- __('Purpose', 'paypal-donations'),
200
  array($this, 'purposeCallback'),
201
  self::PAGE_SLUG,
202
  'default_section',
@@ -204,13 +203,13 @@ class PayPalDonations_Admin
204
  'label_for' => 'purpose',
205
  'description' => __(
206
  'The default purpose of a donation (Optional).',
207
- 'paypal-donations'
208
  ),
209
  )
210
  );
211
  add_settings_field(
212
  'reference',
213
- __('Reference', 'paypal-donations'),
214
  array($this, 'referenceCallback'),
215
  self::PAGE_SLUG,
216
  'default_section',
@@ -218,20 +217,20 @@ class PayPalDonations_Admin
218
  'label_for' => 'reference',
219
  'description' => __(
220
  'Default reference for the donation (Optional).',
221
- 'paypal-donations'
222
  ),
223
  )
224
  );
225
 
226
  add_settings_section(
227
  'donate_button_section',
228
- __('Donation Button', 'paypal-donations'),
229
  '',
230
  self::PAGE_SLUG
231
  );
232
  add_settings_field(
233
  'button',
234
- __('Select Button', 'paypal-donations'),
235
  array($this, 'buttonCallback'),
236
  self::PAGE_SLUG,
237
  'donate_button_section',
@@ -242,7 +241,7 @@ class PayPalDonations_Admin
242
  );
243
  add_settings_field(
244
  'button_url',
245
- __('Custom Button', 'paypal-donations'),
246
  array($this, 'buttonUrlCallback'),
247
  self::PAGE_SLUG,
248
  'donate_button_section',
@@ -250,13 +249,13 @@ class PayPalDonations_Admin
250
  'label_for' => 'button_url',
251
  'description' => __(
252
  'Enter a URL to a custom donation button.',
253
- 'paypal-donations'
254
  ),
255
  )
256
  );
257
  add_settings_field(
258
  'button_localized',
259
- __('Country and Language', 'paypal-donations'),
260
  array($this, 'localizeButtonCallback'),
261
  self::PAGE_SLUG,
262
  'donate_button_section',
@@ -264,7 +263,7 @@ class PayPalDonations_Admin
264
  'label_for' => 'button_localized',
265
  'description' => __(
266
  'Localize the language and the country for the button.',
267
- 'paypal-donations'
268
  ),
269
  )
270
  );
@@ -278,13 +277,13 @@ class PayPalDonations_Admin
278
 
279
  add_settings_section(
280
  'extras_section',
281
- __('Extras', 'paypal-donations'),
282
  array($this, 'extrasCallback'),
283
  self::PAGE_SLUG
284
  );
285
  add_settings_field(
286
  'disable_stats',
287
- __('Disable PayPal Statistics', 'paypal-donations'),
288
  array($this, 'disableStatsCallback'),
289
  self::PAGE_SLUG,
290
  'extras_section',
@@ -295,7 +294,10 @@ class PayPalDonations_Admin
295
  );
296
  add_settings_field(
297
  'center_button',
298
- __('Theme CSS Override: Center Button', 'paypal-donations'),
 
 
 
299
  array($this, 'centerButtonCallback'),
300
  self::PAGE_SLUG,
301
  'extras_section',
@@ -306,7 +308,7 @@ class PayPalDonations_Admin
306
  );
307
  add_settings_field(
308
  'set_checkout_language',
309
- __('Enable Checkout Language', 'paypal-donations'),
310
  array($this, 'setCheckoutLangugageCallback'),
311
  self::PAGE_SLUG,
312
  'extras_section',
@@ -317,7 +319,7 @@ class PayPalDonations_Admin
317
  );
318
  add_settings_field(
319
  'checkout_language',
320
- __('Checkout Language', 'paypal-donations'),
321
  array($this, 'checkoutLangugageCallback'),
322
  self::PAGE_SLUG,
323
  'extras_section',
@@ -328,7 +330,7 @@ class PayPalDonations_Admin
328
  );
329
  add_settings_field(
330
  'return_method',
331
- __('Return Method', 'paypal-donations'),
332
  array($this, 'returnMethodCallback'),
333
  self::PAGE_SLUG,
334
  'extras_section',
@@ -353,7 +355,10 @@ class PayPalDonations_Admin
353
 
354
  public function accountSetupCallback()
355
  {
356
- printf('<p>%s</p>', __('Required fields.', 'paypal-donations'));
 
 
 
357
  }
358
 
359
  public function tabsCallback()
@@ -365,9 +370,9 @@ class PayPalDonations_Admin
365
  {
366
  printf(
367
  '<p>%s</p>',
368
- __('Optional extra settings to fine tune the setup in certain
369
- scenarios.',
370
- 'paypal-donations'
371
  )
372
  );
373
  }
@@ -384,7 +389,7 @@ class PayPalDonations_Admin
384
  echo "name='{$optionKey}[paypal_account]'' ";
385
  echo "value='{$options['paypal_account']}' />";
386
 
387
- echo "<p class='description'>{$args['description']}</p>";
388
  }
389
 
390
  public function currencyCallback($args)
@@ -406,7 +411,7 @@ class PayPalDonations_Admin
406
  }
407
  echo "</select>";
408
 
409
- echo "<p class='description'>{$args['description']}</p>";
410
  }
411
 
412
  public function pageStyleCallback($args)
@@ -417,7 +422,7 @@ class PayPalDonations_Admin
417
  echo "name='{$optionKey}[page_style]'' ";
418
  echo "value='{$options['page_style']}' />";
419
 
420
- echo "<p class='description'>{$args['description']}</p>";
421
  }
422
 
423
  public function returnPageCallback($args)
@@ -428,7 +433,7 @@ class PayPalDonations_Admin
428
  echo "name='{$optionKey}[return_page]'' ";
429
  echo "value='{$options['return_page']}' />";
430
 
431
- echo "<p class='description'>{$args['description']}</p>";
432
  }
433
 
434
  public function amountCallback($args)
@@ -439,7 +444,7 @@ class PayPalDonations_Admin
439
  echo "name='{$optionKey}[amount]'' ";
440
  echo "value='{$options['amount']}' />";
441
 
442
- echo "<p class='description'>{$args['description']}</p>";
443
  }
444
 
445
  public function purposeCallback($args)
@@ -450,7 +455,7 @@ class PayPalDonations_Admin
450
  echo "name='{$optionKey}[purpose]'' ";
451
  echo "value='{$options['purpose']}' />";
452
 
453
- echo "<p class='description'>{$args['description']}</p>";
454
  }
455
 
456
  public function referenceCallback($args)
@@ -461,7 +466,7 @@ class PayPalDonations_Admin
461
  echo "name='{$optionKey}[reference]'' ";
462
  echo "value='{$options['reference']}' />";
463
 
464
- echo "<p class='description'>{$args['description']}</p>";
465
  }
466
 
467
  public function buttonCallback($args)
@@ -476,22 +481,22 @@ class PayPalDonations_Admin
476
  $button_localized = 'en_US';
477
  }
478
  if (isset($options['button'])) {
479
- $current_button = $options['button'];
480
  } else {
481
  $current_button = 'large';
482
  }
483
 
484
- foreach ( $this->donate_buttons as $key => $button ) {
485
  echo "\t<label title='" . esc_attr($key) . "'><input style='padding: 10px 0 10px 0;' type='radio' name='{$optionKey}[button]' value='" . esc_attr($key) . "'";
486
- if ( $current_button === $key ) { // checked() uses "==" rather than "==="
487
  echo " checked='checked'";
488
  $custom = false;
489
  }
490
  echo " /> <img src='" . str_replace('en_US', $button_localized, $button) . "' alt='" . $key . "' style='vertical-align: middle;' /></label><br /><br />\n";
491
  }
492
  echo ' <label><input type="radio" name="{$optionKey}[button]" value="custom"';
493
- checked( $custom, true );
494
- echo '/> '.__('Custom Button', 'paypal-donations');
495
 
496
  }
497
 
@@ -503,7 +508,7 @@ class PayPalDonations_Admin
503
  echo "name='{$optionKey}[button_url]'' ";
504
  echo "value='{$options['button_url']}' />";
505
 
506
- echo "<p class='description'>{$args['description']}</p>";
507
  }
508
 
509
  public function localizeButtonCallback($args)
@@ -532,7 +537,7 @@ class PayPalDonations_Admin
532
  {
533
  $optionKey = PayPalDonations::OPTION_DB_KEY;
534
  $options = get_option($optionKey);
535
- $checked = isset($options['disable_stats']) ?
536
  $options['disable_stats'] :
537
  false;
538
  echo "<input type='checkbox' id='disable_stats' ";
@@ -542,14 +547,14 @@ class PayPalDonations_Admin
542
  }
543
  echo " />";
544
 
545
- echo "<p class='description'>{$args['description']}</p>";
546
  }
547
 
548
  public function centerButtonCallback($args)
549
  {
550
  $optionKey = PayPalDonations::OPTION_DB_KEY;
551
  $options = get_option($optionKey);
552
- $checked = isset($options['center_button']) ?
553
  $options['center_button'] :
554
  false;
555
  echo "<input type='checkbox' id='center_button' ";
@@ -559,14 +564,14 @@ class PayPalDonations_Admin
559
  }
560
  echo "/>";
561
 
562
- echo "<p class='description'>{$args['description']}</p>";
563
  }
564
 
565
  public function setCheckoutLangugageCallback($args)
566
  {
567
  $optionKey = PayPalDonations::OPTION_DB_KEY;
568
  $options = get_option($optionKey);
569
- $checked = isset($options['set_checkout_language']) ?
570
  $options['set_checkout_language'] :
571
  false;
572
 
@@ -576,7 +581,7 @@ class PayPalDonations_Admin
576
  echo 'checked ';
577
  }
578
  echo " />";
579
- echo "<p class='description'>{$args['description']}</p>";
580
  }
581
 
582
  public function checkoutLangugageCallback($args)
@@ -600,7 +605,7 @@ class PayPalDonations_Admin
600
  }
601
  echo "</select>";
602
 
603
- echo "<p class='description'>{$args['description']}</p>";
604
  }
605
 
606
  public function returnMethodCallback($args)
@@ -628,7 +633,7 @@ class PayPalDonations_Admin
628
  }
629
  echo "</select>";
630
 
631
- echo "<p class='description'>{$args['description']}</p>";
632
  }
633
 
634
  // -------------------------------------------------------------------------
@@ -645,7 +650,7 @@ class PayPalDonations_Admin
645
  */
646
  public static function checkbox($label, $name, $checked)
647
  {
648
- printf( '<input type="checkbox" name="%s" value="true"', $name );
649
  if ($checked) {
650
  echo ' checked';
651
  }
64
  'pageSlug' => PayPalDonations_Admin::PAGE_SLUG,
65
  'optionDBKey' => PayPalDonations::OPTION_DB_KEY,
66
  );
67
+ echo PayPalDonations_View::render('admin', $data);
 
68
  }
69
 
70
  /**
102
  {
103
  add_settings_section(
104
  'account_setup_section',
105
+ __('Account Setup', PayPalDonations::TEXT_DOMAIN),
106
  array($this, 'accountSetupCallback'),
107
  self::PAGE_SLUG
108
  );
109
  add_settings_field(
110
  'paypal_account',
111
+ __('PayPal Account', PayPalDonations::TEXT_DOMAIN),
112
  array($this, 'paypalAccountCallback'),
113
  self::PAGE_SLUG,
114
  'account_setup_section',
116
  'label_for' => 'paypal_account',
117
  'description' => __(
118
  'Your PayPal Email or Secure Merchant Account ID.',
119
+ PayPalDonations::TEXT_DOMAIN
120
  ),
121
  )
122
  );
123
  add_settings_field(
124
  'currency_code',
125
+ __('Currency', PayPalDonations::TEXT_DOMAIN),
126
  array($this, 'currencyCallback'),
127
  self::PAGE_SLUG,
128
  'account_setup_section',
130
  'label_for' => 'currency_code',
131
  'description' => __(
132
  'The currency to use for the donations.',
133
+ PayPalDonations::TEXT_DOMAIN
134
  ),
135
  )
136
  );
137
 
138
  add_settings_section(
139
  'optional_section',
140
+ __('Optional Settings', PayPalDonations::TEXT_DOMAIN),
141
  '',
142
  self::PAGE_SLUG
143
  );
144
  add_settings_field(
145
  'page_style',
146
+ __('Page Style', PayPalDonations::TEXT_DOMAIN),
147
  array($this, 'pageStyleCallback'),
148
  self::PAGE_SLUG,
149
  'optional_section',
152
  'description' => __(
153
  'The name of a custom payment page style that exist in your
154
  PayPal account profile.',
155
+ PayPalDonations::TEXT_DOMAIN
156
  ),
157
  )
158
  );
159
  add_settings_field(
160
  'return_page',
161
+ __('Return Page', PayPalDonations::TEXT_DOMAIN),
162
  array($this, 'returnPageCallback'),
163
  self::PAGE_SLUG,
164
  'optional_section',
168
  'URL to which the donator comes to after completing the
169
  donation; for example, a URL on your site that displays a
170
  "Thank you for your donation".',
171
+ PayPalDonations::TEXT_DOMAIN
172
  ),
173
  )
174
  );
175
 
176
  add_settings_section(
177
  'default_section',
178
+ __('Defaults', PayPalDonations::TEXT_DOMAIN),
179
  '',
180
  self::PAGE_SLUG
181
  );
182
  add_settings_field(
183
  'amount',
184
+ __('Amount', PayPalDonations::TEXT_DOMAIN),
185
  array($this, 'amountCallback'),
186
  self::PAGE_SLUG,
187
  'default_section',
189
  'label_for' => 'amount',
190
  'description' => __(
191
  'The default amount for a donation (Optional).',
192
+ PayPalDonations::TEXT_DOMAIN
193
  ),
194
  )
195
  );
196
  add_settings_field(
197
  'purpose',
198
+ __('Purpose', PayPalDonations::TEXT_DOMAIN),
199
  array($this, 'purposeCallback'),
200
  self::PAGE_SLUG,
201
  'default_section',
203
  'label_for' => 'purpose',
204
  'description' => __(
205
  'The default purpose of a donation (Optional).',
206
+ PayPalDonations::TEXT_DOMAIN
207
  ),
208
  )
209
  );
210
  add_settings_field(
211
  'reference',
212
+ __('Reference', PayPalDonations::TEXT_DOMAIN),
213
  array($this, 'referenceCallback'),
214
  self::PAGE_SLUG,
215
  'default_section',
217
  'label_for' => 'reference',
218
  'description' => __(
219
  'Default reference for the donation (Optional).',
220
+ PayPalDonations::TEXT_DOMAIN
221
  ),
222
  )
223
  );
224
 
225
  add_settings_section(
226
  'donate_button_section',
227
+ __('Donation Button', PayPalDonations::TEXT_DOMAIN),
228
  '',
229
  self::PAGE_SLUG
230
  );
231
  add_settings_field(
232
  'button',
233
+ __('Select Button', PayPalDonations::TEXT_DOMAIN),
234
  array($this, 'buttonCallback'),
235
  self::PAGE_SLUG,
236
  'donate_button_section',
241
  );
242
  add_settings_field(
243
  'button_url',
244
+ __('Custom Button', PayPalDonations::TEXT_DOMAIN),
245
  array($this, 'buttonUrlCallback'),
246
  self::PAGE_SLUG,
247
  'donate_button_section',
249
  'label_for' => 'button_url',
250
  'description' => __(
251
  'Enter a URL to a custom donation button.',
252
+ PayPalDonations::TEXT_DOMAIN
253
  ),
254
  )
255
  );
256
  add_settings_field(
257
  'button_localized',
258
+ __('Country and Language', PayPalDonations::TEXT_DOMAIN),
259
  array($this, 'localizeButtonCallback'),
260
  self::PAGE_SLUG,
261
  'donate_button_section',
263
  'label_for' => 'button_localized',
264
  'description' => __(
265
  'Localize the language and the country for the button.',
266
+ PayPalDonations::TEXT_DOMAIN
267
  ),
268
  )
269
  );
277
 
278
  add_settings_section(
279
  'extras_section',
280
+ __('Extras', PayPalDonations::TEXT_DOMAIN),
281
  array($this, 'extrasCallback'),
282
  self::PAGE_SLUG
283
  );
284
  add_settings_field(
285
  'disable_stats',
286
+ __('Disable PayPal Statistics', PayPalDonations::TEXT_DOMAIN),
287
  array($this, 'disableStatsCallback'),
288
  self::PAGE_SLUG,
289
  'extras_section',
294
  );
295
  add_settings_field(
296
  'center_button',
297
+ __(
298
+ 'Theme CSS Override: Center Button',
299
+ PayPalDonations::TEXT_DOMAIN
300
+ ),
301
  array($this, 'centerButtonCallback'),
302
  self::PAGE_SLUG,
303
  'extras_section',
308
  );
309
  add_settings_field(
310
  'set_checkout_language',
311
+ __('Enable Checkout Language', PayPalDonations::TEXT_DOMAIN),
312
  array($this, 'setCheckoutLangugageCallback'),
313
  self::PAGE_SLUG,
314
  'extras_section',
319
  );
320
  add_settings_field(
321
  'checkout_language',
322
+ __('Checkout Language', PayPalDonations::TEXT_DOMAIN),
323
  array($this, 'checkoutLangugageCallback'),
324
  self::PAGE_SLUG,
325
  'extras_section',
330
  );
331
  add_settings_field(
332
  'return_method',
333
+ __('Return Method', PayPalDonations::TEXT_DOMAIN),
334
  array($this, 'returnMethodCallback'),
335
  self::PAGE_SLUG,
336
  'extras_section',
355
 
356
  public function accountSetupCallback()
357
  {
358
+ printf(
359
+ '<p>%s</p>',
360
+ __('Required fields.', PayPalDonations::TEXT_DOMAIN)
361
+ );
362
  }
363
 
364
  public function tabsCallback()
370
  {
371
  printf(
372
  '<p>%s</p>',
373
+ __(
374
+ 'Optional extra settings to fine tune the setup in certain scenarios.',
375
+ PayPalDonations::TEXT_DOMAIN
376
  )
377
  );
378
  }
389
  echo "name='{$optionKey}[paypal_account]'' ";
390
  echo "value='{$options['paypal_account']}' />";
391
 
392
+ echo "<p class='description'>{$args['description']}</p>";
393
  }
394
 
395
  public function currencyCallback($args)
411
  }
412
  echo "</select>";
413
 
414
+ echo "<p class='description'>{$args['description']}</p>";
415
  }
416
 
417
  public function pageStyleCallback($args)
422
  echo "name='{$optionKey}[page_style]'' ";
423
  echo "value='{$options['page_style']}' />";
424
 
425
+ echo "<p class='description'>{$args['description']}</p>";
426
  }
427
 
428
  public function returnPageCallback($args)
433
  echo "name='{$optionKey}[return_page]'' ";
434
  echo "value='{$options['return_page']}' />";
435
 
436
+ echo "<p class='description'>{$args['description']}</p>";
437
  }
438
 
439
  public function amountCallback($args)
444
  echo "name='{$optionKey}[amount]'' ";
445
  echo "value='{$options['amount']}' />";
446
 
447
+ echo "<p class='description'>{$args['description']}</p>";
448
  }
449
 
450
  public function purposeCallback($args)
455
  echo "name='{$optionKey}[purpose]'' ";
456
  echo "value='{$options['purpose']}' />";
457
 
458
+ echo "<p class='description'>{$args['description']}</p>";
459
  }
460
 
461
  public function referenceCallback($args)
466
  echo "name='{$optionKey}[reference]'' ";
467
  echo "value='{$options['reference']}' />";
468
 
469
+ echo "<p class='description'>{$args['description']}</p>";
470
  }
471
 
472
  public function buttonCallback($args)
481
  $button_localized = 'en_US';
482
  }
483
  if (isset($options['button'])) {
484
+ $current_button = $options['button'];
485
  } else {
486
  $current_button = 'large';
487
  }
488
 
489
+ foreach ($this->donate_buttons as $key => $button) {
490
  echo "\t<label title='" . esc_attr($key) . "'><input style='padding: 10px 0 10px 0;' type='radio' name='{$optionKey}[button]' value='" . esc_attr($key) . "'";
491
+ if ($current_button === $key) { // checked() uses "==" rather than "==="
492
  echo " checked='checked'";
493
  $custom = false;
494
  }
495
  echo " /> <img src='" . str_replace('en_US', $button_localized, $button) . "' alt='" . $key . "' style='vertical-align: middle;' /></label><br /><br />\n";
496
  }
497
  echo ' <label><input type="radio" name="{$optionKey}[button]" value="custom"';
498
+ checked($custom, true);
499
+ echo '/> '.__('Custom Button', PayPalDonations::TEXT_DOMAIN);
500
 
501
  }
502
 
508
  echo "name='{$optionKey}[button_url]'' ";
509
  echo "value='{$options['button_url']}' />";
510
 
511
+ echo "<p class='description'>{$args['description']}</p>";
512
  }
513
 
514
  public function localizeButtonCallback($args)
537
  {
538
  $optionKey = PayPalDonations::OPTION_DB_KEY;
539
  $options = get_option($optionKey);
540
+ $checked = isset($options['disable_stats']) ?
541
  $options['disable_stats'] :
542
  false;
543
  echo "<input type='checkbox' id='disable_stats' ";
547
  }
548
  echo " />";
549
 
550
+ echo "<p class='description'>{$args['description']}</p>";
551
  }
552
 
553
  public function centerButtonCallback($args)
554
  {
555
  $optionKey = PayPalDonations::OPTION_DB_KEY;
556
  $options = get_option($optionKey);
557
+ $checked = isset($options['center_button']) ?
558
  $options['center_button'] :
559
  false;
560
  echo "<input type='checkbox' id='center_button' ";
564
  }
565
  echo "/>";
566
 
567
+ echo "<p class='description'>{$args['description']}</p>";
568
  }
569
 
570
  public function setCheckoutLangugageCallback($args)
571
  {
572
  $optionKey = PayPalDonations::OPTION_DB_KEY;
573
  $options = get_option($optionKey);
574
+ $checked = isset($options['set_checkout_language']) ?
575
  $options['set_checkout_language'] :
576
  false;
577
 
581
  echo 'checked ';
582
  }
583
  echo " />";
584
+ echo "<p class='description'>{$args['description']}</p>";
585
  }
586
 
587
  public function checkoutLangugageCallback($args)
605
  }
606
  echo "</select>";
607
 
608
+ echo "<p class='description'>{$args['description']}</p>";
609
  }
610
 
611
  public function returnMethodCallback($args)
633
  }
634
  echo "</select>";
635
 
636
+ echo "<p class='description'>{$args['description']}</p>";
637
  }
638
 
639
  // -------------------------------------------------------------------------
650
  */
651
  public static function checkbox($label, $name, $checked)
652
  {
653
+ printf('<input type="checkbox" name="%s" value="true"', $name);
654
  if ($checked) {
655
  echo ' checked';
656
  }
lib/PayPalDonations/View.php CHANGED
@@ -10,20 +10,20 @@ class PayPalDonations_View
10
  /**
11
  * Render a View.
12
  *
13
- * @param string $filePath Include path to the template.
14
- * @param array $data Data to be used within the template.
15
- * @return string Returns the completed view.
16
  */
17
- public static function render($filePath, $data = null)
18
  {
19
- // Check for data
20
  ($data) ? extract($data) : null;
21
 
22
  ob_start();
23
- include ($filePath);
24
- $template = ob_get_contents();
25
  ob_end_clean();
26
 
27
- return $template;
28
  }
29
  }
10
  /**
11
  * Render a View.
12
  *
13
+ * @param string $view View to render.
14
+ * @param array $data Data to be used within the view.
15
+ * @return string The processed view.
16
  */
17
+ public static function render($view, $data = null)
18
  {
19
+ // Handle data
20
  ($data) ? extract($data) : null;
21
 
22
  ob_start();
23
+ include(plugin_dir_path(__FILE__).'../../views/'.$view.'.php');
24
+ $view = ob_get_contents();
25
  ob_end_clean();
26
 
27
+ return $view;
28
  }
29
  }
lib/PayPalDonations/Widget.php CHANGED
@@ -14,7 +14,10 @@ class PayPalDonations_Widget extends WP_Widget
14
  {
15
  $widget_ops = array(
16
  'classname' => 'widget_paypal_donations',
17
- 'description' => __('PayPal Donation Button', 'paypal-donations')
 
 
 
18
  );
19
  parent::__construct('paypal_donations', 'PayPal Donations', $widget_ops);
20
  }
@@ -34,7 +37,7 @@ class PayPalDonations_Widget extends WP_Widget
34
  $paypal_donations = PayPalDonations::getInstance();
35
 
36
  // Get the settings
37
- $title = apply_filters('widget_title', $instance['title'] );
38
  $text = $instance['text'];
39
  $purpose = $instance['purpose'];
40
  $reference = $instance['reference'];
@@ -44,9 +47,9 @@ class PayPalDonations_Widget extends WP_Widget
44
  echo $before_title . $title . $after_title;
45
  }
46
  if ($text) {
47
- echo wpautop( $text );
48
  }
49
- echo $paypal_donations->generateHtml( $purpose, $reference );
50
  echo $after_widget;
51
  }
52
 
@@ -83,11 +86,12 @@ class PayPalDonations_Widget extends WP_Widget
83
  {
84
  // Default Widget Settings
85
  $defaults = array(
86
- 'title' => __('Donate', 'paypal-donations'),
87
- 'text' => '', 'purpose' => '',
 
88
  'reference' => ''
89
  );
90
- $instance = wp_parse_args( (array) $instance, $defaults );
91
 
92
  $data = array(
93
  'instance' => $instance,
@@ -100,9 +104,6 @@ class PayPalDonations_Widget extends WP_Widget
100
  'reference_id' => $this->get_field_id('reference'),
101
  'reference_name' => $this->get_field_name('reference'),
102
  );
103
- echo PayPalDonations_View::render(
104
- plugin_dir_path(__FILE__).'../../views/widget-form.php',
105
- $data
106
- );
107
  }
108
  }
14
  {
15
  $widget_ops = array(
16
  'classname' => 'widget_paypal_donations',
17
+ 'description' => __(
18
+ 'PayPal Donation Button',
19
+ PayPalDonations::TEXT_DOMAIN
20
+ )
21
  );
22
  parent::__construct('paypal_donations', 'PayPal Donations', $widget_ops);
23
  }
37
  $paypal_donations = PayPalDonations::getInstance();
38
 
39
  // Get the settings
40
+ $title = apply_filters('widget_title', $instance['title']);
41
  $text = $instance['text'];
42
  $purpose = $instance['purpose'];
43
  $reference = $instance['reference'];
47
  echo $before_title . $title . $after_title;
48
  }
49
  if ($text) {
50
+ echo wpautop($text);
51
  }
52
+ echo $paypal_donations->generateHtml($purpose, $reference);
53
  echo $after_widget;
54
  }
55
 
86
  {
87
  // Default Widget Settings
88
  $defaults = array(
89
+ 'title' => __('Donate', PayPalDonations::TEXT_DOMAIN),
90
+ 'text' => '',
91
+ 'purpose' => '',
92
  'reference' => ''
93
  );
94
+ $instance = wp_parse_args((array) $instance, $defaults);
95
 
96
  $data = array(
97
  'instance' => $instance,
104
  'reference_id' => $this->get_field_id('reference'),
105
  'reference_name' => $this->get_field_name('reference'),
106
  );
107
+ echo PayPalDonations_View::render('widget-form', $data);
 
 
 
108
  }
109
  }
paypal-donations.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
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
  Author: Johan Steen
7
  Author URI: http://johansteen.se/
8
- Version: 1.8
9
  License: GPLv2 or later
10
  Text Domain: paypal-donations
11
 
@@ -38,8 +38,9 @@ spl_autoload_register('PayPalDonations::autoload');
38
  class PayPalDonations
39
  {
40
  const MIN_PHP_VERSION = '5.2.4';
41
- const MIN_WP_VERSION = '2.8';
42
  const OPTION_DB_KEY = 'paypal_donations_options';
 
43
  const FILE = __FILE__;
44
 
45
  private static $instance = false;
@@ -148,8 +149,10 @@ class PayPalDonations
148
  add_shortcode('paypal-donation', array(&$this,'paypalShortcode'));
149
  add_action('wp_head', array($this, 'addCss'), 999);
150
 
151
- add_action('widgets_init',
152
- create_function('', 'register_widget("PayPalDonations_Widget");'));
 
 
153
  }
154
 
155
  /**
@@ -163,7 +166,7 @@ class PayPalDonations
163
  */
164
  public static function autoload($className)
165
  {
166
- if ('PayPalDonations' !== mb_substr($className, 0, 15)) {
167
  return;
168
  }
169
  $className = ltrim($className, '\\');
@@ -186,7 +189,7 @@ class PayPalDonations
186
  */
187
  public function textDomain()
188
  {
189
- $domain = 'paypal-donations';
190
  $locale = apply_filters('plugin_locale', get_locale(), $domain);
191
  load_textdomain(
192
  $domain,
@@ -227,13 +230,18 @@ class PayPalDonations
227
  */
228
  public function paypalShortcode($atts)
229
  {
230
- extract(shortcode_atts(array(
231
- 'purpose' => '',
232
- 'reference' => '',
233
- 'amount' => '',
234
- 'return_page' => '',
235
- 'button_url' => '',
236
- ), $atts));
 
 
 
 
 
237
 
238
  return $this->generateHtml(
239
  $purpose,
@@ -273,10 +281,7 @@ class PayPalDonations
273
  'donate_buttons' => $this->donate_buttons,
274
  );
275
 
276
- return PayPalDonations_View::render(
277
- plugin_dir_path(__FILE__).'views/paypal-button.php',
278
- $data
279
- );
280
  }
281
 
282
  // -------------------------------------------------------------------------
@@ -291,14 +296,14 @@ class PayPalDonations
291
  // Check if PHP is too old
292
  if (version_compare(PHP_VERSION, self::MIN_PHP_VERSION, '<')) {
293
  // Display notice
294
- add_action( 'admin_notices', array(&$this, 'phpVersionError') );
295
  return false;
296
  }
297
 
298
  // Check if WordPress is too old
299
  global $wp_version;
300
  if (version_compare($wp_version, self::MIN_WP_VERSION, '<')) {
301
- add_action( 'admin_notices', array(&$this, 'wpVersionError') );
302
  return false;
303
  }
304
  return true;
@@ -311,9 +316,12 @@ class PayPalDonations
311
  {
312
  echo '<div class="error"><p><strong>';
313
  printf(
314
- 'Error: PayPal Donations requires PHP version %1$s or greater.<br/>'.
315
  'Your installed PHP version: %2$s',
316
- self::MIN_PHP_VERSION, PHP_VERSION);
 
 
 
317
  echo '</strong></p></div>';
318
  }
319
 
@@ -324,10 +332,23 @@ class PayPalDonations
324
  {
325
  echo '<div class="error"><p><strong>';
326
  printf(
327
- 'Error: PayPal Donations requires WordPress version %s or greater.',
328
- self::MIN_WP_VERSION );
 
 
329
  echo '</strong></p></div>';
330
  }
 
 
 
 
 
 
 
 
 
 
 
331
  }
332
 
333
  add_action('plugins_loaded', array('PayPalDonations', 'getInstance'));
1
  <?php
2
  /*
3
  Plugin Name: PayPal Donations
4
+ 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.1
9
  License: GPLv2 or later
10
  Text Domain: paypal-donations
11
 
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;
149
  add_shortcode('paypal-donation', array(&$this,'paypalShortcode'));
150
  add_action('wp_head', array($this, 'addCss'), 999);
151
 
152
+ add_action(
153
+ 'widgets_init',
154
+ create_function('', 'register_widget("PayPalDonations_Widget");')
155
+ );
156
  }
157
 
158
  /**
166
  */
167
  public static function autoload($className)
168
  {
169
+ if (__CLASS__ !== mb_substr($className, 0, strlen(__CLASS__))) {
170
  return;
171
  }
172
  $className = ltrim($className, '\\');
189
  */
190
  public function textDomain()
191
  {
192
+ $domain = self::TEXT_DOMAIN;
193
  $locale = apply_filters('plugin_locale', get_locale(), $domain);
194
  load_textdomain(
195
  $domain,
230
  */
231
  public function paypalShortcode($atts)
232
  {
233
+ extract(
234
+ shortcode_atts(
235
+ array(
236
+ 'purpose' => '',
237
+ 'reference' => '',
238
+ 'amount' => '',
239
+ 'return_page' => '',
240
+ 'button_url' => '',
241
+ ),
242
+ $atts
243
+ )
244
+ );
245
 
246
  return $this->generateHtml(
247
  $purpose,
281
  'donate_buttons' => $this->donate_buttons,
282
  );
283
 
284
+ return PayPalDonations_View::render('paypal-button', $data);
 
 
 
285
  }
286
 
287
  // -------------------------------------------------------------------------
296
  // Check if PHP is too old
297
  if (version_compare(PHP_VERSION, self::MIN_PHP_VERSION, '<')) {
298
  // Display notice
299
+ add_action('admin_notices', array(&$this, 'phpVersionError'));
300
  return false;
301
  }
302
 
303
  // Check if WordPress is too old
304
  global $wp_version;
305
  if (version_compare($wp_version, self::MIN_WP_VERSION, '<')) {
306
+ add_action('admin_notices', array(&$this, 'wpVersionError'));
307
  return false;
308
  }
309
  return true;
316
  {
317
  echo '<div class="error"><p><strong>';
318
  printf(
319
+ 'Error: %3$s requires PHP version %1$s or greater.<br/>'.
320
  'Your installed PHP version: %2$s',
321
+ self::MIN_PHP_VERSION,
322
+ PHP_VERSION,
323
+ $this->getPluginName()
324
+ );
325
  echo '</strong></p></div>';
326
  }
327
 
332
  {
333
  echo '<div class="error"><p><strong>';
334
  printf(
335
+ 'Error: %2$s requires WordPress version %1$s or greater.',
336
+ self::MIN_WP_VERSION,
337
+ $this->getPluginName()
338
+ );
339
  echo '</strong></p></div>';
340
  }
341
+
342
+ /**
343
+ * Get the name of this plugin.
344
+ *
345
+ * @return string The plugin name.
346
+ */
347
+ private function getPluginName()
348
+ {
349
+ $data = get_plugin_data(self::FILE);
350
+ return $data['Name'];
351
+ }
352
  }
353
 
354
  add_action('plugins_loaded', array('PayPalDonations', 'getInstance'));
phpunit.xml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <phpunit
3
- colors="true"
4
- stopOnFailure="false"
5
- bootstrap="utest/bootstrap.php">
6
- backupGlobals="false"
7
- <testsuites>
8
- <testsuite name="complete">
9
- <directory>utest</directory>
10
- </testsuite>
11
- </testsuites>
12
- </phpunit>
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === PayPal Donations ===
2
  Contributors: artstorm
 
3
  Tags: paypal, donation, shortcode, widget, donate, button, sidebar
4
- Requires at least: 2.8
5
  Tested up to: 3.5.1
6
- Stable tag: 1.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -23,27 +24,22 @@ Insert the button in your pages or posts with this shortcode
23
 
24
  `[paypal-donation]`
25
 
26
- Which is the simplest option, and uses all default and optional settings. If you want to make a specific button for a specific purpose you can add these options:
27
 
28
  `[paypal-donation purpose="Spline Importer" reference="3D Plugins"]`
29
 
30
- as an example.
31
-
32
  This donation plugin generates valid XHTML Transitional and Strict code.
33
 
34
- For complete usage instructions see: [PayPal Donations](http://wpstorm.net/wordpress-plugins/paypal-donations/ "Complete Usage Instructions for PayPal Donations")
35
-
36
- See the [Changelog](http://wordpress.org/extend/plugins/paypal-donations/changelog/) for what's new. Available [Translations](http://wpstorm.net/wordpress-plugins/paypal-donations/#translations).
37
-
38
  = Related Links =
39
 
40
- * [Documentation](http://wpstorm.net/wordpress-plugins/paypal-donations/
41
- "Complete usage instructions")
42
- * [Support Forum](http://wordpress.org/tags/paypal-donations?forum_id=10
43
  "Use this for support and feature requests")
44
  * [GitHub](https://github.com/artstorm/paypal-donations
45
  "Develop and contribute your code or report bugs")
46
 
 
47
  == Installation ==
48
 
49
  = Install =
@@ -58,33 +54,39 @@ See the [Changelog](http://wordpress.org/extend/plugins/paypal-donations/changel
58
  2. After Deactivation a 'Delete' link appears below the plugin name, follow the link and confim with 'Yes, Delete these files'.
59
  3. This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.
60
 
 
61
  == Frequently Asked Questions ==
62
 
 
 
 
 
 
63
  = Where can I send bug reports? =
64
 
65
  Please visit the GitHub repository for [PayPal Donations](https://github.com/artstorm/paypal-donations)
66
  and open an [issue](https://github.com/artstorm/paypal-donations/issues).
67
- Please create an issue that conforms with [necolas's guidelines](https://github.com/necolas/issue-guidelines).
68
-
69
- = Where can I get support? =
70
-
71
- Please visit the [Support Forum](http://wordpress.org/tags/paypal-donations?forum_id=10 "Use this for support and feature requests")
72
- for questions, answers, support and feature requests.
73
 
74
  = How can I contribute to the plugin? =
75
 
76
  If you want to contribute improved code or new features for the plugin. Please
77
  open a pull request at the [PayPal Donations GitHub repository](https://github.com/artstorm/paypal-donations).
78
- Please open a pull request that conforms with [necolas's guidelines](https://github.com/necolas/issue-guidelines).
79
  Contributions are appreciated and encouraged.
80
 
 
81
  == Screenshots ==
82
 
83
  1. Admin page where you setup the plugin
84
  1. Sidebar Widget Admin Options
85
 
 
86
  == Changelog ==
87
 
 
 
 
 
 
88
  = Version 1.8 - 9 Mar 2013 =
89
  * Added tabbed navigation in the plugin admin settings, and moved Extras into
90
  the advanced tab.
1
  === PayPal Donations ===
2
  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.5.1
7
+ Stable tag: 1.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
24
 
25
  `[paypal-donation]`
26
 
27
+ Which is the simplest option, and uses all default and optional settings. If you want to make a specific button for a specific purpose you can add additional options. Example:
28
 
29
  `[paypal-donation purpose="Spline Importer" reference="3D Plugins"]`
30
 
 
 
31
  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
+
43
  == Installation ==
44
 
45
  = Install =
54
  2. After Deactivation a 'Delete' link appears below the plugin name, follow the link and confim with 'Yes, Delete these files'.
55
  3. This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.
56
 
57
+
58
  == Frequently Asked Questions ==
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? =
66
 
67
  Please visit the GitHub repository for [PayPal Donations](https://github.com/artstorm/paypal-donations)
68
  and open an [issue](https://github.com/artstorm/paypal-donations/issues).
 
 
 
 
 
 
69
 
70
  = How can I contribute to the plugin? =
71
 
72
  If you want to contribute improved code or new features for the plugin. Please
73
  open a pull request at the [PayPal Donations GitHub repository](https://github.com/artstorm/paypal-donations).
 
74
  Contributions are appreciated and encouraged.
75
 
76
+
77
  == Screenshots ==
78
 
79
  1. Admin page where you setup the plugin
80
  1. Sidebar Widget Admin Options
81
 
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.
88
+ * Updated Romanian Translation by Denis Ciumbargi.
89
+
90
  = Version 1.8 - 9 Mar 2013 =
91
  * Added tabbed navigation in the plugin admin settings, and moved Extras into
92
  the advanced tab.
screenshot-1.jpg DELETED
Binary file
screenshot-2.jpg DELETED
Binary file
utest/PayPalDonationsTest.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * PayPal Donations Unit Tests
4
- */
5
- class PayPalDonationsTest extends WP_UnitTestCase {
6
-
7
- private $plugin = 'paypal-donations';
8
-
9
- public function setUp() {
10
- parent::setUp();
11
- }
12
-
13
- // -------------------------------------------------------------------------
14
- // Tests
15
- // -------------------------------------------------------------------------
16
-
17
- function testPluginInitialization() {
18
- // $this->assertFalse( null == $this->plugin );
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
utest/bootstrap.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- $GLOBALS['wp_tests_options'] = array(
3
- 'active_plugins' => array( 'paypal-donations/paypal-donations.php' ),
4
- 'template' => 'twentyeleven',
5
- 'stylesheet' => 'twentyeleven',
6
- );
7
-
8
- require_once('D:/Dropbox/Code/_Tools/UniformServer/www/wordpress.dev/wordpress-tests/bootstrap.php');
 
 
 
 
 
 
 
 
views/widget-form.php CHANGED
@@ -1,23 +1,23 @@
1
  <p>
2
- <label for="<?php echo $title_id; ?>"><?php _e('Title:', 'paypal-donations'); ?>
3
  <input class="widefat" id="<?php echo $title_id; ?>" name="<?php echo $title_name; ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
4
  </label>
5
  </p>
6
 
7
  <p>
8
- <label for="<?php echo $text_id; ?>"><?php _e('Text:', 'paypal-donations'); ?>
9
  <textarea class="widefat" id="<?php echo $text_id; ?>" name="<?php echo $text_name; ?>"><?php echo esc_attr($instance['text']); ?></textarea>
10
  </label>
11
  </p>
12
 
13
  <p>
14
- <label for="<?php echo $purpose_id; ?>"><?php _e('Purpose:', 'paypal-donations'); ?>
15
  <input class="widefat" id="<?php echo $purpose_id; ?>" name="<?php echo $purpose_name; ?>" type="text" value="<?php echo esc_attr($instance['purpose']); ?>" />
16
  </label>
17
  </p>
18
 
19
  <p>
20
- <label for="<?php echo $reference_id; ?>"><?php _e('Reference:', 'paypal-donations'); ?>
21
  <input class="widefat" id="<?php echo $reference_id; ?>" name="<?php echo $reference_name; ?>" type="text" value="<?php echo esc_attr($instance['reference']); ?>" />
22
  </label>
23
  </p>
1
  <p>
2
+ <label for="<?php echo $title_id; ?>"><?php _e('Title:', PayPalDonations::TEXT_DOMAIN); ?>
3
  <input class="widefat" id="<?php echo $title_id; ?>" name="<?php echo $title_name; ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
4
  </label>
5
  </p>
6
 
7
  <p>
8
+ <label for="<?php echo $text_id; ?>"><?php _e('Text:', PayPalDonations::TEXT_DOMAIN); ?>
9
  <textarea class="widefat" id="<?php echo $text_id; ?>" name="<?php echo $text_name; ?>"><?php echo esc_attr($instance['text']); ?></textarea>
10
  </label>
11
  </p>
12
 
13
  <p>
14
+ <label for="<?php echo $purpose_id; ?>"><?php _e('Purpose:', PayPalDonations::TEXT_DOMAIN); ?>
15
  <input class="widefat" id="<?php echo $purpose_id; ?>" name="<?php echo $purpose_name; ?>" type="text" value="<?php echo esc_attr($instance['purpose']); ?>" />
16
  </label>
17
  </p>
18
 
19
  <p>
20
+ <label for="<?php echo $reference_id; ?>"><?php _e('Reference:', PayPalDonations::TEXT_DOMAIN); ?>
21
  <input class="widefat" id="<?php echo $reference_id; ?>" name="<?php echo $reference_name; ?>" type="text" value="<?php echo esc_attr($instance['reference']); ?>" />
22
  </label>
23
  </p>