Login With Ajax - Version 3.1.6

Version Description

  • added Persian translation, thanks to Mohammad Akbari
  • fixed PHP 7 deprecated construct error
  • fixed deprecated get_currentuserinfo function PHP warning
  • added option to show direct links (no AJAX forms) to password recovery and registration forms
  • fixed missing text domain in widget/modal/widget_out.php
  • fixed server errors when deactivating BuddyPress whilst LWA is active
Download this release

Release Info

Developer netweblogic
Plugin Icon 128x128 Login With Ajax
Version 3.1.6
Comparing to
See all releases

Code changes from version 3.1.5 to 3.1.6

langs/login-with-ajax-fa_IR.mo CHANGED
Binary file
langs/login-with-ajax-fa_IR.po CHANGED
@@ -1,78 +1,240 @@
1
- # Translation of Login With Ajax in Persian
2
- # This file is distributed under the same license as the Login With Ajax package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2015-09-24 14:15:49+0000\n"
 
 
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "Plural-Forms: nplurals=1; plural=0;\n"
10
- "X-Generator: GlotPress/1.0-alpha-1000\n"
11
- "Project-Id-Version: Login With Ajax\n"
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- #: login-with-ajax-admin.php:47
14
- msgid "Since WordPress 4.3 passwords are not emailed to users anymore, they're replaced with a link to create a new password."
15
- msgstr ""
 
16
 
17
- #: login-with-ajax-admin.php:48
18
- msgid "Check your registration email template."
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  msgstr ""
 
 
20
 
21
- #: login-with-ajax-admin.php:341 login-with-ajax-admin.php:383
22
- msgid "%s will be replaced with a link to set the user password."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  msgstr ""
 
 
 
24
 
25
- #: login-with-ajax-admin.php:357
 
 
 
 
 
 
 
 
 
 
 
26
  msgid ""
27
- "Thanks for signing up to our blog. \n"
28
- "\n"
29
- "You can login with the following credentials by visiting %BLOGURL%\n"
30
- "\n"
31
- "Username: %USERNAME%\n"
32
- "To set your password, visit the following address: %PASSWORD%\n"
33
- "\n"
34
- "We look forward to your next visit!\n"
35
- "\n"
36
- "The team at %BLOGNAME%"
37
  msgstr ""
 
 
38
 
39
- #: login-with-ajax.php:218
40
- msgid "Registration has been disabled."
 
 
 
 
41
  msgstr ""
 
 
42
 
43
- #: pluggable.php:35
44
- msgid "New user registration on your site %s:"
 
 
 
45
  msgstr ""
 
 
46
 
47
- #: pluggable.php:68
48
- msgid "To set your password, visit the following address:"
 
 
 
 
 
 
 
 
49
  msgstr ""
 
 
50
 
51
- #: pluggable.php:73
52
- msgid "[%s] Your username and password info"
 
 
 
53
  msgstr ""
 
 
54
 
55
- #: login-with-ajax-widget.php:55 login-with-ajax-widget.php:59
56
- msgid "Title (%s)"
57
- msgstr " (%s) عنوان"
 
58
 
59
- #: login-with-ajax-widget.php:55
60
- msgid "Logged In"
61
- msgstr "وارد شده اید"
 
 
 
 
 
 
62
 
63
- #: login-with-ajax-widget.php:59
64
- msgid "Logged Out"
65
- msgstr "خارج شده اید"
 
66
 
67
- #: login-with-ajax-admin.php:211 login-with-ajax-admin.php:263
68
- msgid "With WPML enabled you can provide different redirection destinations based on language too."
69
- msgstr "با فعال بودن WPML شما می‌توانید بر اساس زبان، هدایت‌های مسیر مختلفی را فراهم آورید"
 
 
 
 
 
 
70
 
 
 
 
 
 
 
71
  #: login-with-ajax-admin.php:316
72
- msgid "If you'd like to override the default Wordpress email users receive once registered, make sure you check the box below and enter a new email subject and message."
 
 
 
73
  msgstr ""
 
 
 
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  #: login-with-ajax-admin.php:368
 
76
  msgid ""
77
  "Thanks for signing up to our blog. \n"
78
  "\n"
@@ -85,279 +247,287 @@ msgid ""
85
  "\n"
86
  "The team at %BLOGNAME%"
87
  msgstr ""
88
- "با تشکر از ثبت نام شما در این وبسایت. \n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  "\n"
90
- "شما می‌توانید با وارد کردن مشخصات زیر در آدرس %BLOGURL% وارد سایت شوید\n"
 
91
  "\n"
92
  "نام کاربری: %USERNAME%\n"
93
- "کلمه عبور: %PASSWORD%\n"
94
  "\n"
95
- "منتظر بازدید مجدد شما هستیم!\n"
96
  "\n"
97
- "گروه %BLOGNAME%"
98
 
99
- #: login-with-ajax-widget.php:67
100
- msgid "Recover Password?"
101
- msgstr "بازگردانی رمز عبور؟"
 
 
 
 
 
 
 
 
102
 
 
 
 
 
 
 
103
  #: login-with-ajax-widget.php:15
104
  msgid "Login widget with AJAX capabilities."
105
- msgstr "ابزارک ورود با قابلیت ای جکس"
 
 
 
 
 
 
 
 
 
 
 
106
 
 
 
 
 
 
 
107
  #: login-with-ajax-widget.php:63
108
  msgid "Show profile link?"
109
- msgstr "نمايش لينك شناسنامه؟"
110
 
 
 
 
 
 
 
111
  #: login-with-ajax-widget.php:71
112
  msgid "AJAX Registration?"
113
- msgstr "ثبت نام با ای جکس؟"
114
 
 
115
  #: login-with-ajax-widget.php:76
116
  msgid "Template"
117
  msgstr "قالب"
118
 
 
119
  #: login-with-ajax.php:160
120
  msgid "Login Successful, redirecting..."
121
- msgstr "ورود با موفقیت انجام شد, در حال انتقال..."
122
 
 
123
  #: login-with-ajax.php:173
124
  msgid "Login successful, updating..."
125
- msgstr "ورود با موفقیت انجام شد, در حال به روزرسانی..."
126
 
 
127
  #: login-with-ajax.php:183 login-with-ajax.php:239
128
  msgid "An undefined error has ocurred"
129
- msgstr "خطایی تعریف نشده رخ داده"
130
 
 
131
  #: login-with-ajax.php:187
132
  msgid "Please supply your username and password."
133
- msgstr "لطفا نام کاربری و کلمه عبور خود را ذخیره نمایید."
134
 
 
135
  #: login-with-ajax.php:205
136
  msgid "Registration complete. Please check your e-mail."
137
- msgstr "ثبت نام کامل شد. لطفا پست الکترونیکی خود را مشاهده نمایید."
 
138
 
 
 
 
 
 
 
139
  #: login-with-ajax.php:230
140
  msgid "We have sent you an email"
141
- msgstr "ایمیلی برای شما ارسال کردیم"
 
 
 
 
 
 
142
 
 
143
  #: pluggable.php:36 pluggable.php:67
 
144
  msgid "Username: %s"
145
  msgstr "نام کاربری: %s"
146
 
 
147
  #: pluggable.php:37
 
148
  msgid "E-mail: %s"
149
  msgstr "پست الکترونیکی: %s"
150
 
 
151
  #: pluggable.php:39
 
152
  msgid "[%s] New User Registration"
153
- msgstr "[%s] ثبت نام کاربر جدید"
154
 
155
- #: login-with-ajax-widget.php:9 widget/default/widget_in.php:13
156
- msgid "Hi"
157
- msgstr "سلام"
 
 
 
 
 
 
 
158
 
 
159
  #: widget/default/widget_in.php:25 widget/default/widget_in.php:29
160
  msgid "Profile"
161
- msgstr "مشخصات شما"
162
 
 
163
  #: widget/default/widget_in.php:35
164
  msgid "Log Out"
165
- msgstr "خروج از سایت"
166
 
 
167
  #: widget/default/widget_in.php:40
168
  msgid "blog admin"
169
- msgstr "مدیریت سایت"
170
-
171
- #: login-with-ajax-widget.php:8 widget/default/widget_out.php:32
172
- #: widget/divs-only/widget_out.php:26 widget/modal/widget_out.php:9
173
- #: widget/modal/widget_out.php:36
174
- msgid "Log In"
175
- msgstr "ورود به سايت"
176
 
 
177
  #: widget/default/widget_out.php:15 widget/default/widget_out.php:90
178
  #: widget/divs-only/widget_out.php:12 widget/divs-only/widget_out.php:66
179
  #: widget/modal/widget_out.php:19 widget/modal/widget_out.php:98
180
  msgid "Username"
181
- msgstr "نام كاربري:"
182
 
 
183
  #: widget/default/widget_out.php:23 widget/divs-only/widget_out.php:17
184
  #: widget/modal/widget_out.php:27
185
  msgid "Password"
186
- msgstr "رمز عبور:"
187
 
 
188
  #: widget/default/widget_out.php:40 widget/divs-only/widget_out.php:35
189
  #: widget/modal/widget_out.php:44
190
  msgid "Remember Me"
191
- msgstr "به خاطر سپردن"
192
 
 
193
  #: widget/default/widget_out.php:43 widget/divs-only/widget_out.php:38
194
  #: widget/modal/widget_out.php:47
195
  msgid "Password Lost and Found"
196
- msgstr "رمز عبور فراموش شده پیدا نشد"
197
 
 
198
  #: widget/default/widget_out.php:43 widget/divs-only/widget_out.php:38
199
  #: widget/modal/widget_out.php:47
200
  msgid "Lost your password?"
201
- msgstr "رمز را فراموش كرده ايد؟"
202
 
 
203
  #: widget/default/widget_out.php:47 widget/default/widget_out.php:100
