Sidebar Login - Version 2.2.13

Version Description

  • Updated translations
  • Support for https and style.css
  • is_date fix
  • Added option for headings
  • Removed attribute_escape for esc_attr - therefore this version needs wp 2.8 and above
  • USER LEVEL option gone - replaced with USER CAPABILITY instead - use a capability like 'manage_options'
Download this release

Release Info

Developer jolley_small
Plugin Icon 128x128 Sidebar Login
Version 2.2.13
Comparing to
See all releases

Code changes from version 2.2.12 to 2.2.13

langs/sblogin-fa_IR.mo CHANGED
Binary file
langs/sblogin-fa_IR.po CHANGED
@@ -1,11 +1,11 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: sidebar_login\n"
4
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/sidebar-login\n"
5
- "POT-Creation-Date: 2010-05-16 10:55+0000\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: WP-Persian <info@wp-persian.com>\n"
8
- "Language-Team: Amir Beitollahi <amir@beitollahi.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,151 +13,132 @@ msgstr ""
13
  "X-Poedit-Country: IRAN, ISLAMIC REPUBLIC OF\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: _e;__\n"
 
 
16
 
17
- #. #-#-#-#-# plugin.pot (Sidebar Login 2.2.10) #-#-#-#-#
18
- #. Plugin Name of the plugin/theme
19
  #: sidebar-login.php:22
20
- #: sidebar-login.php:51
21
- #: sidebar-login.php:289
22
  msgid "Sidebar Login"
23
- msgstr "ورودی در ستون کناری"
24
 
25
- #: sidebar-login.php:40
26
  msgid "<p>Changes saved</p>"
27
  msgstr "<p>تغییرات ذخیره شد</p>"
28
 
29
- #: sidebar-login.php:56
30
  msgid "Login redirect URL"
31
  msgstr "آدرس هدایت کاربر بعد از ورود"
32
 
33
- #: sidebar-login.php:57
34
  msgid "Url to redirect the user to after login. Leave blank to use their current page."
35
  msgstr "آدرسی که کاربر پس از ورود به آنجا هدایت می‌شود. چنانچه چیزی ننویسید در همان صفحه‌ی جاری خواهد ماند."
36
 
37
- #: sidebar-login.php:60
38
  msgid "Logout redirect URL"
39
  msgstr "آدرس هدایت کاربر بعد از بیرون رفتن"
40
 
41
- #: sidebar-login.php:61
42
  msgid "Url to redirect the user to after logout. Leave blank to use their current page."
43
  msgstr "آدرسی که کاربر پس از بیرون رفتن به آنجا هدایت می‌شود. چنانچه چیزی ننویسید در همان صفحه‌ی جاری خواهد ماند. "
44
 
45
- #: sidebar-login.php:64
46
  msgid "Show Register Link"
47
  msgstr "نمایش پیوند نام‌نویسی"
48
 
49
- #: sidebar-login.php:66
50
- #: sidebar-login.php:73
 
51
  msgid "Yes"
52
  msgstr "بله"
53
 
54
- #: sidebar-login.php:67
55
- #: sidebar-login.php:74
 
56
  msgid "No"
57
  msgstr "خیر"
58
 
59
- #: sidebar-login.php:68
60
  msgid "User registrations must also be turned on for this to work ('Anyone can register' checkbox in settings)."
61
- msgstr "برای کار کردن این قابلیت، باید نام‌نویسی کاربران فعال شده باشد."
62
 
63
- #: sidebar-login.php:71
64
  msgid "Show Lost Password Link"
65
  msgstr "نمایش پیوند بازیابی رمز گمشده"
66
 
67
- #: sidebar-login.php:78
68
  msgid "Logged in links"
69
  msgstr "پیوندهای وارد شده"
70
 
71
- #: sidebar-login.php:79
72
  msgid "One link per line. Note: Logout link will always show regardless. Tip: Add <code>|true</code> after a link to only show it to admin users. If you add a further <code>|USER LEVEL</code> the link will only be shown to users with levels equal to or greater than those defined. See <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which will be replaced by the user info. Default:"
73
  msgstr "هر پیوند در یک خط جدا.<br />نکته: پیوند مربوط به بیرون رفتن همیشه نمایش داده خواهد شد.<br />راهنمایی: با افزودن <code>|true</code> به انتهای هر پیوند٬ آن پیوند فقط برای مدیران نمایش داده خواهد شد. همچنین با افزودن <code>|USER LEVEL</code>٬ آن پیوند به کاربرانی با رتبه‌ی برابر یا بیشتر از عدد مشخص‌شده نشان داده خواهد شد. بخش <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>نقش‌ها و توانایی‌ها</a>در مستندات وردپرس را برای اطلاعات بیشتر ببینید.<br />شما می‌توانید از متغیرهای <code>%USERNAME%</code> و <code>%USERID%</code> که با اطلاعات کاربری جایگزین خواهند شد استفاده کنید.<br />پیش‌فرض:"
74
 
75
- #: sidebar-login.php:83
 
 
 
 
76
  msgid "Save Changes"
77
  msgstr "ذخیره‌ی تغییرات"
78
 
79
- #: sidebar-login.php:114
80
  msgid "Login"
81
  msgstr "ورود"
82
 
83
- #: sidebar-login.php:115
84
  msgid "Welcome"
85
  msgstr "خوش آمدید"
86
 
87
- #: sidebar-login.php:116
88
  msgid "Username:"
89
  msgstr "شناسه:"
90
 
91
- #: sidebar-login.php:117
92
  msgid "Password:"
93
  msgstr "رمز:"
94
 
95
- #: sidebar-login.php:118
96
  msgid "Remember me"
97
  msgstr "مرا به خاطر بسپار"
98
 
99
- #: sidebar-login.php:119
100
  msgid "Register"
101
  msgstr "نام‌نویسی"
102
 
103
- #: sidebar-login.php:120
104
  msgid "Password Lost and Found"
105
  msgstr "گم شدن و پیدا کردن رمز"
106
 
107
- #: sidebar-login.php:121
108
  msgid "Lost your password?"
109
  msgstr "رمزتان را گم کرده‌اید؟"
110
 
111
- #: sidebar-login.php:122
112
  msgid "Logout"
113
  msgstr "بیرون رفتن"
114
 
115
- #: sidebar-login.php:188
116
  msgid "<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."
117
- msgstr "کوکی‌ها از کار افتاده‌اند یا مرورگر شما از کوکی‌ها پشتیبانی نمی‌کند. شما باید برای به کارگیری وردپرس <a href='http://www.google.com/cookies.html'>کوکی‌ها را فعال کنید</a> "
118
 
119
- #: sidebar-login.php:227
120
  msgid "Or login using an <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
121
  msgstr "ورود با استفاده از <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
122
 
123
- #: sidebar-login.php:288
124
  msgid "Sidebar Login."
125
  msgstr "Sidebar Login."
126
 
127
- #: sidebar-login.php:318
128
  msgid "Dashboard"
129
  msgstr "پیش‌خوان"
130
 
131
- #: sidebar-login.php:318
132
  msgid "Profile"
133
  msgstr "شناسنامه"
