Version Description
- SSL detection with nginx load-balancer fixed
- CDN path bug fixed
- Table width in administration area fixed
- Administration split to two pages
- Optionally disable Social Login in comments
- Optionally request email from user
- Optionally show social networks in user list
- Identity Provider "Windows Mail" added
- Identity Provider "Mail.ru" added
- Error message if no social networks selected
- Class for Social Login label added
- Small icons fixed
- API settings verification fixed
Download this release
Release Info
Developer | ClaudeSchlesser |
Plugin | Social Login |
Version | 3.0 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 3.0
- assets/css/admin.css +102 -87
- assets/css/site.css +94 -0
- assets/img/overlay.png +0 -0
- assets/img/provider_sprite_35_35.png +0 -0
- assets/js/admin.js +8 -3
- includes/admin.php +657 -441
- includes/communication.php +40 -13
- includes/settings.php +45 -39
- includes/toolbox.php +61 -5
- includes/user_interface.php +160 -16
- languages/oa_social_login-de_DE.mo +0 -0
- languages/oa_social_login-de_DE.po +265 -157
- oa-social-login.php +3 -2
- readme.txt +20 -2
assets/css/admin.css
CHANGED
@@ -1,124 +1,149 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
margin-bottom: 10px;
|
6 |
-
|
7 |
-
width: 628px;
|
8 |
}
|
9 |
|
10 |
-
.
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
padding-left: 20px;
|
17 |
}
|
18 |
|
19 |
-
|
20 |
background-color: #FFFFE0;
|
21 |
border-color: #E6DB55;
|
|
|
22 |
}
|
23 |
|
24 |
-
.
|
25 |
-
color: #
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
color: #
|
30 |
}
|
31 |
|
32 |
-
|
33 |
-
|
34 |
}
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
color: #000000;
|
40 |
-
font-size: 16px;
|
41 |
font-weight: bold;
|
42 |
-
line-height: 26px;
|
43 |
-
margin: 0 0 10px;
|
44 |
-
padding-bottom: 5px;
|
45 |
}
|
46 |
|
47 |
-
|
|
|
|
|
48 |
background-color: #efefef;
|
49 |
border: 1px solid #ccc;
|
50 |
-
|
51 |
-
margin-bottom: 30px;
|
52 |
}
|
53 |
|
54 |
-
.
|
|
|
55 |
border-color: #aaa;
|
56 |
}
|
57 |
|
58 |
-
.
|
59 |
-
font-weight: bold;
|
60 |
font-size: 13px;
|
61 |
font-weight: bold;
|
62 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
|
65 |
-
.
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
background-color: #ddd;
|
68 |
}
|
69 |
|
70 |
-
.
|
71 |
color: red;
|
72 |
background: url("../img/status_error.png") no-repeat scroll 0 50% #ddd;
|
73 |
padding-left: 25px;
|
74 |
font-weight: bold;
|
75 |
}
|
76 |
|
77 |
-
.
|
|
|
78 |
color: red;
|
79 |
font-weight: bold;
|
80 |
}
|
81 |
|
82 |
-
.
|
83 |
color: blue;
|
84 |
background: url("../img/status_loading.gif") no-repeat scroll 0 50% #ddd;
|
85 |
padding-left: 25px;
|
86 |
font-weight: bold;
|
87 |
}
|
88 |
|
89 |
-
.
|
90 |
color: #C70000;
|
91 |
}
|
92 |
|
93 |
-
.
|
94 |
color: green;
|
95 |
background: url("../img/status_ok.png") no-repeat scroll 0 50% #ddd;
|
96 |
padding-left: 25px;
|
97 |
font-weight: bold;
|
98 |
}
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
}
|
103 |
-
|
104 |
-
.oa_form_table tr.description td {
|
105 |
-
color: #0D5995;
|
106 |
-
}
|
107 |
-
|
108 |
-
.oa_form_table .row_even {
|
109 |
-
background-color: #fff;
|
110 |
-
color: #333 !important;
|
111 |
-
}
|
112 |
-
|
113 |
-
.oa_form_table .row_provider {
|
114 |
line-height: 35px;
|
115 |
}
|
116 |
|
117 |
-
.
|
118 |
margin: 0 10px 0 0;
|
119 |
}
|
120 |
|
121 |
-
.
|
122 |
background-image: url("../img/provider_sprite_35_35.png");
|
123 |
text-indent: -9999px;
|
124 |
height: 35px;
|
@@ -126,88 +151,78 @@
|
|
126 |
display: inline-block;
|
127 |
}
|
128 |
|
129 |
-
.
|
130 |
background-position: -2px -1px;
|
131 |
}
|
132 |
|
133 |
-
.
|
134 |
background-position: -39px -1px;
|
135 |
}
|
136 |
|
137 |
-
.
|
138 |
background-position: -76px -1px;
|
139 |
}
|
140 |
|
141 |
-
.
|
142 |
background-position: -113px -1px;
|
143 |
}
|
144 |
|
145 |
-
.
|
146 |
background-position: -150px -1px;
|
147 |
}
|
148 |
|
149 |
-
.
|
150 |
background-position: -187px -1px;
|
151 |
}
|
152 |
|
153 |
-
.
|
154 |
background-position: -224px -1px;
|
155 |
}
|
156 |
|
157 |
-
.
|
158 |
background-position: -298px -1px;
|
159 |
}
|
160 |
|
161 |
-
.
|
162 |
background-position: -372px -1px;
|
163 |
}
|
164 |
|
165 |
-
.
|
166 |
background-position: -409px -1px;
|
167 |
}
|
168 |
|
169 |
-
.
|
170 |
background-position: -520px -1px;
|
171 |
}
|
172 |
|
173 |
-
.
|
174 |
background-position: -631px -1px;
|
175 |
}
|
176 |
|
177 |
-
.
|
178 |
background-position: -668px -1px;
|
179 |
}
|
180 |
|
181 |
-
.
|
182 |
background-position: -705px -1px;
|
183 |
}
|
184 |
|
185 |
-
.
|
186 |
background-position: -742px -1px;
|
187 |
}
|
188 |
|
189 |
-
.
|
190 |
background-position: -779px -1px;
|
191 |
}
|
192 |
|
193 |
-
.
|
194 |
background-position: -816px -1px;
|
195 |
}
|
196 |
|
197 |
-
.
|
198 |
-
|
199 |
-
}
|
200 |
-
|
201 |
-
.oa_form_table_notice th {
|
202 |
-
background-color: #B7EF6F !important;
|
203 |
}
|
204 |
|
205 |
-
.
|
206 |
-
background-
|
207 |
-
color: #222;
|
208 |
-
font-weight: bold;
|
209 |
}
|
210 |
-
|
211 |
-
.oa_form_table_settings .row_even {
|
212 |
-
border-bottom: 1px dotted #BBBBBB;
|
213 |
-
}
|
1 |
+
/* ********************* Page Wrapper */
|
2 |
+
|
3 |
+
#oa_social_login_page {
|
4 |
+
width: 700px;
|
5 |
+
}
|
6 |
+
|
7 |
+
/* ********************* Boxes */
|
8 |
+
|
9 |
+
.oa_social_login_box {
|
10 |
+
border: 1px solid #CCCCCC;
|
11 |
margin-bottom: 10px;
|
12 |
+
padding: 10px 15px;
|
|
|
13 |
}
|
14 |
|
15 |
+
.oa_social_login_box .oa_social_login_box_title {
|
16 |
+
border-bottom: 1px solid #ccc;
|
17 |
+
font-size: 15px;
|
18 |
+
font-weight: bold;
|
19 |
+
padding-bottom: 5px;
|
20 |
+
}
|
21 |
+
|
22 |
+
#oa_social_login_box_status {
|
23 |
+
background-color: #E1EDFF;
|
24 |
}
|
25 |
|
26 |
+
#oa_social_login_box_notice {
|
27 |
+
background-color: #C4F095;
|
|
|
28 |
}
|
29 |
|
30 |
+
#oa_social_login_box_help {
|
31 |
background-color: #FFFFE0;
|
32 |
border-color: #E6DB55;
|
33 |
+
margin-bottom: 35px;
|
34 |
}
|
35 |
|
36 |
+
#oa_social_login_box_help .oa_social_login_box_title {
|
37 |
+
border-color: #E6DB55;
|
38 |
}
|
39 |
|
40 |
+
#oa_social_login_box_help a {
|
41 |
+
color: #111;
|
42 |
}
|
43 |
|
44 |
+
#oa_social_login_box_help a:hover {
|
45 |
+
color: #d54e21;
|
46 |
}
|
47 |
|
48 |
+
#oa_social_login_box_updated {
|
49 |
+
background-color: green;
|
50 |
+
color: #fff;
|
|
|
|
|
51 |
font-weight: bold;
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
+
/* ********************* Tables */
|
55 |
+
|
56 |
+
.oa_social_login_table {
|
57 |
background-color: #efefef;
|
58 |
border: 1px solid #ccc;
|
59 |
+
margin: 0 0 25px;
|
|
|
60 |
}
|
61 |
|
62 |
+
.oa_social_login_table textarea,
|
63 |
+
.oa_social_login_table input {
|
64 |
border-color: #aaa;
|
65 |
}
|
66 |
|
67 |
+
.oa_social_login_table tr.row_head th {
|
|
|
68 |
font-size: 13px;
|
69 |
font-weight: bold;
|
70 |
+
background-color: #3E687B;
|
71 |
+
color: #fff;
|
72 |
+
text-shadow: 0 1px 0 #333;
|
73 |
+
}
|
74 |
+
|
75 |
+
.oa_social_login_table tr.row_head th a {
|
76 |
+
color: #F1EE10;
|
77 |
+
}
|
78 |
+
|
79 |
+
.oa_social_login_table tr.row_head th a:hover {
|
80 |
+
color: #fff;
|
81 |
+
text-decoration: none;
|
82 |
+
}
|
83 |
+
|
84 |
+
.oa_social_login_table tr.row_odd,
|
85 |
+
.oa_social_login_table tr.row_odd td {
|
86 |
+
color: #222;
|
87 |
+
background-color: #eee;
|
88 |
+
border-bottom: 1px dotted #BBBBBB;
|
89 |
}
|
90 |
|
91 |
+
.oa_social_login_table tr.row_even,
|
92 |
+
.oa_social_login_table tr.row_even td {
|
93 |
+
color: #333;
|
94 |
+
background-color : #fff;
|
95 |
+
border-bottom: 1px dotted #bbb;
|
96 |
+
}
|
97 |
+
|
98 |
+
.oa_social_login_table tr td.row_multi {
|
99 |
+
border-right: 1px dotted #BBBBBB;
|
100 |
+
}
|
101 |
+
|
102 |
+
.oa_social_login_table tr.row_foot td {
|
103 |
background-color: #ddd;
|
104 |
}
|
105 |
|
106 |
+
.oa_social_login_table tr.row_foot .error_message {
|
107 |
color: red;
|
108 |
background: url("../img/status_error.png") no-repeat scroll 0 50% #ddd;
|
109 |
padding-left: 25px;
|
110 |
font-weight: bold;
|
111 |
}
|
112 |
|
113 |
+
.oa_social_login_table tr.row_foot .error_message,
|
114 |
+
.oa_social_login_table tr.row_foot .error_message a {
|
115 |
color: red;
|
116 |
font-weight: bold;
|
117 |
}
|
118 |
|
119 |
+
.oa_social_login_table tr.row_foot .working_message {
|
120 |
color: blue;
|
121 |
background: url("../img/status_loading.gif") no-repeat scroll 0 50% #ddd;
|
122 |
padding-left: 25px;
|
123 |
font-weight: bold;
|
124 |
}
|
125 |
|
126 |
+
.oa_social_login_table tr.row_foot .error_message a:hover {
|
127 |
color: #C70000;
|
128 |
}
|
129 |
|
130 |
+
.oa_social_login_table tr.row_foot .success_message {
|
131 |
color: green;
|
132 |
background: url("../img/status_ok.png") no-repeat scroll 0 50% #ddd;
|
133 |
padding-left: 25px;
|
134 |
font-weight: bold;
|
135 |
}
|
136 |
|
137 |
+
/* ********************* Providers */
|
138 |
+
.oa_social_login_table tr.row_provider td {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
line-height: 35px;
|
140 |
}
|
141 |
|
142 |
+
.oa_social_login_table tr.row_provider td .oa_social_login_provider {
|
143 |
margin: 0 10px 0 0;
|
144 |
}
|
145 |
|
146 |
+
.oa_social_login_provider {
|
147 |
background-image: url("../img/provider_sprite_35_35.png");
|
148 |
text-indent: -9999px;
|
149 |
height: 35px;
|
151 |
display: inline-block;
|
152 |
}
|
153 |
|
154 |
+
.oa_social_login_provider.oa_social_login_provider_aol {
|
155 |
background-position: -2px -1px;
|
156 |
}
|
157 |
|
158 |
+
.oa_social_login_provider.oa_social_login_provider_blogger {
|
159 |
background-position: -39px -1px;
|
160 |
}
|
161 |
|
162 |
+
.oa_social_login_provider.oa_social_login_provider_facebook {
|
163 |
background-position: -76px -1px;
|
164 |
}
|
165 |
|
166 |
+
.oa_social_login_provider.oa_social_login_provider_foursquare {
|
167 |
background-position: -113px -1px;
|
168 |
}
|
169 |
|
170 |
+
.oa_social_login_provider.oa_social_login_provider_google {
|
171 |
background-position: -150px -1px;
|
172 |
}
|
173 |
|
174 |
+
.oa_social_login_provider.oa_social_login_provider_hyves {
|
175 |
background-position: -187px -1px;
|
176 |
}
|
177 |
|
178 |
+
.oa_social_login_provider.oa_social_login_provider_linkedin {
|
179 |
background-position: -224px -1px;
|
180 |
}
|
181 |
|
182 |
+
.oa_social_login_provider.oa_social_login_provider_livejournal {
|
183 |
background-position: -298px -1px;
|
184 |
}
|
185 |
|
186 |
+
.oa_social_login_provider.oa_social_login_provider_myspace {
|
187 |
background-position: -372px -1px;
|
188 |
}
|
189 |
|
190 |
+
.oa_social_login_provider.oa_social_login_provider_openid {
|
191 |
background-position: -409px -1px;
|
192 |
}
|
193 |
|
194 |
+
.oa_social_login_provider.oa_social_login_provider_twitter {
|
195 |
background-position: -520px -1px;
|
196 |
}
|
197 |
|
198 |
+
.oa_social_login_provider.oa_social_login_provider_vkontakte {
|
199 |
background-position: -631px -1px;
|
200 |
}
|
201 |
|
202 |
+
.oa_social_login_provider.oa_social_login_provider_wordpress {
|
203 |
background-position: -668px -1px;
|
204 |
}
|
205 |
|
206 |
+
.oa_social_login_provider.oa_social_login_provider_yahoo {
|
207 |
background-position: -705px -1px;
|
208 |
}
|
209 |
|
210 |
+
.oa_social_login_provider.oa_social_login_provider_paypal {
|
211 |
background-position: -742px -1px;
|
212 |
}
|
213 |
|
214 |
+
.oa_social_login_provider.oa_social_login_provider_stackexchange {
|
215 |
background-position: -779px -1px;
|
216 |
}
|
217 |
|
218 |
+
.oa_social_login_provider.oa_social_login_provider_steam {
|
219 |
background-position: -816px -1px;
|
220 |
}
|
221 |
|
222 |
+
.oa_social_login_provider.oa_social_login_provider_windowslive {
|
223 |
+
background-position: -261px -1px;
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
|
226 |
+
.oa_social_login_provider.oa_social_login_provider_mailru {
|
227 |
+
background-position: -853px -1px;
|
|
|
|
|
228 |
}
|
|
|
|
|
|
|
|
assets/css/site.css
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#oa_social_login_overlay {
|
2 |
+
background-color: transparent;
|
3 |
+
background-image: url("../img/overlay.png");
|
4 |
+
background-position: 0 0;
|
5 |
+
background-repeat: repeat;
|
6 |
+
height: 100%;
|
7 |
+
left: 0;
|
8 |
+
overflow: auto;
|
9 |
+
position: fixed;
|
10 |
+
text-align: center;
|
11 |
+
top: 0;
|
12 |
+
width: 100%;
|
13 |
+
z-index: 999995;
|
14 |
+
}
|
15 |
+
|
16 |
+
#oa_social_login_modal {
|
17 |
+
left: 50%;
|
18 |
+
margin-left: -200px;
|
19 |
+
position: fixed;
|
20 |
+
text-align: left;
|
21 |
+
top: 25%;
|
22 |
+
width: 400px;
|
23 |
+
z-index: 999996;
|
24 |
+
}
|
25 |
+
|
26 |
+
.oa_social_login_modal_outer {
|
27 |
+
-moz-border-radius: 4px;
|
28 |
+
-webkit-border-radius: 4px;
|
29 |
+
border-radius: 4px;
|
30 |
+
overflow: auto;
|
31 |
+
background: #eee;
|
32 |
+
z-index: 999998;
|
33 |
+
}
|
34 |
+
|
35 |
+
.oa_social_login_modal_inner {
|
36 |
+
overflow: auto;
|
37 |
+
background: #ffffff;
|
38 |
+
margin: 5px;
|
39 |
+
padding: 0;
|
40 |
+
z-index: 999997;
|
41 |
+
}
|
42 |
+
|
43 |
+
.oa_social_login_modal_inner input.inputtxt {
|
44 |
+
margin: 0;
|
45 |
+
width: 100%;
|
46 |
+
}
|
47 |
+
|
48 |
+
.oa_social_login_modal_inner input.inputbutton {
|
49 |
+
width: 80%;
|
50 |
+
margin: 0 auto;
|
51 |
+
text-align: center;
|
52 |
+
}
|
53 |
+
|
54 |
+
.oa_social_login_modal_notice {
|
55 |
+
background-color: #FFEF8F;
|
56 |
+
color: #222;
|
57 |
+
font-size: 12px;
|
58 |
+
padding: 10px 15px;
|
59 |
+
text-align: justify;
|
60 |
+
border: 1px solid #F9DD34;
|
61 |
+
margin: 10px 15px 0 15px;
|
62 |
+
border-radius: 5px
|
63 |
+
}
|
64 |
+
|
65 |
+
.oa_social_login_modal_button {
|
66 |
+
text-align: center;
|
67 |
+
margin-top: 10px;
|
68 |
+
}
|
69 |
+
|
70 |
+
.oa_social_login_modal_body {
|
71 |
+
padding: 10px 20px;
|
72 |
+
}
|
73 |
+
|
74 |
+
.oa_social_login_modal_title {
|
75 |
+
color: #222;
|
76 |
+
background-color: #eee;
|
77 |
+
padding: 5px 0;
|
78 |
+
border-bottom: 1px solid #ccc;
|
79 |
+
font-size: 16px;
|
80 |
+
text-align: center;
|
81 |
+
}
|
82 |
+
|
83 |
+
.oa_social_login_modal_subtitle {
|
84 |
+
color: #55;
|
85 |
+
font-size: 12px;
|
86 |
+
font-weight: bold;
|
87 |
+
}
|
88 |
+
|
89 |
+
.oa_social_login_modal_error {
|
90 |
+
height: 30px;
|
91 |
+
color: red;
|
92 |
+
font-size: 80%;
|
93 |
+
color: red;
|
94 |
+
}
|
assets/img/overlay.png
ADDED
Binary file
|
assets/img/provider_sprite_35_35.png
CHANGED
Binary file
|
assets/js/admin.js
CHANGED
@@ -22,7 +22,7 @@ jQuery(document).ready(function($) {
|
|
22 |
var radio_fsockopen = jQuery("#oa_social_login_api_connection_handler_fsockopen");
|
23 |
radio_curl.removeAttr("checked");
|
24 |
radio_fsockopen.removeAttr("checked");
|
25 |
-
|
26 |
/* CURL detected */
|
27 |
if (response == 'success_autodetect_api_curl')
|
28 |
{
|
@@ -86,8 +86,13 @@ jQuery(document).ready(function($) {
|
|
86 |
message_container.removeClass('success_message error_message').addClass('working_message');
|
87 |
message_container.html(objectL10n.oa_admin_js_1);
|
88 |
|
89 |
-
jQuery.post(ajaxurl,data, function(response) {
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
91 |
is_success = false;
|
92 |
message_string = objectL10n.oa_admin_js_111;
|
93 |
}
|
22 |
var radio_fsockopen = jQuery("#oa_social_login_api_connection_handler_fsockopen");
|
23 |
radio_curl.removeAttr("checked");
|
24 |
radio_fsockopen.removeAttr("checked");
|
25 |
+
|
26 |
/* CURL detected */
|
27 |
if (response == 'success_autodetect_api_curl')
|
28 |
{
|
86 |
message_container.removeClass('success_message error_message').addClass('working_message');
|
87 |
message_container.html(objectL10n.oa_admin_js_1);
|
88 |
|
89 |
+
jQuery.post(ajaxurl,data, function(response) {
|
90 |
+
|
91 |
+
if (response == 'error_selected_handler_faulty'){
|
92 |
+
is_success = false;
|
93 |
+
message_string = objectL10n.oa_admin_js_116;
|
94 |
+
}
|
95 |
+
else if (response == 'error_not_all_fields_filled_out'){
|
96 |
is_success = false;
|
97 |
message_string = objectL10n.oa_admin_js_111;
|
98 |
}
|
includes/admin.php
CHANGED
@@ -1,12 +1,70 @@
|
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
-
* Add
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
**/
|
6 |
function oa_social_login_admin_menu ()
|
7 |
{
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
9 |
add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
add_action ('admin_enqueue_scripts', 'oa_social_login_admin_js');
|
11 |
add_action ('admin_init', 'oa_register_social_login_settings');
|
12 |
add_action ('admin_notices', 'oa_social_login_admin_message');
|
@@ -15,11 +73,11 @@ add_action ('admin_menu', 'oa_social_login_admin_menu');
|
|
15 |
|
16 |
|
17 |
/**
|
18 |
-
* Automatically approve comments if
|
19 |
**/
|
20 |
function oa_social_login_admin_pre_comment_approved($approved)
|
21 |
{
|
22 |
-
// No need to do the check if the comment
|
23 |
if (empty($approved))
|
24 |
{
|
25 |
//Read settings
|
@@ -50,11 +108,12 @@ function oa_social_login_admin_message ()
|
|
50 |
{
|
51 |
if (get_option ('oa_social_login_activation_message') !== '1')
|
52 |
{
|
53 |
-
echo '<div class="updated"><p><strong>' . __ ('Thank you for using the Social Login Plugin!', 'oa_social_login') . '</strong> ' . sprintf (__ ('Please go to the <strong><a href="%s">
|
54 |
update_option ('oa_social_login_activation_message', '1');
|
55 |
}
|
56 |
}
|
57 |
|
|
|
58 |
/**
|
59 |
* Autodetect API Connection Handler
|
60 |
*/
|
@@ -103,8 +162,30 @@ function oa_social_login_admin_check_api_settings ()
|
|
103 |
die ();
|
104 |
}
|
105 |
|
106 |
-
//
|
107 |
$api_connection_handler = ((!empty ($_POST ['api_connection_handler']) AND $_POST ['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
$api_subdomain = trim (strtolower ($_POST ['api_subdomain']));
|
109 |
$api_key = trim($_POST ['api_key']);
|
110 |
$api_secret = trim($_POST ['api_secret']);
|
@@ -141,25 +222,25 @@ function oa_social_login_admin_check_api_settings ()
|
|
141 |
case 200:
|
142 |
echo 'success';
|
143 |
update_option ('oa_social_login_api_settings_verified', '1');
|
144 |
-
|
145 |
|
146 |
-
|
147 |
case 401:
|
148 |
echo 'error_authentication_credentials_wrong';
|
149 |
delete_option ('oa_social_login_api_settings_verified');
|
150 |
-
|
151 |
|
152 |
-
|
153 |
case 404:
|
154 |
echo 'error_subdomain_wrong';
|
155 |
delete_option ('oa_social_login_api_settings_verified');
|
156 |
-
|
157 |
|
158 |
-
|
159 |
default:
|
160 |
echo 'error_communication';
|
161 |
delete_option ('oa_social_login_api_settings_verified');
|
162 |
-
|
163 |
}
|
164 |
}
|
165 |
else
|
@@ -177,7 +258,7 @@ add_action ('wp_ajax_check_api_settings', 'oa_social_login_admin_check_api_setti
|
|
177 |
**/
|
178 |
function oa_social_login_admin_js ($hook)
|
179 |
{
|
180 |
-
if ($hook
|
181 |
{
|
182 |
if (!wp_script_is ('oa_social_login_admin_js', 'registered'))
|
183 |
{
|
@@ -190,17 +271,18 @@ function oa_social_login_admin_js ($hook)
|
|
190 |
wp_enqueue_script ('jquery');
|
191 |
|
192 |
wp_localize_script ('oa_social_login_admin_js', 'objectL10n', array (
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
204 |
));
|
205 |
}
|
206 |
}
|
@@ -209,7 +291,7 @@ function oa_social_login_admin_js ($hook)
|
|
209 |
/**
|
210 |
* Add Settings CSS
|
211 |
**/
|
212 |
-
function oa_social_login_admin_css ($hook)
|
213 |
{
|
214 |
if (!wp_style_is ('oa_social_login_admin_css', 'registered'))
|
215 |
{
|
@@ -244,102 +326,161 @@ function oa_social_login_settings_validate ($settings)
|
|
244 |
//Import providers
|
245 |
GLOBAL $oa_social_login_providers;
|
246 |
|
247 |
-
//
|
248 |
-
$
|
249 |
-
|
250 |
-
//
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
'api_secret',
|
256 |
-
'plugin_caption',
|
257 |
-
'plugin_link_verified_accounts',
|
258 |
-
'plugin_show_avatars_in_comments',
|
259 |
-
'plugin_use_small_buttons',
|
260 |
-
'plugin_display_in_login_form',
|
261 |
-
'plugin_login_form_redirect',
|
262 |
-
'plugin_login_form_redirect_custom_url',
|
263 |
-
'plugin_display_in_registration_form',
|
264 |
-
'plugin_registration_form_redirect',
|
265 |
-
'plugin_registration_form_redirect_custom_url',
|
266 |
-
'plugin_comment_show_if_members_only',
|
267 |
-
'plugin_comment_auto_approve'
|
268 |
-
) AS $key)
|
269 |
{
|
270 |
-
|
271 |
-
{
|
272 |
-
$sanitzed_settings [$key] = trim ($settings [$key]);
|
273 |
-
}
|
274 |
}
|
275 |
|
276 |
-
|
277 |
-
|
|
|
|
|
278 |
{
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
-
|
282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
{
|
284 |
-
$
|
285 |
}
|
286 |
|
287 |
-
|
288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
|
|
|
|
290 |
|
291 |
-
|
292 |
-
|
|
|
|
|
|
|
|
|
|
|
293 |
{
|
294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
{
|
296 |
-
if (isset ($settings [
|
297 |
{
|
298 |
-
$sanitzed_settings [
|
299 |
}
|
300 |
}
|
301 |
-
}
|
302 |
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
if (
|
318 |
{
|
319 |
-
$sanitzed_settings ['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
}
|
321 |
-
}
|
322 |
-
else
|
323 |
-
{
|
324 |
-
$sanitzed_settings ['plugin_login_form_redirect_custom_url'] = '';
|
325 |
-
}
|
326 |
|
327 |
|
328 |
-
|
329 |
-
|
330 |
-
{
|
331 |
-
if (empty ($sanitzed_settings ['plugin_registration_form_redirect_custom_url']))
|
332 |
{
|
333 |
-
$sanitzed_settings ['
|
|
|
|
|
|
|
334 |
}
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
|
|
|
|
|
|
339 |
}
|
340 |
|
341 |
-
//
|
342 |
-
return
|
343 |
}
|
344 |
|
345 |
|
@@ -347,373 +488,448 @@ function oa_social_login_settings_validate ($settings)
|
|
347 |
/**
|
348 |
* Display Settings Page
|
349 |
**/
|
350 |
-
function
|
351 |
{
|
352 |
//Import providers
|
353 |
GLOBAL $oa_social_login_providers;
|
354 |
|
355 |
?>
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
<
|
368 |
-
|
369 |
-
|
370 |
-
|
|
|
|
|
371 |
<p>
|
372 |
-
<?php
|
373 |
-
|
374 |
-
|
375 |
-
?>
|
376 |
</p>
|
377 |
-
<h3><?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '25000+'); ?></h3>
|
378 |
<p>
|
379 |
-
<a class="button-secondary" href="https://app.oneall.com/signup/" target="_blank"><strong><?php _e ('
|
380 |
</p>
|
|
|
|
|
|
|
381 |
</div>
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
</h3>
|
392 |
-
<div class="oa_container_body">
|
393 |
<p>
|
394 |
-
<?php _e ('Login to your account to manage your providers and access your Social Insights', 'oa_social_login');
|
395 |
<?php _e ("Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement.", 'oa_social_login'); ?>
|
396 |
</p>
|
397 |
<p>
|
398 |
-
<a class="button-secondary" href="https://app.oneall.com/signin/" target="_blank"><strong><?php _e ('
|
399 |
</p>
|
400 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
}
|
404 |
?>
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
</
|
487 |
-
</
|
488 |
-
<
|
489 |
-
<
|
490 |
-
<
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
<tr>
|
499 |
-
<th class="head">
|
500 |
-
<?php _e ('Enable the social networks/identity providers of your choice', 'oa_social_login'); ?>
|
501 |
-
</th>
|
502 |
-
</tr>
|
503 |
-
<?php
|
504 |
-
$i = 0;
|
505 |
-
foreach ($oa_social_login_providers AS $key => $provider_data)
|
506 |
-
{
|
507 |
-
?>
|
508 |
-
<tr class="<?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?> row_provider">
|
509 |
-
<td class="row">
|
510 |
-
<label for="oneall_social_login_provider_<?php echo $key; ?>"><span class="oa_provider oa_provider_<?php echo $key; ?>" title="<?php echo htmlspecialchars ($provider_data ['name']); ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?></span></label>
|
511 |
-
<input type="checkbox" id="oneall_social_login_provider_<?php echo $key; ?>" name="oa_social_login_settings[providers][<?php echo $key; ?>]" value="1" <?php checked ('1', $settings ['providers'] [$key]); ?> />
|
512 |
-
<label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?></label>
|
513 |
-
<?php
|
514 |
-
if ($key == 'vkontakte')
|
515 |
-
{
|
516 |
-
echo ' - ' . sprintf (__ ('To enable cyrillic usernames, you might need <a target="_blank" href="%s">this plugin</a>', 'oa_social_login'), 'http://wordpress.org/extend/plugins/wordpress-special-characters-in-usernames/');
|
517 |
-
}
|
518 |
-
?>
|
519 |
-
</td>
|
520 |
-
</tr>
|
521 |
-
<?php
|
522 |
-
}
|
523 |
-
?>
|
524 |
-
</table>
|
525 |
-
<table class="form-table oa_form_table oa_form_table_notice">
|
526 |
-
<tr>
|
527 |
-
<th class="head">
|
528 |
-
<?php _e ('Keep in mind when testing the plugin', 'oa_social_login'); ?>
|
529 |
-
</th>
|
530 |
-
</tr>
|
531 |
-
<tr class="row_even">
|
532 |
-
<td>
|
533 |
-
<?php _e ('Social Login is a plugin that allows your users to comment and login with social networks. If a user is already logged in, the plugin will not be displayed. There is in fact no need to give the user the possibilty to connect with a social network if he is already connected.'); ?>
|
534 |
-
<strong><?php _e ('You will therefore have to logout to see the plugin in action.');?></strong>
|
535 |
-
</td>
|
536 |
-
</tr>
|
537 |
-
</table>
|
538 |
-
|
539 |
-
<table class="form-table oa_form_table oa_form_table_settings">
|
540 |
-
<tr>
|
541 |
-
<th class="head">
|
542 |
-
<?php _e ('Basic Settings', 'oa_social_login'); ?>
|
543 |
-
</th>
|
544 |
-
</tr>
|
545 |
-
<tr class="row_odd">
|
546 |
-
<td>
|
547 |
-
<?php _e ('Enter the description to be displayed above the social network login buttons (leave empty for none):', 'oa_social_login'); ?>
|
548 |
-
</td>
|
549 |
-
</tr>
|
550 |
-
<tr class="row_even">
|
551 |
-
<td>
|
552 |
-
<input type="text" name="oa_social_login_settings[plugin_caption]" size="118" value="<?php echo (isset ($settings ['plugin_caption']) ? htmlspecialchars ($settings ['plugin_caption']) : _e ('Connect with:', 'oa_social_login')); ?>" />
|
553 |
-
</td>
|
554 |
-
</tr>
|
555 |
-
<tr class="row_odd">
|
556 |
-
<td>
|
557 |
-
<?php _e ("If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?", 'oa_social_login'); ?>
|
558 |
-
</td>
|
559 |
-
</tr>
|
560 |
-
<tr class="row_even">
|
561 |
-
<td>
|
562 |
-
<?php
|
563 |
-
$plugin_show_avatars_in_comments = (isset ($settings ['plugin_show_avatars_in_comments']) AND $settings ['plugin_show_avatars_in_comments'] == '1');
|
564 |
-
?>
|
565 |
-
<input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="1" <?php echo ($plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show user avatars from social networks if available', 'oa_social_login'); ?><br />
|
566 |
-
<input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="0" <?php echo (!$plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('No, display the default avatars', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
|
567 |
-
</td>
|
568 |
-
</tr>
|
569 |
-
<tr class="row_odd">
|
570 |
-
<td>
|
571 |
-
<?php _e ("Do you want to use the default or the small social network buttons?", 'oa_social_login'); ?>
|
572 |
-
</td>
|
573 |
-
</tr>
|
574 |
-
<tr class="row_even">
|
575 |
-
<td>
|
576 |
-
<?php
|
577 |
-
$plugin_use_small_buttons = (isset ($settings ['plugin_use_small_buttons']) AND $settings ['plugin_use_small_buttons'] == '1');
|
578 |
-
?>
|
579 |
-
<input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="0" <?php echo (!$plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the default social network buttons (%s)', 'oa_social_login'), '32x32 px'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
580 |
-
<input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="1" <?php echo ($plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the small social network buttons (%s)', 'oa_social_login'), '16x16 px'); ?>
|
581 |
-
</td>
|
582 |
-
</tr>
|
583 |
-
</table>
|
584 |
-
|
585 |
-
<table class="form-table oa_form_table oa_form_table_settings">
|
586 |
-
<tr>
|
587 |
-
<th class="head">
|
588 |
-
<?php _e ('Comment Settings', 'oa_social_login'); ?>
|
589 |
-
</th>
|
590 |
-
</tr>
|
591 |
-
<tr class="row_odd">
|
592 |
-
<td>
|
593 |
-
<?php _e ("Show the Social Login buttons the comment area if comments are disabled for guests?", 'oa_social_login'); ?><br />
|
594 |
-
|
595 |
-
</td>
|
596 |
-
</tr>
|
597 |
-
<tr class="row_even">
|
598 |
-
<td>
|
599 |
-
<?php
|
600 |
-
$plugin_comment_show_if_members_only = (isset ($settings ['plugin_comment_show_if_members_only']) AND $settings ['plugin_comment_show_if_members_only'] == '1');
|
601 |
-
?>
|
602 |
-
<input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="0" <?php echo (!$plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not show the social network buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
603 |
-
<input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="1" <?php echo ($plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, show the social network buttons', 'oa_social_login'); ?><br />
|
604 |
-
<span class="description"><?php _e('The buttons will be displayed below the "You must be logged in to leave a comment" notice');?></span>
|
605 |
-
</td>
|
606 |
-
</tr>
|
607 |
-
<tr class="row_odd">
|
608 |
-
<td>
|
609 |
-
<?php _e ("Automatically approve comments left by users that connected with a social network?", 'oa_social_login'); ?><br />
|
610 |
-
|
611 |
-
</td>
|
612 |
-
</tr>
|
613 |
-
<tr class="row_even">
|
614 |
-
<td>
|
615 |
-
<?php
|
616 |
-
$plugin_comment_auto_approve = (isset ($settings ['plugin_comment_auto_approve']) AND $settings ['plugin_comment_auto_approve'] == '1');
|
617 |
-
?>
|
618 |
-
<input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="0" <?php echo (!$plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not automatically approve', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
619 |
-
<input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="1" <?php echo ($plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, automatically approve comments made by users that connected with a social network', 'oa_social_login'); ?><br />
|
620 |
-
</td>
|
621 |
-
</tr>
|
622 |
-
</table>
|
623 |
-
|
624 |
-
<table class="form-table oa_form_table oa_form_table_settings">
|
625 |
-
<tr>
|
626 |
-
<th class="head">
|
627 |
-
<?php _e ('Login Settings', 'oa_social_login'); ?>
|
628 |
-
</th>
|
629 |
-
</tr>
|
630 |
-
<tr class="row_odd">
|
631 |
-
<td>
|
632 |
-
<?php _e ('Do you want to display the social network login buttons below the login form of your blog?', 'oa_social_login'); ?>
|
633 |
-
</td>
|
634 |
-
</tr>
|
635 |
-
<tr class="row_even">
|
636 |
-
<td>
|
637 |
-
<?php
|
638 |
-
$plugin_display_in_login_form = (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1');
|
639 |
-
?>
|
640 |
-
<input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="1" <?php echo ($plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the login form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
641 |
-
<input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="0" <?php echo (!$plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the login form', 'oa_social_login'); ?>
|
642 |
-
</td>
|
643 |
-
</tr>
|
644 |
-
<tr class="row_odd">
|
645 |
-
<td>
|
646 |
-
<?php _e ('Where should existent users be redirected to after having logged in with their social network account?', 'oa_social_login'); ?>
|
647 |
-
</td>
|
648 |
-
</tr>
|
649 |
-
<tr class="row_even">
|
650 |
-
<td>
|
651 |
-
<?php
|
652 |
-
$plugin_login_form_redirect = ((!isset ($settings ['plugin_login_form_redirect']) OR !in_array ($settings ['plugin_login_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? 'homepage' : $settings ['plugin_login_form_redirect']);
|
653 |
?>
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
<tr class="row_odd">
|
668 |
-
<td>
|
669 |
-
<?php _e ('If the email address of the social network profile is verified, should we try to link it to an existing account?', 'oa_social_login'); ?>
|
670 |
-
</td>
|
671 |
-
</tr>
|
672 |
-
<tr class="row_even">
|
673 |
-
<td>
|
674 |
<?php
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
688 |
<?php
|
689 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
?>
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
</tr>
|
695 |
-
|
696 |
-
<tr class="row_odd">
|
697 |
-
<td>
|
698 |
-
<?php _e ('Where should new users be redirected to after having registered with their social network account?', 'oa_social_login'); ?>
|
699 |
-
</td>
|
700 |
-
</tr>
|
701 |
-
<tr class="row_even">
|
702 |
-
<td>
|
703 |
<?php
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
<
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
</div>
|
718 |
<?php
|
719 |
-
|
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
+
* Add a column to the user list
|
5 |
+
**/
|
6 |
+
function oa_social_login_admin_user_column_add ($columns)
|
7 |
+
{
|
8 |
+
//Read settings
|
9 |
+
$settings = get_option ('oa_social_login_settings');
|
10 |
+
|
11 |
+
//Add column if enabled
|
12 |
+
if (!empty ($settings ['plugin_add_column_user_list']))
|
13 |
+
{
|
14 |
+
$columns['oa_social_login_registration'] = __('Registration', 'oa_social_login');
|
15 |
+
}
|
16 |
+
return $columns;
|
17 |
+
}
|
18 |
+
add_filter('manage_users_columns', 'oa_social_login_admin_user_column_add');
|
19 |
+
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Display the column content
|
23 |
+
**/
|
24 |
+
function oa_social_login_admin_user_colum_display ($value, $column_name, $user_id)
|
25 |
+
{
|
26 |
+
//Check if it is our column
|
27 |
+
if ($column_name <> 'oa_social_login_registration')
|
28 |
+
{
|
29 |
+
return $value;
|
30 |
+
}
|
31 |
+
|
32 |
+
//Read Identity Provider
|
33 |
+
$identity_providers = get_user_meta($user_id, 'oa_social_login_identity_provider');
|
34 |
+
|
35 |
+
//Tradition Registration
|
36 |
+
if ( ! is_array ($identity_providers) OR count ($identity_providers) < 1)
|
37 |
+
{
|
38 |
+
return __('Registration Form', 'oa_social_login');
|
39 |
+
}
|
40 |
+
else
|
41 |
+
{
|
42 |
+
return '<strong>Social Login</strong>: '.implode (", ", $identity_providers);
|
43 |
+
}
|
44 |
+
}
|
45 |
+
add_action('manage_users_custom_column', 'oa_social_login_admin_user_colum_display', 10, 3);
|
46 |
+
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Add administration area links
|
50 |
**/
|
51 |
function oa_social_login_admin_menu ()
|
52 |
{
|
53 |
+
//Setup
|
54 |
+
$page = add_menu_page('OneAll Social Login '.__('Setup', 'oa_social_login'), 'Social Login', 'manage_options', 'oa_social_login_setup', 'oa_display_social_login_setup');
|
55 |
+
add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
|
56 |
+
|
57 |
+
//Settings
|
58 |
+
$page = add_submenu_page( 'oa_social_login_setup', 'OneAll Social Login '.__('Settings'), __('Settings'), 'manage_options', 'oa_social_login_settings', 'oa_display_social_login_settings');
|
59 |
add_action ('admin_print_styles-' . $page, 'oa_social_login_admin_css');
|
60 |
+
|
61 |
+
//Fix Setup title
|
62 |
+
global $submenu;
|
63 |
+
if ( is_array ($submenu) AND isset($submenu['oa_social_login_setup']))
|
64 |
+
{
|
65 |
+
$submenu['oa_social_login_setup'][0][0] = __('Setup', 'oa_social_login');
|
66 |
+
}
|
67 |
+
|
68 |
add_action ('admin_enqueue_scripts', 'oa_social_login_admin_js');
|
69 |
add_action ('admin_init', 'oa_register_social_login_settings');
|
70 |
add_action ('admin_notices', 'oa_social_login_admin_message');
|
73 |
|
74 |
|
75 |
/**
|
76 |
+
* Automatically approve comments if option enabled
|
77 |
**/
|
78 |
function oa_social_login_admin_pre_comment_approved($approved)
|
79 |
{
|
80 |
+
// No need to do the check if the comment has already been approved
|
81 |
if (empty($approved))
|
82 |
{
|
83 |
//Read settings
|
108 |
{
|
109 |
if (get_option ('oa_social_login_activation_message') !== '1')
|
110 |
{
|
111 |
+
echo '<div class="updated"><p><strong>' . __ ('Thank you for using the Social Login Plugin!', 'oa_social_login') . '</strong> ' . sprintf (__ ('Please go to the <strong><a href="%s">Social Login\Setup</a></strong> page to setup the plugin.', 'oa_social_login'), 'admin.php?page=oa_social_login_setup') . '</p></div>';
|
112 |
update_option ('oa_social_login_activation_message', '1');
|
113 |
}
|
114 |
}
|
115 |
|
116 |
+
|
117 |
/**
|
118 |
* Autodetect API Connection Handler
|
119 |
*/
|
162 |
die ();
|
163 |
}
|
164 |
|
165 |
+
//Check the handler
|
166 |
$api_connection_handler = ((!empty ($_POST ['api_connection_handler']) AND $_POST ['api_connection_handler'] == 'fsockopen') ? 'fsockopen' : 'curl');
|
167 |
+
|
168 |
+
//FSOCKOPEN
|
169 |
+
if ($api_connection_handler == 'fsockopen')
|
170 |
+
{
|
171 |
+
if ( ! oa_social_login_check_fsockopen ())
|
172 |
+
{
|
173 |
+
echo 'error_selected_handler_faulty';
|
174 |
+
delete_option ('oa_social_login_api_settings_verified');
|
175 |
+
die();
|
176 |
+
}
|
177 |
+
}
|
178 |
+
//CURL
|
179 |
+
else
|
180 |
+
{
|
181 |
+
if ( ! oa_social_login_check_curl ())
|
182 |
+
{
|
183 |
+
echo 'error_selected_handler_faulty';
|
184 |
+
delete_option ('oa_social_login_api_settings_verified');
|
185 |
+
die();
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
$api_subdomain = trim (strtolower ($_POST ['api_subdomain']));
|
190 |
$api_key = trim($_POST ['api_key']);
|
191 |
$api_secret = trim($_POST ['api_secret']);
|
222 |
case 200:
|
223 |
echo 'success';
|
224 |
update_option ('oa_social_login_api_settings_verified', '1');
|
225 |
+
break;
|
226 |
|
227 |
+
//Authentication Error
|
228 |
case 401:
|
229 |
echo 'error_authentication_credentials_wrong';
|
230 |
delete_option ('oa_social_login_api_settings_verified');
|
231 |
+
break;
|
232 |
|
233 |
+
//Wrong Subdomain
|
234 |
case 404:
|
235 |
echo 'error_subdomain_wrong';
|
236 |
delete_option ('oa_social_login_api_settings_verified');
|
237 |
+
break;
|
238 |
|
239 |
+
//Other error
|
240 |
default:
|
241 |
echo 'error_communication';
|
242 |
delete_option ('oa_social_login_api_settings_verified');
|
243 |
+
break;
|
244 |
}
|
245 |
}
|
246 |
else
|
258 |
**/
|
259 |
function oa_social_login_admin_js ($hook)
|
260 |
{
|
261 |
+
if (stripos($hook, 'oa_social_login') !== false)
|
262 |
{
|
263 |
if (!wp_script_is ('oa_social_login_admin_js', 'registered'))
|
264 |
{
|
271 |
wp_enqueue_script ('jquery');
|
272 |
|
273 |
wp_localize_script ('oa_social_login_admin_js', 'objectL10n', array (
|
274 |
+
'oa_social_login_ajax_nonce' => $oa_social_login_ajax_nonce,
|
275 |
+
'oa_admin_js_1' => __ ('Contacting API - please wait ...', 'oa_social_login'),
|
276 |
+
'oa_admin_js_101' => __ ('The settings are correct - do not forget to save your changes!', 'oa_social_login'),
|
277 |
+
'oa_admin_js_111' => __ ('Please fill out each of the fields above.', 'oa_social_login'),
|
278 |
+
'oa_admin_js_112' => __ ('The subdomain does not exist. Have you filled it out correctly?', 'oa_social_login'),
|
279 |
+
'oa_admin_js_113' => __ ('The subdomain has a wrong syntax!', 'oa_social_login'),
|
280 |
+
'oa_admin_js_114' => __ ('Could not contact API. Are outbound requests on port 443 allowed?', 'oa_social_login'),
|
281 |
+
'oa_admin_js_115' => __ ('The API subdomain is correct, but one or both keys are invalid', 'oa_social_login'),
|
282 |
+
'oa_admin_js_116' => __ ('Connection handler does not work, try using the Autodetection', 'oa_social_login'),
|
283 |
+
'oa_admin_js_201' => __ ('Autodetected PHP CURL - do not forget to save your changes!', 'oa_social_login'),
|
284 |
+
'oa_admin_js_202' => __ ('Autodetected PHP FSOCKOPEN - do not forget to save your changes!', 'oa_social_login'),
|
285 |
+
'oa_admin_js_211' => sprintf(__ ('Autodetection Error - our <a href="%s" target="_blank">documentation</a> helps you fix this issue.', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/#help')
|
286 |
));
|
287 |
}
|
288 |
}
|
291 |
/**
|
292 |
* Add Settings CSS
|
293 |
**/
|
294 |
+
function oa_social_login_admin_css ($hook = '')
|
295 |
{
|
296 |
if (!wp_style_is ('oa_social_login_admin_css', 'registered'))
|
297 |
{
|
326 |
//Import providers
|
327 |
GLOBAL $oa_social_login_providers;
|
328 |
|
329 |
+
//Settings page?
|
330 |
+
$page = ( ! empty ($_POST['page']) ? strtolower($_POST['page']) : '');
|
331 |
+
|
332 |
+
//Store the sanitzed settings
|
333 |
+
$sanitzed_settings = get_option ('oa_social_login_settings');
|
334 |
+
|
335 |
+
//Check format
|
336 |
+
if ( ! is_array ($sanitzed_settings))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
{
|
338 |
+
$sanitzed_settings = array();
|
|
|
|
|
|
|
339 |
}
|
340 |
|
341 |
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
342 |
+
//Setup
|
343 |
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
344 |
+
if ($page == 'setup')
|
345 |
{
|
346 |
+
//Extract fields
|
347 |
+
foreach (array ('api_connection_handler', 'api_subdomain', 'api_key', 'api_secret', 'providers') AS $key)
|
348 |
+
{
|
349 |
+
//Value is given
|
350 |
+
if (isset ($settings [$key]))
|
351 |
+
{
|
352 |
+
//Provider tickboxes
|
353 |
+
if ($key == 'providers')
|
354 |
+
{
|
355 |
+
//Resest providers
|
356 |
+
$sanitzed_settings ['providers'] = array();
|
357 |
|
358 |
+
//Loop through new values
|
359 |
+
if (is_array ($settings ['providers']))
|
360 |
+
{
|
361 |
+
//Loop through valid values
|
362 |
+
foreach ($oa_social_login_providers AS $key => $name)
|
363 |
+
{
|
364 |
+
if (isset ($settings ['providers'] [$key]) AND $settings ['providers'] [$key] == '1')
|
365 |
+
{
|
366 |
+
$sanitzed_settings ['providers'] [$key] = 1;
|
367 |
+
}
|
368 |
+
}
|
369 |
+
}
|
370 |
+
}
|
371 |
+
//Other field
|
372 |
+
else
|
373 |
+
{
|
374 |
+
$sanitzed_settings [$key] = trim ($settings [$key]);
|
375 |
+
}
|
376 |
+
}
|
377 |
+
}
|
378 |
+
|
379 |
+
//Sanitize API Connection handler
|
380 |
+
if (isset ($sanitzed_settings ['api_connection_handler']) AND in_array (strtolower($sanitzed_settings ['api_connection_handler']), array ('curl', 'fsockopen')))
|
381 |
+
{
|
382 |
+
$sanitzed_settings ['api_connection_handler'] = strtolower($sanitzed_settings ['api_connection_handler']);
|
383 |
+
}
|
384 |
+
else
|
385 |
{
|
386 |
+
$sanitzed_settings ['api_connection_handler'] = 'curl';
|
387 |
}
|
388 |
|
389 |
+
//Sanitize API Subdomain
|
390 |
+
if (isset ($sanitzed_settings ['api_subdomain']))
|
391 |
+
{
|
392 |
+
//Subdomain is always in lowercase
|
393 |
+
$api_subdomain = strtolower ($sanitzed_settings ['api_subdomain']);
|
394 |
+
|
395 |
+
//Full domain entered
|
396 |
+
if (preg_match ("/([a-z0-9\-]+)\.api\.oneall\.com/i", $api_subdomain, $matches))
|
397 |
+
{
|
398 |
+
$api_subdomain = $matches [1];
|
399 |
+
}
|
400 |
|
401 |
+
$sanitzed_settings ['api_subdomain'] = $api_subdomain;
|
402 |
+
}
|
403 |
|
404 |
+
//Done
|
405 |
+
return $sanitzed_settings;
|
406 |
+
}
|
407 |
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
408 |
+
//Setup
|
409 |
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
410 |
+
elseif ($page == 'settings')
|
411 |
{
|
412 |
+
//Extract fields
|
413 |
+
foreach (array (
|
414 |
+
'plugin_add_column_user_list',
|
415 |
+
'plugin_require_email',
|
416 |
+
'plugin_require_email_text',
|
417 |
+
'plugin_caption',
|
418 |
+
'plugin_link_verified_accounts',
|
419 |
+
'plugin_show_avatars_in_comments',
|
420 |
+
'plugin_use_small_buttons',
|
421 |
+
'plugin_display_in_login_form',
|
422 |
+
'plugin_login_form_redirect',
|
423 |
+
'plugin_login_form_redirect_custom_url',
|
424 |
+
'plugin_display_in_registration_form',
|
425 |
+
'plugin_registration_form_redirect',
|
426 |
+
'plugin_registration_form_redirect_custom_url',
|
427 |
+
'plugin_comment_show_if_members_only',
|
428 |
+
'plugin_comment_auto_approve',
|
429 |
+
'plugin_comment_show'
|
430 |
+
) AS $key)
|
431 |
{
|
432 |
+
if (isset ($settings [$key]))
|
433 |
{
|
434 |
+
$sanitzed_settings [$key] = trim ($settings [$key]);
|
435 |
}
|
436 |
}
|
|
|
437 |
|
438 |
+
//Flag settings
|
439 |
+
$sanitzed_settings ['plugin_add_column_user_list'] == ((isset ($sanitzed_settings ['plugin_add_column_user_list']) AND $sanitzed_settings ['plugin_add_column_user_list'] == '1') ? 1 : 0);
|
440 |
+
$sanitzed_settings ['plugin_require_email'] == ((isset ($sanitzed_settings ['plugin_require_email']) AND $sanitzed_settings ['plugin_require_email'] == '1') ? 1 : 0);
|
441 |
+
$sanitzed_settings ['plugin_comment_show'] == ((isset ($sanitzed_settings ['plugin_comment_show']) AND $sanitzed_settings ['plugin_comment_show'] == '0') ? 0 : 1);
|
442 |
+
$sanitzed_settings ['plugin_use_small_buttons'] == ((isset ($sanitzed_settings ['plugin_use_small_buttons']) AND $sanitzed_settings ['plugin_use_small_buttons'] == '1') ? 1 : 0);
|
443 |
+
$sanitzed_settings ['plugin_show_avatars_in_comments'] == ((isset ($sanitzed_settings ['plugin_show_avatars_in_comments']) AND $sanitzed_settings ['plugin_show_avatars_in_comments'] == '1') ? 1 : 0);
|
444 |
+
$sanitzed_settings ['plugin_link_verified_accounts'] == ((isset ($sanitzed_settings ['plugin_link_verified_accounts']) AND $sanitzed_settings ['plugin_link_verified_accounts'] == '0') ? 0 : 1);
|
445 |
+
$sanitzed_settings ['plugin_login_form_redirect'] = ((isset ($sanitzed_settings ['plugin_login_form_redirect']) AND in_array ($sanitzed_settings ['plugin_login_form_redirect'], array ('dashboard','homepage', 'custom'))) ? $sanitzed_settings ['plugin_login_form_redirect'] : 'homepage');
|
446 |
+
$sanitzed_settings ['plugin_registration_form_redirect'] = ((isset ($sanitzed_settings ['plugin_registration_form_redirect']) AND in_array ($sanitzed_settings ['plugin_registration_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? $sanitzed_settings ['plugin_registration_form_redirect'] : 'dashboard');
|
447 |
+
$sanitzed_settings ['plugin_display_in_login_form'] == ((isset ($sanitzed_settings ['plugin_display_in_login_form']) AND $sanitzed_settings ['plugin_display_in_login_form'] == '0') ? 0 : 1);
|
448 |
+
$sanitzed_settings ['plugin_comment_show_if_members_only'] == ((isset ($sanitzed_settings ['plugin_comment_show_if_members_only']) AND $sanitzed_settings ['plugin_comment_show_if_members_only'] == '1') ? 1 : 0);
|
449 |
+
$sanitzed_settings ['plugin_comment_auto_approve'] == ((isset ($sanitzed_settings ['plugin_comment_auto_approve']) AND $sanitzed_settings ['plugin_comment_auto_approve'] == '1') ? 1 : 0);
|
450 |
+
|
451 |
+
//Check Login Redirection Settings
|
452 |
+
if ($sanitzed_settings ['plugin_login_form_redirect'] == 'custom')
|
453 |
{
|
454 |
+
if (empty ($sanitzed_settings ['plugin_login_form_redirect_custom_url']))
|
455 |
+
{
|
456 |
+
$sanitzed_settings ['plugin_login_form_redirect'] = 'homepage';
|
457 |
+
}
|
458 |
+
}
|
459 |
+
else
|
460 |
+
{
|
461 |
+
$sanitzed_settings ['plugin_login_form_redirect_custom_url'] = '';
|
462 |
}
|
|
|
|
|
|
|
|
|
|
|
463 |
|
464 |
|
465 |
+
//Check Registration Redirection Settings
|
466 |
+
if ($sanitzed_settings ['plugin_registration_form_redirect'] == 'custom')
|
|
|
|
|
467 |
{
|
468 |
+
if (empty ($sanitzed_settings ['plugin_registration_form_redirect_custom_url']))
|
469 |
+
{
|
470 |
+
$sanitzed_settings ['plugin_registration_form_redirect'] = 'dashboard';
|
471 |
+
}
|
472 |
}
|
473 |
+
else
|
474 |
+
{
|
475 |
+
$sanitzed_settings ['plugin_registration_form_redirect_custom_url'] = '';
|
476 |
+
}
|
477 |
+
|
478 |
+
//Done
|
479 |
+
return $sanitzed_settings;
|
480 |
}
|
481 |
|
482 |
+
//Error
|
483 |
+
return array();
|
484 |
}
|
485 |
|
486 |
|
488 |
/**
|
489 |
* Display Settings Page
|
490 |
**/
|
491 |
+
function oa_display_social_login_setup ()
|
492 |
{
|
493 |
//Import providers
|
494 |
GLOBAL $oa_social_login_providers;
|
495 |
|
496 |
?>
|
497 |
+
<div class="wrap">
|
498 |
+
<div id="oa_social_login_page" class="oa_social_login_setup">
|
499 |
+
<h2>
|
500 |
+
OneAll Social Login <?php _e ('Setup', 'oa_social_login'); ?>
|
501 |
+
</h2>
|
502 |
+
<?php
|
503 |
+
if (get_option ('oa_social_login_api_settings_verified') !== '1')
|
504 |
+
{
|
505 |
+
?>
|
506 |
+
<p>
|
507 |
+
<?php _e ('Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo.', 'oa_social_login'); ?>
|
508 |
+
<strong><?php _e ('Draw a larger audience and increase user engagement in a few simple steps.', 'oa_social_login'); ?> </strong>
|
509 |
+
</p>
|
510 |
+
<div class="oa_social_login_box" id="oa_social_login_box_status">
|
511 |
+
<div class="oa_social_login_box_title">
|
512 |
+
<?php _e ('Get Started!', 'oa_social_login'); ?>
|
513 |
+
</div>
|
514 |
<p>
|
515 |
+
<?php printf (__ ('To be able to use this plugin you first of all need to create a free account at %s and setup a Site.', 'oa_social_login'), '<a href="https://app.oneall.com/signup/" target="_blank">http://www.oneall.com</a>'); ?>
|
516 |
+
<?php _e ('After having created your account and setup your Site, please enter the Site settings in the form below.', 'oa_social_login'); ?>
|
517 |
+
<?php _e("Don't worry the setup only takes a couple of minutes! Let's get started!", 'oa_social_login'); ?>
|
|
|
518 |
</p>
|
|
|
519 |
<p>
|
520 |
+
<a class="button-secondary" href="https://app.oneall.com/signup/" target="_blank"><strong><?php _e ('Click here to setup your free account', 'oa_social_login'); ?></strong></a>
|
521 |
</p>
|
522 |
+
<h3>
|
523 |
+
<?php printf (__ ('You are in good company! This plugin is used on more than %s websites!', 'oa_social_login'), '50000'); ?>
|
524 |
+
</h3>
|
525 |
</div>
|
526 |
+
<?php
|
527 |
+
}
|
528 |
+
else
|
529 |
+
{
|
530 |
+
?>
|
531 |
+
<div class="oa_social_login_box" id="oa_social_login_box_status">
|
532 |
+
<div class="oa_social_login_box_title">
|
533 |
+
<?php _e ('Your API Account is setup correctly', 'oa_social_login'); ?>
|
534 |
+
</div>
|
|
|
|
|
535 |
<p>
|
536 |
+
<?php _e ('Login to your account to manage your providers and access your Social Insights.', 'oa_social_login'); ?>
|
537 |
<?php _e ("Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement.", 'oa_social_login'); ?>
|
538 |
</p>
|
539 |
<p>
|
540 |
+
<a class="button-secondary" href="https://app.oneall.com/signin/" target="_blank"><strong><?php _e ('Click here to login to your account', 'oa_social_login'); ?></strong> </a>
|
541 |
</p>
|
542 |
</div>
|
543 |
+
<?php
|
544 |
+
}
|
545 |
+
?>
|
546 |
+
<div class="oa_social_login_box" id="oa_social_login_box_help">
|
547 |
+
<div class="oa_social_login_box_title">
|
548 |
+
<?php _e ('Help, Updates & Documentation', 'oa_social_login'); ?>
|
549 |
</div>
|
550 |
+
<ul>
|
551 |
+
<li><?php printf (__ ('<a target="_blank" href="%s">Follow us on Twitter</a> to stay informed about updates', 'oa_social_login'), 'http://www.twitter.com/oneall'); ?>;</li>
|
552 |
+
<li><?php printf (__ ('<a target="_blank" href="%s">Read the online documentation</a> for more information about this plugin', 'oa_social_login'), 'http://docs.oneall.com/plugins/guide/social-login-wordpress/'); ?>;</li>
|
553 |
+
<li><?php printf (__ ('<a target="_blank" href="%s">Contact us</a> if you have feedback or need assistance', 'oa_social_login'), 'http://www.oneall.com/company/contact-us/'); ?>.
|
554 |
+
</li>
|
555 |
+
</ul>
|
556 |
+
</div>
|
557 |
+
|
558 |
<?php
|
559 |
+
if ( ! empty ($_REQUEST['settings-updated']) AND strtolower($_REQUEST['settings-updated']) == 'true')
|
560 |
+
{
|
561 |
+
?>
|
562 |
+
<div class="oa_social_login_box" id="oa_social_login_box_updated">
|
563 |
+
<?php _e('Your modifications have been saved successfully!'); ?>
|
564 |
+
</div>
|
565 |
+
<?php
|
566 |
+
|
567 |
}
|
568 |
?>
|
569 |
+
|
570 |
+
<form method="post" action="options.php">
|
571 |
+
<?php
|
572 |
+
settings_fields ('oa_social_login_settings_group');
|
573 |
+
$settings = get_option ('oa_social_login_settings');
|
574 |
+
?>
|
575 |
+
<table class="form-table oa_social_login_table">
|
576 |
+
<tr class="row_head">
|
577 |
+
<th colspan="2"><?php _e ('API Connection Handler', 'oa_social_login'); ?>
|
578 |
+
</th>
|
579 |
+
</tr>
|
580 |
+
<?php
|
581 |
+
$api_connection_handler = ((empty ($settings ['api_connection_handler']) OR $settings ['api_connection_handler'] <> 'fsockopen') ? 'curl' : 'fsockopen');
|
582 |
+
?>
|
583 |
+
<tr class="row_even">
|
584 |
+
<td rowspan="2" class="row_multi" style="width:180px">
|
585 |
+
<label><?php _e ('API Connection Handler', 'oa_social_login'); ?>:</label>
|
586 |
+
</td>
|
587 |
+
<td>
|
588 |
+
<input type="radio" id="oa_social_login_api_connection_handler_curl" name="oa_social_login_settings[api_connection_handler]" value="curl" <?php echo (($api_connection_handler <> 'fsockopen') ? 'checked="checked"' : ''); ?> />
|
589 |
+
<label for="oa_social_login_api_connection_handler_curl"><?php _e ('Use PHP CURL to communicate with the API', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong></label><br />
|
590 |
+
<span class="description"><?php _e ('Using CURL is recommended but it might be disabled on some servers.', 'oa_social_login'); ?></span>
|
591 |
+
</td>
|
592 |
+
</tr>
|
593 |
+
<tr class="row_even">
|
594 |
+
<td>
|
595 |
+
<input type="radio" id="oa_social_login_api_connection_handler_fsockopen" name="oa_social_login_settings[api_connection_handler]" value="fsockopen" <?php echo (($api_connection_handler == 'fsockopen') ? 'checked="checked"' : ''); ?> />
|
596 |
+
<label for="oa_social_login_api_connection_handler_fsockopen"><?php _e ('Use PHP FSOCKOPEN to communicate with the API', 'oa_social_login'); ?> </label><br />
|
597 |
+
<span class="description"><?php _e ('Try using FSOCKOPEN if you encounter any problems with CURL.', 'oa_social_login'); ?></span>
|
598 |
+
</td>
|
599 |
+
</tr>
|
600 |
+
<tr class="row_foot">
|
601 |
+
<td>
|
602 |
+
<a class="button-secondary" id="oa_social_login_autodetect_api_connection_handler" href="#"><?php _e ('Autodetect API Connection', 'oa_social_login'); ?></a>
|
603 |
+
</td>
|
604 |
+
<td>
|
605 |
+
<div id="oa_social_login_api_connection_handler_result"></div>
|
606 |
+
</td>
|
607 |
+
</tr>
|
608 |
+
</table>
|
609 |
+
<table class="form-table oa_social_login_table">
|
610 |
+
<tr class="row_head">
|
611 |
+
<th>
|
612 |
+
<?php _e ('API Settings', 'oa_social_login'); ?>
|
613 |
+
</th>
|
614 |
+
<th><a href="https://app.oneall.com/applications/" target="_blank">
|
615 |
+
<?php _e ('Click here to create and view your API Credentials', 'oa_social_login'); ?>
|
616 |
+
</a>
|
617 |
+
</th>
|
618 |
+
</tr>
|
619 |
+
<tr class="row_even">
|
620 |
+
<td>
|
621 |
+
<label for="oa_social_login_settings_api_subdomain"><?php _e ('API Subdomain', 'oa_social_login'); ?>:</label>
|
622 |
+
</td>
|
623 |
+
<td>
|
624 |
+
<input type="text" id="oa_social_login_settings_api_subdomain" name="oa_social_login_settings[api_subdomain]" size="65" value="<?php echo (isset ($settings ['api_subdomain']) ? htmlspecialchars ($settings ['api_subdomain']) : ''); ?>" />
|
625 |
+
</td>
|
626 |
+
</tr>
|
627 |
+
<tr class="row_odd">
|
628 |
+
<td>
|
629 |
+
<label for="oa_social_login_settings_api_key"><?php _e ('API Public Key', 'oa_social_login'); ?>:</label>
|
630 |
+
</td>
|
631 |
+
<td>
|
632 |
+
<input type="text" id="oa_social_login_settings_api_key" name="oa_social_login_settings[api_key]" size="65" value="<?php echo (isset ($settings ['api_key']) ? htmlspecialchars ($settings ['api_key']) : ''); ?>" />
|
633 |
+
</td>
|
634 |
+
</tr>
|
635 |
+
<tr class="row_even">
|
636 |
+
<td>
|
637 |
+
<label for="oa_social_login_settings_api_secret"><?php _e ('API Private Key', 'oa_social_login'); ?>:</label>
|
638 |
+
</td>
|
639 |
+
<td>
|
640 |
+
<input type="text" id="oa_social_login_settings_api_secret" name="oa_social_login_settings[api_secret]" size="65" value="<?php echo (isset ($settings ['api_secret']) ? htmlspecialchars ($settings ['api_secret']) : ''); ?>" />
|
641 |
+
</td>
|
642 |
+
</tr>
|
643 |
+
<tr class="row_foot">
|
644 |
+
<td>
|
645 |
+
<a class="button-secondary" id="oa_social_login_test_api_settings" href="#"><?php _e ('Verify API Settings', 'oa_social_login'); ?> </a>
|
646 |
+
</td>
|
647 |
+
<td>
|
648 |
+
<div id="oa_social_login_api_test_result"></div>
|
649 |
+
</td>
|
650 |
+
</tr>
|
651 |
+
</table>
|
652 |
+
<table class="form-table oa_social_login_table">
|
653 |
+
<tr class="row_head">
|
654 |
+
<th>
|
655 |
+
<?php _e ('Enable the social networks/identity providers of your choice', 'oa_social_login'); ?>
|
656 |
+
</th>
|
657 |
+
</tr>
|
658 |
+
<?php
|
659 |
+
$i = 0;
|
660 |
+
foreach ($oa_social_login_providers AS $key => $provider_data)
|
661 |
+
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
?>
|
663 |
+
<tr class="row_provider <?php echo ((($i++) % 2) == 0) ? 'row_even' : 'row_odd' ?>">
|
664 |
+
<td>
|
665 |
+
<label for="oneall_social_login_provider_<?php echo $key; ?>"><span class="oa_social_login_provider oa_social_login_provider_<?php echo $key; ?>" title="<?php echo htmlspecialchars ($provider_data ['name']); ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </span></label>
|
666 |
+
<input type="checkbox" id="oneall_social_login_provider_<?php echo $key; ?>" name="oa_social_login_settings[providers][<?php echo $key; ?>]" value="1" <?php checked ('1', $settings ['providers'] [$key]); ?> />
|
667 |
+
<label for="oneall_social_login_provider_<?php echo $key; ?>"><?php echo htmlspecialchars ($provider_data ['name']); ?> </label>
|
668 |
+
<?php
|
669 |
+
if (in_array ($key, array ('vkontakte', 'mailru')))
|
670 |
+
{
|
671 |
+
echo ' - ' . sprintf (__ ('To enable cyrillic usernames, you might need <a target="_blank" href="%s">this plugin</a>', 'oa_social_login'), 'http://wordpress.org/extend/plugins/wordpress-special-characters-in-usernames/');
|
672 |
+
}
|
673 |
+
?>
|
674 |
+
</td>
|
675 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
<?php
|
677 |
+
}
|
678 |
+
?>
|
679 |
+
</table>
|
680 |
+
<p class="submit">
|
681 |
+
<input type="hidden" name="page" value="setup" />
|
682 |
+
<input type="submit" class="button-primary" value="<?php _e ('Save Changes', 'oa_social_login') ?>" />
|
683 |
+
</p>
|
684 |
+
</form>
|
685 |
+
</div>
|
686 |
+
</div>
|
687 |
+
<?php
|
688 |
+
}
|
689 |
+
|
690 |
+
|
691 |
+
/**
|
692 |
+
* Display Settings Page
|
693 |
+
**/
|
694 |
+
function oa_display_social_login_settings ()
|
695 |
+
{
|
696 |
+
?>
|
697 |
+
<div class="wrap">
|
698 |
+
<div id="oa_social_login_page" class="oa_social_login_settings">
|
699 |
+
<h2>
|
700 |
+
OneAll Social Login <?php _e ('Settings', 'oa_social_login'); ?>
|
701 |
+
</h2>
|
702 |
+
<form method="post" action="options.php">
|
703 |
+
<?php
|
704 |
+
settings_fields ('oa_social_login_settings_group');
|
705 |
+
$settings = get_option ('oa_social_login_settings');
|
706 |
+
?>
|
707 |
+
<div class="oa_social_login_box" id="oa_social_login_box_help">
|
708 |
+
<div class="oa_social_login_box_title">
|
709 |
+
<?php _e ('Logout to see the plugin in action!', 'oa_social_login'); ?>
|
710 |
+
</div>
|
711 |
+
<p>
|
712 |
<?php
|
713 |
+
_e ('Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There no need to offer the user the possibilty to connect with a social network if he is already connected.'); ?>
|
714 |
+
<strong><?php _e ('You therefore have to logout to see the plugin in action.');?> </strong>
|
715 |
+
</p>
|
716 |
+
</div>
|
717 |
+
<?php
|
718 |
+
if ( ! empty ($_REQUEST['settings-updated']) AND strtolower($_REQUEST['settings-updated']) == 'true')
|
719 |
+
{
|
720 |
?>
|
721 |
+
<div class="oa_social_login_box" id="oa_social_login_box_updated">
|
722 |
+
<?php _e('Your modifications have been saved successfully!'); ?>
|
723 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
724 |
<?php
|
725 |
+
}
|
726 |
+
?>
|
727 |
+
<table class="form-table oa_social_login_table">
|
728 |
+
<tr class="row_head">
|
729 |
+
<th>
|
730 |
+
<?php _e ('Basic Settings', 'oa_social_login'); ?>
|
731 |
+
</th>
|
732 |
+
</tr>
|
733 |
+
<tr class="row_odd">
|
734 |
+
<td>
|
735 |
+
<strong><?php _e ('Enter the description to be displayed above the social network login buttons (leave empty for none):', 'oa_social_login');?></strong>
|
736 |
+
</td>
|
737 |
+
</tr>
|
738 |
+
<tr class="row_even">
|
739 |
+
<td>
|
740 |
+
<input type="text" name="oa_social_login_settings[plugin_caption]" size="90" value="<?php echo (isset ($settings ['plugin_caption']) ? htmlspecialchars ($settings ['plugin_caption']) : _e ('Connect with:', 'oa_social_login')); ?>" />
|
741 |
+
</td>
|
742 |
+
</tr>
|
743 |
+
<tr class="row_odd">
|
744 |
+
<td>
|
745 |
+
<strong><?php _e ("If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?", 'oa_social_login');?></strong>
|
746 |
+
</td>
|
747 |
+
</tr>
|
748 |
+
<tr class="row_even">
|
749 |
+
<td>
|
750 |
+
<?php $plugin_show_avatars_in_comments = (isset ($settings ['plugin_show_avatars_in_comments']) AND $settings ['plugin_show_avatars_in_comments'] == '1'); ?>
|
751 |
+
<input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="1" <?php echo ($plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, show user avatars from social networks if available', 'oa_social_login'); ?><br />
|
752 |
+
<input type="radio" name="oa_social_login_settings[plugin_show_avatars_in_comments]" value="0" <?php echo (!$plugin_show_avatars_in_comments ? 'checked="checked"' : ''); ?> /> <?php _e ('No, display the default avatars', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
|
753 |
+
</td>
|
754 |
+
</tr>
|
755 |
+
<tr class="row_odd">
|
756 |
+
<td>
|
757 |
+
<strong><?php _e ("Do you want to use the default or the small social network buttons?", 'oa_social_login');?></strong>
|
758 |
+
</td>
|
759 |
+
</tr>
|
760 |
+
<tr class="row_even">
|
761 |
+
<td>
|
762 |
+
<?php $plugin_use_small_buttons = (isset ($settings ['plugin_use_small_buttons']) AND $settings ['plugin_use_small_buttons'] == '1'); ?>
|
763 |
+
<input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="0" <?php echo (!$plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the default social network buttons (%s)', 'oa_social_login'), '32x32 px'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
764 |
+
<input type="radio" name="oa_social_login_settings[plugin_use_small_buttons]" value="1" <?php echo ($plugin_use_small_buttons ? 'checked="checked"' : ''); ?> /> <?php printf (__ ('Use the small social network buttons (%s)', 'oa_social_login'), '16x16 px'); ?>
|
765 |
+
</td>
|
766 |
+
</tr>
|
767 |
+
</table>
|
768 |
+
<table class="form-table oa_social_login_table">
|
769 |
+
<tr class="row_head">
|
770 |
+
<th>
|
771 |
+
<?php _e ('Comment Settings', 'oa_social_login');?>
|
772 |
+
</th>
|
773 |
+
</tr>
|
774 |
+
<tr class="row_odd">
|
775 |
+
<td>
|
776 |
+
<strong><?php _e ("Show the Social Login buttons in the comment area?", 'oa_social_login');?></strong>
|
777 |
+
</td>
|
778 |
+
</tr>
|
779 |
+
<tr class="row_even">
|
780 |
+
<td>
|
781 |
+
<?php $plugin_comment_show = ( ! isset ($settings ['plugin_comment_show']) OR ! empty ($settings ['plugin_comment_show'])); ?>
|
782 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="1" <?php echo ($plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
783 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_show]" value="0" <?php echo (!$plugin_comment_show ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not show the Social Login buttons', 'oa_social_login'); ?><br />
|
784 |
+
</td>
|
785 |
+
</tr>
|
786 |
+
<tr class="row_odd">
|
787 |
+
<td>
|
788 |
+
<strong><?php _e ("Show the Social Login buttons in the comment area if comments are disabled for guests?", 'oa_social_login');?></strong>
|
789 |
+
</td>
|
790 |
+
</tr>
|
791 |
+
<tr class="row_even">
|
792 |
+
<td>
|
793 |
+
<?php $plugin_comment_show_if_members_only = ( ! isset ($settings ['plugin_comment_show_if_members_only']) OR ! empty ($settings ['plugin_comment_show_if_members_only'])); ?>
|
794 |
+
<span class="description"><?php _e('The buttons will be displayed below the "You must be logged in to leave a comment" notice.');?> </span><br />
|
795 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="1" <?php echo ($plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, show the Social Login buttons', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
796 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_show_if_members_only]" value="0" <?php echo (!$plugin_comment_show_if_members_only ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not show the Social Login buttons', 'oa_social_login'); ?>
|
797 |
+
</td>
|
798 |
+
</tr>
|
799 |
+
<tr class="row_odd">
|
800 |
+
<td>
|
801 |
+
<strong><?php _e ("Automatically approve comments left by users that connected by using Social Login?", 'oa_social_login');?></strong>
|
802 |
+
</td>
|
803 |
+
</tr>
|
804 |
+
<tr class="row_even">
|
805 |
+
<td>
|
806 |
+
<?php $plugin_comment_auto_approve = (isset ($settings ['plugin_comment_auto_approve']) AND $settings ['plugin_comment_auto_approve'] == '1'); ?>
|
807 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="1" <?php echo ($plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('Yes, automatically approve comments made by users that connected with Social Login', 'oa_social_login'); ?><br />
|
808 |
+
<input type="radio" name="oa_social_login_settings[plugin_comment_auto_approve]" value="0" <?php echo (!$plugin_comment_auto_approve ? 'checked="checked"' : ''); ?> /> <?php _e('No, do not automatically approve', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)
|
809 |
+
</strong><br />
|
810 |
+
</td>
|
811 |
+
</tr>
|
812 |
+
</table>
|
813 |
+
<table class="form-table oa_social_login_table">
|
814 |
+
<tr class="row_head">
|
815 |
+
<th>
|
816 |
+
<?php _e ('Login Settings', 'oa_social_login');?>
|
817 |
+
</th>
|
818 |
+
</tr>
|
819 |
+
<tr class="row_odd">
|
820 |
+
<td>
|
821 |
+
<strong><?php _e ('Do you want to display the social network login buttons below the login form of your blog?', 'oa_social_login');?></strong>
|
822 |
+
</td>
|
823 |
+
</tr>
|
824 |
+
<tr class="row_even">
|
825 |
+
<td>
|
826 |
+
<?php $plugin_display_in_login_form = (!isset ($settings ['plugin_display_in_login_form']) OR $settings ['plugin_display_in_login_form'] == '1'); ?>
|
827 |
+
<input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="1" <?php echo ($plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the login form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
828 |
+
<input type="radio" name="oa_social_login_settings[plugin_display_in_login_form]" value="0" <?php echo (!$plugin_display_in_login_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the login form', 'oa_social_login'); ?>
|
829 |
+
</td>
|
830 |
+
</tr>
|
831 |
+
<tr class="row_odd">
|
832 |
+
<td>
|
833 |
+
<strong><?php _e ('Where should existing users be redirected to after having logged in with their social network account?', 'oa_social_login');?></strong>
|
834 |
+
</td>
|
835 |
+
</tr>
|
836 |
+
<tr class="row_even">
|
837 |
+
<td>
|
838 |
+
<?php $plugin_login_form_redirect = ((!isset ($settings ['plugin_login_form_redirect']) OR !in_array ($settings ['plugin_login_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? 'homepage' : $settings ['plugin_login_form_redirect']); ?>
|
839 |
+
<input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="homepage" <?php echo ($plugin_login_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
840 |
+
<input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="dashboard" <?php echo ($plugin_login_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?><br />
|
841 |
+
<input type="radio" name="oa_social_login_settings[plugin_login_form_redirect]" value="custom" <?php echo ($plugin_login_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
|
842 |
+
<input type="text" name="oa_social_login_settings[plugin_login_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings ['plugin_login_form_redirect_custom_url']) ? htmlspecialchars ($settings ['plugin_login_form_redirect_custom_url']) : ''); ?>" />
|
843 |
+
</td>
|
844 |
+
</tr>
|
845 |
+
</table>
|
846 |
+
<table class="form-table oa_social_login_table">
|
847 |
+
<tr class="row_head">
|
848 |
+
<th>
|
849 |
+
<?php _e ('Registration Settings', 'oa_social_login'); ?>
|
850 |
+
</th>
|
851 |
+
</tr>
|
852 |
+
<tr class="row_odd">
|
853 |
+
<td>
|
854 |
+
<strong><?php _e ("Some social networks do not provide their user's email. Ask the user to enter it manually in this case?", 'oa_social_login');?></strong>
|
855 |
+
</td>
|
856 |
+
</tr>
|
857 |
+
<tr class="row_even">
|
858 |
+
<td>
|
859 |
+
<?php $plugin_require_email = (isset ($settings ['plugin_require_email']) AND $settings ['plugin_require_email'] == '1'); ?>
|
860 |
+
<input type="radio" name="oa_social_login_settings[plugin_require_email]" value="0" <?php echo (!$plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('No, simplify the registration by automatically creating a placeholder email', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
861 |
+
<input type="radio" name="oa_social_login_settings[plugin_require_email]" value="1" <?php echo ($plugin_require_email ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, require the user to enter this email address manually and display this message:', 'oa_social_login'); ?> <br />
|
862 |
+
<textarea name="oa_social_login_settings[plugin_require_email_text]" cols="90" rows="3"><?php echo (isset ($settings ['plugin_require_email_text']) ? htmlspecialchars ($settings ['plugin_require_email_text']) : _e('<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue.', 'oa_social_login')); ?></textarea>
|
863 |
+
<span class="description"><?php _e ('HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect.', 'oa_social_login'); ?></span>
|
864 |
+
</td>
|
865 |
+
</tr>
|
866 |
+
<tr class="row_odd">
|
867 |
+
<td>
|
868 |
+
<strong><?php _e ('If the email address of the social network profile is verified, should we try to link it to an existing account?', 'oa_social_login');?></strong>
|
869 |
+
</td>
|
870 |
+
</tr>
|
871 |
+
<tr class="row_even">
|
872 |
+
<td>
|
873 |
+
<?php $plugin_link_verified_accounts = (!isset ($settings ['plugin_link_verified_accounts']) OR $settings ['plugin_link_verified_accounts'] == '1'); ?>
|
874 |
+
<input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="1" <?php echo ($plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, try to link verified social network profiles to existing blog accounts', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
875 |
+
<input type="radio" name="oa_social_login_settings[plugin_link_verified_accounts]" value="0" <?php echo (!$plugin_link_verified_accounts ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable account linking', 'oa_social_login'); ?>
|
876 |
+
</td>
|
877 |
+
</tr>
|
878 |
+
<tr class="row_odd">
|
879 |
+
<td>
|
880 |
+
<strong><?php _e ('Do you want to display the social network login buttons below the registration form of your blog?', 'oa_social_login');?></strong>
|
881 |
+
</td>
|
882 |
+
</tr>
|
883 |
+
<tr class="row_even">
|
884 |
+
<td>
|
885 |
+
<?php $plugin_display_in_registration_form = (!isset ($settings ['plugin_display_in_registration_form']) OR $settings ['plugin_display_in_registration_form'] == '1'); ?>
|
886 |
+
<input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="1" <?php echo ($plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, display the social network buttons below the registration form', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
887 |
+
<input type="radio" name="oa_social_login_settings[plugin_display_in_registration_form]" value="0" <?php echo (!$plugin_display_in_registration_form ? 'checked="checked"' : ''); ?> /> <?php _e ('No, disable social network buttons in the registration form', 'oa_social_login'); ?>
|
888 |
+
</td>
|
889 |
+
</tr>
|
890 |
+
<tr class="row_odd">
|
891 |
+
<td>
|
892 |
+
<strong><?php _e ('Where should new users be redirected to after having registered with their social network account?', 'oa_social_login');?></strong>
|
893 |
+
</td>
|
894 |
+
</tr>
|
895 |
+
<tr class="row_even">
|
896 |
+
<td>
|
897 |
+
<?php $plugin_registration_form_redirect = ((!isset ($settings ['plugin_registration_form_redirect']) OR !in_array ($settings ['plugin_registration_form_redirect'], array ('dashboard', 'homepage', 'custom'))) ? 'dashboard' : $settings ['plugin_registration_form_redirect']); ?>
|
898 |
+
<input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="homepage" <?php echo ($plugin_registration_form_redirect == 'homepage' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the homepage of my blog', 'oa_social_login'); ?><br />
|
899 |
+
<input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="dashboard" <?php echo ($plugin_registration_form_redirect == 'dashboard' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to their account dashboard', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong><br />
|
900 |
+
<input type="radio" name="oa_social_login_settings[plugin_registration_form_redirect]" value="custom" <?php echo ($plugin_registration_form_redirect == 'custom' ? 'checked="checked"' : ''); ?> /> <?php _e ('Redirect users to the following url', 'oa_social_login'); ?>:<br />
|
901 |
+
<input type="text" name="oa_social_login_settings[plugin_registration_form_redirect_custom_url]" size="90" value="<?php echo (isset ($settings ['plugin_registration_form_redirect_custom_url']) ? htmlspecialchars ($settings ['plugin_registration_form_redirect_custom_url']) : ''); ?>" />
|
902 |
+
</td>
|
903 |
+
</tr>
|
904 |
+
</table>
|
905 |
+
|
906 |
+
<table class="form-table oa_social_login_table">
|
907 |
+
<tr class="row_head">
|
908 |
+
<th>
|
909 |
+
<?php _e ('Administration Settings', 'oa_social_login'); ?>
|
910 |
+
</th>
|
911 |
+
</tr>
|
912 |
+
<tr class="row_odd">
|
913 |
+
<td>
|
914 |
+
<strong><?php _e ('Display the social networks used to connect in the user list of the administration area ?', 'oa_social_login');?></strong>
|
915 |
+
</td>
|
916 |
+
</tr>
|
917 |
+
<tr class="row_even">
|
918 |
+
<td>
|
919 |
+
<?php $plugin_add_column_user_list = (isset ($settings ['plugin_add_column_user_list']) AND $settings ['plugin_add_column_user_list'] == '1');?>
|
920 |
+
<input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="1" <?php echo ($plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('Yes, add a new column to the user list and display the used social network', 'oa_social_login'); ?> <br />
|
921 |
+
<input type="radio" name="oa_social_login_settings[plugin_add_column_user_list]" value="0" <?php echo (!$plugin_add_column_user_list ? 'checked="checked"' : ''); ?> /> <?php _e ('No, no not display the social network in the user list', 'oa_social_login'); ?> <strong>(<?php _e ('Default', 'oa_social_login') ?>)</strong>
|
922 |
+
</td>
|
923 |
+
</tr>
|
924 |
+
</table>
|
925 |
+
|
926 |
+
<p class="submit">
|
927 |
+
<input type="hidden" name="page" value="settings" />
|
928 |
+
<input type="submit" class="button-primary" value="<?php _e ('Save Changes', 'oa_social_login') ?>" />
|
929 |
+
</p>
|
930 |
+
</form>
|
931 |
+
</div>
|
932 |
</div>
|
933 |
<?php
|
934 |
+
}
|
935 |
+
|
includes/communication.php
CHANGED
@@ -143,9 +143,12 @@ function oa_social_login_callback ()
|
|
143 |
//Read existing user
|
144 |
if (($user_id_tmp = email_exists ($user_email)) !== false)
|
145 |
{
|
146 |
-
|
|
|
147 |
{
|
148 |
-
$user_id = $
|
|
|
|
|
149 |
delete_metadata ('user', null, 'oa_social_login_user_token', $user_token, true);
|
150 |
update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
|
151 |
update_user_meta ($user_id, 'oa_social_login_identity_id', $user_identity_id);
|
@@ -155,6 +158,9 @@ function oa_social_login_callback ()
|
|
155 |
{
|
156 |
update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
|
157 |
}
|
|
|
|
|
|
|
158 |
}
|
159 |
}
|
160 |
}
|
@@ -185,9 +191,11 @@ function oa_social_login_callback ()
|
|
185 |
}
|
186 |
|
187 |
//Email must be unique
|
|
|
188 |
if (!isset ($user_email) OR !is_email ($user_email) OR email_exists ($user_email))
|
189 |
{
|
190 |
$user_email = oa_social_login_create_rand_email ();
|
|
|
191 |
}
|
192 |
|
193 |
//Build user data
|
@@ -210,18 +218,36 @@ function oa_social_login_callback ()
|
|
210 |
update_user_meta ($user_id, 'oa_social_login_identity_id', $user_identity_id);
|
211 |
update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
|
212 |
|
|
|
213 |
if (!empty ($user_thumbnail))
|
214 |
{
|
215 |
update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
|
216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
218 |
}
|
219 |
|
220 |
//Sucess
|
221 |
-
|
|
|
222 |
{
|
223 |
//Setup Cookie
|
224 |
-
|
|
|
|
|
225 |
|
226 |
//Where did the user come from?
|
227 |
$oa_social_login_source = (!empty ($_REQUEST ['oa_social_login_source']) ? strtolower (trim ($_REQUEST ['oa_social_login_source'])) : '');
|
@@ -234,7 +260,8 @@ function oa_social_login_callback ()
|
|
234 |
{
|
235 |
//*************** Registration ***************
|
236 |
case 'registration':
|
237 |
-
|
|
|
238 |
$redirect_to = admin_url ();
|
239 |
|
240 |
//Redirection customized
|
@@ -245,7 +272,7 @@ function oa_social_login_callback ()
|
|
245 |
//Homepage
|
246 |
case 'homepage':
|
247 |
$redirect_to = site_url ();
|
248 |
-
|
249 |
|
250 |
//Custom
|
251 |
case 'custom':
|
@@ -253,21 +280,21 @@ function oa_social_login_callback ()
|
|
253 |
{
|
254 |
$redirect_to = trim ($settings ['plugin_registration_form_redirect_custom_url']);
|
255 |
}
|
256 |
-
|
257 |
|
258 |
//Default/Dashboard
|
259 |
default:
|
260 |
case 'dashboard':
|
261 |
$redirect_to = admin_url ();
|
262 |
-
|
263 |
}
|
264 |
}
|
265 |
-
|
266 |
|
267 |
|
268 |
//*************** Login ***************
|
269 |
case 'login':
|
270 |
-
|
271 |
$redirect_to = site_url ();
|
272 |
|
273 |
//Redirection in URL
|
@@ -304,14 +331,14 @@ function oa_social_login_callback ()
|
|
304 |
}
|
305 |
}
|
306 |
}
|
307 |
-
|
308 |
|
309 |
// *************** Other ***************
|
310 |
default:
|
311 |
//Get request URI - Should work on Apache + IIS
|
312 |
$request_uri = ((!isset ($_SERVER ['REQUEST_URI'])) ? $_SERVER ['PHP_SELF'] : $_SERVER ['REQUEST_URI']);
|
313 |
$request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');
|
314 |
-
$request_protocol = (
|
315 |
$redirect_to = $request_protocol . $_SERVER ['SERVER_NAME'] . $request_port . $request_uri;
|
316 |
|
317 |
//Remove the oa_social_login_source argument
|
@@ -406,7 +433,7 @@ function oa_social_login_check_fsockopen ()
|
|
406 |
*/
|
407 |
function oa_social_login_check_curl ()
|
408 |
{
|
409 |
-
if (in_array ('curl', get_loaded_extensions ()))
|
410 |
{
|
411 |
$result = oa_social_login_curl_request ('https://www.oneall.com/ping.html');
|
412 |
if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
|
143 |
//Read existing user
|
144 |
if (($user_id_tmp = email_exists ($user_email)) !== false)
|
145 |
{
|
146 |
+
$user_data = get_userdata ($user_id_tmp);
|
147 |
+
if ($user_data !== false)
|
148 |
{
|
149 |
+
$user_id = $user_data->ID;
|
150 |
+
$user_login = $user_data->user_login;
|
151 |
+
|
152 |
delete_metadata ('user', null, 'oa_social_login_user_token', $user_token, true);
|
153 |
update_user_meta ($user_id, 'oa_social_login_user_token', $user_token);
|
154 |
update_user_meta ($user_id, 'oa_social_login_identity_id', $user_identity_id);
|
158 |
{
|
159 |
update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
|
160 |
}
|
161 |
+
|
162 |
+
wp_cache_delete($user_id, 'users');
|
163 |
+
wp_cache_delete($user_login, 'userlogins');
|
164 |
}
|
165 |
}
|
166 |
}
|
191 |
}
|
192 |
|
193 |
//Email must be unique
|
194 |
+
$placeholder_email_used = false;
|
195 |
if (!isset ($user_email) OR !is_email ($user_email) OR email_exists ($user_email))
|
196 |
{
|
197 |
$user_email = oa_social_login_create_rand_email ();
|
198 |
+
$placeholder_email_used = true;
|
199 |
}
|
200 |
|
201 |
//Build user data
|
218 |
update_user_meta ($user_id, 'oa_social_login_identity_id', $user_identity_id);
|
219 |
update_user_meta ($user_id, 'oa_social_login_identity_provider', $user_identity_provider);
|
220 |
|
221 |
+
//Store thumbnail
|
222 |
if (!empty ($user_thumbnail))
|
223 |
{
|
224 |
update_user_meta ($user_id, 'oa_social_login_user_thumbnail', $user_thumbnail);
|
225 |
}
|
226 |
+
|
227 |
+
//Email is required
|
228 |
+
if ( ! empty ($settings ['plugin_require_email']))
|
229 |
+
{
|
230 |
+
//We don't have the real email
|
231 |
+
if ($placeholder_email_used)
|
232 |
+
{
|
233 |
+
update_user_meta ($user_id, 'oa_social_login_request_email', 1);
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
wp_cache_delete($user_id, 'users');
|
238 |
+
wp_cache_delete($user_login, 'userlogins');
|
239 |
+
do_action('user_register', $user_id);
|
240 |
}
|
241 |
}
|
242 |
|
243 |
//Sucess
|
244 |
+
$user_data = get_userdata ($user_id);
|
245 |
+
if ($user_data !== false)
|
246 |
{
|
247 |
//Setup Cookie
|
248 |
+
wp_clear_auth_cookie();
|
249 |
+
wp_set_auth_cookie ($user_data->ID, true);
|
250 |
+
do_action('wp_login', $user_data->user_login, $user_data);
|
251 |
|
252 |
//Where did the user come from?
|
253 |
$oa_social_login_source = (!empty ($_REQUEST ['oa_social_login_source']) ? strtolower (trim ($_REQUEST ['oa_social_login_source'])) : '');
|
260 |
{
|
261 |
//*************** Registration ***************
|
262 |
case 'registration':
|
263 |
+
|
264 |
+
//Default redirection
|
265 |
$redirect_to = admin_url ();
|
266 |
|
267 |
//Redirection customized
|
272 |
//Homepage
|
273 |
case 'homepage':
|
274 |
$redirect_to = site_url ();
|
275 |
+
break;
|
276 |
|
277 |
//Custom
|
278 |
case 'custom':
|
280 |
{
|
281 |
$redirect_to = trim ($settings ['plugin_registration_form_redirect_custom_url']);
|
282 |
}
|
283 |
+
break;
|
284 |
|
285 |
//Default/Dashboard
|
286 |
default:
|
287 |
case 'dashboard':
|
288 |
$redirect_to = admin_url ();
|
289 |
+
break;
|
290 |
}
|
291 |
}
|
292 |
+
break;
|
293 |
|
294 |
|
295 |
//*************** Login ***************
|
296 |
case 'login':
|
297 |
+
//Default redirection
|
298 |
$redirect_to = site_url ();
|
299 |
|
300 |
//Redirection in URL
|
331 |
}
|
332 |
}
|
333 |
}
|
334 |
+
break;
|
335 |
|
336 |
// *************** Other ***************
|
337 |
default:
|
338 |
//Get request URI - Should work on Apache + IIS
|
339 |
$request_uri = ((!isset ($_SERVER ['REQUEST_URI'])) ? $_SERVER ['PHP_SELF'] : $_SERVER ['REQUEST_URI']);
|
340 |
$request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');
|
341 |
+
$request_protocol = (oa_social_login_https_on () ? 'https' : 'http') . "://";
|
342 |
$redirect_to = $request_protocol . $_SERVER ['SERVER_NAME'] . $request_port . $request_uri;
|
343 |
|
344 |
//Remove the oa_social_login_source argument
|
433 |
*/
|
434 |
function oa_social_login_check_curl ()
|
435 |
{
|
436 |
+
if (in_array ('curl', get_loaded_extensions ()) AND function_exists('curl_exec'))
|
437 |
{
|
438 |
$result = oa_social_login_curl_request ('https://www.oneall.com/ping.html');
|
439 |
if (is_object ($result) AND property_exists ($result, 'http_code') AND $result->http_code == 200)
|
includes/settings.php
CHANGED
@@ -4,44 +4,50 @@
|
|
4 |
* Providers that are currently enabled
|
5 |
*/
|
6 |
$oa_social_login_providers = array (
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
);
|
47 |
|
4 |
* Providers that are currently enabled
|
5 |
*/
|
6 |
$oa_social_login_providers = array (
|
7 |
+
'facebook' => array (
|
8 |
+
'name' => 'Facebook'
|
9 |
+
),
|
10 |
+
'twitter' => array (
|
11 |
+
'name' => 'Twitter'
|
12 |
+
),
|
13 |
+
'google' => array (
|
14 |
+
'name' => 'Google'
|
15 |
+
),
|
16 |
+
'linkedin' => array (
|
17 |
+
'name' => 'LinkedIn'
|
18 |
+
),
|
19 |
+
'yahoo' => array (
|
20 |
+
'name' => 'Yahoo'
|
21 |
+
),
|
22 |
+
'openid' => array (
|
23 |
+
'name' => 'OpenID'
|
24 |
+
),
|
25 |
+
'wordpress' => array (
|
26 |
+
'name' => 'Wordpress.com'
|
27 |
+
),
|
28 |
+
'hyves' => array (
|
29 |
+
'name' => 'Hyves'
|
30 |
+
),
|
31 |
+
'paypal' => array (
|
32 |
+
'name' => 'PayPal'
|
33 |
+
),
|
34 |
+
'livejournal' => array (
|
35 |
+
'name' => 'LiveJournal'
|
36 |
+
),
|
37 |
+
'steam' => array (
|
38 |
+
'name' => 'Steam'
|
39 |
+
),
|
40 |
+
'windowslive' => array (
|
41 |
+
'name' => 'Windows Live'
|
42 |
+
),
|
43 |
+
'stackexchange' => array (
|
44 |
+
'name' => 'StackExchange'
|
45 |
+
),
|
46 |
+
'vkontakte' => array (
|
47 |
+
'name' => 'VKontakte (Вконтакте)'
|
48 |
+
),
|
49 |
+
'mailru' => array (
|
50 |
+
'name' => 'Mail.ru'
|
51 |
+
)
|
52 |
);
|
53 |
|
includes/toolbox.php
CHANGED
@@ -15,6 +15,66 @@ function oa_social_login_init ()
|
|
15 |
oa_social_login_callback ();
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
/**
|
20 |
* Get the user details for a specific token
|
@@ -37,9 +97,5 @@ function oa_social_login_create_rand_email ()
|
|
37 |
$email = md5 (uniqid (wp_rand (10000, 99000))) . "@example.com";
|
38 |
}
|
39 |
while (email_exists ($email));
|
40 |
-
|
41 |
return $email;
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
|
15 |
oa_social_login_callback ();
|
16 |
}
|
17 |
|
18 |
+
/**
|
19 |
+
* Add Site CSS
|
20 |
+
**/
|
21 |
+
function oa_social_login_add_site_css ()
|
22 |
+
{
|
23 |
+
if (!wp_style_is ('oa_social_login_site_css', 'registered'))
|
24 |
+
{
|
25 |
+
wp_register_style ('oa_social_login_site_css', OA_SOCIAL_LOGIN_PLUGIN_URL . "/assets/css/site.css");
|
26 |
+
}
|
27 |
+
|
28 |
+
if (did_action ('wp_print_styles'))
|
29 |
+
{
|
30 |
+
wp_print_styles ('oa_social_login_site_css');
|
31 |
+
}
|
32 |
+
else
|
33 |
+
{
|
34 |
+
wp_enqueue_style ('oa_social_login_site_css');
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Check if the current connection is over https
|
41 |
+
*/
|
42 |
+
function oa_social_login_https_on()
|
43 |
+
{
|
44 |
+
if ( ! empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] == '443')
|
45 |
+
{
|
46 |
+
return true;
|
47 |
+
}
|
48 |
+
elseif ( ! empty ($_SERVER ['HTTP_X_FORWARDED_PROTO']) AND strtolower($_SERVER ['HTTP_X_FORWARDED_PROTO']) == 'https')
|
49 |
+
{
|
50 |
+
return true;
|
51 |
+
}
|
52 |
+
elseif ( ! empty ($_SERVER ['HTTPS']) AND strtolower($_SERVER ['HTTPS']) == 'on')
|
53 |
+
{
|
54 |
+
return true;
|
55 |
+
}
|
56 |
+
return false;
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Escape an attribute
|
62 |
+
*/
|
63 |
+
function oa_social_login_esc_attr ($string)
|
64 |
+
{
|
65 |
+
//Available since Wordpress 2.8
|
66 |
+
if (function_exists('esc_attr'))
|
67 |
+
{
|
68 |
+
return esc_attr ($string);
|
69 |
+
}
|
70 |
+
//Deprecated as of Wordpress 2.8
|
71 |
+
elseif (function_exists('attribute_escape'))
|
72 |
+
{
|
73 |
+
return attribute_escape($string);
|
74 |
+
}
|
75 |
+
return htmlspecialchars ($string);
|
76 |
+
}
|
77 |
+
|
78 |
|
79 |
/**
|
80 |
* Get the user details for a specific token
|
97 |
$email = md5 (uniqid (wp_rand (10000, 99000))) . "@example.com";
|
98 |
}
|
99 |
while (email_exists ($email));
|
|
|
100 |
return $email;
|
101 |
+
}
|
|
|
|
|
|
includes/user_interface.php
CHANGED
@@ -13,7 +13,7 @@ function oa_social_login_add_javascripts ()
|
|
13 |
if (!empty ($settings ['api_subdomain']))
|
14 |
{
|
15 |
//Include in header, without having the version appended
|
16 |
-
wp_register_script ("oa_social_library", ((
|
17 |
}
|
18 |
}
|
19 |
wp_print_scripts ('oa_social_library');
|
@@ -47,41 +47,54 @@ function oa_social_login_custom_avatar ($avatar, $mixed, $size, $default, $alt =
|
|
47 |
//Check if we are in a comment
|
48 |
if (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) AND $oa_social_login_settings ['plugin_show_avatars_in_comments'] == '1')
|
49 |
{
|
|
|
|
|
|
|
50 |
//Chosen user
|
51 |
$user_id = null;
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
//Check if we have an user identifier
|
54 |
-
|
55 |
{
|
56 |
if ($mixed > 0)
|
57 |
{
|
58 |
-
|
59 |
}
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
61 |
//Check if we have an user object
|
62 |
else if(is_object($mixed))
|
63 |
{
|
64 |
if (property_exists ($mixed, 'user_id') AND is_numeric ($mixed->user_id))
|
65 |
{
|
66 |
-
|
67 |
}
|
68 |
}
|
69 |
|
|
|
70 |
if ( ! empty ($user_id))
|
71 |
{
|
72 |
-
//Read Thumbnail
|
73 |
if (($user_thumbnail = get_user_meta ($user_id, 'oa_social_login_user_thumbnail', true)) !== false)
|
74 |
{
|
75 |
if (strlen (trim ($user_thumbnail)) > 0)
|
76 |
{
|
77 |
-
return '<img alt="'.
|
78 |
}
|
79 |
}
|
80 |
}
|
81 |
}
|
82 |
|
83 |
-
|
84 |
-
|
85 |
}
|
86 |
add_filter ('get_avatar', 'oa_social_login_custom_avatar', 10, 5);
|
87 |
|
@@ -96,6 +109,8 @@ function oa_social_login_filter_comment_form_defaults($default_fields)
|
|
96 |
{
|
97 |
//Read settings
|
98 |
$settings = get_option ('oa_social_login_settings');
|
|
|
|
|
99 |
if ( ! empty($settings['plugin_comment_show_if_members_only']))
|
100 |
{
|
101 |
if ( ! isset ($default_fields['must_log_in']))
|
@@ -116,9 +131,17 @@ add_filter('comment_form_defaults', 'oa_social_login_filter_comment_form_default
|
|
116 |
*/
|
117 |
function oa_social_login_render_login_form_comments ()
|
118 |
{
|
|
|
119 |
if (comments_open () && !is_user_logged_in ())
|
120 |
{
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
}
|
124 |
add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
|
@@ -136,7 +159,7 @@ function oa_social_login_render_login_form_registration ()
|
|
136 |
$settings = get_option ('oa_social_login_settings');
|
137 |
|
138 |
//Display buttons if option not set or enabled
|
139 |
-
if (!isset ($settings ['plugin_display_in_registration_form']) OR $settings ['plugin_display_in_registration_form']
|
140 |
{
|
141 |
echo oa_social_login_render_login_form ('registration');
|
142 |
}
|
@@ -220,10 +243,10 @@ function oa_social_login_render_login_form ($source, $args = array())
|
|
220 |
}
|
221 |
|
222 |
//Themes are served from the CDN
|
223 |
-
$theme_uri_prefix = (
|
224 |
|
225 |
//Themes
|
226 |
-
$css_theme_uri_small = $theme_uri_prefix . '
|
227 |
$css_theme_uri_default = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/default.css';
|
228 |
|
229 |
//Widget
|
@@ -248,8 +271,13 @@ function oa_social_login_render_login_form ($source, $args = array())
|
|
248 |
$css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
|
249 |
}
|
250 |
|
251 |
-
//
|
252 |
-
if (count ($providers)
|
|
|
|
|
|
|
|
|
|
|
253 |
{
|
254 |
//Random integer
|
255 |
$rand = mt_rand (99999, 9999999);
|
@@ -261,7 +289,7 @@ function oa_social_login_render_login_form ($source, $args = array())
|
|
261 |
//Add the caption?
|
262 |
if (!empty ($plugin_caption))
|
263 |
{
|
264 |
-
$output [] = ' <div style="margin-bottom: 3px;"><label>' . __ ($plugin_caption) . '</label></div>';
|
265 |
}
|
266 |
|
267 |
//Add the Plugin
|
@@ -273,7 +301,7 @@ function oa_social_login_render_login_form ($source, $args = array())
|
|
273 |
$output [] = ' "css_theme_uri": "' . $css_theme_uri . '" ';
|
274 |
$output [] = ' });';
|
275 |
$output [] = ' </script>';
|
276 |
-
$output [] = ' <!-- oneall.com / Social Login for Wordpress /
|
277 |
$output [] = '</div>';
|
278 |
|
279 |
//Done
|
@@ -284,3 +312,119 @@ function oa_social_login_render_login_form ($source, $args = array())
|
|
284 |
return $output;
|
285 |
}
|
286 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
if (!empty ($settings ['api_subdomain']))
|
14 |
{
|
15 |
//Include in header, without having the version appended
|
16 |
+
wp_register_script ("oa_social_library", ((oa_social_login_https_on () ? 'https' : 'http') . '://' . $settings ['api_subdomain'] . '.api.oneall.com/socialize/library.js'), array (), null, false);
|
17 |
}
|
18 |
}
|
19 |
wp_print_scripts ('oa_social_library');
|
47 |
//Check if we are in a comment
|
48 |
if (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) AND $oa_social_login_settings ['plugin_show_avatars_in_comments'] == '1')
|
49 |
{
|
50 |
+
//Current comment
|
51 |
+
global $comment;
|
52 |
+
|
53 |
//Chosen user
|
54 |
$user_id = null;
|
55 |
|
56 |
+
//Check if we are in a comment
|
57 |
+
if (is_object ($comment) AND property_exists ($comment, 'user_id') AND !empty ($comment->user_id))
|
58 |
+
{
|
59 |
+
$user_id = $comment->user_id;
|
60 |
+
}
|
61 |
//Check if we have an user identifier
|
62 |
+
elseif (is_numeric($mixed))
|
63 |
{
|
64 |
if ($mixed > 0)
|
65 |
{
|
66 |
+
$user_id = $mixed;
|
67 |
}
|
68 |
}
|
69 |
+
//Check if we have an email
|
70 |
+
elseif (is_string($mixed) && ($user = get_user_by( 'email', $mixed)))
|
71 |
+
{
|
72 |
+
$user_id = $user->ID;
|
73 |
+
}
|
74 |
//Check if we have an user object
|
75 |
else if(is_object($mixed))
|
76 |
{
|
77 |
if (property_exists ($mixed, 'user_id') AND is_numeric ($mixed->user_id))
|
78 |
{
|
79 |
+
$user_id = $mixed->user_id;
|
80 |
}
|
81 |
}
|
82 |
|
83 |
+
//User found?
|
84 |
if ( ! empty ($user_id))
|
85 |
{
|
|
|
86 |
if (($user_thumbnail = get_user_meta ($user_id, 'oa_social_login_user_thumbnail', true)) !== false)
|
87 |
{
|
88 |
if (strlen (trim ($user_thumbnail)) > 0)
|
89 |
{
|
90 |
+
return '<img alt="'. oa_social_login_esc_attr($alt) .'" src="'.$user_thumbnail.'" class="avatar avatar-social-login avatar-'.$size.' photo" height="'.$size.'" width="'.$size.'" />';
|
91 |
}
|
92 |
}
|
93 |
}
|
94 |
}
|
95 |
|
96 |
+
//Default
|
97 |
+
return $avatar;
|
98 |
}
|
99 |
add_filter ('get_avatar', 'oa_social_login_custom_avatar', 10, 5);
|
100 |
|
109 |
{
|
110 |
//Read settings
|
111 |
$settings = get_option ('oa_social_login_settings');
|
112 |
+
|
113 |
+
//Display buttons if option not set or disabled
|
114 |
if ( ! empty($settings['plugin_comment_show_if_members_only']))
|
115 |
{
|
116 |
if ( ! isset ($default_fields['must_log_in']))
|
131 |
*/
|
132 |
function oa_social_login_render_login_form_comments ()
|
133 |
{
|
134 |
+
//Comments are open and the user is not logged in
|
135 |
if (comments_open () && !is_user_logged_in ())
|
136 |
{
|
137 |
+
//Read settings
|
138 |
+
$settings = get_option ('oa_social_login_settings');
|
139 |
+
|
140 |
+
//Display buttons if option not set or not disabled
|
141 |
+
if (!isset ($settings ['plugin_comment_show']) OR ! empty ($settings ['plugin_comment_show']))
|
142 |
+
{
|
143 |
+
echo oa_social_login_render_login_form ('comments');
|
144 |
+
}
|
145 |
}
|
146 |
}
|
147 |
add_action ('comment_form_top', 'oa_social_login_render_login_form_comments');
|
159 |
$settings = get_option ('oa_social_login_settings');
|
160 |
|
161 |
//Display buttons if option not set or enabled
|
162 |
+
if (!isset ($settings ['plugin_display_in_registration_form']) OR ! empty ($settings ['plugin_display_in_registration_form']))
|
163 |
{
|
164 |
echo oa_social_login_render_login_form ('registration');
|
165 |
}
|
243 |
}
|
244 |
|
245 |
//Themes are served from the CDN
|
246 |
+
$theme_uri_prefix = (oa_social_login_https_on () ? 'https://secure.oneallcdn.com' : 'http://public.oneallcdn.com');
|
247 |
|
248 |
//Themes
|
249 |
+
$css_theme_uri_small = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/small.css';
|
250 |
$css_theme_uri_default = $theme_uri_prefix . '/css/api/socialize/themes/wordpress/default.css';
|
251 |
|
252 |
//Widget
|
271 |
$css_theme_uri = (!empty ($settings ['plugin_use_small_buttons']) ? $css_theme_uri_small : $css_theme_uri_default);
|
272 |
}
|
273 |
|
274 |
+
//No providers selected
|
275 |
+
if (count ($providers) == 0)
|
276 |
+
{
|
277 |
+
$output = '<div style="color:white;background-color:red;">[Social Login] '.__ ('Please enable at least one social network!').'</div>';
|
278 |
+
}
|
279 |
+
//Providers selected
|
280 |
+
else
|
281 |
{
|
282 |
//Random integer
|
283 |
$rand = mt_rand (99999, 9999999);
|
289 |
//Add the caption?
|
290 |
if (!empty ($plugin_caption))
|
291 |
{
|
292 |
+
$output [] = ' <div class="oneall_social_login_label" style="margin-bottom: 3px;"><label>' . __ ($plugin_caption) . '</label></div>';
|
293 |
}
|
294 |
|
295 |
//Add the Plugin
|
301 |
$output [] = ' "css_theme_uri": "' . $css_theme_uri . '" ';
|
302 |
$output [] = ' });';
|
303 |
$output [] = ' </script>';
|
304 |
+
$output [] = ' <!-- oneall.com / Social Login for Wordpress / v3.0 -->';
|
305 |
$output [] = '</div>';
|
306 |
|
307 |
//Done
|
312 |
return $output;
|
313 |
}
|
314 |
}
|
315 |
+
|
316 |
+
|
317 |
+
|
318 |
+
/**
|
319 |
+
* Request email from user
|
320 |
+
*/
|
321 |
+
function oa_social_login_request_email()
|
322 |
+
{
|
323 |
+
//Get the current user
|
324 |
+
$current_user = wp_get_current_user();
|
325 |
+
|
326 |
+
//Check if logged in
|
327 |
+
if ( ! empty ($current_user->ID) AND is_numeric ($current_user->ID))
|
328 |
+
{
|
329 |
+
//Current user
|
330 |
+
$user_id = $current_user->ID;
|
331 |
+
|
332 |
+
//Check if email has to be requested
|
333 |
+
$oa_social_login_request_email = get_user_meta($user_id, 'oa_social_login_request_email', true);
|
334 |
+
if ( ! empty ($oa_social_login_request_email))
|
335 |
+
{
|
336 |
+
//Display modal dialog?
|
337 |
+
$display_modal = true;
|
338 |
+
|
339 |
+
//Messaging
|
340 |
+
$message = '';
|
341 |
+
|
342 |
+
//Form submitted
|
343 |
+
if ( isset ($_POST) AND ! empty ($_POST['oa_social_login_action']) AND $_POST['oa_social_login_action'] == 'confirm_email')
|
344 |
+
{
|
345 |
+
$user_email = (empty ($_POST['oa_social_login_email']) ? '' : trim ($_POST['oa_social_login_email']));
|
346 |
+
if (empty ($user_email))
|
347 |
+
{
|
348 |
+
$message = __('Please enter your email address','oa_social_login');
|
349 |
+
}
|
350 |
+
else
|
351 |
+
{
|
352 |
+
if (!is_email ($user_email))
|
353 |
+
{
|
354 |
+
$message = __('This email is not valid','oa_social_login');
|
355 |
+
}
|
356 |
+
elseif (email_exists ($user_email))
|
357 |
+
{
|
358 |
+
|
359 |
+
$message = __('This email is already used by another account','oa_social_login');
|
360 |
+
}
|
361 |
+
else
|
362 |
+
{
|
363 |
+
wp_update_user(array ('ID' => $user_id, 'user_email' => $user_email));
|
364 |
+
delete_user_meta($user_id, 'oa_social_login_request_email');
|
365 |
+
$display_modal = false;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
}
|
369 |
+
|
370 |
+
//Display modal dialog?
|
371 |
+
if ($display_modal === true)
|
372 |
+
{
|
373 |
+
//Read Settings
|
374 |
+
$oa_social_login_settings = get_option ('oa_social_login_settings');
|
375 |
+
|
376 |
+
//Read the social network
|
377 |
+
$oa_social_login_identity_provider = get_user_meta($user_id, 'oa_social_login_identity_provider', true);
|
378 |
+
|
379 |
+
//Caption
|
380 |
+
$caption = (isset ($oa_social_login_settings['plugin_require_email_text']) ? $oa_social_login_settings['plugin_require_email_text'] : __('<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue.', 'oa_social_login'));
|
381 |
+
|
382 |
+
//Add CSS
|
383 |
+
oa_social_login_add_site_css();
|
384 |
+
|
385 |
+
//Show email request form
|
386 |
+
?>
|
387 |
+
<div id="oa_social_login_overlay"></div>
|
388 |
+
<div id="oa_social_login_modal">
|
389 |
+
<div class="oa_social_login_modal_outer">
|
390 |
+
<div class="oa_social_login_modal_inner">
|
391 |
+
<div class="oa_social_login_modal_title">
|
392 |
+
<?php printf (__ ('You have successfully connected with %s!', 'oa_social_login'), '<strong>'.$oa_social_login_identity_provider.'</strong>'); ?>
|
393 |
+
</div>
|
394 |
+
<?php
|
395 |
+
if (strlen (trim ($caption)) > 0)
|
396 |
+
{
|
397 |
+
?>
|
398 |
+
<div class="oa_social_login_modal_notice"><?php printf ($caption, $oa_social_login_identity_provider); ?></div>
|
399 |
+
<?php
|
400 |
+
}
|
401 |
+
?>
|
402 |
+
<div class="oa_social_login_modal_body">
|
403 |
+
<div class="oa_social_login_modal_subtitle">
|
404 |
+
Your email address:
|
405 |
+
</div>
|
406 |
+
<form method="post" action="">
|
407 |
+
<fieldset>
|
408 |
+
<div>
|
409 |
+
<input type="text" name="oa_social_login_email" class="inputtxt" value="<?php echo ( ! empty ($_POST['oa_social_login_email']) ? oa_social_login_esc_attr($_POST['oa_social_login_email']) : ''); ?>" />
|
410 |
+
<input type="hidden" name="oa_social_login_action" value="confirm_email" size="30" />
|
411 |
+
</div>
|
412 |
+
<div class="oa_social_login_modal_error">
|
413 |
+
<?php echo $message; ?>
|
414 |
+
</div>
|
415 |
+
<div class="oa_social_login_modal_button">
|
416 |
+
<input type="submit" value="Confirm my email address" class="inputbutton" />
|
417 |
+
</div>
|
418 |
+
</fieldset>
|
419 |
+
</form>
|
420 |
+
</div>
|
421 |
+
</div>
|
422 |
+
</div>
|
423 |
+
</div>
|
424 |
+
<?php
|
425 |
+
}
|
426 |
+
}
|
427 |
+
}
|
428 |
+
}
|
429 |
+
add_action('wp_footer', 'oa_social_login_request_email');
|
430 |
+
add_action('admin_footer', 'oa_social_login_request_email');
|
languages/oa_social_login-de_DE.mo
CHANGED
Binary file
|
languages/oa_social_login-de_DE.po
CHANGED
@@ -2,10 +2,11 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Social Login\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-
|
6 |
-
"PO-Revision-Date: 2012-
|
7 |
-
"Last-Translator: Claude
|
8 |
"Language-Team: \n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -21,379 +22,486 @@ msgid "This plugin requires WordPress %s or newer. Please update your WordPress
|
|
21 |
msgstr "Dieses Plugin benötigt Wordpress %s oder höher. Bitte aktualisieren Sie Ihr Wordpress bevor Sie das Plugin installieren"
|
22 |
|
23 |
#: oa-social-login.php:45
|
|
|
|
|
24 |
msgid "Settings"
|
25 |
msgstr "Einstellungen"
|
26 |
|
27 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Thank you for using the Social Login Plugin!"
|
29 |
msgstr "Danke dass Sie Social Login installiert haben!"
|
30 |
|
31 |
-
#: includes/admin.php:
|
32 |
#, php-format
|
33 |
-
msgid "Please go to the <strong><a href=\"%s\">
|
34 |
msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
|
35 |
|
36 |
-
#: includes/admin.php:
|
37 |
msgid "Contacting API - please wait ..."
|
38 |
msgstr "Teste Einstellungen - bitte warten ..."
|
39 |
|
40 |
-
#: includes/admin.php:
|
41 |
msgid "The settings are correct - do not forget to save your changes!"
|
42 |
msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
|
43 |
|
44 |
-
#: includes/admin.php:
|
45 |
msgid "Please fill out each of the fields above."
|
46 |
msgstr "Bitte füllen Sie alle Felder aus"
|
47 |
|
48 |
-
#: includes/admin.php:
|
49 |
msgid "The subdomain does not exist. Have you filled it out correctly?"
|
50 |
msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
|
51 |
|
52 |
-
#: includes/admin.php:
|
53 |
msgid "The subdomain has a wrong syntax!"
|
54 |
msgstr "Die Subdomain ist ungültig"
|
55 |
|
56 |
-
#: includes/admin.php:
|
57 |
-
msgid "Could not contact API. Are
|
58 |
-
msgstr "Keine Verbindung zur API.
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
#: includes/admin.php:
|
61 |
-
msgid "
|
62 |
-
msgstr "
|
63 |
|
64 |
-
#: includes/admin.php:
|
65 |
msgid "Autodetected PHP CURL - do not forget to save your changes!"
|
66 |
msgstr "PHP CURL gefunden! Vergessen Sie nicht abzuspeichern!"
|
67 |
|
68 |
-
#: includes/admin.php:
|
69 |
msgid "Autodetected PHP FSOCKOPEN - do not forget to save your changes!"
|
70 |
msgstr "PHP FSOCKOPEN gefunden! Vergessen Sie nicht abzuspeichern!"
|
71 |
|
72 |
-
#: includes/admin.php:
|
73 |
#, php-format
|
74 |
msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
|
75 |
msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
|
76 |
|
77 |
-
#: includes/admin.php:
|
78 |
-
msgid "Social Login Settings"
|
79 |
-
msgstr "Social Login Einstellungen"
|
80 |
-
|
81 |
-
#: includes/admin.php:366
|
82 |
-
msgid "Make your blog social!"
|
83 |
-
msgstr "Verbinden Sie Ihren Blog mit den sozialen Netzwerken!"
|
84 |
-
|
85 |
-
#: includes/admin.php:370
|
86 |
msgid "Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
|
87 |
msgstr "Erlauben Sie Ihren Besuchern, sich mit sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
|
88 |
|
89 |
-
#: includes/admin.php:
|
90 |
msgid "Draw a larger audience and increase user engagement in a few simple steps."
|
91 |
msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
|
92 |
|
93 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
|
|
94 |
#, php-format
|
95 |
-
msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site"
|
96 |
msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
|
97 |
|
98 |
-
#: includes/admin.php:
|
99 |
msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
|
100 |
msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in nachfolgendes Formular eintragen."
|
101 |
|
102 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
#, php-format
|
104 |
msgid "You are in good company! This plugin is used on more than %s websites!"
|
105 |
msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie dabei!"
|
106 |
|
107 |
-
#: includes/admin.php:
|
108 |
-
msgid "Setup my free account"
|
109 |
-
msgstr "Kostenloses Konto anmelden"
|
110 |
-
|
111 |
-
#: includes/admin.php:392
|
112 |
msgid "Your API Account is setup correctly"
|
113 |
msgstr "Die API-Daten sind korrekt"
|
114 |
|
115 |
-
#: includes/admin.php:
|
116 |
-
msgid "Login to your account to manage your providers and access your Social Insights"
|
117 |
-
msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen"
|
118 |
|
119 |
-
#: includes/admin.php:
|
120 |
msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
|
121 |
msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
|
122 |
|
123 |
-
#: includes/admin.php:
|
124 |
-
msgid "
|
125 |
-
msgstr "
|
126 |
|
127 |
-
#: includes/admin.php:
|
128 |
msgid "Help, Updates & Documentation"
|
129 |
msgstr "Hilfe, Updates & Dokumentation"
|
130 |
|
131 |
-
#: includes/admin.php:
|
132 |
#, php-format
|
133 |
msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
|
134 |
msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
|
135 |
|
136 |
-
#: includes/admin.php:
|
137 |
#, php-format
|
138 |
msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
|
139 |
msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
|
140 |
|
141 |
-
#: includes/admin.php:
|
142 |
#, php-format
|
143 |
msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
|
144 |
msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
|
145 |
|
146 |
-
#: includes/admin.php:
|
147 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
|
|
|
|
148 |
msgid "API Connection Handler"
|
149 |
msgstr "API Kommunikation"
|
150 |
|
151 |
-
#: includes/admin.php:
|
152 |
msgid "Use PHP CURL to communicate with the API"
|
153 |
msgstr "PHP CURL verwenden"
|
154 |
|
155 |
-
#: includes/admin.php:
|
156 |
-
#: includes/admin.php:
|
157 |
-
#: includes/admin.php:
|
158 |
-
#: includes/admin.php:
|
159 |
-
#: includes/admin.php:
|
160 |
-
#: includes/admin.php:
|
161 |
-
#: includes/admin.php:
|
162 |
-
#: includes/admin.php:
|
163 |
-
#: includes/admin.php:
|
164 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
165 |
msgid "Default"
|
166 |
msgstr "Standard"
|
167 |
|
168 |
-
#: includes/admin.php:
|
169 |
msgid "Using CURL is recommended but it might be disabled on some servers."
|
170 |
msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
|
171 |
|
172 |
-
#: includes/admin.php:
|
173 |
msgid "Use PHP FSOCKOPEN to communicate with the API"
|
174 |
msgstr "PHP FSOCKOPEN verwenden"
|
175 |
|
176 |
-
#: includes/admin.php:
|
177 |
msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
|
178 |
msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
|
179 |
|
180 |
-
#: includes/admin.php:
|
181 |
msgid "Autodetect API Connection"
|
182 |
msgstr "Automatisch erkennen"
|
183 |
|
184 |
-
#: includes/admin.php:
|
185 |
msgid "API Settings"
|
186 |
msgstr "API Einstellungen"
|
187 |
|
188 |
-
#: includes/admin.php:
|
189 |
msgid "Click here to create and view your API Credentials"
|
190 |
msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
|
191 |
|
192 |
-
#: includes/admin.php:
|
193 |
msgid "API Subdomain"
|
194 |
msgstr "API Subdomain"
|
195 |
|
196 |
-
#: includes/admin.php:
|
197 |
msgid "API Public Key"
|
198 |
msgstr "API Public Key"
|
199 |
|
200 |
-
#: includes/admin.php:
|
201 |
msgid "API Private Key"
|
202 |
msgstr "API Private Key"
|
203 |
|
204 |
-
#: includes/admin.php:
|
205 |
msgid "Verify API Settings"
|
206 |
msgstr "API-Einstellungen überprüfen"
|
207 |
|
208 |
-
#: includes/admin.php:
|
209 |
msgid "Enable the social networks/identity providers of your choice"
|
210 |
msgstr "Wählen Sie die sozialen Netzwerke aus:"
|
211 |
|
212 |
-
#: includes/admin.php:
|
213 |
#, php-format
|
214 |
msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
|
215 |
msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
|
216 |
|
217 |
-
#: includes/admin.php:
|
218 |
-
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
220 |
|
221 |
-
#: includes/admin.php:
|
222 |
-
msgid "Social Login is a plugin that allows your users to comment and
|
223 |
-
msgstr "Social Login erlaubt es Ihren Benutzern, sich mit dem Konto eines sozialen Netzwerks anzumelden. Bei Benutzern die bereits eingeloggt sind wird das Plugin daher nicht angezeigt. Der Benutzer ist ja bereits angemeldet und benötigt keine weitere Anmeldenmöglichkeit.
|
224 |
|
225 |
-
#: includes/admin.php:
|
226 |
-
msgid "You
|
227 |
msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
|
228 |
|
229 |
-
#: includes/admin.php:
|
230 |
msgid "Basic Settings"
|
231 |
msgstr "Grundeinstellungen"
|
232 |
|
233 |
-
#: includes/admin.php:
|
234 |
msgid "Enter the description to be displayed above the social network login buttons (leave empty for none):"
|
235 |
msgstr "Welcher Text soll über den Icons der sozialen Netzwerk angezeigt werden (ggf. leer lassen) ?"
|
236 |
|
237 |
-
#: includes/admin.php:
|
238 |
msgid "Connect with:"
|
239 |
msgstr "Einloggen mit:"
|
240 |
|
241 |
-
#: includes/admin.php:
|
242 |
msgid "If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?"
|
243 |
msgstr "Wollen Sie die Nutzer-Avatare der sozialen Netwerke gegebenenfalls verwenden?"
|
244 |
|
245 |
-
#: includes/admin.php:
|
246 |
msgid "Yes, show user avatars from social networks if available"
|
247 |
msgstr "Ja, zeige den sozialen Avatar des Benutzer in den Kommentaren dieses Benutzers an"
|
248 |
|
249 |
-
#: includes/admin.php:
|
250 |
msgid "No, display the default avatars"
|
251 |
msgstr "Nein, zeige die Standard-Avatare"
|
252 |
|
253 |
-
#: includes/admin.php:
|
254 |
msgid "Do you want to use the default or the small social network buttons?"
|
255 |
msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
|
256 |
|
257 |
-
#: includes/admin.php:
|
258 |
#, php-format
|
259 |
msgid "Use the default social network buttons (%s)"
|
260 |
msgstr "Standard-Icons verwenden (%s)"
|
261 |
|
262 |
-
#: includes/admin.php:
|
263 |
#, php-format
|
264 |
msgid "Use the small social network buttons (%s)"
|
265 |
msgstr "Kleine Icons verwenden (%s)"
|
266 |
|
267 |
-
#: includes/admin.php:
|
268 |
msgid "Comment Settings"
|
269 |
msgstr "Einstellungen: Kommentare"
|
270 |
|
271 |
-
#: includes/admin.php:
|
272 |
-
msgid "Show the Social Login buttons the comment area
|
273 |
-
msgstr "
|
274 |
|
275 |
-
#: includes/admin.php:
|
276 |
-
|
277 |
-
|
|
|
278 |
|
279 |
-
#: includes/admin.php:
|
280 |
-
|
281 |
-
|
|
|
282 |
|
283 |
-
#: includes/admin.php:
|
284 |
-
msgid "
|
285 |
-
msgstr "
|
286 |
|
287 |
-
#: includes/admin.php:
|
288 |
-
msgid "
|
289 |
-
msgstr "
|
290 |
|
291 |
-
#: includes/admin.php:
|
292 |
-
msgid "
|
293 |
-
msgstr "
|
294 |
|
295 |
-
#: includes/admin.php:
|
296 |
-
msgid "Yes, automatically approve comments made by users that connected with
|
297 |
msgstr "Ja, Kommentare automatisch freischalten"
|
298 |
|
299 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
|
|
300 |
msgid "Login Settings"
|
301 |
msgstr "Einstellungen: Einloggen"
|
302 |
|
303 |
-
#: includes/admin.php:
|
304 |
msgid "Do you want to display the social network login buttons below the login form of your blog?"
|
305 |
msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
|
306 |
|
307 |
-
#: includes/admin.php:
|
308 |
msgid "Yes, display the social network buttons below the login form"
|
309 |
msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
|
310 |
|
311 |
-
#: includes/admin.php:
|
312 |
msgid "No, disable social network buttons in the login form"
|
313 |
msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
|
314 |
|
315 |
-
#: includes/admin.php:
|
316 |
-
msgid "Where should
|
317 |
msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich mit einem sozialen Netzwerk eingeloggt haben?"
|
318 |
|
319 |
-
#: includes/admin.php:
|
320 |
-
#: includes/admin.php:
|
321 |
msgid "Redirect users to the homepage of my blog"
|
322 |
msgstr "Weiterleitung zur Hauptseite meines Blogs"
|
323 |
|
324 |
-
#: includes/admin.php:
|
325 |
-
#: includes/admin.php:
|
326 |
msgid "Redirect users to their account dashboard"
|
327 |
msgstr "Weiterleitung zur Profilseite des Nutzers"
|
328 |
|
329 |
-
#: includes/admin.php:
|
330 |
-
#: includes/admin.php:
|
331 |
msgid "Redirect users to the following url"
|
332 |
msgstr "Weiterleitung zu dieser URL"
|
333 |
|
334 |
-
#: includes/admin.php:
|
335 |
msgid "Registration Settings"
|
336 |
msgstr "Einstellungen: Anmeldung"
|
337 |
|
338 |
-
#: includes/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
msgid "If the email address of the social network profile is verified, should we try to link it to an existing account?"
|
340 |
msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
|
341 |
|
342 |
-
#: includes/admin.php:
|
343 |
msgid "Yes, try to link verified social network profiles to existing blog accounts"
|
344 |
msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
|
345 |
|
346 |
-
#: includes/admin.php:
|
347 |
msgid "No, disable account linking"
|
348 |
msgstr "Nein, keine Verknüpfung"
|
349 |
|
350 |
-
#: includes/admin.php:
|
351 |
msgid "Do you want to display the social network login buttons below the registration form of your blog?"
|
352 |
msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
|
353 |
|
354 |
-
#: includes/admin.php:
|
355 |
msgid "Yes, display the social network buttons below the registration form"
|
356 |
msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
|
357 |
|
358 |
-
#: includes/admin.php:
|
359 |
msgid "No, disable social network buttons in the registration form"
|
360 |
msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
|
361 |
|
362 |
-
#: includes/admin.php:
|
363 |
msgid "Where should new users be redirected to after having registered with their social network account?"
|
364 |
msgstr "Wohin sollen Nutzer weitergeleitet werden, nach sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
|
365 |
|
366 |
-
#: includes/admin.php:
|
367 |
-
msgid "
|
368 |
-
msgstr "Einstellungen
|
369 |
|
370 |
-
#: includes/
|
371 |
-
msgid "
|
372 |
-
msgstr "
|
373 |
|
374 |
-
#: includes/
|
375 |
-
msgid "
|
376 |
-
msgstr "
|
377 |
|
378 |
-
#: includes/
|
379 |
-
msgid "
|
380 |
-
msgstr "
|
381 |
|
382 |
-
|
383 |
-
|
384 |
-
msgstr "Text/Html vor dem Widget einfügen"
|
385 |
|
386 |
-
|
387 |
-
|
388 |
-
msgstr "Text/Html nach dem Widget einfügen"
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
msgstr "Widget verstecken bei eingeloggten Nutzern"
|
393 |
|
394 |
-
|
395 |
-
|
396 |
-
msgstr "Kleine Icons verwenden"
|
397 |
|
398 |
#~ msgid "Comment Form"
|
399 |
#~ msgstr "Kommentar Formular"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Social Login\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-04-13 17:32+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-04-13 17:50+0100\n"
|
7 |
+
"Last-Translator: Claude Schlesser <cschlesser@oneall.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
+
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
22 |
msgstr "Dieses Plugin benötigt Wordpress %s oder höher. Bitte aktualisieren Sie Ihr Wordpress bevor Sie das Plugin installieren"
|
23 |
|
24 |
#: oa-social-login.php:45
|
25 |
+
#: includes/admin.php:58
|
26 |
+
#: includes/admin.php:694
|
27 |
msgid "Settings"
|
28 |
msgstr "Einstellungen"
|
29 |
|
30 |
+
#: includes/user_interface.php:278
|
31 |
+
msgid "Please enable at least one social network!"
|
32 |
+
msgstr "Bitte aktivieren Sie mindestens ein soziales Netzwerk!"
|
33 |
+
|
34 |
+
#: includes/user_interface.php:349
|
35 |
+
msgid "Please enter your email address"
|
36 |
+
msgstr "Bitte geben Sie Ihre Email-Adresse ein"
|
37 |
+
|
38 |
+
#: includes/user_interface.php:355
|
39 |
+
msgid "This email is not valid"
|
40 |
+
msgstr "Diese Email-Adresse ist ungültig"
|
41 |
+
|
42 |
+
#: includes/user_interface.php:360
|
43 |
+
msgid "This email is already used by another account"
|
44 |
+
msgstr "Diese Email-Adresse wird bereits verwendet"
|
45 |
+
|
46 |
+
#: includes/user_interface.php:381
|
47 |
+
#: includes/admin.php:875
|
48 |
+
#, php-format
|
49 |
+
msgid "<strong>We unfortunately could not retrieve your email address from %s.</strong> Please enter your email address in the form below in order to continue."
|
50 |
+
msgstr "<strong>Wir konnten Ihre Email-Adresse leider nicht über Ihr %s Konto ermitteln.</strong> Bitte geben Sie Ihre Email-Adresse nachfolgen an."
|
51 |
+
|
52 |
+
#: includes/user_interface.php:393
|
53 |
+
#, php-format
|
54 |
+
msgid "You have successfully connected with %s!"
|
55 |
+
msgstr "Sie haben Sie erfolgreicht mit %s angemeldet!"
|
56 |
+
|
57 |
+
#: includes/widget.php:14
|
58 |
+
msgid "Allow your visitors to login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, Google and Yahoo."
|
59 |
+
msgstr "Erlauben Sie Ihren Nutzern, sich mit sozialen Netwerken wie z.B. Twitter, Facebook, LinkedIn, Hyves, Google und Yahoo anzumelden, und Kommentare zu schreiben"
|
60 |
+
|
61 |
+
#: includes/widget.php:62
|
62 |
+
msgid "Connect with"
|
63 |
+
msgstr "Einloggen mit"
|
64 |
+
|
65 |
+
#: includes/widget.php:77
|
66 |
+
msgid "Title"
|
67 |
+
msgstr "Titel"
|
68 |
+
|
69 |
+
#: includes/widget.php:81
|
70 |
+
msgid "Insert text/html to add before the widget"
|
71 |
+
msgstr "Text/Html vor dem Widget einfügen"
|
72 |
+
|
73 |
+
#: includes/widget.php:85
|
74 |
+
msgid "Insert text/html to add after the widget"
|
75 |
+
msgstr "Text/Html nach dem Widget einfügen"
|
76 |
+
|
77 |
+
#: includes/widget.php:90
|
78 |
+
msgid "Tick to hide widget for logged-in users"
|
79 |
+
msgstr "Widget verstecken bei eingeloggten Nutzern"
|
80 |
+
|
81 |
+
#: includes/widget.php:94
|
82 |
+
msgid "Tick to use small buttons"
|
83 |
+
msgstr "Kleine Icons verwenden"
|
84 |
+
|
85 |
+
#: includes/admin.php:14
|
86 |
+
msgid "Registration"
|
87 |
+
msgstr "Registriert mit"
|
88 |
+
|
89 |
+
#: includes/admin.php:38
|
90 |
+
msgid "Registration Form"
|
91 |
+
msgstr "Anmeldeformular"
|
92 |
+
|
93 |
+
#: includes/admin.php:54
|
94 |
+
#: includes/admin.php:65
|
95 |
+
#: includes/admin.php:494
|
96 |
+
msgid "Setup"
|
97 |
+
msgstr "Einrichten"
|
98 |
+
|
99 |
+
#: includes/admin.php:111
|
100 |
msgid "Thank you for using the Social Login Plugin!"
|
101 |
msgstr "Danke dass Sie Social Login installiert haben!"
|
102 |
|
103 |
+
#: includes/admin.php:111
|
104 |
#, php-format
|
105 |
+
msgid "Please go to the <strong><a href=\"%s\">Social Login\\Setup</a></strong> page to setup the plugin."
|
106 |
msgstr "Bitte rufen Sie die Seite <strong><a href=\"%s\">Einstellungen\\Social Login</a></strong> auf, um das Plugin zu konfigurieren."
|
107 |
|
108 |
+
#: includes/admin.php:274
|
109 |
msgid "Contacting API - please wait ..."
|
110 |
msgstr "Teste Einstellungen - bitte warten ..."
|
111 |
|
112 |
+
#: includes/admin.php:275
|
113 |
msgid "The settings are correct - do not forget to save your changes!"
|
114 |
msgstr "Die Einstellungen sind korrekt! Vergessen Sie nicht abzuspeichern!"
|
115 |
|
116 |
+
#: includes/admin.php:276
|
117 |
msgid "Please fill out each of the fields above."
|
118 |
msgstr "Bitte füllen Sie alle Felder aus"
|
119 |
|
120 |
+
#: includes/admin.php:277
|
121 |
msgid "The subdomain does not exist. Have you filled it out correctly?"
|
122 |
msgstr "Subdomain wurde nicht gefunden. Haben Sie sie richtig ausgefüllt?"
|
123 |
|
124 |
+
#: includes/admin.php:278
|
125 |
msgid "The subdomain has a wrong syntax!"
|
126 |
msgstr "Die Subdomain ist ungültig"
|
127 |
|
128 |
+
#: includes/admin.php:279
|
129 |
+
msgid "Could not contact API. Are outbound requests on port 443 allowed?"
|
130 |
+
msgstr "Keine Verbindung zur API. Eventuell blockiert Ihre Firewall Anfragen auf Port 443."
|
131 |
+
|
132 |
+
#: includes/admin.php:280
|
133 |
+
msgid "The API subdomain is correct, but one or both keys are invalid"
|
134 |
+
msgstr "Die API-Subdomain ist korrekt, aber die Schlüssel stimmen nicht."
|
135 |
|
136 |
+
#: includes/admin.php:281
|
137 |
+
msgid "Connection handler does not work, try using the Autodetection"
|
138 |
+
msgstr "Verbindungsfehler! Bitte nutzen Sie die automatische Erkennung"
|
139 |
|
140 |
+
#: includes/admin.php:282
|
141 |
msgid "Autodetected PHP CURL - do not forget to save your changes!"
|
142 |
msgstr "PHP CURL gefunden! Vergessen Sie nicht abzuspeichern!"
|
143 |
|
144 |
+
#: includes/admin.php:283
|
145 |
msgid "Autodetected PHP FSOCKOPEN - do not forget to save your changes!"
|
146 |
msgstr "PHP FSOCKOPEN gefunden! Vergessen Sie nicht abzuspeichern!"
|
147 |
|
148 |
+
#: includes/admin.php:284
|
149 |
#, php-format
|
150 |
msgid "Autodetection Error - our <a href=\"%s\" target=\"_blank\">documentation</a> helps you fix this issue."
|
151 |
msgstr "Verbindungsfehler - in unserer <a href=\"%s\" target=\"_blank\">Dokumentation</a> finden Sie die Lösung."
|
152 |
|
153 |
+
#: includes/admin.php:501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
msgid "Allow your visitors to comment, login and register with social networks like Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google or Yahoo."
|
155 |
msgstr "Erlauben Sie Ihren Besuchern, sich mit sozialen Netzwerk wie z.B. Twitter, Facebook, LinkedIn, Hyves, VKontakte, Google oder Yahoo anzumelden, und Kommentare zu hinterlassen."
|
156 |
|
157 |
+
#: includes/admin.php:502
|
158 |
msgid "Draw a larger audience and increase user engagement in a few simple steps."
|
159 |
msgstr "Steigern Sie die Beteilung Ihrer Nutzer auf einfachste Art und Weise."
|
160 |
|
161 |
+
#: includes/admin.php:506
|
162 |
+
msgid "Get Started!"
|
163 |
+
msgstr "Los gehts!"
|
164 |
+
|
165 |
+
#: includes/admin.php:509
|
166 |
#, php-format
|
167 |
+
msgid "To be able to use this plugin you first of all need to create a free account at %s and setup a Site."
|
168 |
msgstr "Um dieses Plugin nutzen zu können, müssen Sie sich zunächst kostenlos ein Konto bei %s anmelden."
|
169 |
|
170 |
+
#: includes/admin.php:510
|
171 |
msgid "After having created your account and setup your Site, please enter the Site settings in the form below."
|
172 |
msgstr "Nachdem Sie Ihr Konto angemeldet haben, müssen Sie die API-Daten in nachfolgendes Formular eintragen."
|
173 |
|
174 |
+
#: includes/admin.php:511
|
175 |
+
msgid "Don't worry the setup only takes a couple of minutes! Let's get started!"
|
176 |
+
msgstr "Keine Sorge! Die Einrichtung dauert nur wenige Minuten."
|
177 |
+
|
178 |
+
#: includes/admin.php:514
|
179 |
+
msgid "Click here to setup your free account"
|
180 |
+
msgstr "Kostenloses Konto anmelden"
|
181 |
+
|
182 |
+
#: includes/admin.php:517
|
183 |
#, php-format
|
184 |
msgid "You are in good company! This plugin is used on more than %s websites!"
|
185 |
msgstr "Mehr als %s Webseiten nutzen dieses Plugin. Seien Sie dabei!"
|
186 |
|
187 |
+
#: includes/admin.php:527
|
|
|
|
|
|
|
|
|
188 |
msgid "Your API Account is setup correctly"
|
189 |
msgstr "Die API-Daten sind korrekt"
|
190 |
|
191 |
+
#: includes/admin.php:530
|
192 |
+
msgid "Login to your account to manage your providers and access your Social Insights."
|
193 |
+
msgstr "Loggen Sie sich in Ihr Konto ein, um Einstellungen vorzunehmen und Statistiken einzusehen."
|
194 |
|
195 |
+
#: includes/admin.php:531
|
196 |
msgid "Determine which social networks are popular amongst your users and tailor your registration experience to increase your users' engagement."
|
197 |
msgstr "Finden Sie heraus, welche sozialen Netzwerke unter Ihren Besuchern beliebt sind, und steigern Sie die Beteilung Ihrer Besucher."
|
198 |
|
199 |
+
#: includes/admin.php:534
|
200 |
+
msgid "Click here to login to your account"
|
201 |
+
msgstr "Klicken Sie hier, um sich in Ihr Konto einloggen"
|
202 |
|
203 |
+
#: includes/admin.php:542
|
204 |
msgid "Help, Updates & Documentation"
|
205 |
msgstr "Hilfe, Updates & Dokumentation"
|
206 |
|
207 |
+
#: includes/admin.php:545
|
208 |
#, php-format
|
209 |
msgid "<a target=\"_blank\" href=\"%s\">Follow us on Twitter</a> to stay informed about updates"
|
210 |
msgstr "<a target=\"_blank\" href=\"%s\">Folgen Sie uns auf Twitter</a>, um auf dem Laufenden zu bleiben"
|
211 |
|
212 |
+
#: includes/admin.php:546
|
213 |
#, php-format
|
214 |
msgid "<a target=\"_blank\" href=\"%s\">Read the online documentation</a> for more information about this plugin"
|
215 |
msgstr "<a target=\"_blank\" href=\"%s\">Lesen Sie unsere Dokumentation</a> für zusätzliche Information"
|
216 |
|
217 |
+
#: includes/admin.php:547
|
218 |
#, php-format
|
219 |
msgid "<a target=\"_blank\" href=\"%s\">Contact us</a> if you have feedback or need assistance"
|
220 |
msgstr "<a target=\"_blank\" href=\"%s\">Schreiben Sie uns</a>, falls Sie Hilfe benötigen"
|
221 |
|
222 |
+
#: includes/admin.php:557
|
223 |
+
#: includes/admin.php:716
|
224 |
+
msgid "Your modifications have been saved successfully!"
|
225 |
+
msgstr "Ihre Einstellungen wurden erfolgreich gespeichert!"
|
226 |
+
|
227 |
+
#: includes/admin.php:571
|
228 |
+
#: includes/admin.php:579
|
229 |
msgid "API Connection Handler"
|
230 |
msgstr "API Kommunikation"
|
231 |
|
232 |
+
#: includes/admin.php:583
|
233 |
msgid "Use PHP CURL to communicate with the API"
|
234 |
msgstr "PHP CURL verwenden"
|
235 |
|
236 |
+
#: includes/admin.php:583
|
237 |
+
#: includes/admin.php:750
|
238 |
+
#: includes/admin.php:763
|
239 |
+
#: includes/admin.php:783
|
240 |
+
#: includes/admin.php:796
|
241 |
+
#: includes/admin.php:812
|
242 |
+
#: includes/admin.php:836
|
243 |
+
#: includes/admin.php:850
|
244 |
+
#: includes/admin.php:873
|
245 |
+
#: includes/admin.php:889
|
246 |
+
#: includes/admin.php:903
|
247 |
+
#: includes/admin.php:918
|
248 |
+
#: includes/admin.php:940
|
249 |
msgid "Default"
|
250 |
msgstr "Standard"
|
251 |
|
252 |
+
#: includes/admin.php:584
|
253 |
msgid "Using CURL is recommended but it might be disabled on some servers."
|
254 |
msgstr "Empfohlene Einstellung, auf manchen Serven aber deaktiviert."
|
255 |
|
256 |
+
#: includes/admin.php:590
|
257 |
msgid "Use PHP FSOCKOPEN to communicate with the API"
|
258 |
msgstr "PHP FSOCKOPEN verwenden"
|
259 |
|
260 |
+
#: includes/admin.php:591
|
261 |
msgid "Try using FSOCKOPEN if you encounter any problems with CURL."
|
262 |
msgstr "Verwenden Sie FSOCKEN wenn Probleme mit CURL auftreten sollten."
|
263 |
|
264 |
+
#: includes/admin.php:596
|
265 |
msgid "Autodetect API Connection"
|
266 |
msgstr "Automatisch erkennen"
|
267 |
|
268 |
+
#: includes/admin.php:606
|
269 |
msgid "API Settings"
|
270 |
msgstr "API Einstellungen"
|
271 |
|
272 |
+
#: includes/admin.php:609
|
273 |
msgid "Click here to create and view your API Credentials"
|
274 |
msgstr "Klicken Sie hier, um Ihre API-Daten einzusehen"
|
275 |
|
276 |
+
#: includes/admin.php:615
|
277 |
msgid "API Subdomain"
|
278 |
msgstr "API Subdomain"
|
279 |
|
280 |
+
#: includes/admin.php:623
|
281 |
msgid "API Public Key"
|
282 |
msgstr "API Public Key"
|
283 |
|
284 |
+
#: includes/admin.php:631
|
285 |
msgid "API Private Key"
|
286 |
msgstr "API Private Key"
|
287 |
|
288 |
+
#: includes/admin.php:639
|
289 |
msgid "Verify API Settings"
|
290 |
msgstr "API-Einstellungen überprüfen"
|
291 |
|
292 |
+
#: includes/admin.php:649
|
293 |
msgid "Enable the social networks/identity providers of your choice"
|
294 |
msgstr "Wählen Sie die sozialen Netzwerke aus:"
|
295 |
|
296 |
+
#: includes/admin.php:665
|
297 |
#, php-format
|
298 |
msgid "To enable cyrillic usernames, you might need <a target=\"_blank\" href=\"%s\">this plugin</a>"
|
299 |
msgstr "Um kyrillische Zeichen zu verwenden, brauchen Sie <a target=\"_blank\" href=\"%s\">dieses Plugin</a>"
|
300 |
|
301 |
+
#: includes/admin.php:676
|
302 |
+
#: includes/admin.php:947
|
303 |
+
msgid "Save Changes"
|
304 |
+
msgstr "Einstellungen speichern"
|
305 |
+
|
306 |
+
#: includes/admin.php:703
|
307 |
+
msgid "Logout to see the plugin in action!"
|
308 |
+
msgstr "Sie müssen ausloggen, um das Plugin testen zu können."
|
309 |
|
310 |
+
#: includes/admin.php:707
|
311 |
+
msgid "Social Login is a plugin that allows your users to comment, login and register with their existing Social Network accounts. If a user is already logged in, the plugin will not be displayed. There no need to offer the user the possibilty to connect with a social network if he is already connected."
|
312 |
+
msgstr "Social Login erlaubt es Ihren Benutzern, sich mit dem Konto eines sozialen Netzwerks anzumelden. Bei Benutzern die bereits eingeloggt sind wird das Plugin daher nicht angezeigt. Der Benutzer ist ja bereits angemeldet und benötigt keine weitere Anmeldenmöglichkeit."
|
313 |
|
314 |
+
#: includes/admin.php:708
|
315 |
+
msgid "You therefore have to logout to see the plugin in action."
|
316 |
msgstr "Sie müssen Sich aus diesem Grund ausloggen, um das Plugin testen zu können."
|
317 |
|
318 |
+
#: includes/admin.php:725
|
319 |
msgid "Basic Settings"
|
320 |
msgstr "Grundeinstellungen"
|
321 |
|
322 |
+
#: includes/admin.php:731
|
323 |
msgid "Enter the description to be displayed above the social network login buttons (leave empty for none):"
|
324 |
msgstr "Welcher Text soll über den Icons der sozialen Netzwerk angezeigt werden (ggf. leer lassen) ?"
|
325 |
|
326 |
+
#: includes/admin.php:736
|
327 |
msgid "Connect with:"
|
328 |
msgstr "Einloggen mit:"
|
329 |
|
330 |
+
#: includes/admin.php:741
|
331 |
msgid "If the user's social network profile has an avatar thumbnail, should we show it as default avatar for the user?"
|
332 |
msgstr "Wollen Sie die Nutzer-Avatare der sozialen Netwerke gegebenenfalls verwenden?"
|
333 |
|
334 |
+
#: includes/admin.php:749
|
335 |
msgid "Yes, show user avatars from social networks if available"
|
336 |
msgstr "Ja, zeige den sozialen Avatar des Benutzer in den Kommentaren dieses Benutzers an"
|
337 |
|
338 |
+
#: includes/admin.php:750
|
339 |
msgid "No, display the default avatars"
|
340 |
msgstr "Nein, zeige die Standard-Avatare"
|
341 |
|
342 |
+
#: includes/admin.php:755
|
343 |
msgid "Do you want to use the default or the small social network buttons?"
|
344 |
msgstr "Wollen Sie die standard -oder kleinere Icons für soziale Netzwerke verwenden?"
|
345 |
|
346 |
+
#: includes/admin.php:763
|
347 |
#, php-format
|
348 |
msgid "Use the default social network buttons (%s)"
|
349 |
msgstr "Standard-Icons verwenden (%s)"
|
350 |
|
351 |
+
#: includes/admin.php:764
|
352 |
#, php-format
|
353 |
msgid "Use the small social network buttons (%s)"
|
354 |
msgstr "Kleine Icons verwenden (%s)"
|
355 |
|
356 |
+
#: includes/admin.php:772
|
357 |
msgid "Comment Settings"
|
358 |
msgstr "Einstellungen: Kommentare"
|
359 |
|
360 |
+
#: includes/admin.php:777
|
361 |
+
msgid "Show the Social Login buttons in the comment area?"
|
362 |
+
msgstr "Das Plugin über dem Kommentare-Formular anzeigen?"
|
363 |
|
364 |
+
#: includes/admin.php:783
|
365 |
+
#: includes/admin.php:796
|
366 |
+
msgid "Yes, show the Social Login buttons"
|
367 |
+
msgstr "Ja, zeige das Plugin an"
|
368 |
|
369 |
+
#: includes/admin.php:784
|
370 |
+
#: includes/admin.php:797
|
371 |
+
msgid "No, do not show the Social Login buttons"
|
372 |
+
msgstr "Nein, Plugin nicht anzeigen"
|
373 |
|
374 |
+
#: includes/admin.php:789
|
375 |
+
msgid "Show the Social Login buttons in the comment area if comments are disabled for guests?"
|
376 |
+
msgstr "Login mit einem sozialen Netzwerk anbieten falls Kommentare für Gäste deaktiviert sind?"
|
377 |
|
378 |
+
#: includes/admin.php:795
|
379 |
+
msgid "The buttons will be displayed below the \"You must be logged in to leave a comment\" notice."
|
380 |
+
msgstr "Die Icons werden unter \"Du musst angemeldet sein, um einen Kommentar abzugeben\" angezeigt."
|
381 |
|
382 |
+
#: includes/admin.php:803
|
383 |
+
msgid "Automatically approve comments left by users that connected by using Social Login?"
|
384 |
+
msgstr "Kommentare automatisch freischalten, falls dessen Autor sich mit SocialLogin eingeloggt hat?"
|
385 |
|
386 |
+
#: includes/admin.php:811
|
387 |
+
msgid "Yes, automatically approve comments made by users that connected with Social Login"
|
388 |
msgstr "Ja, Kommentare automatisch freischalten"
|
389 |
|
390 |
+
#: includes/admin.php:812
|
391 |
+
msgid "No, do not automatically approve"
|
392 |
+
msgstr "Nein, Kommentare nicht automatisch freischalten"
|
393 |
+
|
394 |
+
#: includes/admin.php:822
|
395 |
msgid "Login Settings"
|
396 |
msgstr "Einstellungen: Einloggen"
|
397 |
|
398 |
+
#: includes/admin.php:828
|
399 |
msgid "Do you want to display the social network login buttons below the login form of your blog?"
|
400 |
msgstr "Das Plugin auf der Login-Seite Ihres Blogs anzeigen?"
|
401 |
|
402 |
+
#: includes/admin.php:836
|
403 |
msgid "Yes, display the social network buttons below the login form"
|
404 |
msgstr "Ja, die Icons der sozialen Netzwerke auf der Login-Seite anzeigen"
|
405 |
|
406 |
+
#: includes/admin.php:837
|
407 |
msgid "No, disable social network buttons in the login form"
|
408 |
msgstr "Nein, keine Icons auf der Login-Seite anzeigen"
|
409 |
|
410 |
+
#: includes/admin.php:842
|
411 |
+
msgid "Where should existing users be redirected to after having logged in with their social network account?"
|
412 |
msgstr "Wohin sollen Nutzer weitergeleitet werden, nachdem Sie sich mit einem sozialen Netzwerk eingeloggt haben?"
|
413 |
|
414 |
+
#: includes/admin.php:850
|
415 |
+
#: includes/admin.php:917
|
416 |
msgid "Redirect users to the homepage of my blog"
|
417 |
msgstr "Weiterleitung zur Hauptseite meines Blogs"
|
418 |
|
419 |
+
#: includes/admin.php:851
|
420 |
+
#: includes/admin.php:918
|
421 |
msgid "Redirect users to their account dashboard"
|
422 |
msgstr "Weiterleitung zur Profilseite des Nutzers"
|
423 |
|
424 |
+
#: includes/admin.php:852
|
425 |
+
#: includes/admin.php:919
|
426 |
msgid "Redirect users to the following url"
|
427 |
msgstr "Weiterleitung zu dieser URL"
|
428 |
|
429 |
+
#: includes/admin.php:860
|
430 |
msgid "Registration Settings"
|
431 |
msgstr "Einstellungen: Anmeldung"
|
432 |
|
433 |
+
#: includes/admin.php:865
|
434 |
+
msgid "Some social networks do not provide their user's email. Ask the user to enter it manually in this case?"
|
435 |
+
msgstr "Müssen Benutzer Ihre Email-Adresse angeben, falls diese nicht über das soziale Netzwerk ermittelt werden kann?"
|
436 |
+
|
437 |
+
#: includes/admin.php:873
|
438 |
+
msgid "No, simplify the registration by automatically creating a placeholder email"
|
439 |
+
msgstr "Nein, in diesem Fall eine Platzhalter-Email anlegen (vereinfach die Registrierung)"
|
440 |
+
|
441 |
+
#: includes/admin.php:874
|
442 |
+
msgid "Yes, require the user to enter this email address manually and display this message:"
|
443 |
+
msgstr "Ja, Benutzer mit folgendem Text auffordern, seine Email-Adresse einzugeben:"
|
444 |
+
|
445 |
+
#: includes/admin.php:876
|
446 |
+
#, php-format
|
447 |
+
msgid "HTML is allowed, the placeholder %s is replaced by the name of the social network used to connect."
|
448 |
+
msgstr "HTML ist erlaubt, der Platzhalter %s wird durch den Namen des sozialen Netzwerks ersetzt."
|
449 |
+
|
450 |
+
#: includes/admin.php:881
|
451 |
msgid "If the email address of the social network profile is verified, should we try to link it to an existing account?"
|
452 |
msgstr "Sollen soziale Profile mit überprüfter Email mit vorhandenen Blog-Nutzern verknüpft werden?"
|
453 |
|
454 |
+
#: includes/admin.php:889
|
455 |
msgid "Yes, try to link verified social network profiles to existing blog accounts"
|
456 |
msgstr "Ja, verknüpfe soziale Profile gegebenenfalls mit vorhanden Nutzern"
|
457 |
|
458 |
+
#: includes/admin.php:890
|
459 |
msgid "No, disable account linking"
|
460 |
msgstr "Nein, keine Verknüpfung"
|
461 |
|
462 |
+
#: includes/admin.php:895
|
463 |
msgid "Do you want to display the social network login buttons below the registration form of your blog?"
|
464 |
msgstr "Das Plugin auf der Anmelden-Seite Ihres Blogs anzeigen?"
|
465 |
|
466 |
+
#: includes/admin.php:903
|
467 |
msgid "Yes, display the social network buttons below the registration form"
|
468 |
msgstr "Ja, die Icons der sozialen Netzwerke auf der Anmelden-Seite anzeigen"
|
469 |
|
470 |
+
#: includes/admin.php:904
|
471 |
msgid "No, disable social network buttons in the registration form"
|
472 |
msgstr "Nein, keine Icons auf der Anmelden-Seite anzeigen"
|
473 |
|
474 |
+
#: includes/admin.php:909
|
475 |
msgid "Where should new users be redirected to after having registered with their social network account?"
|
476 |
msgstr "Wohin sollen Nutzer weitergeleitet werden, nach sie ein Konto mit einem sozialen Netzwerk angelegt haben?"
|
477 |
|
478 |
+
#: includes/admin.php:928
|
479 |
+
msgid "Administration Settings"
|
480 |
+
msgstr "Einstellungen: Administrationsmenü"
|
481 |
|
482 |
+
#: includes/admin.php:933
|
483 |
+
msgid "Display the social networks used to connect in the user list of the administration area ?"
|
484 |
+
msgstr "Sollen die verwendeten sozialen Netzwerke in der Benutzerliste angezeigt werden?"
|
485 |
|
486 |
+
#: includes/admin.php:939
|
487 |
+
msgid "Yes, add a new column to the user list and display the used social network"
|
488 |
+
msgstr "Ja, eine weitere Spalte in der Benutzerliste anzeigen"
|
489 |
|
490 |
+
#: includes/admin.php:940
|
491 |
+
msgid "No, no not display the social network in the user list"
|
492 |
+
msgstr "Nein, soziale Netzwerk nicht anzeigen"
|
493 |
|
494 |
+
#~ msgid "The API credentials are wrong"
|
495 |
+
#~ msgstr "Die API-Nutzerdaten sind ungültig"
|
|
|
496 |
|
497 |
+
#~ msgid "Social Login Settings"
|
498 |
+
#~ msgstr "Social Login Einstellungen"
|
|
|
499 |
|
500 |
+
#~ msgid "Make your blog social!"
|
501 |
+
#~ msgstr "Verbinden Sie Ihren Blog mit den sozialen Netzwerken!"
|
|
|
502 |
|
503 |
+
#~ msgid "Keep in mind when testing the plugin"
|
504 |
+
#~ msgstr "Bitte beim Testen beachten"
|
|
|
505 |
|
506 |
#~ msgid "Comment Form"
|
507 |
#~ msgstr "Kommentar Formular"
|
oa-social-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Social Login
|
4 |
Plugin URI: http://www.oneall.com/
|
5 |
Description: Allow your visitors to <strong>comment, login and register with 20+ social networks</strong> like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or Yahoo.
|
6 |
-
Version:
|
7 |
Author: Claude Schlesser
|
8 |
Author URI: http://www.oneall.com/
|
9 |
License: GPL2
|
@@ -12,6 +12,7 @@ License: GPL2
|
|
12 |
define ('OA_SOCIAL_LOGIN_PLUGIN_URL', plugins_url () . '/' . basename (dirname (__FILE__)));
|
13 |
define ('OA_SOCIAL_LOGIN_BASE_PATH', dirname (plugin_basename (__FILE__)));
|
14 |
|
|
|
15 |
/**
|
16 |
* Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
|
17 |
*/
|
@@ -42,7 +43,7 @@ function oa_social_login_add_settings_link ($links, $file)
|
|
42 |
|
43 |
if ($file == $oa_social_login_plugin)
|
44 |
{
|
45 |
-
$settings_link = '<a href="
|
46 |
array_unshift ($links, $settings_link);
|
47 |
}
|
48 |
return $links;
|
3 |
Plugin Name: Social Login
|
4 |
Plugin URI: http://www.oneall.com/
|
5 |
Description: Allow your visitors to <strong>comment, login and register with 20+ social networks</strong> like Twitter, Facebook, LinkedIn, Hyves, Вконтакте, Google or Yahoo.
|
6 |
+
Version: 3.0
|
7 |
Author: Claude Schlesser
|
8 |
Author URI: http://www.oneall.com/
|
9 |
License: GPL2
|
12 |
define ('OA_SOCIAL_LOGIN_PLUGIN_URL', plugins_url () . '/' . basename (dirname (__FILE__)));
|
13 |
define ('OA_SOCIAL_LOGIN_BASE_PATH', dirname (plugin_basename (__FILE__)));
|
14 |
|
15 |
+
|
16 |
/**
|
17 |
* Check technical requirements before activating the plugin (Wordpress 3.0 or newer required)
|
18 |
*/
|
43 |
|
44 |
if ($file == $oa_social_login_plugin)
|
45 |
{
|
46 |
+
$settings_link = '<a href="admin.php?page=oa_social_login_setup">' . __ ('Settings') . '</a>';
|
47 |
array_unshift ($links, $settings_link);
|
48 |
}
|
49 |
return $links;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: ClaudeSchlesser
|
|
3 |
Tags: social login, social connect, facebook login, linkedin, livejournal, google, yahoo, twitter login, openid, paypal, vkontakte, hyves, widget, plugin, social network login, comments
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.3.1
|
6 |
-
Stable tag:
|
7 |
|
8 |
Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
|
9 |
|
@@ -37,9 +37,12 @@ login and register with social networks like Twitter, Facebook, LinkedIn, Paypal
|
|
37 |
<li>OpenID</li>
|
38 |
<li>LiveJournal</li>
|
39 |
<li>Wordpress.com</li>
|
|
|
|
|
40 |
<li>Hyves</li>
|
|
|
41 |
<li>VKontakte (Вконтакте)</li>
|
42 |
-
|
43 |
|
44 |
|
45 |
<strong>Increase your wordpress user engagement in a few simple steps with the Social Login Plugin!</strong>
|
@@ -109,6 +112,21 @@ http://docs.oneall.com/plugins/guide/social-login-wordpress/
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 2.5 =
|
113 |
* API Connection improved
|
114 |
* API Connection function moved to separate file
|
3 |
Tags: social login, social connect, facebook login, linkedin, livejournal, google, yahoo, twitter login, openid, paypal, vkontakte, hyves, widget, plugin, social network login, comments
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.3.1
|
6 |
+
Stable tag: 3.0
|
7 |
|
8 |
Allow your visitors to comment and login with social networks like Twitter, Facebook, Paypal, LinkedIn, LiveJournal, OpenID, VKontakte, Google, Yahoo
|
9 |
|
37 |
<li>OpenID</li>
|
38 |
<li>LiveJournal</li>
|
39 |
<li>Wordpress.com</li>
|
40 |
+
<li>Windows Live</li>
|
41 |
+
<li>StackExchange</li>
|
42 |
<li>Hyves</li>
|
43 |
+
<li>Mail.ru</li>
|
44 |
<li>VKontakte (Вконтакте)</li>
|
45 |
+
</ul>
|
46 |
|
47 |
|
48 |
<strong>Increase your wordpress user engagement in a few simple steps with the Social Login Plugin!</strong>
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 3.0 =
|
116 |
+
* SSL detection with nginx load-balancer fixed
|
117 |
+
* CDN path bug fixed
|
118 |
+
* Table width in administration area fixed
|
119 |
+
* Administration split to two pages
|
120 |
+
* Optionally disable Social Login in comments
|
121 |
+
* Optionally request email from user
|
122 |
+
* Optionally show social networks in user list
|
123 |
+
* Identity Provider "Windows Mail" added
|
124 |
+
* Identity Provider "Mail.ru" added
|
125 |
+
* Error message if no social networks selected
|
126 |
+
* Class for Social Login label added
|
127 |
+
* Small icons fixed
|
128 |
+
* API settings verification fixed
|
129 |
+
|
130 |
= 2.5 =
|
131 |
* API Connection improved
|
132 |
* API Connection function moved to separate file
|