204
  #: widget/divs-only/widget_out.php:42 widget/divs-only/widget_out.php:79
205
  #: widget/modal/widget_out.php:51 widget/modal/widget_out.php:122
206
  msgid "Register"
207
- msgstr "عضويت در سايت"
208
 
 
209
  #: widget/default/widget_out.php:61 widget/divs-only/widget_out.php:48
210
  #: widget/modal/widget_out.php:63
211
  msgid "Forgotten Password"
212
- msgstr "بازگرداني رمز عبور"
213
 
 
214
  #: widget/default/widget_out.php:66 widget/divs-only/widget_out.php:50
215
  #: widget/modal/widget_out.php:69
216
  msgid "Enter username or email"
217
- msgstr "نام كاربري يا ايميل را وارد كنيد"
218
 
 
219
  #: widget/default/widget_out.php:73 widget/divs-only/widget_out.php:55
220
  #: widget/modal/widget_out.php:77
221
  msgid "Get New Password"
222
- msgstr "دريافت رمز جديد"
223
 
 
224
  #: widget/default/widget_out.php:74 widget/divs-only/widget_out.php:56
225
  #: widget/divs-only/widget_out.php:80 widget/modal/widget_out.php:78
226
  #: widget/modal/widget_out.php:123
227
  msgid "Cancel"
228
  msgstr "انصراف"
229
 
 
230
  #: widget/default/widget_out.php:84 widget/divs-only/widget_out.php:64
231
  #: widget/modal/widget_out.php:92
232
  msgid "Register For This Site"
233
- msgstr "ثبت نام در این سایت"
234
-
235
- #: widget/default/widget_out.php:94 widget/divs-only/widget_out.php:70
236
- #: widget/modal/widget_out.php:106
237
- msgid "E-mail"
238
- msgstr "پست الکترونیکی"
239
 
 
 
240
  #: widget/default/widget_out.php:85 widget/divs-only/widget_out.php:78
241
  #: widget/modal/widget_out.php:121
242
  msgid "A password will be e-mailed to you."
243
- msgstr "گذرواژه به پست الکترونیکی شما ارسال خواهد شد."
244
-
245
- #: login-with-ajax-admin.php:180
246
- msgid "Redirection Settings"
247
- msgstr "تنظیمات هدایت مسیر"
248
-
249
- #: login-with-ajax-admin.php:184
250
- msgid "Global Login Redirect"
251
- msgstr "انتقال همه بعد از وارد شدن"
252
-
253
- #: login-with-ajax-admin.php:188
254
- msgid "If you'd like to send the user to a specific URL after login, enter it here (e.g. http://wordpress.org/)"
255
- msgstr "اگر شما می خواهید کاربر را بعد از وارد شدن به سیستم انتقال دهید اینگونه عمل کنید (http://wordpress.org/)"
256
-
257
- #: login-with-ajax-admin.php:189
258
- msgid "Use %USERNAME% and it will be replaced with the username of person logging in."
259
- msgstr ""
260
-
261
- #: login-with-ajax-admin.php:222
262
- msgid "Global Logout Redirect"
263
- msgstr "انتقال خروج همگی"
264
-
265
- #: login-with-ajax-admin.php:226
266
- msgid "If you'd like to send the user to a specific URL after logout, enter it here (e.g. http://wordpress.org/)"
267
- msgstr "اگر شما می خواهید کاربر را بعد از خارج شدن به سیستم انتقال دهید اینگونه عمل کنید (http://wordpress.org/)"
268
-
269
- #: login-with-ajax-admin.php:227
270
- msgid "Enter %LASTURL% to send the user back to the page they were previously on."
271
- msgstr ""
272
-
273
- #: login-with-ajax-admin.php:235
274
- msgid "Role-Based Custom Login Redirects"
275
- msgstr "مبتنی بر انتقال ورود سفارشی"
276
-
277
- #: login-with-ajax-admin.php:238
278
- msgid "If you would like a specific user role to be redirected to a custom URL upon login, place it here (blank value will default to the global redirect)"
279
- msgstr "اگر شما می خواهید برای هریک از نقش های کاربران صفحه ای را برای انتقال ورود بدهید از اینجا شروع کنید (محتوای خالی پیشفرض است)"
280
 
281
- #: login-with-ajax-admin.php:288
282
- msgid "Role-Based Custom Logout Redirects"
283
- msgstr "مبتی بر انتقال خروج سفارشی"
284
-
285
- #: login-with-ajax-admin.php:291
286
- msgid "If you would like a specific user role to be redirected to a custom URL upon logout, place it here (blank value will default to the global redirect)"
287
- msgstr "اگر شما می خواهید برای هریک از نقش های کاربران صفحه ای را برای انتقال خروج بدهید از اینجا شروع کنید (محتوای خالی پیشفرض است)"
288
-
289
- #: login-with-ajax-admin.php:314
290
- msgid "Notification Settings"
291
- msgstr "تنظیمات اطلاع‌رسانی"
292
-
293
- #: login-with-ajax-admin.php:317
294
- msgid "If this feature doesn't work, please make sure that you don't have another plugin installed which also manages user registrations (e.g. BuddyPress and MU)."
295
- msgstr ""
296
-
297
- #: login-with-ajax-admin.php:322
298
- msgid "Override Default Email?"
299
- msgstr "رونویسی پست الکترونیکی پیش‌فرض؟"
300
-
301
- #: login-with-ajax-admin.php:330
302
- msgid "Subject"
303
- msgstr "عنوان"
304
-
305
- #: login-with-ajax-admin.php:335
306
- msgid "Your registration at %BLOGNAME%"
307
- msgstr "ثبت نام شما در %BLOGNAME%"
308
-
309
- #: login-with-ajax-admin.php:339 login-with-ajax-admin.php:381
310
- msgid "<code>%USERNAME%</code> will be replaced with a username."
311
- msgstr "<code>%USERNAME%</code> با یک نام کاربری جایگزین خواهد شد."
312
-
313
- #: login-with-ajax-admin.php:343 login-with-ajax-admin.php:385
314
- msgid "<code>%PASSWORD%</code> will be replaced with the user's password."
315
- msgstr "<code>%PASSWORD%</code> با گذرواژه کاربر جایگزین خواهد شد"
316
-
317
- #: login-with-ajax-admin.php:345 login-with-ajax-admin.php:387
318
- msgid "<code>%BLOGNAME%</code> will be replaced with the name of your blog."
319
- msgstr "<code>%BLOGNAME%</code> با نام وبسایت شما جایگزین خواهد شد."
320
-
321
- #: login-with-ajax-admin.php:346 login-with-ajax-admin.php:388
322
- msgid "<code>%BLOGURL%</code> will be replaced with the url of your blog."
323
- msgstr "<code>%BLOGURL%</code> با تارنمای وبسایت شما جایگزین خواهد شد."
324
-
325
- #: login-with-ajax-admin.php:351
326
- msgid "Message"
327
- msgstr "پیام"
328
-
329
- #: login-with-ajax-admin.php:396
330
- msgid "Save Changes"
331
- msgstr "ذخيره تغييرات"
332
-
333
- #: login-with-ajax-admin.php:50
334
- msgid "Dismiss"
335
- msgstr "بستن"
336
-
337
- #: login-with-ajax-admin.php:106
338
- msgid "Changes saved."
339
- msgstr "تنظيمات ذخيره شد."
340
-
341
- #: login-with-ajax-admin.php:148
342
- msgid "General Settings"
343
- msgstr "تنظیمات عمومی"
344
-
345
- #: login-with-ajax-admin.php:153
346
- msgid "Default Template"
347
- msgstr "قالب پیش‌فرض"
348
-
349
- #: login-with-ajax-admin.php:162
350
- msgid "Choose the default theme you'd like to use. This can be overriden in the widget, shortcode and template tags."
351
- msgstr "پوسته پیش‌فرضی که دوست دارید را انتخاب نمایید. این می‌تواند در بخش ابزارکها، کدهای کوتاه و تگ های قالب رونویسی شود."
352
 
353
- #: login-with-ajax-admin.php:163
354
- msgid "Further documentation for this feature coming soon..."
 
 
 
355
  msgstr ""
 
 
356
 
357
- #: login-with-ajax-admin.php:169
358
- msgid "Disable refresh upon login?"
359
- msgstr "بارگذاری مجدد پس از ثبت نام غیر فعال شود؟"
 
360
 
361
- #: login-with-ajax-admin.php:174
362
- msgid "If the user logs in and you check the button above, only the login widget will update itself without refreshing the page. Not a good idea if your site shows different content to users once logged in, as a refresh would be needed."
363
- msgstr ""
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Login With Ajax v3.1.4.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2015-11-06 18:39+0330\n"
7
+ "Last-Translator: admin <msykes@netweblogic.com>\n"
8
+ "Language-Team: <info@mo-akbari.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: Poedit 1.6.7\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "Language: fa_IR\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ # @ login-with-ajax
23
+ #: login-with-ajax-admin.php:50
24
+ msgid "Dismiss"
25
+ msgstr "رد کردن"
26
 
27
+ # @ default
28
+ #: login-with-ajax-admin.php:106
29
+ msgid "Changes saved."
30
+ msgstr "تغییرات ذخیره شد."
31
 
32
+ # @ login-with-ajax
33
+ #: login-with-ajax-admin.php:148
34
+ msgid "General Settings"
35
+ msgstr "تنظیمات عمومی"
36
+
37
+ # @ login-with-ajax
38
+ #: login-with-ajax-admin.php:153
39
+ msgid "Default Template"
40
+ msgstr "قالب پیش‌فرض"
41
+
42
+ # @ login-with-ajax
43
+ #: login-with-ajax-admin.php:162
44
+ msgid ""
45
+ "Choose the default theme you'd like to use. This can be overriden in the "
46
+ "widget, shortcode and template tags."
47
  msgstr ""