134
 
135
- #: sidebar-login.php:368
136
  msgid "<strong>ERROR</strong>: Please enter a username & password."
137
  msgstr "<strong>خطا</strong>: لطفا یک شناسه و رمز وارد کنید."
138
 
139
- #. Plugin URI of the plugin/theme
140
- msgid "http://wordpress.org/extend/plugins/sidebar-login/"
141
- msgstr "http://wordpress.org/extend/plugins/sidebar-login/"
142
-
143
- #. Description of the plugin/theme
144
- msgid "Adds a sidebar widget to let users login"
145
- msgstr "ابزارکی برای قرار دادن فرم ورود٬ در ستون کناری اضافه می‌کند"
146
-
147
- #. Author of the plugin/theme
148
- msgid "Mike Jolley"
149
- msgstr ""
150
-
151
- #. Author URI of the plugin/theme
152
- msgid "http://blue-anvil.com"
153
- msgstr ""
154
-
155
- #~ msgid ""
156
- #~ "One link per line. Note: Logout link will always show regardless. Tip: "
157
- #~ "Add <code>|true</code> after a link to only show it to admin users. "
158
- #~ "Default: <br/>&lt;a href=\""
159
- #~ msgstr ""
160
- #~ "یک پیوند در هر خط. توجه: پیوند خروج همواره نمایش داده می شود. نکته: "
161
- #~ "افزودن <code>|true</code> بعد از هر پیوند یعنی آن پیوند فقط برای مدیر "
162
- #~ "کاربران نمایش داده می شود. پیش فرض: <br/>&lt;a href=\""
163
-
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: sidebar_login\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-07-18 11:21+0330\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Amir Beitollahi <amir.beitollahi@gmail.com>\n"
8
+ "Language-Team: Amir Beitollahi <amir.beitollahi@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-Country: IRAN, ISLAMIC REPUBLIC OF\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: _e;__\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
 
 
 
19
  #: sidebar-login.php:22
20
+ #: sidebar-login.php:53
21
+ #: sidebar-login.php:299
22
  msgid "Sidebar Login"
23
+ msgstr "فرم ورود در ستون کناری"
24
 
25
+ #: sidebar-login.php:41
26
  msgid "<p>Changes saved</p>"
27
  msgstr "<p>تغییرات ذخیره شد</p>"
28
 
29
+ #: sidebar-login.php:58
30
  msgid "Login redirect URL"
31
  msgstr "آدرس هدایت کاربر بعد از ورود"
32
 
33
+ #: sidebar-login.php:59
34
  msgid "Url to redirect the user to after login. Leave blank to use their current page."
35
  msgstr "آدرسی که کاربر پس از ورود به آنجا هدایت می‌شود. چنانچه چیزی ننویسید در همان صفحه‌ی جاری خواهد ماند."
36
 
37
+ #: sidebar-login.php:62
38
  msgid "Logout redirect URL"
39
  msgstr "آدرس هدایت کاربر بعد از بیرون رفتن"
40
 
41
+ #: sidebar-login.php:63
42
  msgid "Url to redirect the user to after logout. Leave blank to use their current page."
43
  msgstr "آدرسی که کاربر پس از بیرون رفتن به آنجا هدایت می‌شود. چنانچه چیزی ننویسید در همان صفحه‌ی جاری خواهد ماند. "
44
 
45
+ #: sidebar-login.php:66
46
  msgid "Show Register Link"
47
  msgstr "نمایش پیوند نام‌نویسی"
48
 
49
+ #: sidebar-login.php:68
50
+ #: sidebar-login.php:75
51
+ #: sidebar-login.php:87
52
  msgid "Yes"
53
  msgstr "بله"
54
 
55
+ #: sidebar-login.php:69
56
+ #: sidebar-login.php:76
57
+ #: sidebar-login.php:88
58
  msgid "No"
59
  msgstr "خیر"
60
 
61
+ #: sidebar-login.php:70
62
  msgid "User registrations must also be turned on for this to work ('Anyone can register' checkbox in settings)."
63
+ msgstr "برای کار کردن این قابلیت، باید نام‌نویسی کاربران فعال شده باشد('هر کسی می تواند نام نویسی کند' گزینه ای در تنظیمات)."
64
 
65
+ #: sidebar-login.php:73
66
  msgid "Show Lost Password Link"
67
  msgstr "نمایش پیوند بازیابی رمز گمشده"
68
 
69
+ #: sidebar-login.php:80
70
  msgid "Logged in links"
71
  msgstr "پیوندهای وارد شده"
72
 
73
+ #: sidebar-login.php:81
74
  msgid "One link per line. Note: Logout link will always show regardless. Tip: Add <code>|true</code> after a link to only show it to admin users. If you add a further <code>|USER LEVEL</code> the link will only be shown to users with levels equal to or greater than those defined. See <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which will be replaced by the user info. Default:"
75
  msgstr "هر پیوند در یک خط جدا.<br />نکته: پیوند مربوط به بیرون رفتن همیشه نمایش داده خواهد شد.<br />راهنمایی: با افزودن <code>|true</code> به انتهای هر پیوند٬ آن پیوند فقط برای مدیران نمایش داده خواهد شد. همچنین با افزودن <code>|USER LEVEL</code>٬ آن پیوند به کاربرانی با رتبه‌ی برابر یا بیشتر از عدد مشخص‌شده نشان داده خواهد شد. بخش <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>نقش‌ها و توانایی‌ها</a>در مستندات وردپرس را برای اطلاعات بیشتر ببینید.<br />شما می‌توانید از متغیرهای <code>%USERNAME%</code> و <code>%USERID%</code> که با اطلاعات کاربری جایگزین خواهند شد استفاده کنید.<br />پیش‌فرض:"
76
 
77
+ #: sidebar-login.php:85
78
+ msgid "Show Logged in Avatar"
79
+ msgstr "نمایش آواتار شناسه ی وارد شده"
80
+
81
+ #: sidebar-login.php:93
82
  msgid "Save Changes"
83
  msgstr "ذخیره‌ی تغییرات"
84
 
85
+ #: sidebar-login.php:124
86
  msgid "Login"
87
  msgstr "ورود"
88
 
89
+ #: sidebar-login.php:125
90
  msgid "Welcome"
91
  msgstr "خوش آمدید"
92
 
93
+ #: sidebar-login.php:126
94
  msgid "Username:"
95
  msgstr "شناسه:"
96
 
97
+ #: sidebar-login.php:127
98
  msgid "Password:"
99
  msgstr "رمز:"
100
 
101
+ #: sidebar-login.php:128
102
  msgid "Remember me"
103
  msgstr "مرا به خاطر بسپار"
104
 
105
+ #: sidebar-login.php:129
106
  msgid "Register"
107
  msgstr "نام‌نویسی"
108
 
109
+ #: sidebar-login.php:130
110
  msgid "Password Lost and Found"
111
  msgstr "گم شدن و پیدا کردن رمز"
112
 
113
+ #: sidebar-login.php:131
114
  msgid "Lost your password?"
115
  msgstr "رمزتان را گم کرده‌اید؟"
116
 
