Version Description
- Minor bug fixes.
- Increased resolution of Facebook profile picture.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 7.0.0 |
Comparing to | |
See all releases |
Code changes from version 6.6.9 to 7.0.0
- class-mo-openid-login-widget.php +84 -49
- miniorange_openid_sso_settings.php +10 -4
- readme.txt +9 -1
class-mo-openid-login-widget.php
CHANGED
@@ -113,7 +113,7 @@ if(mo_openid_is_customer_registered()) {
|
|
113 |
}else{
|
114 |
?>
|
115 |
|
116 |
-
<a class=" dis login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');"><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; ?> dis login-button" ></a>
|
117 |
<?php }
|
118 |
|
119 |
}
|
@@ -126,7 +126,7 @@ if(mo_openid_is_customer_registered()) {
|
|
126 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
127 |
<?php }
|
128 |
else{ ?>
|
129 |
-
<a
|
130 |
<?php
|
131 |
}
|
132 |
}
|
@@ -139,7 +139,7 @@ if(mo_openid_is_customer_registered()) {
|
|
139 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
140 |
<?php }
|
141 |
else{ ?>
|
142 |
-
<a class="dis login-button" rel='nofollow'
|
143 |
<?php
|
144 |
}
|
145 |
}
|
@@ -152,7 +152,7 @@ if(mo_openid_is_customer_registered()) {
|
|
152 |
else{ ?>
|
153 |
|
154 |
|
155 |
-
<a
|
156 |
<?php }
|
157 |
}
|
158 |
|
@@ -162,7 +162,7 @@ if(mo_openid_is_customer_registered()) {
|
|
162 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
163 |
<?php }
|
164 |
else{ ?>
|
165 |
-
<a class="dis login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');"><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; ?> dis btn-mo login-button" ></a>
|
166 |
<?php }
|
167 |
}
|
168 |
|
@@ -174,7 +174,7 @@ if(mo_openid_is_customer_registered()) {
|
|
174 |
else{ ?>
|
175 |
|
176 |
|
177 |
-
<a class="dis login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');"><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; ?> dis login-button"></a>
|
178 |
<?php }
|
179 |
}
|
180 |
|
@@ -185,7 +185,7 @@ if(mo_openid_is_customer_registered()) {
|
|
185 |
<?php }
|
186 |
else{ ?>
|
187 |
|
188 |
-
<a class="dis login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');"><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; ?> dis login-button"></a>
|
189 |
<?php }
|
190 |
}
|
191 |
|
@@ -197,7 +197,7 @@ if(mo_openid_is_customer_registered()) {
|
|
197 |
else{ ?>
|
198 |
|
199 |
|
200 |
-
<a class="dis login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');"><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; ?> dis login-button" ></a>
|
201 |
<?php }
|
202 |
}
|
203 |
|
@@ -209,7 +209,7 @@ if(mo_openid_is_customer_registered()) {
|
|
209 |
else{ ?>
|
210 |
|
211 |
|
212 |
-
<a class="dis login-button" rel='nofollow' <?php echo $gdpr_setting; ?>title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');"><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; ?>dis login-button"></a>
|
213 |
<?php }
|
214 |
}
|
215 |
|
@@ -227,7 +227,7 @@ if(mo_openid_is_customer_registered()) {
|
|
227 |
<?php }
|
228 |
else{ ?>
|
229 |
|
230 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" title="<?php echo $customTextofTitle ?> Facebook"><i style="margin-top:10px;!important;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>
|
231 |
|
232 |
<?php }
|
233 |
|
@@ -241,7 +241,7 @@ if(mo_openid_is_customer_registered()) {
|
|
241 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
242 |
<?php }
|
243 |
else{ ?>
|
244 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" title="<?php echo $customTextofTitle ?> Google"><i style="margin-top:10px;!important;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>
|
245 |
<?php
|
246 |
}
|
247 |
}
|
@@ -254,7 +254,7 @@ if(mo_openid_is_customer_registered()) {
|
|
254 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
255 |
<?php }
|
256 |
else{ ?>
|
257 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" title="<?php echo $customTextofTitle ?> Vkontakte"><i style="margin-top:10px;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>
|
258 |
<?php
|
259 |
}
|
260 |
}
|
@@ -267,7 +267,7 @@ if(mo_openid_is_customer_registered()) {
|
|
267 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
268 |
<?php }
|
269 |
else{ ?>
|
270 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" title="<?php echo $customTextofTitle ?> Twitter"><i style="margin-top:10px;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>
|
271 |
<?php
|
272 |
}
|
273 |
}
|
@@ -278,7 +278,7 @@ if(mo_openid_is_customer_registered()) {
|
|
278 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
279 |
<?php }
|
280 |
else{ ?>
|
281 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" title="<?php echo $customTextofTitle ?> LinkedIn"><i style="margin-top:10px;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>
|
282 |
<?php }
|
283 |
}
|
284 |
|
@@ -290,7 +290,7 @@ if(mo_openid_is_customer_registered()) {
|
|
290 |
else{ ?>
|
291 |
|
292 |
|
293 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" title="<?php echo $customTextofTitle ?> Instagram"><i style="margin-top:10px;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>
|
294 |
<?php }
|
295 |
}
|
296 |
|
@@ -301,7 +301,7 @@ if(mo_openid_is_customer_registered()) {
|
|
301 |
<?php }
|
302 |
else{ ?>
|
303 |
|
304 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" title="<?php echo $customTextofTitle ?> Amazon"><i style="margin-top:10px;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>
|
305 |
<?php }
|
306 |
}
|
307 |
|
@@ -313,7 +313,7 @@ if(mo_openid_is_customer_registered()) {
|
|
313 |
else{ ?>
|
314 |
|
315 |
|
316 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" title="<?php echo $customTextofTitle ?> Salesforce"><i style="margin-top:10px;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>
|
317 |
<?php }
|
318 |
}
|
319 |
|
@@ -325,7 +325,7 @@ if(mo_openid_is_customer_registered()) {
|
|
325 |
else{ ?>
|
326 |
|
327 |
|
328 |
-
<a class="dis login-button" rel='nofollow' onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="margin-top:10px;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>
|
329 |
<?php }
|
330 |
}
|
331 |
|
@@ -453,6 +453,14 @@ if(mo_openid_is_customer_registered()) {
|
|
453 |
$consent_message = get_option('mo_openid_gdpr_consent_message');
|
454 |
}
|
455 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
if( ! is_user_logged_in() ) {
|
457 |
|
458 |
if( $appsConfigured ) {
|
@@ -472,7 +480,7 @@ if(mo_openid_is_customer_registered()) {
|
|
472 |
if($selected_theme == 'longbutton'){
|
473 |
$html .= "<a rel='nofollow' ".$gdpr_setting." 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-mo btn-block btn-social btn-facebook btn-custom-dec login-button' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
474 |
else{
|
475 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\" ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
476 |
}
|
477 |
|
478 |
}
|
@@ -483,7 +491,7 @@ if(mo_openid_is_customer_registered()) {
|
|
483 |
}
|
484 |
else{
|
485 |
|
486 |
-
$html .= "<a class='dis login-button' rel='nofollow' onClick=\"moOpenIdLogin('google','".$google_custom_app."');\" title= ' ".$customTextofTitle." Google'><img alt='Google' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
487 |
|
488 |
}
|
489 |
}
|
@@ -496,9 +504,9 @@ if(mo_openid_is_customer_registered()) {
|
|
496 |
}
|
497 |
else{
|
498 |
|
499 |
-
$html .= "<a class='dis login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" .
|
500 |
$vkontakte_custom_app.
|
501 |
-
"');\" title= ' ".$customTextofTitle." Vkontakte'><img alt='Vkontakte' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
502 |
|
503 |
}
|
504 |
}
|
@@ -509,8 +517,8 @@ if(mo_openid_is_customer_registered()) {
|
|
509 |
$twitter_custom_app.
|
510 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
511 |
else{
|
512 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" .
|
513 |
-
$twitter_custom_app. "');\" ><img alt='Twitter' style=' width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
514 |
}
|
515 |
|
516 |
}
|
@@ -520,35 +528,35 @@ if(mo_openid_is_customer_registered()) {
|
|
520 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick=\"moOpenIdLogin('linkedin','" .$twitter_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
521 |
}
|
522 |
else{
|
523 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
524 |
}
|
525 |
}if( get_option('mo_openid_instagram_enable') ) {
|
526 |
if($selected_theme == 'longbutton'){
|
527 |
$html .= "<a rel='nofollow' ".$gdpr_setting." 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-mo btn-block btn-social btn-instagram btn-custom-dec login-button' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
528 |
}
|
529 |
else{
|
530 |
-
$html .= "<a class='dis login-button' rel='nofollow' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
531 |
}
|
532 |
}if( get_option('mo_openid_amazon_enable') ) {
|
533 |
if($selected_theme == 'longbutton'){
|
534 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-soundcloud btn-custom-dec login-button' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-amazon'></i>" . $buttonText . " Amazon</a>";
|
535 |
}
|
536 |
else{
|
537 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
538 |
}
|
539 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
540 |
if($selected_theme == 'longbutton'){
|
541 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-vimeo btn-custom-dec login-button' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
542 |
}
|
543 |
else{
|
544 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
545 |
}
|
546 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
547 |
if($selected_theme == 'longbutton'){
|
548 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-microsoft btn-custom-dec login-button' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-windows'></i>" . $buttonText . " Microsoft</a>";
|
549 |
}
|
550 |
else{
|
551 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='dis login-button " .$selected_theme . "' ></a>";
|
552 |
}
|
553 |
}
|
554 |
}
|
@@ -561,7 +569,7 @@ if(mo_openid_is_customer_registered()) {
|
|
561 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" 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-mo 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>";
|
562 |
}
|
563 |
else{
|
564 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
565 |
}
|
566 |
|
567 |
}
|
@@ -571,7 +579,7 @@ if(mo_openid_is_customer_registered()) {
|
|
571 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('google','" .$google_custom_app . "');\" 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-mo 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>";
|
572 |
}
|
573 |
else{
|
574 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' ". $customTextofTitle." Google'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
575 |
|
576 |
}
|
577 |
}
|
@@ -581,7 +589,7 @@ if(mo_openid_is_customer_registered()) {
|
|
581 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app . "');\" 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-mo 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>";
|
582 |
}
|
583 |
else{
|
584 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app. "');\" title= ' ". $customTextofTitle." Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
585 |
|
586 |
}
|
587 |
}
|
@@ -591,7 +599,7 @@ if(mo_openid_is_customer_registered()) {
|
|
591 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" 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-mo 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>";
|
592 |
}
|
593 |
else{
|
594 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
595 |
}
|
596 |
|
597 |
}
|
@@ -600,35 +608,35 @@ if(mo_openid_is_customer_registered()) {
|
|
600 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" 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-mo 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>";
|
601 |
}
|
602 |
else{
|
603 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
604 |
}
|
605 |
}if( get_option('mo_openid_instagram_enable') ) {
|
606 |
if($selected_theme == 'longbutton'){
|
607 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" 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-mo 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>";
|
608 |
}
|
609 |
else{
|
610 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
611 |
}
|
612 |
}if( get_option('mo_openid_amazon_enable') ) {
|
613 |
if($selected_theme == 'longbutton'){
|
614 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" 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-mo 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>";
|
615 |
}
|
616 |
else{
|
617 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
618 |
}
|
619 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
620 |
if($selected_theme == 'longbutton'){
|
621 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" 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-mo 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>";
|
622 |
}
|
623 |
else{
|
624 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
625 |
}
|
626 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
627 |
if($selected_theme == 'longbutton'){
|
628 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" 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-mo 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>";
|
629 |
}
|
630 |
else{
|
631 |
-
$html .= "<a class='dis login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
632 |
}
|
633 |
}
|
634 |
}
|
@@ -1091,7 +1099,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1091 |
//$username = strtolower(str_replace(" ","",$username));
|
1092 |
|
1093 |
global $wpdb;
|
1094 |
-
|
|
|
|
|
|
|
|
|
|
|
1095 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
1096 |
|
1097 |
//if email exists, dont check if username is in db or not, send otp and get it over wordpress
|
@@ -1175,7 +1188,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1175 |
global $wpdb;
|
1176 |
$db_prefix = $wpdb->prefix;
|
1177 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = %s",$user_email));
|
1178 |
-
|
|
|
|
|
|
|
|
|
|
|
1179 |
|
1180 |
// if linked user exists log him in
|
1181 |
mo_openid_start_session();
|
@@ -1315,8 +1333,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1315 |
global $wpdb;
|
1316 |
$db_prefix = $wpdb->prefix;
|
1317 |
$id_returning_user = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$decrypted_app_name,$decrypted_user_id));
|
1318 |
-
|
1319 |
-
|
|
|
|
|
|
|
|
|
1320 |
mo_openid_start_session();
|
1321 |
// if returning user whose appname + identifier exists, log him in
|
1322 |
if((isset($id_returning_user)) || (isset($email_user_id)) ){
|
@@ -1448,8 +1470,13 @@ if(mo_openid_is_customer_registered()) {
|
|
1448 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$decrypted_app_name,$decrypted_user_id));
|
1449 |
|
1450 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\"",$decrypted_email));
|
1451 |
-
|
1452 |
-
|
|
|
|
|
|
|
|
|
|
|
1453 |
|
1454 |
mo_openid_start_session();
|
1455 |
if((isset($linked_email_id)) || (isset($email_user_id)) || isset($existing_email_user_id)) { // user is a member
|
@@ -1725,7 +1752,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1725 |
mo_openid_start_session();
|
1726 |
foreach($appslist as $key=>$currentapp){
|
1727 |
if($key == "facebook" && $appname == "facebook"){
|
1728 |
-
$profile_url ='https://graph.facebook.com/me/?fields=id,name,email,picture,age_range,first_name,gender,last_name,link&access_token=' .$access_token_json_output['access_token'];
|
1729 |
break;
|
1730 |
}
|
1731 |
else if($key == "google" && $appname == "google"){
|
@@ -1824,8 +1851,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1824 |
global $wpdb;
|
1825 |
$db_prefix = $wpdb->prefix;
|
1826 |
$id_returning_user = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$social_app_name,$social_user_id));
|
1827 |
-
|
1828 |
-
|
|
|
|
|
|
|
|
|
1829 |
|
1830 |
mo_openid_start_session();
|
1831 |
|
@@ -1955,8 +1986,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1955 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$social_app_name,$social_user_id));
|
1956 |
|
1957 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\"",$user_email));
|
1958 |
-
|
1959 |
-
|
|
|
|
|
|
|
|
|
1960 |
|
1961 |
mo_openid_start_session();
|
1962 |
if((isset($linked_email_id)) || (isset($email_user_id)) || (isset($existing_email_user_id)) ) { // user is a member
|
113 |
}else{
|
114 |
?>
|
115 |
|
116 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
|
117 |
<?php }
|
118 |
|
119 |
}
|
126 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
127 |
<?php }
|
128 |
else{ ?>
|
129 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" 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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
|
130 |
<?php
|
131 |
}
|
132 |
}
|
139 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
140 |
<?php }
|
141 |
else{ ?>
|
142 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
|
143 |
<?php
|
144 |
}
|
145 |
}
|
152 |
else{ ?>
|
153 |
|
154 |
|
155 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Twitter" onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
156 |
<?php }
|
157 |
}
|
158 |
|
162 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
163 |
<?php }
|
164 |
else{ ?>
|
165 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> btn-mo login-button" ></a>
|
166 |
<?php }
|
167 |
}
|
168 |
|
174 |
else{ ?>
|
175 |
|
176 |
|
177 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
178 |
<?php }
|
179 |
}
|
180 |
|
185 |
<?php }
|
186 |
else{ ?>
|
187 |
|
188 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
189 |
<?php }
|
190 |
}
|
191 |
|
197 |
else{ ?>
|
198 |
|
199 |
|
200 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
|
201 |
<?php }
|
202 |
}
|
203 |
|
209 |
else{ ?>
|
210 |
|
211 |
|
212 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');"><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; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
213 |
<?php }
|
214 |
}
|
215 |
|
227 |
<?php }
|
228 |
else{ ?>
|
229 |
|
230 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" title="<?php echo $customTextofTitle ?> Facebook"><i style="margin-top:10px;!important;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>
|
231 |
|
232 |
<?php }
|
233 |
|
241 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
242 |
<?php }
|
243 |
else{ ?>
|
244 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" title="<?php echo $customTextofTitle ?> Google"><i style="margin-top:10px;!important;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>
|
245 |
<?php
|
246 |
}
|
247 |
}
|
254 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
255 |
<?php }
|
256 |
else{ ?>
|
257 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" title="<?php echo $customTextofTitle ?> Vkontakte"><i style="margin-top:10px;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>
|
258 |
<?php
|
259 |
}
|
260 |
}
|
267 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
268 |
<?php }
|
269 |
else{ ?>
|
270 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" title="<?php echo $customTextofTitle ?> Twitter"><i style="margin-top:10px;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>
|
271 |
<?php
|
272 |
}
|
273 |
}
|
278 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
279 |
<?php }
|
280 |
else{ ?>
|
281 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" title="<?php echo $customTextofTitle ?> LinkedIn"><i style="margin-top:10px;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>
|
282 |
<?php }
|
283 |
}
|
284 |
|
290 |
else{ ?>
|
291 |
|
292 |
|
293 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" title="<?php echo $customTextofTitle ?> Instagram"><i style="margin-top:10px;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>
|
294 |
<?php }
|
295 |
}
|
296 |
|
301 |
<?php }
|
302 |
else{ ?>
|
303 |
|
304 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" title="<?php echo $customTextofTitle ?> Amazon"><i style="margin-top:10px;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>
|
305 |
<?php }
|
306 |
}
|
307 |
|
313 |
else{ ?>
|
314 |
|
315 |
|
316 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" title="<?php echo $customTextofTitle ?> Salesforce"><i style="margin-top:10px;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>
|
317 |
<?php }
|
318 |
}
|
319 |
|
325 |
else{ ?>
|
326 |
|
327 |
|
328 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="margin-top:10px;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>
|
329 |
<?php }
|
330 |
}
|
331 |
|
453 |
$consent_message = get_option('mo_openid_gdpr_consent_message');
|
454 |
}
|
455 |
|
456 |
+
if(get_option('mo_openid_gdpr_consent_enable'))
|
457 |
+
{
|
458 |
+
$dis = "dis";
|
459 |
+
}
|
460 |
+
else{
|
461 |
+
$dis = '';
|
462 |
+
}
|
463 |
+
|
464 |
if( ! is_user_logged_in() ) {
|
465 |
|
466 |
if( $appsConfigured ) {
|
480 |
if($selected_theme == 'longbutton'){
|
481 |
$html .= "<a rel='nofollow' ".$gdpr_setting." 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-mo btn-block btn-social btn-facebook btn-custom-dec login-button' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
482 |
else{
|
483 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\" ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
484 |
}
|
485 |
|
486 |
}
|
491 |
}
|
492 |
else{
|
493 |
|
494 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' onClick=\"moOpenIdLogin('google','".$google_custom_app."');\" title= ' ".$customTextofTitle." Google'><img alt='Google' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
495 |
|
496 |
}
|
497 |
}
|
504 |
}
|
505 |
else{
|
506 |
|
507 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" .
|
508 |
$vkontakte_custom_app.
|
509 |
+
"');\" title= ' ".$customTextofTitle." Vkontakte'><img alt='Vkontakte' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
510 |
|
511 |
}
|
512 |
}
|
517 |
$twitter_custom_app.
|
518 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
519 |
else{
|
520 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" .
|
521 |
+
$twitter_custom_app. "');\" ><img alt='Twitter' style=' width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
522 |
}
|
523 |
|
524 |
}
|
528 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick=\"moOpenIdLogin('linkedin','" .$twitter_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
529 |
}
|
530 |
else{
|
531 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
532 |
}
|
533 |
}if( get_option('mo_openid_instagram_enable') ) {
|
534 |
if($selected_theme == 'longbutton'){
|
535 |
$html .= "<a rel='nofollow' ".$gdpr_setting." 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-mo btn-block btn-social btn-instagram btn-custom-dec login-button' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
536 |
}
|
537 |
else{
|
538 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
539 |
}
|
540 |
}if( get_option('mo_openid_amazon_enable') ) {
|
541 |
if($selected_theme == 'longbutton'){
|
542 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-soundcloud btn-custom-dec login-button' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-amazon'></i>" . $buttonText . " Amazon</a>";
|
543 |
}
|
544 |
else{
|
545 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
546 |
}
|
547 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
548 |
if($selected_theme == 'longbutton'){
|
549 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-vimeo btn-custom-dec login-button' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
550 |
}
|
551 |
else{
|
552 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
553 |
}
|
554 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
555 |
if($selected_theme == 'longbutton'){
|
556 |
$html .= "<a rel='nofollow' ".$gdpr_setting."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-mo btn-block btn-social btn-microsoft btn-custom-dec login-button' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-windows'></i>" . $buttonText . " Microsoft</a>";
|
557 |
}
|
558 |
else{
|
559 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
|
560 |
}
|
561 |
}
|
562 |
}
|
569 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" 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-mo 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>";
|
570 |
}
|
571 |
else{
|
572 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
573 |
}
|
574 |
|
575 |
}
|
579 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('google','" .$google_custom_app . "');\" 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-mo 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>";
|
580 |
}
|
581 |
else{
|
582 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' ". $customTextofTitle." Google'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
583 |
|
584 |
}
|
585 |
}
|
589 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app . "');\" 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-mo 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>";
|
590 |
}
|
591 |
else{
|
592 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app. "');\" title= ' ". $customTextofTitle." Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
593 |
|
594 |
}
|
595 |
}
|
599 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" 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-mo 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>";
|
600 |
}
|
601 |
else{
|
602 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
603 |
}
|
604 |
|
605 |
}
|
608 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" 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-mo 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>";
|
609 |
}
|
610 |
else{
|
611 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
612 |
}
|
613 |
}if( get_option('mo_openid_instagram_enable') ) {
|
614 |
if($selected_theme == 'longbutton'){
|
615 |
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" 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-mo 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>";
|
616 |
}
|
617 |
else{
|
618 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
619 |
}
|
620 |
}if( get_option('mo_openid_amazon_enable') ) {
|
621 |
if($selected_theme == 'longbutton'){
|
622 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" 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-mo 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>";
|
623 |
}
|
624 |
else{
|
625 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
626 |
}
|
627 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
628 |
if($selected_theme == 'longbutton'){
|
629 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" 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-mo 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>";
|
630 |
}
|
631 |
else{
|
632 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
633 |
}
|
634 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
635 |
if($selected_theme == 'longbutton'){
|
636 |
$html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" 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-mo 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>";
|
637 |
}
|
638 |
else{
|
639 |
+
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
640 |
}
|
641 |
}
|
642 |
}
|
1099 |
//$username = strtolower(str_replace(" ","",$username));
|
1100 |
|
1101 |
global $wpdb;
|
1102 |
+
if(empty($decrypted_email)){
|
1103 |
+
$email_user_id = NULL;
|
1104 |
+
}
|
1105 |
+
else {
|
1106 |
+
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
1107 |
+
}
|
1108 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
1109 |
|
1110 |
//if email exists, dont check if username is in db or not, send otp and get it over wordpress
|
1188 |
global $wpdb;
|
1189 |
$db_prefix = $wpdb->prefix;
|
1190 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = %s",$user_email));
|
1191 |
+
if(empty($decrypted_email)){
|
1192 |
+
$existing_email_user_id = NULL;
|
1193 |
+
}
|
1194 |
+
else {
|
1195 |
+
$existing_email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $user_email));
|
1196 |
+
}
|
1197 |
|
1198 |
// if linked user exists log him in
|
1199 |
mo_openid_start_session();
|
1333 |
global $wpdb;
|
1334 |
$db_prefix = $wpdb->prefix;
|
1335 |
$id_returning_user = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$decrypted_app_name,$decrypted_user_id));
|
1336 |
+
if(empty($decrypted_email)){
|
1337 |
+
$email_user_id = NULL;
|
1338 |
+
}
|
1339 |
+
else {
|
1340 |
+
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $decrypted_email));
|
1341 |
+
}
|
1342 |
mo_openid_start_session();
|
1343 |
// if returning user whose appname + identifier exists, log him in
|
1344 |
if((isset($id_returning_user)) || (isset($email_user_id)) ){
|
1470 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$decrypted_app_name,$decrypted_user_id));
|
1471 |
|
1472 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\"",$decrypted_email));
|
1473 |
+
|
1474 |
+
if(empty($decrypted_email)){
|
1475 |
+
$existing_email_user_id = NULL;
|
1476 |
+
}
|
1477 |
+
else {
|
1478 |
+
$existing_email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $decrypted_email));
|
1479 |
+
}
|
1480 |
|
1481 |
mo_openid_start_session();
|
1482 |
if((isset($linked_email_id)) || (isset($email_user_id)) || isset($existing_email_user_id)) { // user is a member
|
1752 |
mo_openid_start_session();
|
1753 |
foreach($appslist as $key=>$currentapp){
|
1754 |
if($key == "facebook" && $appname == "facebook"){
|
1755 |
+
$profile_url ='https://graph.facebook.com/me/?fields=id,name,email,picture.height(961),age_range,first_name,gender,last_name,link&access_token=' .$access_token_json_output['access_token'];
|
1756 |
break;
|
1757 |
}
|
1758 |
else if($key == "google" && $appname == "google"){
|
1851 |
global $wpdb;
|
1852 |
$db_prefix = $wpdb->prefix;
|
1853 |
$id_returning_user = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$social_app_name,$social_user_id));
|
1854 |
+
if(empty($decrypted_email)){
|
1855 |
+
$email_user_id = NULL;
|
1856 |
+
}
|
1857 |
+
else {
|
1858 |
+
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $email));
|
1859 |
+
}
|
1860 |
|
1861 |
mo_openid_start_session();
|
1862 |
|
1986 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s",$social_app_name,$social_user_id));
|
1987 |
|
1988 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\"",$user_email));
|
1989 |
+
if(empty($decrypted_email)){
|
1990 |
+
$existing_email_user_id = NULL;
|
1991 |
+
}
|
1992 |
+
else {
|
1993 |
+
$existing_email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $user_email));
|
1994 |
+
}
|
1995 |
|
1996 |
mo_openid_start_session();
|
1997 |
if((isset($linked_email_id)) || (isset($email_user_id)) || (isset($existing_email_user_id)) ) { // user is a member
|
miniorange_openid_sso_settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://www.miniorange.com
|
5 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
-
* Version:
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://www.miniorange.com
|
9 |
* License: GPL2
|
@@ -14,7 +14,7 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
|
|
14 |
require('class-mo-openid-sso-customer.php');
|
15 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
16 |
require('class-mo-openid-social-comment.php');
|
17 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '
|
18 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
19 |
class Miniorange_OpenID_SSO {
|
20 |
|
@@ -1159,8 +1159,14 @@ class Miniorange_OpenID_SSO {
|
|
1159 |
$message.='. '.$_POST['mo_openid_query_feedback'];
|
1160 |
}
|
1161 |
|
1162 |
-
|
1163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1164 |
//only reason
|
1165 |
$phone='';
|
1166 |
$contact_us = new CustomerOpenID();
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://www.miniorange.com
|
5 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
+
* Version: 7.0.0
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://www.miniorange.com
|
9 |
* License: GPL2
|
14 |
require('class-mo-openid-sso-customer.php');
|
15 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
16 |
require('class-mo-openid-social-comment.php');
|
17 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.0.0');
|
18 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
19 |
class Miniorange_OpenID_SSO {
|
20 |
|
1159 |
$message.='. '.$_POST['mo_openid_query_feedback'];
|
1160 |
}
|
1161 |
|
1162 |
+
if(get_option('mo_openid_admin_email'))
|
1163 |
+
{
|
1164 |
+
$email=get_option('mo_openid_admin_email');
|
1165 |
+
}else {
|
1166 |
+
$user_info = get_userdata(get_current_user_id());
|
1167 |
+
$email = $user_info->user_email;
|
1168 |
+
}
|
1169 |
+
|
1170 |
//only reason
|
1171 |
$phone='';
|
1172 |
$contact_us = new CustomerOpenID();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
|
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.7
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -166,6 +166,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
166 |
|
167 |
|
168 |
== Changelog ==
|
|
|
|
|
|
|
|
|
169 |
= 6.6.9 =
|
170 |
* Fixed GDPR related bug.
|
171 |
* Update guide for facebook custom app.
|
@@ -548,6 +552,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
548 |
* First version of Social Login, Social Sharing plugin.
|
549 |
|
550 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
551 |
= 6.6.9 =
|
552 |
* Fixed GDPR related bug.
|
553 |
* Update guide for facebook custom app.
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.7
|
7 |
+
Stable tag: 7.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
166 |
|
167 |
|
168 |
== Changelog ==
|
169 |
+
= 7.0.0 =
|
170 |
+
* Minor bug fixes.
|
171 |
+
* Increased resolution of Facebook profile picture.
|
172 |
+
|
173 |
= 6.6.9 =
|
174 |
* Fixed GDPR related bug.
|
175 |
* Update guide for facebook custom app.
|
552 |
* First version of Social Login, Social Sharing plugin.
|
553 |
|
554 |
== Upgrade Notice ==
|
555 |
+
= 7.0.0 =
|
556 |
+
* Minor bug fixes.
|
557 |
+
* Increased resolution of Facebook profile picture.
|
558 |
+
|
559 |
= 6.6.9 =
|
560 |
* Fixed GDPR related bug.
|
561 |
* Update guide for facebook custom app.
|