48
+ "قالب پیش‌فرض مورد نظر را انتخاب کنید؛ این عمل می‌تواند موجب بازنویسی در "
49
+ "ابزارک، کدکوتاه و برچسب‌های قالب شود."
50
 
51
+ # @ login-with-ajax
52
+ #: login-with-ajax-admin.php:163
53
+ msgid "Further documentation for this feature coming soon..."
54
+ msgstr "اطلاعات و مستندات بیشتر برای این ویژگی، به‌زودی..."
55
+
56
+ # @ login-with-ajax
57
+ #: login-with-ajax-admin.php:169
58
+ msgid "Disable refresh upon login?"
59
+ msgstr "غیرفعال‌سازی تازه‌سازی صفحه (رفرش) هنگام ورود؟"
60
+
61
+ # @ login-with-ajax
62
+ #: login-with-ajax-admin.php:174
63
+ msgid ""
64
+ "If the user logs in and you check the button above, only the login widget "
65
+ "will update itself without refreshing the page. Not a good idea if your site "
66
+ "shows different content to users once logged in, as a refresh would be "
67
+ "needed."
68
  msgstr ""
69
+ "اگر شما تیک چک‌باکس بالا را بزنید، پس از ورود موفقیت آمیز کاربر فقط ابزارک "
70
+ "ورود، تازه‌سازی می‌شود و رفرش کل صفحه انجام نمی‌شود. فعال‌سازی این گزینه، هنگامی "
71
+ "که محتوای صفحه برای کاربر عضو و مهمان متفاوت است، پیشنهاد نمی‌شود!"
72
 
73
+ # @ login-with-ajax
74
+ #: login-with-ajax-admin.php:180
75
+ msgid "Redirection Settings"
76
+ msgstr "تنظیمات انتقال"
77
+
78
+ # @ login-with-ajax
79
+ #: login-with-ajax-admin.php:184
80
+ msgid "Global Login Redirect"
81
+ msgstr "انتقال پس از ورود کلی"
82
+
83
+ # @ login-with-ajax
84
+ #: login-with-ajax-admin.php:188
85
  msgid ""
86
+ "If you'd like to send the user to a specific URL after login, enter it here "
87
+ "(e.g. http://wordpress.org/)"
 
 
 
 
 
 
 
 
88
  msgstr ""
89
+ "اگر شما می‌خواهید کاربر را پس از ورود، به صفحه‌ی خاصی هدایت کنید، نشانی آن "
90
+ "(صفحه) ‌را اینجا بنویسید. (e.g. http://wordpress.org/)"
91
 
92
+ # @ login-with-ajax
93
+ #: login-with-ajax-admin.php:189
94
+ #, php-format
95
+ msgid ""
96
+ "Use %USERNAME% and it will be replaced with the username of person logging "
97
+ "in."
98
  msgstr ""
99
+ "می‌توانید در نشانی از %USERNAME% استفاده کنید که نام کاربری شخصی که وارد سایت "
100
+ "شده، با آن جایگزین می‌شود."
101
 
102
+ # @ login-with-ajax
103
+ #: login-with-ajax-admin.php:211 login-with-ajax-admin.php:263
104
+ msgid ""
105
+ "With WPML enabled you can provide different redirection destinations based "
106
+ "on language too."
107
  msgstr ""
108
+ "با فعال‌سازی WPML شما می‌توانید مقاصد مختلفی را برای انتقال‌ها، بر اساس زبان‌ها "
109
+ "نیز فراهم کنید."
110
 
111
+ # @ login-with-ajax
112
+ #: login-with-ajax-admin.php:222
113
+ msgid "Global Logout Redirect"
114
+ msgstr "انتقال پس از خروج کلی"
115
+
116
+ # @ login-with-ajax
117
+ #: login-with-ajax-admin.php:226
118
+ msgid ""
119
+ "If you'd like to send the user to a specific URL after logout, enter it here "
120
+ "(e.g. http://wordpress.org/)"
121
  msgstr ""
122
+ "اگر شما می‌خواهید کاربر را پس از خروج، به صفحه‌ی خاصی هدایت کنید، نشانی آن "
123
+ "(صفحه) ‌را اینجا بنویسید. (e.g. http://wordpress.org/)"
124
 
125
+ # @ login-with-ajax
126
+ #: login-with-ajax-admin.php:227
127
+ #, php-format
128
+ msgid ""
129
+ "Enter %LASTURL% to send the user back to the page they were previously on."
130
  msgstr ""
131
+ "اگر می‌خواهید، کاربر به صفحه‌ی قبلی که حضور داشته، بازگردد از %LASTURL% "
132
+ "استفاده کنید."
133
 
134
+ # @ login-with-ajax
135
+ #: login-with-ajax-admin.php:235
136
+ msgid "Role-Based Custom Login Redirects"
137
+ msgstr "انتقال‌های ورود سفارشی، بر اساس نقش"
138
 
139
+ # @ login-with-ajax
140
+ #: login-with-ajax-admin.php:238
141
+ msgid ""
142
+ "If you would like a specific user role to be redirected to a custom URL upon "
143
+ "login, place it here (blank value will default to the global redirect)"
144
+ msgstr ""
145
+ "اگر شما می‌خواهید کاربر را (پس از ورود) بر اساس نقشی که دارد، به نشانی سفارشی "
146
+ "هدایت کنید، از فیلدهای زیر استفاده کنید (خالی گذاشتن فیلد، موجب انتقال بر "
147
+ "اساس تنظیمات کلی می‌شود)"
148
 
149
+ # @ login-with-ajax
150
+ #: login-with-ajax-admin.php:288
151
+ msgid "Role-Based Custom Logout Redirects"
152
+ msgstr "انتقال‌های خروج سفارشی، بر اساس نقش"
153
 
154
+ # @ login-with-ajax
155
+ #: login-with-ajax-admin.php:291
156
+ msgid ""
157
+ "If you would like a specific user role to be redirected to a custom URL upon "
158
+ "logout, place it here (blank value will default to the global redirect)"
159
+ msgstr ""
160
+ "اگر شما می‌خواهید کاربر را (پس از خروج) بر اساس نقشی که دارد، به نشانی سفارشی "
161
+ "هدایت کنید، از فیلدهای زیر استفاده کنید (خالی گذاشتن فیلد، موجب انتقال بر "
162
+ "اساس تنظیمات کلی می‌شود)"
163
 
164
+ # @ login-with-ajax
165
+ #: login-with-ajax-admin.php:314
166
+ msgid "Notification Settings"
167
+ msgstr "تنظیمات آگاه‌سازی"
168
+
169
+ # @ login-with-ajax
170
  #: login-with-ajax-admin.php:316
171
+ msgid ""
172
+ "If you'd like to override the default Wordpress email users receive once "
173
+ "registered, make sure you check the box below and enter a new email subject "
174
+ "and message."
175
  msgstr ""
176
+ "اگر شما می‌خواهید نامه‌ی الکترونیکی پیش‌فرضی که سیستم وردپرس برای کاربران ثبت "
177
+ "نام شده می‌فرستد را بازنویسی کنید، تیک چک‌باکس زیر را زده، موضوع و متن پیام "
178
+ "جدید را وارد کنید."
179
 
180
+ # @ login-with-ajax
181
+ #: login-with-ajax-admin.php:317
182
+ msgid ""
183
+ "If this feature doesn't work, please make sure that you don't have another "
184
+ "plugin installed which also manages user registrations (e.g. BuddyPress and "
185
+ "MU)."
186
+ msgstr ""
187
+ "اگر این ویژگی عمل نمی‌کند، لطفاً مطمئن شوید که افزونه‌ی دیگر مدیریت نام‌نویسی "
188
+ "کاربران روی سایت شما نصب نیست. مثلاً BuddyPress و MU."
189
+
190
+ # @ login-with-ajax
191
+ #: login-with-ajax-admin.php:322
192
+ msgid "Override Default Email?"
193
+ msgstr "بازنویسی نامه‌ی الکترونیکی پیش‌فرض؟"
194
+
195
+ # @ login-with-ajax
196
+ #: login-with-ajax-admin.php:330
197
+ msgid "Subject"
198
+ msgstr "موضوع"
199
+
200
+ # @ login-with-ajax
201
+ #: login-with-ajax-admin.php:335
202
+ #, php-format
203
+ msgid "Your registration at %BLOGNAME%"
204
+ msgstr "نام‌نویسی شما در %BLOGNAME%"
205
+
206
+ # @ login-with-ajax
207
+ #: login-with-ajax-admin.php:339 login-with-ajax-admin.php:381
208
+ #, php-format
209
+ msgid "<code>%USERNAME%</code> will be replaced with a username."
210
+ msgstr "<code>%USERNAME%</code> با یک نام کاربری جایگزین می‌شود."
211
+
212
+ # @ login-with-ajax
213
+ #: login-with-ajax-admin.php:343 login-with-ajax-admin.php:385
214
+ #, php-format
215
+ msgid "<code>%PASSWORD%</code> will be replaced with the user's password."
216
+ msgstr "<code>%PASSWORD%</code> با گذرواژه‌ی کاربر جایگزین می‌شود."
217
+
218
+ # @ login-with-ajax
219
+ #: login-with-ajax-admin.php:345 login-with-ajax-admin.php:387
220
+ #, php-format
221
+ msgid "<code>%BLOGNAME%</code> will be replaced with the name of your blog."
222
+ msgstr "<code>%BLOGNAME%</code> با نام سایت شما جایگزین می‌شود."
223
+
224
+ # @ login-with-ajax
225
+ #: login-with-ajax-admin.php:346 login-with-ajax-admin.php:388
226
+ #, php-format
227
+ msgid "<code>%BLOGURL%</code> will be replaced with the url of your blog."
228
+ msgstr "<code>%BLOGURL%</code> با نشانی سایت شما جایگزین می‌شود."
229
+
230
+ # @ login-with-ajax
231
+ #: login-with-ajax-admin.php:351
232
+ msgid "Message"
233
+ msgstr "پیام"
234
+
235
+ # @ login-with-ajax
236
  #: login-with-ajax-admin.php:368