117
+ #: sidebar-login.php:132
118
  msgid "Logout"
119
  msgstr "بیرون رفتن"
120
 
121
+ #: sidebar-login.php:198
122
  msgid "<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."
123
+ msgstr "<strong>خطا</strong>: کوکی‌ها از کار افتاده‌اند یا مرورگر شما از کوکی‌ها پشتیبانی نمی‌کند. شما باید برای به کارگیری وردپرس <a href='http://www.google.com/cookies.html'>کوکی‌ها را فعال کنید</a> "
124
 
125
+ #: sidebar-login.php:237
126
  msgid "Or login using an <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
127
  msgstr "ورود با استفاده از <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
128
 
129
+ #: sidebar-login.php:298
130
  msgid "Sidebar Login."
131
  msgstr "Sidebar Login."
132
 
133
+ #: sidebar-login.php:328
134
  msgid "Dashboard"
135
  msgstr "پیش‌خوان"
136
 
137
+ #: sidebar-login.php:328
138
  msgid "Profile"
139
  msgstr "شناسنامه"
140
 
141
+ #: sidebar-login.php:381
142
  msgid "<strong>ERROR</strong>: Please enter a username & password."
143
  msgstr "<strong>خطا</strong>: لطفا یک شناسه و رمز وارد کنید."
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
langs/sblogin-hr_HR.mo ADDED
Binary file
langs/sblogin-hr_HR.po ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin Sidebar Login 2.2.10 by Mike Jolley.
2
+ # Copyright (C) 2010 Mike Jolley
3
+ # This file is distributed under the same license as the Sidebar Login package.
4
+ #
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
6
+ # Žarko <zarko.pintar@gmail.com>, 2010.
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: Sidebar Login 2.2.10\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/sidebar-login\n"
11
+ "POT-Creation-Date: 2010-05-16 10:55+0000\n"
12
+ "PO-Revision-Date: 2010-08-24 22:43+0200\n"
13
+ "Last-Translator: Žarko <zarko.pintar@gmail.com>\n"
14
+ "Language-Team: Croatian <kde-i18n-doc@kde.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "X-Generator: Lokalize 1.1\n"
19
+ "Language: hr\n"
20
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
21
+
22
+ #. #-#-#-#-# plugin.pot (Sidebar Login 2.2.10) #-#-#-#-#
23
+ #. Plugin Name of the plugin/theme
24
+ #: sidebar-login.php:22 sidebar-login.php:51 sidebar-login.php:289
25
+ msgid "Sidebar Login"
26
+ msgstr "Sidebar Login"
27
+
28
+ #: sidebar-login.php:40
29
+ msgid "<p>Changes saved</p>"
30
+ msgstr "<p>Promjene su spremljene</p>"
31
+
32
+ #: sidebar-login.php:56
33
+ msgid "Login redirect URL"
34
+ msgstr "URL preusmjeravanja kod prijave"
35
+
36
+ #: sidebar-login.php:57
37
+ msgid ""
38
+ "Url to redirect the user to after login. Leave blank to use their current "
39
+ "page."
40
+ msgstr ""
41
+ "URL na koji će biti preusmjeren korisnik nakon prijave. Ostaviti prazno za "
42
+ "za korištenje trenutne stranice."
43
+
44
+ #: sidebar-login.php:60
45
+ msgid "Logout redirect URL"
46
+ msgstr "URL preusmjeravanja kod odjave"
47
+
48
+ #: sidebar-login.php:61
49
+ msgid ""
50
+ "Url to redirect the user to after logout. Leave blank to use their current "
51
+ "page."
52
+ msgstr ""
53
+ "URL na koji će biti preusmjeren korisnik nakon odjave. Ostaviti prazno za "
54
+ "za korištenje trenutne stranice."
55
+
56
+ #: sidebar-login.php:64
57
+ msgid "Show Register Link"
58
+ msgstr "Prikaži registracijsku poveznicu"
59
+
60
+ #: sidebar-login.php:66 sidebar-login.php:73
61
+ msgid "Yes"
62
+ msgstr "Da"
63
+
64
+ #: sidebar-login.php:67 sidebar-login.php:74
65
+ msgid "No"
66
+ msgstr "Ne"
67
+
68
+ #: sidebar-login.php:68
69
+ msgid ""
70
+ "User registrations must also be turned on for this to work ('Anyone can "
71
+ "register' checkbox in settings)."
72
+ msgstr ""
73
+ "Registracija korisnika mora biti uključena da bi ovo radilo ('Svi se mogu registrirati' odabirni okvir u postavkama)."
74
+
75
+ #: sidebar-login.php:71
76
+ msgid "Show Lost Password Link"
77
+ msgstr "Prikaži poveznicu izgubljene zaporke"
78
+
79
+ #: sidebar-login.php:78
80
+ msgid "Logged in links"
81
+ msgstr "Poveznice prijava"
82
+
83
+ #: sidebar-login.php:79
84
+ msgid ""
85
+ "One link per line. Note: Logout link will always show regardless. Tip: Add "
86
+ "<code>|true</code> after a link to only show it to admin users. If you add a "
87
+ "further <code>|USER LEVEL</code> the link will only be shown to users with "
88
+ "levels equal to or greater than those defined. See <a href='http://codex."
89
+ "wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress."
90
+ "org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> "
91
+ "You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which "
92
+ "will be replaced by the user info. Default:"
93
+ msgstr ""
94
+ "Jedna poveznica po liniji. Bilješka: Odjavna poveznice će uvijek biti prikazana. Savjet: dodati "
95
+ "<code>|true</code> nakon poveznice za prikazati samo admin korisnicima.Ako dodate daljni kod "
96
+ "<code>|USER LEVEL</code> poveznica će biti prikazana samo korisnicima sa jednakom ili većom "
97
+ "korisničkom razinom. Pogledati <a href='http://codex."
98
+ "wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress."
99
+ "org/Roles_and_Capabilities</a> za više informacija o ulogama i mogućnostima.<br/> "
100
+ "Također možete unjeti <code>%USERNAME%</code> i <code>%USERID%</code> koji će biti "
101
+ "zamjenjeni sa podacima o korisniku. Zadano:"
102
+
103
+ #: sidebar-login.php:83
104
+ msgid "Save Changes"
105
+ msgstr "Spremi promjene"
106
+
107
+ #: sidebar-login.php:114
108
+ msgid "Login"
109
+ msgstr "Prijava"
110
+
111
+ #: sidebar-login.php:115
112
+ msgid "Welcome"
113
+ msgstr "Pozdrav,"
114
+
115
+ #: sidebar-login.php:116
116
+ msgid "Username:"
117
+ msgstr "Korisničko ime:"
118
+
119
+ #: sidebar-login.php:117
120
+ msgid "Password:"
121
+ msgstr "Zaporka:"
122
+
123
+ #: sidebar-login.php:118
124
+ msgid "Remember me"
125
+ msgstr "Zapamti me"
126
+
127
+ #: sidebar-login.php:119
128
+ msgid "Register"
129
+ msgstr "Registracija"
130
+
131
+ #: sidebar-login.php:120
132
+ msgid "Password Lost and Found"
133
+ msgstr "Zaporka izgubljeno/nađeno"
134
+
135
+ #: sidebar-login.php:121
136
+ msgid "Lost your password?"
137
+ msgstr "Izgubili ste zaporku?"
138
+
139
+ #: sidebar-login.php:122
140
+ msgid "Logout"
141
+ msgstr "Odjava"
142
+
143
+ #: sidebar-login.php:188
144
+ msgid ""
145
+ "<strong>ERROR</strong>: Cookies are blocked or not supported by your "
146
+ "browser. You must <a href='http://www.google.com/cookies.html'>enable "
147
+ "cookies</a> to use WordPress."
148
+ msgstr ""
149
+ "<strong>POGREŠKA</strong>: Kolačići su blokirani ili nisu podržani od strane "
150
+ "vašeg preglednika. Morate <a href='http://www.google.com/cookies.html'>omogućiti"
151
+ "kolačiće</a> za korištenje WordPress-a."
152
+
153
+ #: sidebar-login.php:227
154
+ msgid ""
155
+ "Or login using an <a href=\"http://openid.net/what/\" title=\"Learn about "
156
+ "OpenID\">OpenID</a>"
157
+ msgstr ""
158
+ "Ili prijava koristeći <a href=\"http://openid.net/what/\" title=\"Learn about "
159
+ "OpenID\">OpenID</a>"
160
+
161
+ #: sidebar-login.php:288
162
+ msgid "Sidebar Login."
163
+ msgstr "Sidebar Login"
164
+
165
+ #: sidebar-login.php:318
166
+ msgid "Dashboard"
167
+ msgstr "Nadzorna ploča"
168
+
169
+ #: sidebar-login.php:318
170
+ msgid "Profile"
171
+ msgstr "Profil"
172
+
173
+ #: sidebar-login.php:368
174
+ msgid "<strong>ERROR</strong>: Please enter a username & password."
175
+ msgstr "<strong>POGREŠKA</strong>: Molim, unesite korisničko ime i zaporku.."
176
+
177
+ #. Plugin URI of the plugin/theme
178
+ msgid "http://wordpress.org/extend/plugins/sidebar-login/"
179
+ msgstr "http://wordpress.org/extend/plugins/sidebar-login/"
180
+
181
+ #. Description of the plugin/theme
182
+ msgid "Adds a sidebar widget to let users login"
183
+ msgstr "Dodaj bočni widget kako bi se korisnici prijavili"
184
+
185
+ #. Author of the plugin/theme
186
+ msgid "Mike Jolley"
187
+ msgstr "Mike Jolley"
188
+
189
+ #. Author URI of the plugin/theme
190
+ msgid "http://blue-anvil.com"
191
+ msgstr "http://blue-anvil.com"
192
+
193
+
langs/sblogin-ru_RU.mo ADDED
Binary file
langs/sblogin-ru_RU.po ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Sidebar Login Russian Support\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-08-04 01:18+0300\n"
6
+ "PO-Revision-Date: 2010-08-04 01:18+0300\n"
7
+ "Last-Translator: boris <_boris_sv@mail.ru>\n"
8
+ "Language-Team: Borje <b.portu@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e;_c\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2\n"
15
+ "X-Poedit-Language: Russian\n"
16
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
17
+ "X-Poedit-SourceCharset: utf-8\n"
18
+ "X-Poedit-SearchPath-0: ..\n"
19
+ "X-Poedit-SearchPath-1: .\n"
20
+
21
+ #: ../sidebar-login.php:22
22
+ #: ../sidebar-login.php:53
23
+ #: ../sidebar-login.php:299
24
+ msgid "Sidebar Login"
25
+ msgstr "Sidebar Login"
26
+
27
+ #: ../sidebar-login.php:41
28
+ msgid "<p>Changes saved</p>"
29
+ msgstr "<p>Изменения сохранены</p>"
30
+
31
+ #: ../sidebar-login.php:58
32
+ msgid "Login redirect URL"
33
+ msgstr "Перенаправление на URL после входа"
34
+
35
+ #: ../sidebar-login.php:59
36
+ msgid "Url to redirect the user to after login. Leave blank to use their current page."
37
+ msgstr "URL, на который перейдёт пользователь после входа. Оставьте пустым, чтобы пользователь возвращался на текущую страницу."
38
+
39
+ #: ../sidebar-login.php:62
40
+ msgid "Logout redirect URL"
41
+ msgstr "Перенаправление на URL после выхода"
42
+
43
+ #: ../sidebar-login.php:63
44
+ msgid "Url to redirect the user to after logout. Leave blank to use their current page."
45
+ msgstr "URL, на который перейдёт пользователь после выхода. Оставьте пустым, чтобы пользователь возвращался на текущую страницу."
46
+
47
+ #: ../sidebar-login.php:66
48
+ msgid "Show Register Link"
49
+ msgstr "Показывать ссылку \"Регистрация\""
50
+
51
+ #: ../sidebar-login.php:68
52
+ #: ../sidebar-login.php:75
53
+ #: ../sidebar-login.php:87
54
+ msgid "Yes"
55
+ msgstr "Да"
56
+
57
+ #: ../sidebar-login.php:69
58
+ #: ../sidebar-login.php:76
59
+ #: ../sidebar-login.php:88
60
+ msgid "No"
61
+ msgstr "Нет"
62
+
63
+ #: ../sidebar-login.php:70
64
+ msgid "User registrations must also be turned on for this to work ('Anyone can register' checkbox in settings)."
65
+ msgstr "Регистрация пользователей должна быть также включена, чтобы это работало. (Параметры --> Общие --> опция \"Любой может зарегистрироваться\")."
66
+
67
+ #: ../sidebar-login.php:73
68
+ msgid "Show Lost Password Link"
69
+ msgstr "Показывать ссылку для восстановления пароля"
70
+
71
+ #: ../sidebar-login.php:80
72
+ msgid "Logged in links"
73
+ msgstr "Ссылки, отображаемые после входа"
74
+
75
+ #: ../sidebar-login.php:81
76
+ msgid "One link per line. Note: Logout link will always show regardless. Tip: Add <code>|true</code> after a link to only show it to admin users. If you add a further <code>|USER LEVEL</code> the link will only be shown to users with levels equal to or greater than those defined. See <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which will be replaced by the user info. Default:"
77
+ msgstr "Одна ссылка на каждую строку. Примечание: Ссылка \"Выйти\" будет отображаться в любом случае. Подсказка: добавьте <code>|true</code> после ссылки, которую нужно показывать только пользователям с административными привилегиями. Если вы добавите <code>|USER LEVEL</code>, то ссылка будет показана только пользователям с уровнем прав, равным или большим, чем вы укажите. Смотрите <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> для получения более полной информации о ролях и привилегиях. <br/> Также вы можете использовать <code>%USERNAME%</code> и <code>%USERID%</code>, что будет заменено информацией о пользователе. По умолчанию: "
78
+
79
+ #: ../sidebar-login.php:85
80
+ msgid "Show Logged in Avatar"
81
+ msgstr "Показывать аватар после входа"
82
+
83
+ #: ../sidebar-login.php:93
84
+ msgid "Save Changes"
85
+ msgstr "Сохранить изменения"
86
+
87
+ #: ../sidebar-login.php:124
88
+ msgid "Login"
89
+ msgstr "Войти"
90
+
91
+ #: ../sidebar-login.php:125
92
+ msgid "Welcome"
93
+ msgstr "Добро пожаловать"
94
+
95
+ #: ../sidebar-login.php:126
96
+ msgid "Username:"
97
+ msgstr "Имя пользователя:"
98
+
99
+ #: ../sidebar-login.php:127
100
+ msgid "Password:"
101
+ msgstr "Пароль:"
102
+
103
+ #: ../sidebar-login.php:128
104
+ msgid "Remember me"
105
+ msgstr "Запомнить меня"
106
+
107
+ #: ../sidebar-login.php:129
108
+ msgid "Register"
109
+ msgstr "Регистрация"
110
+
111
+ #: ../sidebar-login.php:130
112
+ msgid "Password Lost and Found"
113
+ msgstr "Восстановление пароля"
114
+
115
+ #: ../sidebar-login.php:131
116
+ msgid "Lost your password?"
117
+ msgstr "Забыли пароль?"
118
+
119
+ #: ../sidebar-login.php:132
120
+ msgid "Logout"
121
+ msgstr "Выйти"
122
+
123
+ #: ../sidebar-login.php:198
124
+ msgid "<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."
125
+ msgstr "<strong>ОШИБКА</strong>: Cookies отключены или не поддерживаются вашим браузером. Вы должны <a href='http://www.google.de/cookies.html'>включить cookies</a>, чтобы использовать WordPress."
126
+
127
+ #: ../sidebar-login.php:237
128
+ msgid "Or login using an <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
129
+ msgstr "Или войдите, используя <a href=\"http://openid.net/what/\" title=\"Learn about OpenID\">OpenID</a>"
130
+
131
+ #: ../sidebar-login.php:298
132
+ msgid "Sidebar Login."
133
+ msgstr "Sidebar Login."
134
+
135
+ #: ../sidebar-login.php:328
136
+ msgid "Dashboard"
137
+ msgstr "Панель"
138
+
139
+ #: ../sidebar-login.php:328
140
+ msgid "Profile"
141
+ msgstr "Профиль"
142
+
143
+ #: ../sidebar-login.php:381
144
+ msgid "<strong>ERROR</strong>: Please enter a username & password."
145
+ msgstr "<strong>ОШИБКА</strong>: Пожалуйста, введите имя пользователя и пароль."
146
+
147
+ #~ msgid ""
148
+ #~ "One link per line. Note: Logout link will always show regardless. Tip: "
149
+ #~ "Add <code>|true</code> after a link to only show it to admin users. "
150
+ #~ "Default: <br/>&lt;a href=\""
151
+ #~ msgstr ""
152
+ #~ "Одна ссылка на каждую строку. Примечание: Ссылка \"Выйти\" будет "
153
+ #~ "отображаться в любом случае. Подсказка: добавьте <code>|true</code> после "
154
+ #~ "ссылки, которая должна отображаться для пользователей с административными "
155
+ #~ "привилегиями. По умолчанию: <br/>&lt;a href=\""
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: jolley_small
3
  Donate link: http://blue-anvil.com/archives/wordpress-sidebar-login-2-optimised-for-wordpress-26
