Version Description
- Bug Fix in Profile Completion Feature
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 5.1.9 |
Comparing to | |
See all releases |
Code changes from version 5.1.8 to 5.1.9
- class-mo-openid-login-widget.php +115 -80
- class-mo-openid-sso-customer.php +12 -12
- class-mo-openid-sso-shortcode-buttons.php +0 -7
- miniorange_openid_sso_settings.php +1 -3
- miniorange_openid_sso_settings_page.php +15 -16
- readme.txt +8 -1
class-mo-openid-login-widget.php
CHANGED
@@ -71,23 +71,24 @@ class mo_openid_login_wid extends WP_Widget {
|
|
71 |
if($customTheme == 'default'){
|
72 |
if( get_option('mo_openid_facebook_enable') ) {
|
73 |
if($selected_theme == 'longbutton'){
|
74 |
-
?> <a onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
75 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
76 |
<?php }
|
77 |
else{ ?>
|
78 |
-
|
79 |
|
80 |
<?php }
|
81 |
|
82 |
}
|
83 |
if( get_option('mo_openid_google_enable') ) {
|
84 |
-
if($selected_theme == 'longbutton'){
|
|
|
85 |
|
86 |
-
<a onClick="moOpenIdLogin('google');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-google btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-google-plus'></i><?php
|
87 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
88 |
<?php }
|
89 |
else{ ?>
|
90 |
-
<a onClick="moOpenIdLogin('google');" title="<?php echo $customTextofTitle ?> Google" ><img alt='Google' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
91 |
<?php
|
92 |
}
|
93 |
}
|
@@ -96,11 +97,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
96 |
if($selected_theme == 'longbutton'){
|
97 |
?>
|
98 |
|
99 |
-
<a onClick="moOpenIdLogin('vkontakte');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-vk btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-vk'></i><?php
|
100 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
101 |
<?php }
|
102 |
else{ ?>
|
103 |
-
<a onClick="moOpenIdLogin('vkontakte');" title="<?php echo $customTextofTitle ?> Vkontakte" ><img alt='Vkontakte' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
104 |
<?php
|
105 |
}
|
106 |
}
|
@@ -108,62 +109,62 @@ class mo_openid_login_wid extends WP_Widget {
|
|
108 |
|
109 |
if( get_option('mo_openid_twitter_enable') ) {
|
110 |
if($selected_theme == 'longbutton'){
|
111 |
-
?> <a onClick="moOpenIdLogin('twitter');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-twitter btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-twitter"></i><?php
|
112 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
113 |
<?php }
|
114 |
else{ ?>
|
115 |
|
116 |
|
117 |
-
<a title="<?php echo $customTextofTitle ?> Twitter" onClick="moOpenIdLogin('twitter');"><img alt='Twitter' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
118 |
<?php }
|
119 |
}
|
120 |
|
121 |
if( get_option('mo_openid_linkedin_enable') ) {
|
122 |
if($selected_theme == 'longbutton'){ ?>
|
123 |
-
<a onClick="moOpenIdLogin('linkedin');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-linkedin"></i><?php
|
124 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
125 |
<?php }
|
126 |
else{ ?>
|
127 |
-
<a title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin');"><img alt='LinkedIn' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
128 |
<?php }
|
129 |
}if( get_option('mo_openid_instagram_enable') ) {
|
130 |
if($selected_theme == 'longbutton'){ ?>
|
131 |
-
<a onClick="moOpenIdLogin('instagram');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-instagram btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-instagram"></i><?php
|
132 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
133 |
<?php }
|
134 |
else{ ?>
|
135 |
|
136 |
|
137 |
-
<a title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram');"><img alt='Instagram' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
138 |
<?php }
|
139 |
}if( get_option('mo_openid_amazon_enable') ) {
|
140 |
if($selected_theme == 'longbutton'){
|
141 |
-
?> <a onClick="moOpenIdLogin('amazon');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-soundcloud btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-amazon"></i><?php
|
142 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
143 |
<?php }
|
144 |
else{ ?>
|
145 |
|
146 |
-
<a title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon');"><img alt='Amazon' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/amazon.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
147 |
<?php }
|
148 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
149 |
if($selected_theme == 'longbutton'){
|
150 |
-
?> <a
|
151 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
152 |
<?php }
|
153 |
else{ ?>
|
154 |
|
155 |
|
156 |
-
<a title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce');"><img alt='Salesforce' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/salesforce.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
157 |
<?php }
|
158 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
159 |
if($selected_theme == 'longbutton'){
|
160 |
-
?> <a
|
161 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
162 |
<?php }
|
163 |
else{ ?>
|
164 |
|
165 |
|
166 |
-
<a title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
167 |
<?php }
|
168 |
}
|
169 |
|
@@ -176,12 +177,12 @@ class mo_openid_login_wid extends WP_Widget {
|
|
176 |
if($customTheme == 'custom'){
|
177 |
if( get_option('mo_openid_facebook_enable') ) {
|
178 |
if($selected_theme == 'longbutton'){
|
179 |
-
?> <a onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
180 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
181 |
<?php }
|
182 |
else{ ?>
|
183 |
|
184 |
-
<a
|
185 |
|
186 |
<?php }
|
187 |
|
@@ -191,11 +192,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
191 |
if($selected_theme == 'longbutton'){
|
192 |
?>
|
193 |
|
194 |
-
<a
|
195 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
196 |
<?php }
|
197 |
else{ ?>
|
198 |
-
<a
|
199 |
<?php
|
200 |
}
|
201 |
}
|
@@ -204,11 +205,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
204 |
if($selected_theme == 'longbutton'){
|
205 |
?>
|
206 |
|
207 |
-
<a
|
208 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
209 |
<?php }
|
210 |
else{ ?>
|
211 |
-
<a
|
212 |
<?php
|
213 |
}
|
214 |
}
|
@@ -217,60 +218,60 @@ class mo_openid_login_wid extends WP_Widget {
|
|
217 |
if($selected_theme == 'longbutton'){
|
218 |
?>
|
219 |
|
220 |
-
<a
|
221 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
222 |
<?php }
|
223 |
else{ ?>
|
224 |
-
<a onClick="moOpenIdLogin('twitter');" title="<?php echo $customTextofTitle ?> Twitter"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-twitter custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
225 |
<?php
|
226 |
}
|
227 |
}
|
228 |
if( get_option('mo_openid_linkedin_enable') ) {
|
229 |
if($selected_theme == 'longbutton'){ ?>
|
230 |
-
<a
|
231 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
232 |
<?php }
|
233 |
else{ ?>
|
234 |
-
<a
|
235 |
<?php }
|
236 |
}if( get_option('mo_openid_instagram_enable') ) {
|
237 |
if($selected_theme == 'longbutton'){ ?>
|
238 |
-
<a
|
239 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
240 |
<?php }
|
241 |
else{ ?>
|
242 |
|
243 |
|
244 |
-
<a
|
245 |
<?php }
|
246 |
}if( get_option('mo_openid_amazon_enable') ) {
|
247 |
if($selected_theme == 'longbutton'){
|
248 |
-
?> <a
|
249 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
250 |
<?php }
|
251 |
else{ ?>
|
252 |
|
253 |
-
<a
|
254 |
<?php }
|
255 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
256 |
if($selected_theme == 'longbutton'){
|
257 |
-
?> <a
|
258 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
259 |
<?php }
|
260 |
else{ ?>
|
261 |
|
262 |
|
263 |
-
<a
|
264 |
<?php }
|
265 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
266 |
if($selected_theme == 'longbutton'){
|
267 |
-
?> <a
|
268 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
269 |
<?php }
|
270 |
else{ ?>
|
271 |
|
272 |
|
273 |
-
<a onClick="moOpenIdLogin('windowslive');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class=" fa fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
274 |
<?php }
|
275 |
}
|
276 |
|
@@ -360,77 +361,77 @@ class mo_openid_login_wid extends WP_Widget {
|
|
360 |
if($customTheme == 'default'){
|
361 |
if( get_option('mo_openid_facebook_enable') ) {
|
362 |
if($selected_theme == 'longbutton'){
|
363 |
-
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-facebook btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"facebook"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
364 |
else{
|
365 |
-
$html .= "<a title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
366 |
}
|
367 |
|
368 |
}
|
369 |
|
370 |
if( get_option('mo_openid_google_enable') ) {
|
371 |
if($selected_theme == 'longbutton'){
|
372 |
-
$html .= "<a
|
373 |
}
|
374 |
else{
|
375 |
|
376 |
-
$html .= "<a
|
377 |
|
378 |
}
|
379 |
}
|
380 |
|
381 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
382 |
if($selected_theme == 'longbutton'){
|
383 |
-
$html .= "<a
|
384 |
}
|
385 |
else{
|
386 |
|
387 |
-
$html .= "<a
|
388 |
|
389 |
}
|
390 |
}
|
391 |
|
392 |
if( get_option('mo_openid_twitter_enable') ) {
|
393 |
if($selected_theme == 'longbutton'){
|
394 |
-
$html .= "<a
|
395 |
else{
|
396 |
-
$html .= "<a title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><img alt='Twitter' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
397 |
}
|
398 |
|
399 |
}
|
400 |
if( get_option('mo_openid_linkedin_enable') ) {
|
401 |
if($selected_theme == 'longbutton'){
|
402 |
-
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"linkedin"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
403 |
}
|
404 |
else{
|
405 |
-
$html .= "<a title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
406 |
}
|
407 |
}if( get_option('mo_openid_instagram_enable') ) {
|
408 |
if($selected_theme == 'longbutton'){
|
409 |
-
$html .= "<a
|
410 |
}
|
411 |
else{
|
412 |
-
$html .= "<a title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
413 |
}
|
414 |
}if( get_option('mo_openid_amazon_enable') ) {
|
415 |
if($selected_theme == 'longbutton'){
|
416 |
-
$html .= "<a
|
417 |
}
|
418 |
else{
|
419 |
-
$html .= "<a title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
420 |
}
|
421 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
422 |
if($selected_theme == 'longbutton'){
|
423 |
-
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-vimeo btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"salesforce"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
424 |
}
|
425 |
else{
|
426 |
-
$html .= "<a title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
427 |
}
|
428 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
429 |
if($selected_theme == 'longbutton'){
|
430 |
-
$html .= "<a
|
431 |
}
|
432 |
else{
|
433 |
-
$html .= "<a title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
434 |
}
|
435 |
}
|
436 |
}
|
@@ -438,77 +439,77 @@ class mo_openid_login_wid extends WP_Widget {
|
|
438 |
if($customTheme == 'custom'){
|
439 |
if( get_option('mo_openid_facebook_enable') ) {
|
440 |
if($selected_theme == 'longbutton'){
|
441 |
-
$html .= "<a
|
442 |
}
|
443 |
else{
|
444 |
-
$html .= "<a title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
445 |
}
|
446 |
|
447 |
}
|
448 |
|
449 |
if( get_option('mo_openid_google_enable') ) {
|
450 |
if($selected_theme == 'longbutton'){
|
451 |
-
$html .= "<a
|
452 |
}
|
453 |
else{
|
454 |
-
$html .= "<a title= ' ".$customTextofTitle." Google' onClick='moOpenIdLogin(" . '"google"' . ");' title= ' ". $customTextofTitle." Google'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
455 |
|
456 |
}
|
457 |
}
|
458 |
|
459 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
460 |
if($selected_theme == 'longbutton'){
|
461 |
-
$html .= "<a
|
462 |
}
|
463 |
else{
|
464 |
-
$html .= "<a title= ' ".$customTextofTitle." Vkontakte' onClick='moOpenIdLogin(" . '"vkontakte"' . ");' title= ' ". $customTextofTitle." Vkontakte'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
465 |
|
466 |
}
|
467 |
}
|
468 |
|
469 |
if( get_option('mo_openid_twitter_enable') ) {
|
470 |
if($selected_theme == 'longbutton'){
|
471 |
-
$html .= "<a
|
472 |
}
|
473 |
else{
|
474 |
-
$html .= "<a title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
475 |
}
|
476 |
|
477 |
}
|
478 |
if( get_option('mo_openid_linkedin_enable') ) {
|
479 |
if($selected_theme == 'longbutton'){
|
480 |
-
$html .= "<a
|
481 |
}
|
482 |
else{
|
483 |
-
$html .= "<a title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
484 |
}
|
485 |
}if( get_option('mo_openid_instagram_enable') ) {
|
486 |
if($selected_theme == 'longbutton'){
|
487 |
-
$html .= "<a
|
488 |
}
|
489 |
else{
|
490 |
-
$html .= "<a title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
491 |
}
|
492 |
}if( get_option('mo_openid_amazon_enable') ) {
|
493 |
if($selected_theme == 'longbutton'){
|
494 |
-
$html .= "<a
|
495 |
}
|
496 |
else{
|
497 |
-
$html .= "<a title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
498 |
}
|
499 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
500 |
if($selected_theme == 'longbutton'){
|
501 |
-
$html .= "<a
|
502 |
}
|
503 |
else{
|
504 |
-
$html .= "<a title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
505 |
}
|
506 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
507 |
if($selected_theme == 'longbutton'){
|
508 |
-
$html .= "<a
|
509 |
}
|
510 |
else{
|
511 |
-
$html .= "<a title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
512 |
}
|
513 |
}
|
514 |
}
|
@@ -901,13 +902,25 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
901 |
|
902 |
$user_id = wp_insert_user( $userdata);
|
903 |
if(is_wp_error( $user_id )) {
|
904 |
-
|
905 |
-
exit();
|
906 |
}
|
907 |
|
908 |
// run the query to add provider and identifier for the user
|
909 |
$table_name = $wpdb->prefix . 'users';
|
910 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
911 |
$result = $wpdb->update(
|
912 |
$table_name,
|
913 |
array(
|
@@ -1063,14 +1076,26 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
1063 |
|
1064 |
if(is_wp_error( $user_id )) {
|
1065 |
//print_r($user_id);
|
1066 |
-
|
1067 |
-
exit();
|
1068 |
}
|
1069 |
|
1070 |
update_option('mo_openid_user_count',get_option('mo_openid_user_count')+1);
|
1071 |
// run the query to add provider and identifier for the user
|
1072 |
$table_name = $wpdb->prefix . 'users';
|
1073 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1074 |
$result = $wpdb->update(
|
1075 |
$table_name,
|
1076 |
array(
|
@@ -1171,14 +1196,24 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
1171 |
|
1172 |
if(is_wp_error( $user_id )) {
|
1173 |
//print_r($user_id);
|
1174 |
-
|
1175 |
-
exit();
|
1176 |
}
|
1177 |
|
1178 |
// run the query to add provider and identifier for the user
|
1179 |
$table_name = $wpdb->prefix . 'users';
|
1180 |
|
1181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1182 |
|
1183 |
$result = $wpdb->update(
|
1184 |
$table_name,
|
71 |
if($customTheme == 'default'){
|
72 |
if( get_option('mo_openid_facebook_enable') ) {
|
73 |
if($selected_theme == 'longbutton'){
|
74 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
75 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
76 |
<?php }
|
77 |
else{ ?>
|
78 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook');"><img alt='Facebook' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
79 |
|
80 |
<?php }
|
81 |
|
82 |
}
|
83 |
if( get_option('mo_openid_google_enable') ) {
|
84 |
+
if($selected_theme == 'longbutton'){
|
85 |
+
?>
|
86 |
|
87 |
+
<a rel='nofollow' onClick="moOpenIdLogin('google');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-google btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-google-plus'></i><?php
|
88 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
89 |
<?php }
|
90 |
else{ ?>
|
91 |
+
<a rel='nofollow' onClick="moOpenIdLogin('google');" title="<?php echo $customTextofTitle ?> Google" ><img alt='Google' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
92 |
<?php
|
93 |
}
|
94 |
}
|
97 |
if($selected_theme == 'longbutton'){
|
98 |
?>
|
99 |
|
100 |
+
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-vk btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-vk'></i><?php
|
101 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
102 |
<?php }
|
103 |
else{ ?>
|
104 |
+
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte');" title="<?php echo $customTextofTitle ?> Vkontakte" ><img alt='Vkontakte' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
105 |
<?php
|
106 |
}
|
107 |
}
|
109 |
|
110 |
if( get_option('mo_openid_twitter_enable') ) {
|
111 |
if($selected_theme == 'longbutton'){
|
112 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('twitter');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-twitter btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-twitter"></i><?php
|
113 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
114 |
<?php }
|
115 |
else{ ?>
|
116 |
|
117 |
|
118 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Twitter" onClick="moOpenIdLogin('twitter');"><img alt='Twitter' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
119 |
<?php }
|
120 |
}
|
121 |
|
122 |
if( get_option('mo_openid_linkedin_enable') ) {
|
123 |
if($selected_theme == 'longbutton'){ ?>
|
124 |
+
<a rel='nofollow' onClick="moOpenIdLogin('linkedin');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-linkedin"></i><?php
|
125 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
126 |
<?php }
|
127 |
else{ ?>
|
128 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin');"><img alt='LinkedIn' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
129 |
<?php }
|
130 |
}if( get_option('mo_openid_instagram_enable') ) {
|
131 |
if($selected_theme == 'longbutton'){ ?>
|
132 |
+
<a rel='nofollow' onClick="moOpenIdLogin('instagram');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-instagram btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-instagram"></i><?php
|
133 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
134 |
<?php }
|
135 |
else{ ?>
|
136 |
|
137 |
|
138 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram');"><img alt='Instagram' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
139 |
<?php }
|
140 |
}if( get_option('mo_openid_amazon_enable') ) {
|
141 |
if($selected_theme == 'longbutton'){
|
142 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('amazon');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-soundcloud btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-amazon"></i><?php
|
143 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
144 |
<?php }
|
145 |
else{ ?>
|
146 |
|
147 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon');"><img alt='Amazon' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/amazon.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
148 |
<?php }
|
149 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
150 |
if($selected_theme == 'longbutton'){
|
151 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('salesforce');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-vimeo btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-cloud"></i> <?php
|
152 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
153 |
<?php }
|
154 |
else{ ?>
|
155 |
|
156 |
|
157 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce');"><img alt='Salesforce' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/salesforce.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
158 |
<?php }
|
159 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
160 |
if($selected_theme == 'longbutton'){
|
161 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('windowslive');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-microsoft btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-windows"></i><?php
|
162 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
163 |
<?php }
|
164 |
else{ ?>
|
165 |
|
166 |
|
167 |
+
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
168 |
<?php }
|
169 |
}
|
170 |
|
177 |
if($customTheme == 'custom'){
|
178 |
if( get_option('mo_openid_facebook_enable') ) {
|
179 |
if($selected_theme == 'longbutton'){
|
180 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
181 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
182 |
<?php }
|
183 |
else{ ?>
|
184 |
|
185 |
+
<a rel='nofollow' onClick="moOpenIdLogin('facebook');" title="<?php echo $customTextofTitle ?> Facebook"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-facebook custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
186 |
|
187 |
<?php }
|
188 |
|
192 |
if($selected_theme == 'longbutton'){
|
193 |
?>
|
194 |
|
195 |
+
<a rel='nofollow' onClick="moOpenIdLogin('google');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-google-plus"></i><?php
|
196 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
197 |
<?php }
|
198 |
else{ ?>
|
199 |
+
<a rel='nofollow' onClick="moOpenIdLogin('google');" title="<?php echo $customTextofTitle ?> Google"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-google-plus custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
200 |
<?php
|
201 |
}
|
202 |
}
|
205 |
if($selected_theme == 'longbutton'){
|
206 |
?>
|
207 |
|
208 |
+
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-vk"></i><?php
|
209 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
210 |
<?php }
|
211 |
else{ ?>
|
212 |
+
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte');" title="<?php echo $customTextofTitle ?> Vkontakte"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-vk custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
213 |
<?php
|
214 |
}
|
215 |
}
|
218 |
if($selected_theme == 'longbutton'){
|
219 |
?>
|
220 |
|
221 |
+
<a rel='nofollow' onClick="moOpenIdLogin('twitter');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-twitter"></i><?php
|
222 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
223 |
<?php }
|
224 |
else{ ?>
|
225 |
+
<a rel='nofollow'onClick="moOpenIdLogin('twitter');" title="<?php echo $customTextofTitle ?> Twitter"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-twitter custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
226 |
<?php
|
227 |
}
|
228 |
}
|
229 |
if( get_option('mo_openid_linkedin_enable') ) {
|
230 |
if($selected_theme == 'longbutton'){ ?>
|
231 |
+
<a rel='nofollow' onClick="moOpenIdLogin('linkedin');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-linkedin"></i><?php
|
232 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
233 |
<?php }
|
234 |
else{ ?>
|
235 |
+
<a rel='nofollow' onClick="moOpenIdLogin('linkedin');" title="<?php echo $customTextofTitle ?> LinkedIn"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-linkedin custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
236 |
<?php }
|
237 |
}if( get_option('mo_openid_instagram_enable') ) {
|
238 |
if($selected_theme == 'longbutton'){ ?>
|
239 |
+
<a rel='nofollow' onClick="moOpenIdLogin('instagram');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-instagram btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-instagram"></i><?php
|
240 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
241 |
<?php }
|
242 |
else{ ?>
|
243 |
|
244 |
|
245 |
+
<a rel='nofollow' onClick="moOpenIdLogin('instagram');" title="<?php echo $customTextofTitle ?> Instagram"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-instagram custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
246 |
<?php }
|
247 |
}if( get_option('mo_openid_amazon_enable') ) {
|
248 |
if($selected_theme == 'longbutton'){
|
249 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('amazon');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" ><i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-amazon"></i><?php
|
250 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
251 |
<?php }
|
252 |
else{ ?>
|
253 |
|
254 |
+
<a rel='nofollow' onClick="moOpenIdLogin('amazon');" title="<?php echo $customTextofTitle ?> Amazon"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-amazon custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
255 |
<?php }
|
256 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
257 |
if($selected_theme == 'longbutton'){
|
258 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('salesforce');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" ><i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-cloud"></i> <?php
|
259 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
260 |
<?php }
|
261 |
else{ ?>
|
262 |
|
263 |
|
264 |
+
<a rel='nofollow' onClick="moOpenIdLogin('salesforce');" title="<?php echo $customTextofTitle ?> Salesforce"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px " class="fa fa-cloud custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
265 |
<?php }
|
266 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
267 |
if($selected_theme == 'longbutton'){
|
268 |
+
?> <a rel='nofollow' onClick="moOpenIdLogin('windowslive');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-microsoft btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-windows"></i><?php
|
269 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
270 |
<?php }
|
271 |
else{ ?>
|
272 |
|
273 |
|
274 |
+
<a rel='nofollow' onClick="moOpenIdLogin('windowslive');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class=" fa fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
275 |
<?php }
|
276 |
}
|
277 |
|
361 |
if($customTheme == 'default'){
|
362 |
if( get_option('mo_openid_facebook_enable') ) {
|
363 |
if($selected_theme == 'longbutton'){
|
364 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-facebook btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"facebook"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
365 |
else{
|
366 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
367 |
}
|
368 |
|
369 |
}
|
370 |
|
371 |
if( get_option('mo_openid_google_enable') ) {
|
372 |
if($selected_theme == 'longbutton'){
|
373 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-google btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"google"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-google-plus'></i>" . $buttonText . " Google</a>";
|
374 |
}
|
375 |
else{
|
376 |
|
377 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"google"' . ");' title= ' ".$customTextofTitle." Google'><img alt='Google' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
378 |
|
379 |
}
|
380 |
}
|
381 |
|
382 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
383 |
if($selected_theme == 'longbutton'){
|
384 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-vk btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"vkontakte"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
385 |
}
|
386 |
else{
|
387 |
|
388 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"vkontakte"' . ");' title= ' ".$customTextofTitle." Vkontakte'><img alt='Vkontakte' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
389 |
|
390 |
}
|
391 |
}
|
392 |
|
393 |
if( get_option('mo_openid_twitter_enable') ) {
|
394 |
if($selected_theme == 'longbutton'){
|
395 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-twitter btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"twitter"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
396 |
else{
|
397 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><img alt='Twitter' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
398 |
}
|
399 |
|
400 |
}
|
401 |
if( get_option('mo_openid_linkedin_enable') ) {
|
402 |
if($selected_theme == 'longbutton'){
|
403 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"linkedin"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
404 |
}
|
405 |
else{
|
406 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
407 |
}
|
408 |
}if( get_option('mo_openid_instagram_enable') ) {
|
409 |
if($selected_theme == 'longbutton'){
|
410 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-instagram btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"instagram"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
411 |
}
|
412 |
else{
|
413 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
414 |
}
|
415 |
}if( get_option('mo_openid_amazon_enable') ) {
|
416 |
if($selected_theme == 'longbutton'){
|
417 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-soundcloud btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"amazon"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-amazon'></i>" . $buttonText . " Amazon</a>";
|
418 |
}
|
419 |
else{
|
420 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
421 |
}
|
422 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
423 |
if($selected_theme == 'longbutton'){
|
424 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-vimeo btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"salesforce"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
425 |
}
|
426 |
else{
|
427 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
428 |
}
|
429 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
430 |
if($selected_theme == 'longbutton'){
|
431 |
+
$html .= "<a rel='nofollow' style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-microsoft btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"windowslive"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-windows'></i>" . $buttonText . " Microsoft</a>";
|
432 |
}
|
433 |
else{
|
434 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
435 |
}
|
436 |
}
|
437 |
}
|
439 |
if($customTheme == 'custom'){
|
440 |
if( get_option('mo_openid_facebook_enable') ) {
|
441 |
if($selected_theme == 'longbutton'){
|
442 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"facebook"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-facebook'></i> " . $buttonText . " Facebook</a>";
|
443 |
}
|
444 |
else{
|
445 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
446 |
}
|
447 |
|
448 |
}
|
449 |
|
450 |
if( get_option('mo_openid_google_enable') ) {
|
451 |
if($selected_theme == 'longbutton'){
|
452 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"google"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-google-plus'></i> " . $buttonText . " Google</a>";
|
453 |
}
|
454 |
else{
|
455 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Google' onClick='moOpenIdLogin(" . '"google"' . ");' title= ' ". $customTextofTitle." Google'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
456 |
|
457 |
}
|
458 |
}
|
459 |
|
460 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
461 |
if($selected_theme == 'longbutton'){
|
462 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"vkontakte"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-vk'></i> " . $buttonText . " Vkontakte</a>";
|
463 |
}
|
464 |
else{
|
465 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Vkontakte' onClick='moOpenIdLogin(" . '"vkontakte"' . ");' title= ' ". $customTextofTitle." Vkontakte'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
466 |
|
467 |
}
|
468 |
}
|
469 |
|
470 |
if( get_option('mo_openid_twitter_enable') ) {
|
471 |
if($selected_theme == 'longbutton'){
|
472 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"twitter"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-twitter'></i> " . $buttonText . " Twitter</a>";
|
473 |
}
|
474 |
else{
|
475 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
476 |
}
|
477 |
|
478 |
}
|
479 |
if( get_option('mo_openid_linkedin_enable') ) {
|
480 |
if($selected_theme == 'longbutton'){
|
481 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"linkedin"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-linkedin'></i> " . $buttonText . " LinkedIn</a>";
|
482 |
}
|
483 |
else{
|
484 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
485 |
}
|
486 |
}if( get_option('mo_openid_instagram_enable') ) {
|
487 |
if($selected_theme == 'longbutton'){
|
488 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"instagram"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-instagram'></i> " . $buttonText . " Instagram</a>";
|
489 |
}
|
490 |
else{
|
491 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
492 |
}
|
493 |
}if( get_option('mo_openid_amazon_enable') ) {
|
494 |
if($selected_theme == 'longbutton'){
|
495 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"amazon"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-amazon'></i> " . $buttonText . " Amazon</a>";
|
496 |
}
|
497 |
else{
|
498 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
499 |
}
|
500 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
501 |
if($selected_theme == 'longbutton'){
|
502 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"salesforce"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-cloud'></i> " . $buttonText . " Salesforce</a>";
|
503 |
}
|
504 |
else{
|
505 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
506 |
}
|
507 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
508 |
if($selected_theme == 'longbutton'){
|
509 |
+
$html .= "<a rel='nofollow' onClick='moOpenIdLogin(" . '"windowslive"' . ");' style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-windows'></i> " . $buttonText . " Microsoft</a>";
|
510 |
}
|
511 |
else{
|
512 |
+
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
513 |
}
|
514 |
}
|
515 |
}
|
902 |
|
903 |
$user_id = wp_insert_user( $userdata);
|
904 |
if(is_wp_error( $user_id )) {
|
905 |
+
wp_die('There was an error in registration. Please contact your administrator.');
|
|
|
906 |
}
|
907 |
|
908 |
// run the query to add provider and identifier for the user
|
909 |
$table_name = $wpdb->prefix . 'users';
|
910 |
|
911 |
+
$provider_column = 'provider';
|
912 |
+
$identifier_column = 'identifier';
|
913 |
+
|
914 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$provider_column);
|
915 |
+
if(empty($row)){
|
916 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$provider_column." VARCHAR(20) NOT NULL ");
|
917 |
+
}
|
918 |
+
|
919 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$identifier_column);
|
920 |
+
if(empty($row)){
|
921 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$identifier_column." VARCHAR(100) NOT NULL ");
|
922 |
+
}
|
923 |
+
|
924 |
$result = $wpdb->update(
|
925 |
$table_name,
|
926 |
array(
|
1076 |
|
1077 |
if(is_wp_error( $user_id )) {
|
1078 |
//print_r($user_id);
|
1079 |
+
wp_die('There was an error in registration. Please contact your administrator.');
|
|
|
1080 |
}
|
1081 |
|
1082 |
update_option('mo_openid_user_count',get_option('mo_openid_user_count')+1);
|
1083 |
// run the query to add provider and identifier for the user
|
1084 |
$table_name = $wpdb->prefix . 'users';
|
1085 |
|
1086 |
+
$provider_column = 'provider';
|
1087 |
+
$identifier_column = 'identifier';
|
1088 |
+
|
1089 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$provider_column);
|
1090 |
+
if(empty($row)){
|
1091 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$provider_column." VARCHAR(20) NOT NULL ");
|
1092 |
+
}
|
1093 |
+
|
1094 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$identifier_column);
|
1095 |
+
if(empty($row)){
|
1096 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$identifier_column." VARCHAR(100) NOT NULL ");
|
1097 |
+
}
|
1098 |
+
|
1099 |
$result = $wpdb->update(
|
1100 |
$table_name,
|
1101 |
array(
|
1196 |
|
1197 |
if(is_wp_error( $user_id )) {
|
1198 |
//print_r($user_id);
|
1199 |
+
wp_die('There was an error in registration. Please contact your administrator.');
|
|
|
1200 |
}
|
1201 |
|
1202 |
// run the query to add provider and identifier for the user
|
1203 |
$table_name = $wpdb->prefix . 'users';
|
1204 |
|
1205 |
+
$provider_column = 'provider';
|
1206 |
+
$identifier_column = 'identifier';
|
1207 |
+
|
1208 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$provider_column);
|
1209 |
+
if(empty($row)){
|
1210 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$provider_column." VARCHAR(20) NOT NULL ");
|
1211 |
+
}
|
1212 |
+
|
1213 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$identifier_column);
|
1214 |
+
if(empty($row)){
|
1215 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$identifier_column." VARCHAR(100) NOT NULL ");
|
1216 |
+
}
|
1217 |
|
1218 |
$result = $wpdb->update(
|
1219 |
$table_name,
|
class-mo-openid-sso-customer.php
CHANGED
@@ -59,7 +59,7 @@ class CustomerOpenID {
|
|
59 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
60 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
61 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
62 |
-
|
63 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
64 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
65 |
curl_setopt( $ch, CURLOPT_POST, true );
|
@@ -99,7 +99,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
99 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
100 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
101 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
102 |
-
|
103 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
104 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
105 |
curl_setopt( $ch, CURLOPT_POST, true);
|
@@ -135,7 +135,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
135 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
136 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
137 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
138 |
-
|
139 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
140 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
141 |
curl_setopt( $ch, CURLOPT_POST, true);
|
@@ -172,7 +172,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
172 |
$hashValue = hash("sha512", $stringToHash);
|
173 |
|
174 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
175 |
-
$timestampHeader = "Timestamp: " .
|
176 |
$authorizationHeader = "Authorization: " . $hashValue;
|
177 |
if($authType == 'EMAIL') {
|
178 |
$fields = array(
|
@@ -196,7 +196,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
196 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
197 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
198 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
199 |
-
|
200 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
201 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
202 |
$timestampHeader, $authorizationHeader));
|
@@ -234,7 +234,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
234 |
$hashValue = hash("sha512", $stringToHash);
|
235 |
|
236 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
237 |
-
$timestampHeader = "Timestamp: " .
|
238 |
$authorizationHeader = "Authorization: " . $hashValue;
|
239 |
$fields = array(
|
240 |
'customerId' => $customerKey,
|
@@ -247,7 +247,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
247 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
248 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
249 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
250 |
-
|
251 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
252 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
253 |
$timestampHeader, $authorizationHeader));
|
@@ -286,7 +286,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
286 |
$hashValue = hash("sha512", $stringToHash);
|
287 |
|
288 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
289 |
-
$timestampHeader = "Timestamp: " . $currentTimeInMillis;
|
290 |
$authorizationHeader = "Authorization: " . $hashValue;
|
291 |
|
292 |
$fields = '';
|
@@ -304,7 +304,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
304 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
305 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
306 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
307 |
-
|
308 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
309 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
310 |
$timestampHeader, $authorizationHeader));
|
@@ -351,7 +351,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
351 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
352 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
353 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
354 |
-
|
355 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
356 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF-8', 'Authorization: Basic' ) );
|
357 |
curl_setopt( $ch, CURLOPT_POST, true);
|
@@ -394,7 +394,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
394 |
$hashValue = hash("sha512", $stringToHash);
|
395 |
|
396 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
397 |
-
$timestampHeader = "Timestamp: " .
|
398 |
$authorizationHeader = "Authorization: " . $hashValue;
|
399 |
|
400 |
$fields = '';
|
@@ -411,7 +411,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
411 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
412 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
413 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
414 |
-
|
415 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
416 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
417 |
$timestampHeader, $authorizationHeader));
|
59 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
60 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
61 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
62 |
+
|
63 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
64 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
65 |
curl_setopt( $ch, CURLOPT_POST, true );
|
99 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
100 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
101 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
102 |
+
|
103 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
104 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
105 |
curl_setopt( $ch, CURLOPT_POST, true);
|
135 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
136 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
137 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
138 |
+
|
139 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
140 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
141 |
curl_setopt( $ch, CURLOPT_POST, true);
|
172 |
$hashValue = hash("sha512", $stringToHash);
|
173 |
|
174 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
175 |
+
$timestampHeader = "Timestamp: " .number_format($currentTimeInMillis, 0, '', '');
|
176 |
$authorizationHeader = "Authorization: " . $hashValue;
|
177 |
if($authType == 'EMAIL') {
|
178 |
$fields = array(
|
196 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
197 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
198 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
199 |
+
|
200 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
201 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
202 |
$timestampHeader, $authorizationHeader));
|
234 |
$hashValue = hash("sha512", $stringToHash);
|
235 |
|
236 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
237 |
+
$timestampHeader = "Timestamp: " .number_format($currentTimeInMillis, 0, '', '');
|
238 |
$authorizationHeader = "Authorization: " . $hashValue;
|
239 |
$fields = array(
|
240 |
'customerId' => $customerKey,
|
247 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
248 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
249 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
250 |
+
|
251 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
252 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
253 |
$timestampHeader, $authorizationHeader));
|
286 |
$hashValue = hash("sha512", $stringToHash);
|
287 |
|
288 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
289 |
+
$timestampHeader = "Timestamp: " . number_format($currentTimeInMillis, 0, '', '');
|
290 |
$authorizationHeader = "Authorization: " . $hashValue;
|
291 |
|
292 |
$fields = '';
|
304 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
305 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
306 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
307 |
+
|
308 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
309 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
310 |
$timestampHeader, $authorizationHeader));
|
351 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
352 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
353 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
354 |
+
|
355 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
356 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF-8', 'Authorization: Basic' ) );
|
357 |
curl_setopt( $ch, CURLOPT_POST, true);
|
394 |
$hashValue = hash("sha512", $stringToHash);
|
395 |
|
396 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
397 |
+
$timestampHeader = "Timestamp: " .number_format($currentTimeInMillis, 0, '', '');
|
398 |
$authorizationHeader = "Authorization: " . $hashValue;
|
399 |
|
400 |
$fields = '';
|
411 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
412 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
413 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
414 |
+
|
415 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
416 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
417 |
$timestampHeader, $authorizationHeader));
|
class-mo-openid-sso-shortcode-buttons.php
CHANGED
@@ -25,13 +25,6 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
25 |
}else
|
26 |
$fontColor;
|
27 |
}
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
$email_subject = get_option('mo_openid_share_email_subject');
|
37 |
$email_body = get_option('mo_openid_share_email_body');
|
25 |
}else
|
26 |
$fontColor;
|
27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
$email_subject = get_option('mo_openid_share_email_subject');
|
30 |
$email_body = get_option('mo_openid_share_email_body');
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: http://miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 5.1.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
@@ -165,7 +165,6 @@ class Miniorange_OpenID_SSO {
|
|
165 |
add_option( 'mo_openid_auto_register_enable', '1');
|
166 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
167 |
add_option( 'moopenid_social_login_avatar','1' );
|
168 |
-
|
169 |
add_option( 'moopenid_user_attributes','0' );
|
170 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
171 |
add_option( 'mo_openid_social_comment_blogpost','1' );
|
@@ -197,7 +196,6 @@ class Miniorange_OpenID_SSO {
|
|
197 |
delete_option('mo_openid_message');
|
198 |
delete_option( 'mo_openid_admin_customer_valid');
|
199 |
delete_option( 'mo_openid_admin_customer_plan');
|
200 |
-
|
201 |
}
|
202 |
|
203 |
function mo_openid_activate() {
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: http://miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 5.1.9
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
165 |
add_option( 'mo_openid_auto_register_enable', '1');
|
166 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
167 |
add_option( 'moopenid_social_login_avatar','1' );
|
|
|
168 |
add_option( 'moopenid_user_attributes','0' );
|
169 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
170 |
add_option( 'mo_openid_social_comment_blogpost','1' );
|
196 |
delete_option('mo_openid_message');
|
197 |
delete_option( 'mo_openid_admin_customer_valid');
|
198 |
delete_option( 'mo_openid_admin_customer_plan');
|
|
|
199 |
}
|
200 |
|
201 |
function mo_openid_activate() {
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -30,7 +30,7 @@ function mo_register_openid() {
|
|
30 |
<div id="tab">
|
31 |
<h2 class="nav-tab-wrapper">
|
32 |
<?php if(!mo_openid_is_customer_registered()) { ?>
|
33 |
-
|
34 |
<?php } ?>
|
35 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
36 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
@@ -292,18 +292,15 @@ function mo_openid_apps_config() {
|
|
292 |
<?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
|
293 |
</td>
|
294 |
<td>
|
295 |
-
<input type="checkbox"
|
296 |
-
id="vkontakte_enable" class="app_enable" name="mo_openid_vkontakte_enable" value="1" onchange="previewLoginIcons();"
|
297 |
<?php checked( get_option('mo_openid_vkontakte_enable') == 1 );?> /><strong>Vkontakte</strong>
|
298 |
</td>
|
299 |
<td>
|
300 |
-
<input type="checkbox"
|
301 |
-
id="twitter_enable" class="app_enable" name="mo_openid_twitter_enable" value="1" onchange="previewLoginIcons();"
|
302 |
<?php checked( get_option('mo_openid_twitter_enable') == 1 );?> /><strong>Twitter</strong>
|
303 |
</td>
|
304 |
<td>
|
305 |
-
<input type="checkbox"
|
306 |
-
id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
|
307 |
<?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>Instagram</strong>
|
308 |
</td>
|
309 |
</tr>
|
@@ -313,18 +310,15 @@ function mo_openid_apps_config() {
|
|
313 |
<?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
|
314 |
</td>
|
315 |
<td>
|
316 |
-
<input type="checkbox"
|
317 |
-
id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
|
318 |
<?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
|
319 |
</td>
|
320 |
<td>
|
321 |
-
<input type="checkbox"
|
322 |
-
id="salesforce_enable" class="app_enable" name="mo_openid_salesforce_enable" value="1" onchange="previewLoginIcons();"
|
323 |
<?php checked( get_option('mo_openid_salesforce_enable') == 1 );?> /><strong>Salesforce</strong>
|
324 |
</td>
|
325 |
<td>
|
326 |
-
<input type="checkbox"
|
327 |
-
id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
|
328 |
<?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
|
329 |
</td>
|
330 |
</tr>
|
@@ -1048,7 +1042,7 @@ function mo_openid_apps_config() {
|
|
1048 |
<td>
|
1049 |
<br/>
|
1050 |
<div style=" padding: 10px;padding-top: 5px;padding-left: 10px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
1051 |
-
<span style=" color: black;font-weight: bold;float: right;font-size: 22px;font-family: Arial;"></span><h3><input type="checkbox" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?>>Profile Completion <p style="color:
|
1052 |
</td>
|
1053 |
</tr>
|
1054 |
|
@@ -2303,7 +2297,8 @@ function mo_openid_pricing_info(){ ?>
|
|
2303 |
<p class="mo_openid_pricing_text">Social Sharing (Free Forever)<br/>
|
2304 |
Social Comments (Free Forever)<br/>
|
2305 |
Social Login
|
2306 |
-
(Free for 30 days)<br
|
|
|
2307 |
<p><br/><br/></p>
|
2308 |
<p><br/></p><br/></p>
|
2309 |
<hr/>
|
@@ -2328,7 +2323,8 @@ function mo_openid_pricing_info(){ ?>
|
|
2328 |
<p class="mo_openid_pricing_text">
|
2329 |
Social Sharing<br/>
|
2330 |
Social Comments<br/>
|
2331 |
-
Social Login
|
|
|
2332 |
<p><br/><br/><br/></p>
|
2333 |
<p><br/><br/></p>
|
2334 |
<hr/>
|
@@ -2352,6 +2348,7 @@ function mo_openid_pricing_info(){ ?>
|
|
2352 |
Social Sharing<br/>
|
2353 |
Social Comments<br/>
|
2354 |
Social Login<br/>
|
|
|
2355 |
Extended Profile Data<br/>
|
2356 |
Social Analytics Dashboard Access<br/>
|
2357 |
Custom Apps***<br/></p>
|
@@ -2377,6 +2374,7 @@ function mo_openid_pricing_info(){ ?>
|
|
2377 |
Social Sharing<br/>
|
2378 |
Social Comments<br/>
|
2379 |
Social Login<br/>
|
|
|
2380 |
Extended Profile Data<br/>
|
2381 |
Social Analytics Dashboard Access<br/>
|
2382 |
Custom Apps***<br/>
|
@@ -2411,6 +2409,7 @@ function mo_openid_pricing_info(){ ?>
|
|
2411 |
</script>
|
2412 |
<p><span style="color:rgba(255, 0, 0, 0.76);font-weight:bold;">* Free for 30 days</span> - The plugin uses miniOrange service for Social Login. This keeps the plugin light and delegates login to miniOrange servers thereby reducing the load on your website.</p>
|
2413 |
<p><span style="color:#da7587;font-weight:bold;">* Extended Profile Data</span> - Extended profile data feature requires additional configuration. You need to have your own social media app and permissions from social media providers to collect extended user data.</p>
|
|
|
2414 |
<p>*** Configuring applications for Social Media is cumbersome due to which miniOrange takes care of configuring these apps. If you still wish you use your own applications for Social Login apps, custom apps can be configured for each Social Media in Best Value and Premium plans.</p>
|
2415 |
|
2416 |
<h3>Steps to upgrade to premium plugin -</h3>
|
30 |
<div id="tab">
|
31 |
<h2 class="nav-tab-wrapper">
|
32 |
<?php if(!mo_openid_is_customer_registered()) { ?>
|
33 |
+
<a class="nav-tab <?php echo $active_tab == 'register' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Account Setup</a>
|
34 |
<?php } ?>
|
35 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
36 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
292 |
<?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
|
293 |
</td>
|
294 |
<td>
|
295 |
+
<input type="checkbox" id="vkontakte_enable" class="app_enable" name="mo_openid_vkontakte_enable" value="1" onchange="previewLoginIcons();"
|
|
|
296 |
<?php checked( get_option('mo_openid_vkontakte_enable') == 1 );?> /><strong>Vkontakte</strong>
|
297 |
</td>
|
298 |
<td>
|
299 |
+
<input type="checkbox" id="twitter_enable" class="app_enable" name="mo_openid_twitter_enable" value="1" onchange="previewLoginIcons();"
|
|
|
300 |
<?php checked( get_option('mo_openid_twitter_enable') == 1 );?> /><strong>Twitter</strong>
|
301 |
</td>
|
302 |
<td>
|
303 |
+
<input type="checkbox" id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
|
|
|
304 |
<?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>Instagram</strong>
|
305 |
</td>
|
306 |
</tr>
|
310 |
<?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
|
311 |
</td>
|
312 |
<td>
|
313 |
+
<input type="checkbox" id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
|
|
|
314 |
<?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
|
315 |
</td>
|
316 |
<td>
|
317 |
+
<input type="checkbox" id="salesforce_enable" class="app_enable" name="mo_openid_salesforce_enable" value="1" onchange="previewLoginIcons();"
|
|
|
318 |
<?php checked( get_option('mo_openid_salesforce_enable') == 1 );?> /><strong>Salesforce</strong>
|
319 |
</td>
|
320 |
<td>
|
321 |
+
<input type="checkbox" id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
|
|
|
322 |
<?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
|
323 |
</td>
|
324 |
</tr>
|
1042 |
<td>
|
1043 |
<br/>
|
1044 |
<div style=" padding: 10px;padding-top: 5px;padding-left: 10px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
1045 |
+
<span style=" color: black;font-weight: bold;float: right;font-size: 22px;font-family: Arial;"></span><h3><input type="checkbox" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?>>Profile Completion <p style="color:#da7587;font-weight:bold;">(Disabling profile completion is not recommended. This feature requires SMTP to be setup.)</p></h3>In case of unavailability of username or email from the social media application, user is prompted to input the same.</div>
|
1046 |
</td>
|
1047 |
</tr>
|
1048 |
|
2297 |
<p class="mo_openid_pricing_text">Social Sharing (Free Forever)<br/>
|
2298 |
Social Comments (Free Forever)<br/>
|
2299 |
Social Login
|
2300 |
+
(Free for 30 days)<br/>
|
2301 |
+
<span style="color:pink">Profile Completion</span>**<br/></p>
|
2302 |
<p><br/><br/></p>
|
2303 |
<p><br/></p><br/></p>
|
2304 |
<hr/>
|
2323 |
<p class="mo_openid_pricing_text">
|
2324 |
Social Sharing<br/>
|
2325 |
Social Comments<br/>
|
2326 |
+
Social Login<br/>
|
2327 |
+
<span style="color:pink">Profile Completion</span>**<br/>
|
2328 |
<p><br/><br/><br/></p>
|
2329 |
<p><br/><br/></p>
|
2330 |
<hr/>
|
2348 |
Social Sharing<br/>
|
2349 |
Social Comments<br/>
|
2350 |
Social Login<br/>
|
2351 |
+
<span style="color:pink">Profile Completion</span>**<br/>
|
2352 |
Extended Profile Data<br/>
|
2353 |
Social Analytics Dashboard Access<br/>
|
2354 |
Custom Apps***<br/></p>
|
2374 |
Social Sharing<br/>
|
2375 |
Social Comments<br/>
|
2376 |
Social Login<br/>
|
2377 |
+
<span style="color:pink">Profile Completion</span>**<br/>
|
2378 |
Extended Profile Data<br/>
|
2379 |
Social Analytics Dashboard Access<br/>
|
2380 |
Custom Apps***<br/>
|
2409 |
</script>
|
2410 |
<p><span style="color:rgba(255, 0, 0, 0.76);font-weight:bold;">* Free for 30 days</span> - The plugin uses miniOrange service for Social Login. This keeps the plugin light and delegates login to miniOrange servers thereby reducing the load on your website.</p>
|
2411 |
<p><span style="color:#da7587;font-weight:bold;">* Extended Profile Data</span> - Extended profile data feature requires additional configuration. You need to have your own social media app and permissions from social media providers to collect extended user data.</p>
|
2412 |
+
<p><span style="color:#da7587;font-weight:bold;">** Profile Completion</span> - This is a new feature that requires SMTP to be setup. In case of unavailability of username or email from the social media application, user is prompted to input the same. Disabling this feature auto creates user data. Disabling this is not recommended.</p>
|
2413 |
<p>*** Configuring applications for Social Media is cumbersome due to which miniOrange takes care of configuring these apps. If you still wish you use your own applications for Social Login apps, custom apps can be configured for each Social Media in Best Value and Premium plans.</p>
|
2414 |
|
2415 |
<h3>Steps to upgrade to premium plugin -</h3>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://miniorange.com
|
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 5.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -34,6 +34,7 @@ Allow users to comment on your website using supported social media commenting a
|
|
34 |
|
35 |
= Features - =
|
36 |
|
|
|
37 |
* Clean and easy to use WordPress admin UI
|
38 |
* **NO SETUP required for any social login or social sharing application**
|
39 |
* Support for SHORTCODE for both social login and social sharing(horizontal & vertical)
|
@@ -143,6 +144,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
143 |
|
144 |
|
145 |
== Changelog ==
|
|
|
|
|
|
|
146 |
= 5.1.8 =
|
147 |
* Minor Bug Fix
|
148 |
|
@@ -382,6 +386,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
382 |
* First version of Social Login, Social Sharing plugin.
|
383 |
|
384 |
== Upgrade Notice ==
|
|
|
|
|
|
|
385 |
= 5.1.8 =
|
386 |
* Minor Bug Fix
|
387 |
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 5.1.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
34 |
|
35 |
= Features - =
|
36 |
|
37 |
+
* <b>Profile Completion</b> - If username or email is not returned from a social app, user is prompted to input the same.
|
38 |
* Clean and easy to use WordPress admin UI
|
39 |
* **NO SETUP required for any social login or social sharing application**
|
40 |
* Support for SHORTCODE for both social login and social sharing(horizontal & vertical)
|
144 |
|
145 |
|
146 |
== Changelog ==
|
147 |
+
= 5.1.9 =
|
148 |
+
* Bug Fix in Profile Completion Feature
|
149 |
+
|
150 |
= 5.1.8 =
|
151 |
* Minor Bug Fix
|
152 |
|
386 |
* First version of Social Login, Social Sharing plugin.
|
387 |
|
388 |
== Upgrade Notice ==
|
389 |
+
= 5.1.9 =
|
390 |
+
* Bug Fix in Profile Completion Feature
|
391 |
+
|
392 |
= 5.1.8 =
|
393 |
* Minor Bug Fix
|
394 |
|