237
+ #, php-format
238
  msgid ""
239
  "Thanks for signing up to our blog. \n"
240
  "\n"
247
  "\n"
248
  "The team at %BLOGNAME%"
249
  msgstr ""
250
+ "بابت نام‌نویسی در سایت ما، سپاسگزاریم. \n"
251
+ "\n"
252
+ "شما می‌توانید با مراجعه به %BLOGURL% توسط اطلاعات زیر وارد حساب کاربری خود "
253
+ "شوید.\n"
254
+ "\n"
255
+ "نام کاربری : %USERNAME%\n"
256
+ "گذرواژه : %PASSWORD%\n"
257
+ "\n"
258
+ "ما شدیداً مشتاق حضور شما هستیم!\n"
259
+ "\n"
260
+ "تیم %BLOGNAME%"
261
+
262
+ # @ login-with-ajax
263
+ #: login-with-ajax-admin.php:357
264
+ #, php-format
265
+ msgid ""
266
+ "Thanks for signing up to our blog. \n"
267
+ "\n"
268
+ "You can login with the following credentials by visiting %BLOGURL%\n"
269
+ "\n"
270
+ "Username: %USERNAME%\n"
271
+ "To set your password, visit the following address: %PASSWORD%\n"
272
+ "\n"
273
+ "We look forward to your next visit!\n"
274
+ "\n"
275
+ "The team at %BLOGNAME%"
276
+ msgstr ""
277
+ "بابت نام‌نویسی در سایت ما، سپاسگزاریم. \n"
278
  "\n"
279
+ "شما می‌توانید با مراجعه به %BLOGURL% توسط اطلاعات زیر وارد حساب کاربری خود "
280
+ "شوید.\n"
281
  "\n"
282
  "نام کاربری: %USERNAME%\n"
283
+ "مشاهده‌ی صفحه جهت تنظیم گذرواژه: %PASSWORD%\n"
284
  "\n"
285
+ "ما شدیداً مشتاق حضور شما هستیم!\n"
286
  "\n"
287
+ "تیم %BLOGNAME%"
288
 
289
+ # @ default
290
+ #: login-with-ajax-admin.php:396
291
+ msgid "Save Changes"
292
+ msgstr "ذخیره‌ی تنظیمات"
293
+
294
+ # @ login-with-ajax
295
+ #: login-with-ajax-widget.php:8 widget/default/widget_out.php:32
296
+ #: widget/divs-only/widget_out.php:26 widget/modal/widget_out.php:9
297
+ #: widget/modal/widget_out.php:36
298
+ msgid "Log In"
299
+ msgstr "ورود به سایت"
300
 
301
+ # @ login-with-ajax
302
+ #: login-with-ajax-widget.php:9 widget/default/widget_in.php:13
303
+ msgid "Hi"
304
+ msgstr "سلام"
305
+
306
+ # @ login-with-ajax
307
  #: login-with-ajax-widget.php:15
308
  msgid "Login widget with AJAX capabilities."
309
+ msgstr "ورود با قابلیت‌های AJAX"
310
+
311
+ # @ login-with-ajax
312
+ #: login-with-ajax-widget.php:55 login-with-ajax-widget.php:59
313
+ #, php-format
314
+ msgid "Title (%s)"
315
+ msgstr "عنوان (%s)"
316
+
317
+ # @ login-with-ajax
318
+ #: login-with-ajax-widget.php:55
319
+ msgid "Logged In"
320
+ msgstr "برای کاربری که می‌خواهد وارد سایت شود"
321
 
322
+ # @ login-with-ajax
323
+ #: login-with-ajax-widget.php:59
324
+ msgid "Logged Out"
325
+ msgstr "برای کاربری که می‌خواهد از سایت خارج شود"
326
+
327
+ # @ login-with-ajax
328
  #: login-with-ajax-widget.php:63
329
  msgid "Show profile link?"
330
+ msgstr "نمایش پیوند به پروفایل؟"
331
 
332
+ # @ login-with-ajax
333
+ #: login-with-ajax-widget.php:67
334
+ msgid "Recover Password?"
335
+ msgstr "بازیابی گذرواژه؟"
336
+
337
+ # @ login-with-ajax
338
  #: login-with-ajax-widget.php:71
339
  msgid "AJAX Registration?"
340
+ msgstr "نام‌نویسی AJAX؟"
341
 
342
+ # @ login-with-ajax
343
  #: login-with-ajax-widget.php:76
344
  msgid "Template"
345
  msgstr "قالب"
346
 
347
+ # @ login-with-ajax
348
  #: login-with-ajax.php:160
349
  msgid "Login Successful, redirecting..."
350
+ msgstr "ورود با موفقیت انجام شد؛ درحال انتقال..."
351
 
352
+ # @ login-with-ajax
353
  #: login-with-ajax.php:173
354
  msgid "Login successful, updating..."
355
+ msgstr "ورود با موفقیت انجام شد؛ درحال به‌روزرسانی..."
356
 
357
+ # @ login-with-ajax
358
  #: login-with-ajax.php:183 login-with-ajax.php:239
359
  msgid "An undefined error has ocurred"
360
+ msgstr "یک خطای تعریف نشده رخ داد"
361
 
362
+ # @ login-with-ajax
363
  #: login-with-ajax.php:187
364
  msgid "Please supply your username and password."
365
+ msgstr "لطفاً از نام کاربری و گذرواژه‌ی خود استفاده کنید."
366
 
367
+ # @ login-with-ajax
368
  #: login-with-ajax.php:205
369
  msgid "Registration complete. Please check your e-mail."
370
+ msgstr ""
371
+ "نام‌نویسی کامل شد؛ لطفاً صندوق دریافت پست الکترونیکی خود را بررسی نمایید."
372
 
373
+ # @ login-with-ajax
374
+ #: login-with-ajax.php:218
375
+ msgid "Registration has been disabled."
376
+ msgstr "نام‌نویسی غیرفعال شده است."
377
+
378
+ # @ login-with-ajax
379
  #: login-with-ajax.php:230
380
  msgid "We have sent you an email"
381
+ msgstr "ما برای شما یک نامه‌ی الکترونیکی فرستاده‌ایم"
382
+
383
+ # @ default
384
+ #: pluggable.php:35
385
+ #, php-format
386
+ msgid "New user registration on your site %s:"
387
+ msgstr "نام‌نویسی کاربر جدید در سایت %s:"
388
 
389
+ # @ default
390
  #: pluggable.php:36 pluggable.php:67
391
+ #, php-format
392
  msgid "Username: %s"
393
  msgstr "نام کاربری: %s"
394
 
395
+ # @ default
396
  #: pluggable.php:37
397
+ #, php-format
398
  msgid "E-mail: %s"
399
  msgstr "پست الکترونیکی: %s"
400
 
401
+ # @ default
402
  #: pluggable.php:39
403
+ #, php-format
404
  msgid "[%s] New User Registration"
405
+ msgstr "[%s] نام‌نویسی کاربر جدید"
406
 
407
+ # @ default
408
+ #: pluggable.php:68
409
+ msgid "To set your password, visit the following address:"
410
+ msgstr "برای تنظیم گذرواژه‌ی خود، به نشانی زیر بروید:"
411
+
412
+ # @ default
413
+ #: pluggable.php:73
414
+ #, php-format
415
+ msgid "[%s] Your username and password info"
416
+ msgstr "[%s] اطلاعات نام کاربری و گذرواژه‌ی شما"
417
 
418
+ # @ login-with-ajax
419
  #: widget/default/widget_in.php:25 widget/default/widget_in.php:29
420
  msgid "Profile"
421
+ msgstr "پروفایل"
422
 
423
+ # @ login-with-ajax
424
  #: widget/default/widget_in.php:35
425
  msgid "Log Out"
426
+ msgstr "خروج"
427
 
428
+ # @ login-with-ajax
429
  #: widget/default/widget_in.php:40
430
  msgid "blog admin"
431
+ msgstr "بلاگ مدیر"
 
 
 
 
 
 
432
 
433
+ # @ login-with-ajax
434
  #: widget/default/widget_out.php:15 widget/default/widget_out.php:90
435
  #: widget/divs-only/widget_out.php:12 widget/divs-only/widget_out.php:66
436
  #: widget/modal/widget_out.php:19 widget/modal/widget_out.php:98
437
  msgid "Username"
438
+ msgstr "نام کاربری"
439
 
440
+ # @ login-with-ajax
441
  #: widget/default/widget_out.php:23 widget/divs-only/widget_out.php:17
442
  #: widget/modal/widget_out.php:27
443
  msgid "Password"
444
+ msgstr "گذرواژه"
445
 
446
+ # @ login-with-ajax
447
  #: widget/default/widget_out.php:40 widget/divs-only/widget_out.php:35
448
  #: widget/modal/widget_out.php:44
449
  msgid "Remember Me"
450
+ msgstr "مرا به‌خاطر داشته باش"
451
 
452
+ # @ login-with-ajax
453
  #: widget/default/widget_out.php:43 widget/divs-only/widget_out.php:38
454
  #: widget/modal/widget_out.php:47
455
  msgid "Password Lost and Found"
456
+ msgstr "یافتن گذرواژه‌ی فراموش شده"
457
 
458
+ # @ login-with-ajax
459
  #: widget/default/widget_out.php:43 widget/divs-only/widget_out.php:38
460
  #: widget/modal/widget_out.php:47
461
  msgid "Lost your password?"
462
+ msgstr "گذرواژه‌ی خود را فراموش کرده‌اید؟"
463
 