4
  Tags: login, sidebar, widget, sidebar login, meta, form, register
5
- Requires at least: 2.5
6
  Tested up to: 3.0
7
- Stable tag: 2.2.12
8
 
9
  Adds a sidebar widget to let users login. Displayed links can be changed from the <a href="options-general.php?page=Sidebar%20Login">settings page</a>.
10
 
@@ -38,9 +38,11 @@ You can configure the plugin in <code>Admin > Appearance > Sidebar Login</code>
38
  * Icelandic translation by Hákon Ásgeirsson
39
  * Arabic translation by khalid
40
  * Turkish translation by Muzo B
41
- * Chinese translation by seven - http://www.anchuang.org
42
- * Persian by Gonahkar
43
  * Persian (farsi, alt) translation Amir Beitollahi
 
 
44
 
45
  Note: Those with more than one translation are found in langs/alternate/. To use the alternatives move them from /alternate/ into /langs/.
46
 
@@ -62,20 +64,28 @@ You will find a config page in tools/settings > Sidebar Login. Here you can set
62
  1. Login Form
63
  2. After Login
64
 
65
- == Changelog ==
66
-
67
- = 2.2.12 =
68
- * Headers sent bugs fixed
69
- * Avatar display option
70
-
71
- = 2.2.11 =
72
- * More/Updated langs
73
-
74
- = 2.2.10 =
75
- * Moved settings to appearance menu
76
- * Changed min user level to capilbilty 'manage_options'
77
- * Fixed menu showing in wordpress 3.0
78
- * Added %USERID% for links
 
 
 
 
 
 
 
 
79
  * Fixed white space bug for link options
80
 
81
  = 2.2.8 =
2
  Contributors: jolley_small
3
  Donate link: http://blue-anvil.com/archives/wordpress-sidebar-login-2-optimised-for-wordpress-26
4
  Tags: login, sidebar, widget, sidebar login, meta, form, register
5
+ Requires at least: 2.8
6
  Tested up to: 3.0
7
+ Stable tag: 2.2.13
8
 
9
  Adds a sidebar widget to let users login. Displayed links can be changed from the <a href="options-general.php?page=Sidebar%20Login">settings page</a>.
10
 
38
  * Icelandic translation by Hákon Ásgeirsson
39
  * Arabic translation by khalid
40
  * Turkish translation by Muzo B
41
+ * Chinese translation by seven - http://www.anchuang.org
42
+ * Persian by Gonahkar
43
  * Persian (farsi, alt) translation Amir Beitollahi
44
+ * Russian translation by Vorotnikov Boris
45
+ * Croatian translation by Zarko Pintar
46
 
47
  Note: Those with more than one translation are found in langs/alternate/. To use the alternatives move them from /alternate/ into /langs/.
48
 
64
  1. Login Form
65
  2. After Login
66
 
67
+ == Changelog ==
68
+
69
+ = 2.2.13 =
70
+ * Updated translations
71
+ * Support for https and style.css
72
+ * is_date fix
73
+ * Added option for headings
74
+ * Removed attribute_escape for esc_attr - therefore this version needs wp 2.8 and above
75
+ * USER LEVEL option gone - replaced with USER CAPABILITY instead - use a capability like 'manage_options'
76
+
77
+ = 2.2.12 =
78
+ * Headers sent bugs fixed
79
+ * Avatar display option
80
+
81
+ = 2.2.11 =
82
+ * More/Updated langs
83
+
84
+ = 2.2.10 =
85
+ * Moved settings to appearance menu
86
+ * Changed min user level to capilbilty 'manage_options'
87
+ * Fixed menu showing in wordpress 3.0
88
+ * Added %USERID% for links
89
  * Fixed white space bug for link options
90
 
91
  = 2.2.8 =
sidebar-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Sidebar Login
4
  Plugin URI: http://wordpress.org/extend/plugins/sidebar-login/