464
+ # @ login-with-ajax
465
  #: widget/default/widget_out.php:47 widget/default/widget_out.php:100
466
  #: widget/divs-only/widget_out.php:42 widget/divs-only/widget_out.php:79
467
  #: widget/modal/widget_out.php:51 widget/modal/widget_out.php:122
468
  msgid "Register"
469
+ msgstr "نام‌نویسی"
470
 
471
+ # @ login-with-ajax
472
  #: widget/default/widget_out.php:61 widget/divs-only/widget_out.php:48
473
  #: widget/modal/widget_out.php:63
474
  msgid "Forgotten Password"
475
+ msgstr "فراموشی گذرواژه"
476
 
477
+ # @ login-with-ajax
478
  #: widget/default/widget_out.php:66 widget/divs-only/widget_out.php:50
479
  #: widget/modal/widget_out.php:69
480
  msgid "Enter username or email"
481
+ msgstr "نام کاربری یا پست الکترونیکی خود را وارد کنید"
482
 
483
+ # @ login-with-ajax
484
  #: widget/default/widget_out.php:73 widget/divs-only/widget_out.php:55
485
  #: widget/modal/widget_out.php:77
486
  msgid "Get New Password"
487
+ msgstr "دریافت گذرواژه‌ی جدید"
488
 
489
+ # @ login-with-ajax
490
  #: widget/default/widget_out.php:74 widget/divs-only/widget_out.php:56
491
  #: widget/divs-only/widget_out.php:80 widget/modal/widget_out.php:78
492
  #: widget/modal/widget_out.php:123
493
  msgid "Cancel"
494
  msgstr "انصراف"
495
 
496
+ # @ login-with-ajax
497
  #: widget/default/widget_out.php:84 widget/divs-only/widget_out.php:64
498
  #: widget/modal/widget_out.php:92
499
  msgid "Register For This Site"
500
+ msgstr "نام‌نویسی در سایت"
 
 
 
 
 
501
 
502
+ # @ login-with-ajax
503
+ # @ default
504
  #: widget/default/widget_out.php:85 widget/divs-only/widget_out.php:78
505
  #: widget/modal/widget_out.php:121
506
  msgid "A password will be e-mailed to you."
507
+ msgstr "پس از تکمیل اطلاعات زیر، گذرواژه برای شما ارسال می‌شود."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
508
 
509
+ # @ login-with-ajax
510
+ #: widget/default/widget_out.php:94 widget/divs-only/widget_out.php:70
511
+ #: widget/modal/widget_out.php:106
512
+ msgid "E-mail"
513
+ msgstr "پست الکترونیکی"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
514
 
515
+ # @ login-with-ajax
516
+ #: login-with-ajax-admin.php:47
517
+ msgid ""
518
+ "Since WordPress 4.3 passwords are not emailed to users anymore, they're "
519
+ "replaced with a link to create a new password."
520
  msgstr ""
521
+ "از نگارش 4.3 وردپرس به بعد، گذرواژه‌ها برای کاربران توسط نامه‌ی الکترونیکی "
522
+ "ارسال نمی‌شوند؛ بلکه پیوندی جهت ایجاد گذواژه‌ی جدید برای ایشان فرستاده می‌شود."
523
 
524
+ # @ login-with-ajax
525
+ #: login-with-ajax-admin.php:48
526
+ msgid "Check your registration email template."
527
+ msgstr "قالب نامه‌ی الکترونیکی نام‌نویسی را بررسی نمایید."
528
 
529
+ # @ login-with-ajax
530
+ #: login-with-ajax-admin.php:341 login-with-ajax-admin.php:383
531
+ #, php-format
532
+ msgid "%s will be replaced with a link to set the user password."
533
+ msgstr "%s با لینک تنظیم گذرواژه‌ی کاربر جایگزین می‌شود."
login-with-ajax-admin.php CHANGED
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19
  // Class initialization
20
  class LoginWithAjaxAdmin{
21
  // action function for above hook
22
- function LoginWithAjaxAdmin() {
23
  global $user_level;
24
  $lwa = LoginWithAjax::$data;
25
  add_action ( 'admin_menu', array (&$this, 'menus') );
19
  // Class initialization
20
  class LoginWithAjaxAdmin{
21
  // action function for above hook
22
+ function __construct() {
23
  global $user_level;
24
  $lwa = LoginWithAjax::$data;
25
  add_action ( 'admin_menu', array (&$this, 'menus') );
login-with-ajax-widget.php CHANGED
@@ -53,10 +53,10 @@ class LoginWithAjaxWidget extends WP_Widget {
53
  ?>
54
  <?php if( count(LoginWithAjax::$templates) > 1 ): ?>
55
  <p>
56
- <label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template', 'login-with-ajax'); ?>:</label>
57
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
58
  <?php foreach( array_keys(LoginWithAjax::$templates) as $template ): ?>
59
- <option <?php echo ($instance['template'] == $template) ? 'selected="selected"':""; ?>><?php echo $template ?></option>
60
  <?php endforeach; ?>
61
  </select>
62
  </p>
@@ -67,11 +67,20 @@ class LoginWithAjaxWidget extends WP_Widget {
67
  <input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" />
68
  </p>
69
  <p>
70
- <input id="<?php echo $this->get_field_id('remember'); ?>" name="<?php echo $this->get_field_name('remember'); ?>" type="checkbox" value="1" <?php echo !empty($instance['remember']) ? 'checked="checked"':""; ?> />
71
- <label for="<?php echo $this->get_field_id('remember'); ?>"><?php esc_html_e('Recover Password?', 'login-with-ajax'); ?> </label>
72
- <br />
73
- <input id="<?php echo $this->get_field_id('registration'); ?>" name="<?php echo $this->get_field_name('registration'); ?>" type="checkbox" value="1" <?php echo !empty($instance['registration']) ? 'checked="checked"':""; ?> />
74
- <label for="<?php echo $this->get_field_id('registration'); ?>"><?php esc_html_e('AJAX Registration?', 'login-with-ajax'); ?> </label>
 
 
 
 
 
 
 
 
 
75
  </p>
76
  <p><strong><?php esc_html_e('Logged Out','login-with-ajax'); ?></strong></p>
77
  <p>
@@ -82,7 +91,7 @@ class LoginWithAjaxWidget extends WP_Widget {
82
  <input id="<?php echo $this->get_field_id('profile_link'); ?>" name="<?php echo $this->get_field_name('profile_link'); ?>" type="checkbox" value="1" <?php echo !empty($instance['profile_link']) ? 'checked="checked"':""; ?> />
83
  <label for="<?php echo $this->get_field_id('profile_link'); ?>"><?php esc_html_e('Show profile link?', 'login-with-ajax'); ?> </label>
84
  </p>
85
- <?php
86
  }
87
 
88
  }
53
  ?>
54
  <?php if( count(LoginWithAjax::$templates) > 1 ): ?>
55
  <p>
56
+ <label for="<?php echo $this->get_field_id('template'); ?>"><?php esc_html_e('Template', 'login-with-ajax'); ?>:</label>
57
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
58
  <?php foreach( array_keys(LoginWithAjax::$templates) as $template ): ?>
59
+ <option <?php echo ($instance['template'] == $template) ? 'selected="selected"':""; ?>><?php echo esc_html($template); ?></option>
60
  <?php endforeach; ?>
61
  </select>
62
  </p>
67
  <input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" />
68
  </p>
69
  <p>
70
+ <label for="<?php echo $this->get_field_id('remember'); ?>"><?php esc_html_e('Show Recover Password?', 'login-with-ajax'); ?> </label>
71
+ <select class="widefat" id="<?php echo $this->get_field_id('remember'); ?>" name="<?php echo $this->get_field_name('remember'); ?>" >
72
+ <option value="0" <?php echo ($instance['remember'] == 0) ? 'selected="selected"':""; ?>><?php echo esc_html_e('No Link','login-with-ajax'); ?></option>
73
+ <option value="1" <?php echo ($instance['remember'] == 1) ? 'selected="selected"':""; ?>><?php echo esc_html_e('Show link with AJAX form','login-with-ajax'); ?></option>
74
+ <option value="2" <?php echo ($instance['remember'] == 2) ? 'selected="selected"':""; ?>><?php echo esc_html_e('Show direct link','login-with-ajax'); ?></option>
75
+ </select>
76
+ </p>
77
+ <p>
78
+ <label for="<?php echo $this->get_field_id('registration'); ?>"><?php esc_html_e('AJAX Registration?', 'login-with-ajax'); ?> </label>
79
+ <select class="widefat" id="<?php echo $this->get_field_id('registration'); ?>" name="<?php echo $this->get_field_name('registration'); ?>" >
80
+ <option value="0" <?php echo ($instance['registration'] == 0) ? 'selected="selected"':""; ?>><?php echo esc_html_e('No Link','login-with-ajax'); ?></option>
81
+ <option value="1" <?php echo ($instance['registration'] == 1) ? 'selected="selected"':""; ?>><?php echo esc_html_e('Show link with AJAX form','login-with-ajax'); ?></option>
82
+ <option value="2" <?php echo ($instance['registration'] == 2) ? 'selected="selected"':""; ?>><?php echo esc_html_e('Show direct link','login-with-ajax'); ?></option>
83
+ </select>
84
  </p>
85
  <p><strong><?php esc_html_e('Logged Out','login-with-ajax'); ?></strong></p>
86
  <p>
91
  <input id="<?php echo $this->get_field_id('profile_link'); ?>" name="<?php echo $this->get_field_name('profile_link'); ?>" type="checkbox" value="1" <?php echo !empty($instance['profile_link']) ? 'checked="checked"':""; ?> />
92
  <label for="<?php echo $this->get_field_id('profile_link'); ?>"><?php esc_html_e('Show profile link?', 'login-with-ajax'); ?> </label>
93
  </p>
94
+ <?php
95
  }
96
 
97
  }
login-with-ajax.php CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Login With Ajax
4
  Plugin URI: http://wordpress.org/extend/plugins/login-with-ajax/
5
  Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
6
  Author: Marcus Sykes
7
- Version: 3.1.5
8
  Author URI: http://msyk.es
9
  Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
10
  Text Domain: login-with-ajax
11
 
12
- Copyright (C) 2015 NetWebLogic LLC
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
@@ -266,7 +266,7 @@ class LoginWithAjax {
266
 
267
  public static function getRegisterLink(){
268
  $register_link = false;
269
- if ( function_exists('bp_get_signup_page') ) { //Buddypress
270
  $register_link = bp_get_signup_page();
271
  }elseif ( is_multisite() ) { //MS
272
  $register_link = site_url('wp-signup.php', 'login');
@@ -535,5 +535,4 @@ if( !empty($lwa_data['notification_override']) ){
535
  function login_with_ajax($atts = ''){
536
  if( !array($atts) ) $atts = shortcode_parse_atts($atts);
537
  echo LoginWithAjax::shortcode($atts);
538
- }
539
- ?>
4
  Plugin URI: http://wordpress.org/extend/plugins/login-with-ajax/
5
  Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
6
  Author: Marcus Sykes
7
+ Version: 3.1.6
8
  Author URI: http://msyk.es
9
  Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
10
  Text Domain: login-with-ajax
11
 
12
+ Copyright (C) 2016 NetWebLogic LLC
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
266
 
267
  public static function getRegisterLink(){
268
  $register_link = false;
269
+ if ( function_exists('bp_get_signup_page') && (empty($_REQUEST['action']) || ($_REQUEST['action'] != 'deactivate' && $_REQUEST['action'] != 'deactivate-selected')) ) { //Buddypress
270
  $register_link = bp_get_signup_page();
271
  }elseif ( is_multisite() ) { //MS
272
  $register_link = site_url('wp-signup.php', 'login');
535
  function login_with_ajax($atts = ''){
536
  if( !array($atts) ) $atts = shortcode_parse_atts($atts);
537
  echo LoginWithAjax::shortcode($atts);
538
+ }
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: netweblogic
3
  Tags: login, ajax, ajax login, registration, redirect redirect, buddypress, multi site, sidebar, admin, widget
4
  Requires at least: 3.7
5
- Tested up to: 4.3.1
6
- Stable tag: 3.1.5
7
  License: GPLv2 or later
8
 
9
  Add smooth ajax login/registration effects and choose where users get redirected upon log in/out. Supports SSL, MultiSite, and BuddyPress.
@@ -24,7 +24,7 @@ Some of the features:
24
  * WPML - Language-specific redirects
25
  * SSL-compatible
26
  * Fallback mechanism, will still work on javascript-disabled browsers
27
- * Compatible with Wordpress, MultiSite and BuddyPress
28
  * Customizable, upgrade-safe widgets
29
  * shortcode and template tags available
30
  * Widget specific option to show link to profile page
@@ -56,7 +56,7 @@ Here's a list of currently translated languages. Translations that have been sub
56
  * Japanese - [Ryuei Sasaki](http://ryueisasaki.com/)
57
  * Limburgish - Anonymous
58
  * Lithuanian - [Gera Dieta](http://www.kulinare.lt/)
59
- * Persian - [Mohammad Hosein Ameri](http://khandoon.ir/)
60
  * Polish - Ryszard Rysz
61
  * Portuguese (Brazil) - Humberto S. Ribeiro, Diogo Goncalves, Fabiano Arruda
62
  * Romanian - Gabriel Berzescu
@@ -173,6 +173,14 @@ For further questions and answers (or to submit one yourself) go to our [http://
173
 
174
 
175
  == Changelog ==
 
 
 
 
 
 
 
 
176
  = 3.1.5 =
177
  * fixed 4.3 password update which now sends a link for user to set password instead
178
  * fixed login redirect issues when using shortcode and template tags
2
  Contributors: netweblogic
3
  Tags: login, ajax, ajax login, registration, redirect redirect, buddypress, multi site, sidebar, admin, widget
4
  Requires at least: 3.7
5
+ Tested up to: 4.7
6
+ Stable tag: 3.1.6
7
  License: GPLv2 or later
8
 
9
  Add smooth ajax login/registration effects and choose where users get redirected upon log in/out. Supports SSL, MultiSite, and BuddyPress.
24
  * WPML - Language-specific redirects
25
  * SSL-compatible
26
  * Fallback mechanism, will still work on javascript-disabled browsers
27
+ * Compatible with Wordpress, MultiSite, BuddyPress and many other plugins that alter the login/registration form (e.g. captcha plugins)
28
  * Customizable, upgrade-safe widgets
29
  * shortcode and template tags available
30
  * Widget specific option to show link to profile page
56
  * Japanese - [Ryuei Sasaki](http://ryueisasaki.com/)
57
  * Limburgish - Anonymous
58
  * Lithuanian - [Gera Dieta](http://www.kulinare.lt/)
59
+ * Persian - [Mohammad Hosein Ameri](http://khandoon.ir/), [Mohammad Akbari](http://www.mo-akbari.com)
60
  * Polish - Ryszard Rysz
61
  * Portuguese (Brazil) - Humberto S. Ribeiro, Diogo Goncalves, Fabiano Arruda
62
  * Romanian - Gabriel Berzescu
173
 
174
 
175
  == Changelog ==
176
+ = 3.1.6 =
177
+ * added Persian translation, thanks to Mohammad Akbari
178
+ * fixed PHP 7 deprecated construct error
179
+ * fixed deprecated get_currentuserinfo function PHP warning
180
+ * added option to show direct links (no AJAX forms) to password recovery and registration forms
181
+ * fixed missing text domain in widget/modal/widget_out.php
182
+ * fixed server errors when deactivating BuddyPress whilst LWA is active
183
+
184
  = 3.1.5 =
185
  * fixed 4.3 password update which now sends a link for user to set password instead
186
  * fixed login redirect issues when using shortcode and template tags
widget/default/widget_in.php CHANGED
@@ -7,14 +7,13 @@
7
  ?>
8
  <div class="lwa">
9
  <?php
10
- global $current_user;
11
- get_currentuserinfo();
12
  ?>
13
- <span class="lwa-title-sub" style="display:none"><?php echo __( 'Hi', 'login-with-ajax' ) . " " . $current_user->display_name ?></span>
14
  <table>
15
  <tr>
16
  <td class="avatar lwa-avatar">
17
- <?php echo get_avatar( $current_user->ID, $size = '50' ); ?>
18
  </td>
19
  <td class="lwa-info">
20
  <?php
7
  ?>
8
  <div class="lwa">
9
  <?php
10
+ $user = wp_get_current_user();
 
11
  ?>
12
+ <span class="lwa-title-sub" style="display:none"><?php echo __( 'Hi', 'login-with-ajax' ) . " " . $user->display_name ?></span>
13
  <table>
14
  <tr>
15
  <td class="avatar lwa-avatar">
16
+ <?php echo get_avatar( $user->ID, $size = '50' ); ?>
17
  </td>
18
  <td class="lwa-info">
19
  <?php
widget/default/widget_out.php CHANGED
@@ -51,7 +51,7 @@
51
  </table>
52
  </div>
53
  </form>
54
- <?php if( !empty($lwa_data['remember']) ): ?>
55
  <form class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember) ?>" method="post" style="display:none;">
56
  <div>
57
  <span class="lwa-status"></span>
@@ -79,7 +79,7 @@
79
  </div>
80
  </form>
81
  <?php endif; ?>
82
- <?php if( get_option('users_can_register') && !empty($lwa_data['registration']) ): ?>
83
  <div class="lwa-register lwa-register-default lwa-modal" style="display:none;">
84
  <h4><?php esc_html_e('Register For This Site','login-with-ajax') ?></h4>
85
  <p><em class="lwa-register-tip"><?php esc_html_e('A password will be e-mailed to you.','login-with-ajax') ?></em></p>
51
  </table>
52
  </div>
53
  </form>
54
+ <?php if( !empty($lwa_data['remember']) && $lwa_data['remember'] == 1 ): ?>
55
  <form class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember) ?>" method="post" style="display:none;">
56
  <div>
57
  <span class="lwa-status"></span>
79
  </div>
80
  </form>
81
  <?php endif; ?>
82
+ <?php if( get_option('users_can_register') && !empty($lwa_data['registration']) && $lwa_data['registration'] == 1 ): ?>
83
  <div class="lwa-register lwa-register-default lwa-modal" style="display:none;">
84
  <h4><?php esc_html_e('Register For This Site','login-with-ajax') ?></h4>
85
  <p><em class="lwa-register-tip"><?php esc_html_e('A password will be e-mailed to you.','login-with-ajax') ?></em></p>
widget/divs-only/widget_out.php CHANGED
@@ -43,7 +43,7 @@
43
  <?php endif; ?>
44
  </div>
45
  </form>
46
- <?php if( !empty($lwa_data['remember']) ): ?>
47
  <form class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember); ?>" method="post" style="display:none;">
48
  <p><strong><?php esc_html_e("Forgotten Password",'login-with-ajax'); ?></strong></p>
49
  <div class="lwa-remember-email">
@@ -58,7 +58,7 @@
58
  </div>
59
  </form>
60
  <?php endif; ?>
61
- <?php if ( $lwa_data['registration'] == true ) : ?>
62
  <div class="lwa-register" style="display:none;" >
63
  <form class="registerform" action="<?php echo esc_attr(LoginWithAjax::$url_register); ?>" method="post">
64
  <p><strong><?php esc_html_e('Register For This Site','login-with-ajax'); ?></strong></p>
43
  <?php endif; ?>
44
  </div>
45
  </form>
46
+ <?php if( !empty($lwa_data['remember']) && $lwa_data['remember'] == 1 ): ?>
47
  <form class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember); ?>" method="post" style="display:none;">
48
  <p><strong><?php esc_html_e("Forgotten Password",'login-with-ajax'); ?></strong></p>
49
  <div class="lwa-remember-email">
58
  </div>
59
  </form>
60
  <?php endif; ?>
61
+ <?php if ( get_option('users_can_register') && !empty($lwa_data['registration']) && $lwa_data['registration'] == 1 ) : ?>
62
  <div class="lwa-register" style="display:none;" >
63
  <form class="registerform" action="<?php echo esc_attr(LoginWithAjax::$url_register); ?>" method="post">
64
  <p><strong><?php esc_html_e('Register For This Site','login-with-ajax'); ?></strong></p>
widget/login-with-ajax.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(a){function e(e,i){a(".lwa-loading").remove(),i=a(i),e.result===!0?i.attr("class","lwa-status lwa-status-confirm").html(e.message):e.result===!1?(i.attr("class","lwa-status lwa-status-invalid").html(e.error),i.find("a").click(function(e){e.preventDefault(),a(this).parents(".lwa").find("form.lwa-remember").show("slow")})):i.attr("class","lwa-status lwa-status-invalid").html("An error has occured. Please try again.")}a("#LoginWithAjax").length>0&&(a("#LoginWithAjax").addClass("lwa"),a("#LoginWithAjax_Status").addClass("lwa-status"),a("#LoginWithAjax_Register").addClass("lwa-register"),a("#LoginWithAjax_Remember").addClass("lwa-remember"),a("#LoginWithAjax_Links_Remember").addClass("lwa-links-remember"),a("#LoginWithAjax_Links_Remember_Cancel").addClass("lwa-links-remember-cancel"),a("#LoginWithAjax_Form").addClass("lwa-form")),a("form.lwa-form, form.lwa-remember, div.lwa-register form").submit(function(i){i.preventDefault();var n=a(this),t=n.find(".lwa-status");0==t.length&&(t=a('<span class="lwa-status"></span>'),n.prepend(t));var l=n.find(".lwa-ajax");0==l.length&&(l=a('<input class="lwa-ajax" name="lwa" type="hidden" value="1" />'),n.prepend(l)),a('<div class="lwa-loading"></div>').prependTo(n);var s=n.attr("action");"undefined"!=typeof LWA&&(s=LWA.ajaxurl),a.ajax({type:"POST",url:s,data:n.serialize(),success:function(i){e(i,t),a(document).trigger("lwa_"+i.action,[i,n])},error:function(){e({},t)},dataType:"jsonp"})}),a(document).on("lwa_login",function(e,i,n){i.result===!0&&(null!=i.widget?a.get(i.widget,function(e){var i=a(e);n.parent(".lwa").replaceWith(i);var t=i.find(".").show(),l=i.parent().find(".lwa-title");l.replaceWith(t)}):null==i.redirect?window.location.reload():window.location=i.redirect)}),a(".lwa-modal").each(function(e,i){var n=a(i);n.parents(".lwa").data("modal",n),a("body").append(a('<div class="lwa"></div>').append(n))}),a(document).on("click",".lwa-links-modal",function(e){e.preventDefault(),target=a(this).parents(".lwa").data("modal"),target.reveal({modalbgclass:"lwa-modal-bg",dismissmodalclass:"lwa-modal-close"})}),a(".lwa-links-register-inline").click(function(e){e.preventDefault(),a(this).parents(".lwa").find(".lwa-register").show("slow")}),a(".lwa-links-register-inline-cancel").click(function(e){e.preventDefault(),a(this).parents(".lwa-register").hide("slow")}),a(document).on("click",".lwa-links-remember",function(e){e.preventDefault(),a(this).parents(".lwa").find(".lwa-remember").show("slow")}),a(document).on("click",".lwa-links-remember-cancel",function(e){e.preventDefault(),a(this).parents(".lwa-remember").hide("slow")})}),function(a){a("a[data-reveal-id]").on("click",function(e){e.preventDefault();var i=a(this).attr("data-reveal-id");a("#"+i).reveal(a(this).data())}),a.fn.reveal=function(e){var i={animation:"fadeAndPop",animationspeed:300,closeonbackgroundclick:!0,dismissmodalclass:"close-reveal-modal",modalbgclass:"reveal-modal-bg"},e=a.extend({},i,e);return this.each(function(){function i(){o=!1}function n(){o=!0}var t=a(this),l=parseInt(t.css("top")),s=t.height()+l,o=!1,d=a("."+e.modalbgclass);0==d.length&&(d=a('<div class="'+e.modalbgclass+'" />').insertAfter(t)),0==t.find("."+e.dismissmodalclass).length&&t.append('<a class="'+e.dismissmodalclass+'">&#215;</a>'),t.bind("reveal:open",function(){d.unbind("click.modalEvent"),a("."+e.dismissmodalclass).unbind("click.modalEvent"),o||(n(),"fadeAndPop"==e.animation&&(t.css({top:a(document).scrollTop()-s,opacity:0,visibility:"visible",display:"block"}),d.fadeIn(e.animationspeed/2),t.delay(e.animationspeed/2).animate({top:a(document).scrollTop()+l+"px",opacity:1},e.animationspeed,i())),"fade"==e.animation&&(t.css({opacity:0,visibility:"visible",top:a(document).scrollTop()+l,display:"block"}),d.fadeIn(e.animationspeed/2),t.delay(e.animationspeed/2).animate({opacity:1},e.animationspeed,i())),"none"==e.animation&&(t.css({visibility:"visible",top:a(document).scrollTop()+l,display:"block"}),d.css({display:"block"}),i())),t.unbind("reveal:open")}),t.bind("reveal:close",function(){o||(n(),"fadeAndPop"==e.animation&&(d.delay(e.animationspeed).fadeOut(e.animationspeed),t.animate({top:a(document).scrollTop()-s+"px",opacity:0},e.animationspeed/2,function(){t.css({top:l,opacity:1,visibility:"hidden"}),i()})),"fade"==e.animation&&(d.delay(e.animationspeed).fadeOut(e.animationspeed),t.animate({opacity:0},e.animationspeed,function(){t.css({opacity:1,visibility:"hidden",top:l}),i()})),"none"==e.animation&&(t.css({visibility:"hidden",top:l}),d.css({display:"none"}))),t.unbind("reveal:close")}),t.trigger("reveal:open");a("."+e.dismissmodalclass).bind("click.modalEvent",function(){t.trigger("reveal:close")});e.closeonbackgroundclick&&(d.css({cursor:"pointer"}),d.bind("click.modalEvent",function(){t.trigger("reveal:close")})),a("body").keyup(function(a){27===a.which&&t.trigger("reveal:close")})})}}(jQuery);
1
+ jQuery(document).ready(function(a){function e(e,i){a(".lwa-loading").remove(),i=a(i),e.result===!0?i.attr("class","lwa-status lwa-status-confirm").html(e.message):e.result===!1?(i.attr("class","lwa-status lwa-status-invalid").html(e.error),i.find("a").click(function(e){var i=a(this).parents(".lwa").find("form.lwa-remember");i.length>0&&(e.preventDefault(),i.show("slow"))})):i.attr("class","lwa-status lwa-status-invalid").html("An error has occured. Please try again.")}a("#LoginWithAjax").length>0&&(a("#LoginWithAjax").addClass("lwa"),a("#LoginWithAjax_Status").addClass("lwa-status"),a("#LoginWithAjax_Register").addClass("lwa-register"),a("#LoginWithAjax_Remember").addClass("lwa-remember"),a("#LoginWithAjax_Links_Remember").addClass("lwa-links-remember"),a("#LoginWithAjax_Links_Remember_Cancel").addClass("lwa-links-remember-cancel"),a("#LoginWithAjax_Form").addClass("lwa-form")),a("form.lwa-form, form.lwa-remember, div.lwa-register form").submit(function(i){i.preventDefault();var n=a(this),t=n.find(".lwa-status");0==t.length&&(t=a('<span class="lwa-status"></span>'),n.prepend(t));var l=n.find(".lwa-ajax");0==l.length&&(l=a('<input class="lwa-ajax" name="lwa" type="hidden" value="1" />'),n.prepend(l)),a('<div class="lwa-loading"></div>').prependTo(n);var s=n.attr("action");"undefined"!=typeof LWA&&(s=LWA.ajaxurl),a.ajax({type:"POST",url:s,data:n.serialize(),success:function(i){e(i,t),a(document).trigger("lwa_"+i.action,[i,n])},error:function(){e({},t)},dataType:"jsonp"})}),a(document).on("lwa_login",function(e,i,n){i.result===!0&&(null!=i.widget?a.get(i.widget,function(e){var i=a(e);n.parent(".lwa").replaceWith(i);var t=i.find(".").show(),l=i.parent().find(".lwa-title");l.replaceWith(t)}):null==i.redirect?window.location.reload():window.location=i.redirect)}),a(".lwa-modal").each(function(e,i){var n=a(i);n.parents(".lwa").data("modal",n),a("body").append(a('<div class="lwa"></div>').append(n))}),a(document).on("click",".lwa-links-modal",function(e){var i=a(this).parents(".lwa").data("modal");"undefined"!=typeof i&&i.length>0&&(e.preventDefault(),i.reveal({modalbgclass:"lwa-modal-bg",dismissmodalclass:"lwa-modal-close"}))}),a(".lwa-links-register-inline").click(function(e){var i=a(this).parents(".lwa").find(".lwa-register");i.length>0&&(e.preventDefault(),i.show("slow"),a(this).parents(".lwa").find(".lwa-remember").hide("slow"))}),a(".lwa-links-register-inline-cancel").click(function(e){e.preventDefault(),a(this).parents(".lwa-register").hide("slow")}),a(document).on("click",".lwa-links-remember",function(e){var i=a(this).parents(".lwa").find(".lwa-remember");i.length>0&&(e.preventDefault(),i.show("slow"),a(this).parents(".lwa").find(".lwa-register").hide("slow"))}),a(document).on("click",".lwa-links-remember-cancel",function(e){e.preventDefault(),a(this).parents(".lwa-remember").hide("slow")})}),function(a){a("a[data-reveal-id]").on("click",function(e){e.preventDefault();var i=a(this).attr("data-reveal-id");a("#"+i).reveal(a(this).data())}),a.fn.reveal=function(e){var i={animation:"fadeAndPop",animationspeed:300,closeonbackgroundclick:!0,dismissmodalclass:"close-reveal-modal",modalbgclass:"reveal-modal-bg"},e=a.extend({},i,e);return this.each(function(){function i(){o=!1}function n(){o=!0}var t=a(this),l=parseInt(t.css("top")),s=t.height()+l,o=!1,d=a("."+e.modalbgclass);0==d.length&&(d=a('<div class="'+e.modalbgclass+'" />').insertAfter(t)),0==t.find("."+e.dismissmodalclass).length&&t.append('<a class="'+e.dismissmodalclass+'">&#215;</a>'),t.bind("reveal:open",function(){d.unbind("click.modalEvent"),a("."+e.dismissmodalclass).unbind("click.modalEvent"),o||(n(),"fadeAndPop"==e.animation&&(t.css({top:a(document).scrollTop()-s,opacity:0,visibility:"visible",display:"block"}),d.fadeIn(e.animationspeed/2),t.delay(e.animationspeed/2).animate({top:a(document).scrollTop()+l+"px",opacity:1},e.animationspeed,i())),"fade"==e.animation&&(t.css({opacity:0,visibility:"visible",top:a(document).scrollTop()+l,display:"block"}),d.fadeIn(e.animationspeed/2),t.delay(e.animationspeed/2).animate({opacity:1},e.animationspeed,i())),"none"==e.animation&&(t.css({visibility:"visible",top:a(document).scrollTop()+l,display:"block"}),d.css({display:"block"}),i())),t.unbind("reveal:open")}),t.bind("reveal:close",function(){o||(n(),"fadeAndPop"==e.animation&&(d.delay(e.animationspeed).fadeOut(e.animationspeed),t.animate({top:a(document).scrollTop()-s+"px",opacity:0},e.animationspeed/2,function(){t.css({top:l,opacity:1,visibility:"hidden"}),i()})),"fade"==e.animation&&(d.delay(e.animationspeed).fadeOut(e.animationspeed),t.animate({opacity:0},e.animationspeed,function(){t.css({opacity:1,visibility:"hidden",top:l}),i()})),"none"==e.animation&&(t.css({visibility:"hidden",top:l}),d.css({display:"none"}))),t.unbind("reveal:close")}),t.trigger("reveal:open");a("."+e.dismissmodalclass).bind("click.modalEvent",function(){t.trigger("reveal:close")});e.closeonbackgroundclick&&(d.css({cursor:"pointer"}),d.bind("click.modalEvent",function(){t.trigger("reveal:close")})),a("body").keyup(function(a){27===a.which&&t.trigger("reveal:close")})})}}(jQuery);
widget/login-with-ajax.source.js CHANGED
@@ -76,17 +76,23 @@ jQuery(document).ready( function($) {
76
  $('body').append($('<div class="lwa"></div>').append(modal));
77
  });
78
  $(document).on('click', ".lwa-links-modal", function(e){
79
- e.preventDefault();
80
- target = $(this).parents('.lwa').data('modal');
81
- target.reveal({
82
- modalbgclass: 'lwa-modal-bg',
83
- dismissmodalclass: 'lwa-modal-close' //the class of a button or element that will close an open modal
84
- });
 
 
85
  });
86
  //Register
87
  $('.lwa-links-register-inline').click(function(event){
88
- event.preventDefault();
89
- $(this).parents('.lwa').find('.lwa-register').show('slow');
 
 
 
 
90
  });
91
  $('.lwa-links-register-inline-cancel').click(function(event){
92
  event.preventDefault();
@@ -96,8 +102,12 @@ jQuery(document).ready( function($) {
96
  //Visual Effects for hidden items
97
  //Remember
98
  $(document).on('click', '.lwa-links-remember', function(event){
99
- event.preventDefault();
100
- $(this).parents('.lwa').find('.lwa-remember').show('slow');
 
 
 
 
101
  });
102
  $(document).on('click', '.lwa-links-remember-cancel', function(event){
103
  event.preventDefault();
@@ -115,9 +125,12 @@ jQuery(document).ready( function($) {
115
  //Login Failed
116
  statusElement.attr('class','lwa-status lwa-status-invalid').html(data.error); //modify status content
117
  //We assume a link in the status message is for a forgotten password
118
- statusElement.find('a').click(function(event){
119
- event.preventDefault();
120
- $(this).parents('.lwa').find('form.lwa-remember').show('slow');
 
 
 
121
  });
122
  }else{
123
  //If there already is an error element, replace text contents, otherwise create a new one and insert it
76
  $('body').append($('<div class="lwa"></div>').append(modal));
77
  });
78
  $(document).on('click', ".lwa-links-modal", function(e){
79
+ var target = $(this).parents('.lwa').data('modal');
80
+ if( typeof target != 'undefined' && target.length > 0 ){
81
+ e.preventDefault();
82
+ target.reveal({
83
+ modalbgclass: 'lwa-modal-bg',
84
+ dismissmodalclass: 'lwa-modal-close' //the class of a button or element that will close an open modal
85
+ });
86
+ }
87
  });
88
  //Register
89
  $('.lwa-links-register-inline').click(function(event){
90
+ var register_form = $(this).parents('.lwa').find('.lwa-register');
91
+ if( register_form.length > 0 ){
92
+ event.preventDefault();
93
+ register_form.show('slow');
94
+ $(this).parents('.lwa').find('.lwa-remember').hide('slow');
95
+ }
96
  });
97
  $('.lwa-links-register-inline-cancel').click(function(event){
98
  event.preventDefault();
102
  //Visual Effects for hidden items
103
  //Remember
104
  $(document).on('click', '.lwa-links-remember', function(event){
105
+ var remember_form = $(this).parents('.lwa').find('.lwa-remember');
106
+ if( remember_form.length > 0 ){
107
+ event.preventDefault();
108
+ remember_form.show('slow');
109
+ $(this).parents('.lwa').find('.lwa-register').hide('slow');
110
+ }
111
  });
112
  $(document).on('click', '.lwa-links-remember-cancel', function(event){
113
  event.preventDefault();
125
  //Login Failed
126
  statusElement.attr('class','lwa-status lwa-status-invalid').html(data.error); //modify status content
127
  //We assume a link in the status message is for a forgotten password
128
+ statusElement.find('a').click( function(event){
129
+ var remember_form = $(this).parents('.lwa').find('form.lwa-remember');
130
+ if( remember_form.length > 0 ){
131
+ event.preventDefault();
132
+ remember_form.show('slow');
133
+ }
134
  });
135
  }else{
136
  //If there already is an error element, replace text contents, otherwise create a new one and insert it
widget/modal/widget_out.php CHANGED
@@ -54,7 +54,7 @@
54
  </tr>
55
  </table>
56
  </form>
57
- <?php if( !empty($lwa_data['remember']) ): ?>
58
  <form name="lwa-remember" class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember); ?>" method="post" style="display:none;">
59
  <span class="lwa-status"></span>
60
  <table>
@@ -82,7 +82,7 @@
82
  </table>
83
  </form>
84
  <?php endif; ?>
85
- <?php if ( get_option('users_can_register') && !empty($lwa_data['registration']) ) : //Taken from wp-login.php ?>
86
  <div class="lwa-register" style="display:none;">
87
  <form name="lwa-register" action="<?php echo esc_attr(LoginWithAjax::$url_register); ?>" method="post">
88
  <span class="lwa-status"></span>
@@ -118,7 +118,7 @@
118
  </tr>
119
  <tr>
120
  <td>
121
- <?php esc_html_e('A password will be e-mailed to you.') ?><br />
122
  <input type="submit" value="<?php esc_attr_e('Register','login-with-ajax'); ?>" tabindex="100" />
123
  <a href="#" class="lwa-links-register-inline-cancel"><?php esc_html_e("Cancel",'login-with-ajax'); ?></a>
124
  <input type="hidden" name="login-with-ajax" value="register" />
54
  </tr>
55
  </table>
56
  </form>
57
+ <?php if( !empty($lwa_data['remember']) && $lwa_data['remember'] == 1 ): ?>
58
  <form name="lwa-remember" class="lwa-remember" action="<?php echo esc_attr(LoginWithAjax::$url_remember); ?>" method="post" style="display:none;">
59
  <span class="lwa-status"></span>
60
  <table>
82
  </table>
83
  </form>
84
  <?php endif; ?>
85
+ <?php if ( get_option('users_can_register') && !empty($lwa_data['registration']) && $lwa_data['registration'] == 1 ) : //Taken from wp-login.php ?>
86
  <div class="lwa-register" style="display:none;">
87
  <form name="lwa-register" action="<?php echo esc_attr(LoginWithAjax::$url_register); ?>" method="post">
88
  <span class="lwa-status"></span>
118
  </tr>
119
  <tr>
120
  <td>
121
+ <?php esc_html_e('A password will be e-mailed to you.', 'login-with-ajax'); ?><br />
122
  <input type="submit" value="<?php esc_attr_e('Register','login-with-ajax'); ?>" tabindex="100" />
123
  <a href="#" class="lwa-links-register-inline-cancel"><?php esc_html_e("Cancel",'login-with-ajax'); ?></a>
124
  <input type="hidden" name="login-with-ajax" value="register" />