5
  Description: Adds a sidebar widget to let users login
6
- Version: 2.2.12
7
  Author: Mike Jolley
8
  Author URI: http://blue-anvil.com
9
  */
@@ -15,8 +15,8 @@ if ( ! defined( 'WP_CONTENT_URL' ) ) {
15
  }
16
  if ( ! defined( 'WP_PLUGIN_URL' ) ) define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
17
 
18
- load_plugin_textdomain('sblogin', WP_PLUGIN_URL.'/sidebar-login/langs/', 'sidebar-login/langs/');
19
-
20
 
21
  function wp_sidebarlogin_menu() {
22
  add_submenu_page('themes.php', __('Sidebar Login','sblogin'), __('Sidebar Login','sblogin'), 'manage_options','sidebar-login', 'wp_sidebarlogin_admin');
@@ -31,22 +31,28 @@ endif;
31
  function wp_sidebarlogin_admin(){
32
  // Update options
33
  if ($_POST) {
 
 
 
34
  update_option('sidebarlogin_login_redirect', stripslashes($_POST['sidebarlogin_login_redirect']));
35
  update_option('sidebarlogin_logout_redirect', stripslashes($_POST['sidebarlogin_logout_redirect']));
36
  update_option('sidebarlogin_register_link', stripslashes($_POST['sidebarlogin_register_link']));
37
  update_option('sidebarlogin_forgotton_link', stripslashes($_POST['sidebarlogin_forgotton_link']));
38
- update_option('sidebarlogin_logged_in_links', stripslashes($_POST['sidebarlogin_logged_in_links']));
39
  update_option('sidebar_login_avatar', stripslashes($_POST['sidebar_login_avatar']));
40
  echo '<div id="message"class="updated fade">';
41
  _e('<p>Changes saved</p>',"sblogin");
42
  echo '</div>';
43
  }
44
  // Get options
 
 
 
45
  $sidebarlogin_login_redirect = get_option('sidebarlogin_login_redirect');
46
  $sidebarlogin_logout_redirect = get_option('sidebarlogin_logout_redirect');
47
  $sidebarlogin_register_link = get_option('sidebarlogin_register_link');
48
  $sidebarlogin_forgotton_link = get_option('sidebarlogin_forgotton_link');
49
- $sidebarlogin_logged_in_links = get_option('sidebarlogin_logged_in_links');
50
  $sidebar_login_avatar = get_option('sidebar_login_avatar');
51
  ?>
52
  <div class="wrap alternate">
@@ -54,6 +60,16 @@ function wp_sidebarlogin_admin(){
54
  <br class="a_break" style="clear: both;"/>
55
  <form action="themes.php?page=sidebar-login" method="post">
56
  <table class="niceblue form-table">
 
 
 
 
 
 
 
 
 
 
57
  <tr>
58
  <th scope="col"><?php _e('Login redirect URL',"sblogin"); ?>:</th>
59
  <td><input type="text" name="sidebarlogin_login_redirect" value="<?php echo $sidebarlogin_login_redirect; ?>" /> <span class="setting-description"><?php _e('Url to redirect the user to after login. Leave blank to use their current page.','sblogin'); ?></span></td>
@@ -78,16 +94,16 @@ function wp_sidebarlogin_admin(){
78
  </tr>
79
  <tr>
80
  <th scope="col"><?php _e('Logged in links',"sblogin"); ?>:</th>
81
- <td><textarea name="sidebarlogin_logged_in_links" rows="3" cols="80" /><?php echo $sidebarlogin_logged_in_links; ?></textarea><br/><span class="setting-description"><?php _e("One link per line. Note: Logout link will always show regardless. Tip: Add <code>|true</code> after a link to only show it to admin users. If you add a further <code>|USER LEVEL</code> the link will only be shown to users with levels equal to or greater than those defined. See <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which will be replaced by the user info. Default:",'sblogin');
82
- echo '<br/>&lt;a href="'.get_bloginfo('wpurl').'/wp-admin/"&gt;Dashboard&lt;/a&gt;<br/>&lt;a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php"&gt;Profile&lt;/a&gt;'; ?></span></td>
83
- </tr>
84
- <tr>
85
- <th scope="col"><?php _e('Show Logged in Avatar',"sblogin"); ?>:</th>
86
- <td><select name="sidebar_login_avatar">
87
- <option <?php if ($sidebar_login_avatar=='yes') echo 'selected="selected"'; ?> value="yes"><?php _e('Yes','sblogin'); ?></option>
88
- <option <?php if ($sidebar_login_avatar=='no') echo 'selected="selected"'; ?> value="no"><?php _e('No','sblogin'); ?></option>
89
- </select></td>
90
- </tr>
91
 
92
  </table>
93
  <p class="submit"><input type="submit" value="<?php _e('Save Changes',"sblogin"); ?>" /></p>
@@ -121,8 +137,8 @@ function widget_wp_sidebarlogin($args) {
121
 
122
  /* To add more extend i.e when terms came from themes - suggested by dev.xiligroup.com */
123
  $defaults = array(
124
- 'thelogin'=>__('Login','sblogin'),
125
- 'thewelcome'=>__("Welcome",'sblogin'),
126
  'theusername'=>__('Username:','sblogin'),
127
  'thepassword'=>__('Password:','sblogin'),
128
  'theremember'=>__('Remember me','sblogin'),
@@ -143,7 +159,9 @@ function widget_wp_sidebarlogin($args) {
143
  global $current_user;
144
  get_currentuserinfo();
145
 
146
- echo $before_widget . $before_title .$thewelcome.' '.ucwords($current_user->display_name). $after_title;
 
 
147
 
148
  if (get_option('sidebar_login_avatar')=='yes') echo '<div class="avatar_container">'.get_avatar($user_ID, $size = '38').'</div>';
149
 
@@ -155,25 +173,25 @@ function widget_wp_sidebarlogin($args) {
155
 
156
  $links = explode("\n", $links);
157
  if (sizeof($links)>0)
158
- foreach ($links as $l) {
159
- $l = trim($l);
160
  if (!empty($l)) {
161
  $link = explode('|',$l);
162
- if (isset($link[2]) && is_numeric(intval(trim($link[2]))) && intval(trim($link[2])) <= 10 ) { // Thanks to John from http://www.area-europa.es/
163
- $req_level = intval(trim($link[2]));
164
- } else {
165
- $req_level=10;
166
  }
167
- if (isset($link[1]) && strtolower(trim($link[1]))=='true' && $level < $req_level) continue;
 
168
  else {
169
  // Parse %USERNAME%
170
  $link[0] = str_replace('%USERNAME%',$current_user->user_login,$link[0]);
171
- $link[0] = str_replace('%username%',$current_user->user_login,$link[0]);
172
- // Parse %USERID%
173
- $link[0] = str_replace('%USERID%',$current_user->ID,$link[0]);
174
  $link[0] = str_replace('%userid%',$current_user->ID,$link[0]);
175
  echo '<li class="page_item">'.$link[0].'</li>';
176
- }
177
  }
178
  }
179
 
@@ -184,6 +202,9 @@ function widget_wp_sidebarlogin($args) {
184
 
185
  } else {
186
  // User is NOT logged in!!!
 
 
 
187
  echo $before_widget . $before_title .'<span>'. $thelogin .'</span>' . $after_title;
188
  // Show any errors
189
  global $myerrors;
@@ -220,7 +241,7 @@ function widget_wp_sidebarlogin($args) {
220
  // login form
221
  echo '<form method="post" action="'.wp_sidebarlogin_current_url().'">';
222
  ?>
223
- <p><label for="user_login"><?php echo $theusername; ?></label><br/><input name="log" value="<?php if (isset($_POST['log'])) echo attribute_escape(stripslashes($_POST['log'])); ?>" class="mid" id="user_login" type="text" /></p>
224
  <p><label for="user_pass"><?php echo $thepassword; ?></label><br/><input name="pwd" class="mid" id="user_pass" type="password" /></p>
225
 
226
  <?php
@@ -321,19 +342,22 @@ if (class_exists('WP_Widget')) {
321
  function widget_wp_sidebarlogin_check() {
322
 
323
  // Add options - they may not exist
 
 
 
324
  add_option('sidebarlogin_login_redirect','');
325
  add_option('sidebarlogin_logout_redirect','');
326
  add_option('sidebarlogin_register_link','yes');
327
  add_option('sidebarlogin_forgotton_link','yes');
328
- add_option('sidebarlogin_logged_in_links', "<a href=\"".get_bloginfo('wpurl')."/wp-admin/\">".__('Dashboard','sblogin')."</a>\n<a href=\"".get_bloginfo('wpurl')."/wp-admin/profile.php\">".__('Profile','sblogin')."</a>");
329
  add_option('sidebar_login_avatar','yes');
330
-
331
  if (!headers_sent()) :
332
  // Set a cookie now to see if they are supported by the browser.
333
  setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
334
  if ( SITECOOKIEPATH != COOKIEPATH )
335
  setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
336
- endif;
337
 
338
  if (isset($_POST['sidebarlogin_posted'])) {
339
 
@@ -378,7 +402,7 @@ function widget_wp_sidebarlogin_check() {
378
  } elseif ($user) {
379
  $myerrors = $user;
380
  if ( empty($_POST['log']) && empty($_POST['pwd']) ) {
381
- $myerrors->add('empty_username', __('<strong>ERROR</strong>: Please enter a username & password.', 'sblogin'));
382
  }
383
  }
384
  }
@@ -424,7 +448,7 @@ function wp_sidebarlogin_current_url($url = '') {
424
 
425
  if ($day)
426
  {
427
- $pageURL = get_day_link( $year, $month, $day);
428
  }
429
  elseif ($monthnum)
430
  {
@@ -482,7 +506,10 @@ function wp_sidebarlogin_current_url($url = '') {
482
  endif;
483
 
484
  function wp_sidebarlogin_css() {
485
- $myStyleFile = WP_PLUGIN_URL . '/sidebar-login/style.css';
 
 
 
486
  wp_register_style('wp_sidebarlogin_css_styles', $myStyleFile);
487
  wp_enqueue_style( 'wp_sidebarlogin_css_styles');
488
  }
3
  Plugin Name: Sidebar Login
4
  Plugin URI: http://wordpress.org/extend/plugins/sidebar-login/
5
  Description: Adds a sidebar widget to let users login
6
+ Version: 2.2.13
7
  Author: Mike Jolley
8
  Author URI: http://blue-anvil.com
9
  */
15
  }
16
  if ( ! defined( 'WP_PLUGIN_URL' ) ) define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
17
 
18
+ load_plugin_textdomain('sblogin', WP_PLUGIN_URL.'/sidebar-login/langs/', 'sidebar-login/langs/');
19
+
20
 
21
  function wp_sidebarlogin_menu() {
22
  add_submenu_page('themes.php', __('Sidebar Login','sblogin'), __('Sidebar Login','sblogin'), 'manage_options','sidebar-login', 'wp_sidebarlogin_admin');
31
  function wp_sidebarlogin_admin(){
32
  // Update options
33
  if ($_POST) {
34
+ update_option('sidebarlogin_heading', stripslashes($_POST['sidebarlogin_heading']));
35
+ update_option('sidebarlogin_welcome_heading', stripslashes($_POST['sidebarlogin_welcome_heading']));
36
+
37
  update_option('sidebarlogin_login_redirect', stripslashes($_POST['sidebarlogin_login_redirect']));
38
  update_option('sidebarlogin_logout_redirect', stripslashes($_POST['sidebarlogin_logout_redirect']));
39
  update_option('sidebarlogin_register_link', stripslashes($_POST['sidebarlogin_register_link']));
40
  update_option('sidebarlogin_forgotton_link', stripslashes($_POST['sidebarlogin_forgotton_link']));
41
+ update_option('sidebarlogin_logged_in_links', stripslashes($_POST['sidebarlogin_logged_in_links']));
42
  update_option('sidebar_login_avatar', stripslashes($_POST['sidebar_login_avatar']));
43
  echo '<div id="message"class="updated fade">';
44
  _e('<p>Changes saved</p>',"sblogin");
45
  echo '</div>';
46
  }
47
  // Get options
48
+ $sidebarlogin_heading = get_option('sidebarlogin_heading');
49
+ $sidebarlogin_welcome_heading = get_option('sidebarlogin_welcome_heading');
50
+
51
  $sidebarlogin_login_redirect = get_option('sidebarlogin_login_redirect');
52
  $sidebarlogin_logout_redirect = get_option('sidebarlogin_logout_redirect');
53
  $sidebarlogin_register_link = get_option('sidebarlogin_register_link');
54
  $sidebarlogin_forgotton_link = get_option('sidebarlogin_forgotton_link');
55
+ $sidebarlogin_logged_in_links = get_option('sidebarlogin_logged_in_links');
56
  $sidebar_login_avatar = get_option('sidebar_login_avatar');
57
  ?>
58
  <div class="wrap alternate">
60
  <br class="a_break" style="clear: both;"/>
61
  <form action="themes.php?page=sidebar-login" method="post">
62
  <table class="niceblue form-table">
63
+
64
+ <tr>
65
+ <th scope="col"><?php _e('Logged out Heading',"sblogin"); ?>:</th>
66
+ <td><input type="text" name="sidebarlogin_heading" value="<?php echo $sidebarlogin_heading; ?>" /> <span class="setting-description"><?php _e('Widget heading.','sblogin'); ?></span></td>
67
+ </tr>
68
+ <tr>
69
+ <th scope="col"><?php _e('Logged in Heading',"sblogin"); ?>:</th>
70
+ <td><input type="text" name="sidebarlogin_welcome_heading" value="<?php echo $sidebarlogin_welcome_heading; ?>" /> <span class="setting-description"><?php _e('Heading for widget when user is logged in. <code>%username%</code> shows username.','sblogin'); ?></span></td>
71
+ </tr>
72
+
73
  <tr>
74
  <th scope="col"><?php _e('Login redirect URL',"sblogin"); ?>:</th>
75
  <td><input type="text" name="sidebarlogin_login_redirect" value="<?php echo $sidebarlogin_login_redirect; ?>" /> <span class="setting-description"><?php _e('Url to redirect the user to after login. Leave blank to use their current page.','sblogin'); ?></span></td>
94
  </tr>
95
  <tr>
96
  <th scope="col"><?php _e('Logged in links',"sblogin"); ?>:</th>
97
+ <td><textarea name="sidebarlogin_logged_in_links" rows="3" cols="80" /><?php echo $sidebarlogin_logged_in_links; ?></textarea><br/><span class="setting-description"><?php _e("One link per line. Note: Logout link will always show regardless. Tip: Add <code>|true</code> after a link to only show it to admin users. If you add a further <code>|USER CAPABILITY</code> the link will only be shown to users with that capability. See <a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>http://codex.wordpress.org/Roles_and_Capabilities</a> for more info on roles and Capabilities.<br/> You can also type <code>%USERNAME%</code> and <code>%USERID%</code> which will be replaced by the user info. Default:",'sblogin');
98
+ echo '<br/>&lt;a href="'.get_bloginfo('wpurl').'/wp-admin/"&gt;'. __('Dashboard', 'sblogin') .'&lt;/a&gt;<br/>&lt;a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php"&gt;'. __('Profile', 'sblogin') .'&lt;/a&gt;'; ?></span></td>
99
+ </tr>
100
+ <tr>
101
+ <th scope="col"><?php _e('Show Logged in Avatar',"sblogin"); ?>:</th>
102
+ <td><select name="sidebar_login_avatar">
103
+ <option <?php if ($sidebar_login_avatar=='yes') echo 'selected="selected"'; ?> value="yes"><?php _e('Yes','sblogin'); ?></option>
104
+ <option <?php if ($sidebar_login_avatar=='no') echo 'selected="selected"'; ?> value="no"><?php _e('No','sblogin'); ?></option>
105
+ </select></td>
106
+ </tr>
107
 
108
  </table>
109
  <p class="submit"><input type="submit" value="<?php _e('Save Changes',"sblogin"); ?>" /></p>
137
 
138
  /* To add more extend i.e when terms came from themes - suggested by dev.xiligroup.com */
139
  $defaults = array(
140
+ 'thelogin'=>'',
141
+ 'thewelcome'=>'',
142
  'theusername'=>__('Username:','sblogin'),
143
  'thepassword'=>__('Password:','sblogin'),
144
  'theremember'=>__('Remember me','sblogin'),
159
  global $current_user;
160
  get_currentuserinfo();
161
 
162
+ if (empty($thewelcome)) $thewelcome = str_replace('%username%',ucwords($current_user->display_name),get_option('sidebarlogin_welcome_heading'));
163
+
164
+ echo $before_widget . $before_title .$thewelcome. $after_title;
165
 
166
  if (get_option('sidebar_login_avatar')=='yes') echo '<div class="avatar_container">'.get_avatar($user_ID, $size = '38').'</div>';
167
 
173
 
174
  $links = explode("\n", $links);
175
  if (sizeof($links)>0)
176
+ foreach ($links as $l) {
177
+ $l = trim($l);
178
  if (!empty($l)) {
179
  $link = explode('|',$l);
180
+ if (isset($link[2])) {
181
+ $cap = trim($link[2]);
182
+ if (!current_user_can( $cap )) continue;
 
183
  }
184
+ // Admin check
185
+ if (isset($link[1]) && strtolower(trim($link[1]))=='true' && !current_user_can('manage_options') ) continue;
186
  else {
187
  // Parse %USERNAME%
188
  $link[0] = str_replace('%USERNAME%',$current_user->user_login,$link[0]);
189
+ $link[0] = str_replace('%username%',$current_user->user_login,$link[0]);
190
+ // Parse %USERID%
191
+ $link[0] = str_replace('%USERID%',$current_user->ID,$link[0]);
192
  $link[0] = str_replace('%userid%',$current_user->ID,$link[0]);
193
  echo '<li class="page_item">'.$link[0].'</li>';
194
+ }
195
  }
196
  }
197
 
202
 
203
  } else {
204
  // User is NOT logged in!!!
205
+
206
+ if (empty($thelogin)) $thelogin = get_option('sidebarlogin_heading');
207
+
208
  echo $before_widget . $before_title .'<span>'. $thelogin .'</span>' . $after_title;
209
  // Show any errors
210
  global $myerrors;
241
  // login form
242
  echo '<form method="post" action="'.wp_sidebarlogin_current_url().'">';
243
  ?>
244
+ <p><label for="user_login"><?php echo $theusername; ?></label><br/><input name="log" value="<?php if (isset($_POST['log'])) echo esc_attr(stripslashes($_POST['log'])); ?>" class="mid" id="user_login" type="text" /></p>
245
  <p><label for="user_pass"><?php echo $thepassword; ?></label><br/><input name="pwd" class="mid" id="user_pass" type="password" /></p>
246
 
247
  <?php
342
  function widget_wp_sidebarlogin_check() {
343
 
344
  // Add options - they may not exist
345
+ add_option('sidebarlogin_heading','Login');
346
+ add_option('sidebarlogin_welcome_heading','Welcome %username%');
347
+
348
  add_option('sidebarlogin_login_redirect','');
349
  add_option('sidebarlogin_logout_redirect','');
350
  add_option('sidebarlogin_register_link','yes');
351
  add_option('sidebarlogin_forgotton_link','yes');
352
+ add_option('sidebarlogin_logged_in_links', "<a href=\"".get_bloginfo('wpurl')."/wp-admin/\">".__('Dashboard','sblogin')."</a>\n<a href=\"".get_bloginfo('wpurl')."/wp-admin/profile.php\">".__('Profile','sblogin')."</a>");
353
  add_option('sidebar_login_avatar','yes');
354
+
355
  if (!headers_sent()) :
356
  // Set a cookie now to see if they are supported by the browser.
357
  setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
358
  if ( SITECOOKIEPATH != COOKIEPATH )
359
  setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
360
+ endif;
361
 
362
  if (isset($_POST['sidebarlogin_posted'])) {
363
 
402
  } elseif ($user) {
403
  $myerrors = $user;
404
  if ( empty($_POST['log']) && empty($_POST['pwd']) ) {
405
+ $myerrors->add('empty_username', __('<strong>ERROR</strong>: Please enter a username &amp; password.', 'sblogin'));
406
  }
407
  }
408
  }
448
 
449
  if ($day)
450
  {
451
+ $pageURL = get_day_link( $year, $monthnum, $day);
452
  }
453
  elseif ($monthnum)
454
  {
506
  endif;
507
 
508
  function wp_sidebarlogin_css() {
509
+ if (is_ssl())
510
+ $myStyleFile = str_replace('http://','https://', WP_PLUGIN_URL) . '/sidebar-login/style.css';
511
+ else
512
+ $myStyleFile = WP_PLUGIN_URL . '/sidebar-login/style.css';
513
  wp_register_style('wp_sidebarlogin_css_styles', $myStyleFile);
514
  wp_enqueue_style( 'wp_sidebarlogin_css_styles');
515
  }