Version Description
- GDPR Compliance
- Fix for issue in login (International Characters)
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 6.6.3 |
Comparing to | |
See all releases |
Code changes from version 6.6.2 to 6.6.3
- class-mo-openid-login-widget.php +238 -149
- class-mo-openid-sso-customer.php +2 -0
- includes/css/mo_openid_style.css +7 -0
- miniorange_openid_sso_settings.php +18 -4
- miniorange_openid_sso_settings_page.php +197 -32
- readme.txt +15 -5
- uninstall.php +6 -2
class-mo-openid-login-widget.php
CHANGED
@@ -36,7 +36,6 @@ if(mo_openid_is_customer_registered()) {
|
|
36 |
|
37 |
public function openidloginForm(){
|
38 |
|
39 |
-
global $post;
|
40 |
$selected_theme = get_option('mo_openid_login_theme');
|
41 |
$appsConfigured = get_option('mo_openid_google_enable') | get_option('mo_openid_salesforce_enable') | get_option('mo_openid_facebook_enable') | get_option('mo_openid_linkedin_enable') | get_option('mo_openid_instagram_enable') | get_option('mo_openid_amazon_enable') | get_option('mo_openid_windowslive_enable') | get_option('mo_openid_twitter_enable') | get_option('mo_openid_vkontakte_enable');
|
42 |
$spacebetweenicons = get_option('mo_login_icon_space');
|
@@ -62,6 +61,21 @@ if(mo_openid_is_customer_registered()) {
|
|
62 |
$amazon_custom_app = $this->if_custom_app_exists('amazon');
|
63 |
$instagram_custom_app = $this->if_custom_app_exists('instagram');
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
if( ! is_user_logged_in() ) {
|
66 |
|
67 |
if( $appsConfigured ) {
|
@@ -72,32 +86,36 @@ if(mo_openid_is_customer_registered()) {
|
|
72 |
|
73 |
<p style="color:#<?php echo $customTextColor ?>"><?php echo $customText ?>
|
74 |
</p>
|
75 |
-
<?php
|
|
|
|
|
76 |
if($customTheme == 'default'){
|
|
|
77 |
if( get_option('mo_openid_facebook_enable') ) {
|
78 |
if($selected_theme == 'longbutton'){
|
79 |
?>
|
80 |
|
81 |
-
<a
|
82 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
83 |
<?php
|
84 |
|
85 |
}else{ ?>
|
86 |
|
87 |
-
<a 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; ?> login-button" ></a>
|
88 |
|
89 |
<?php }
|
90 |
|
91 |
}
|
|
|
92 |
if( get_option('mo_openid_google_enable') ) {
|
93 |
if($selected_theme == 'longbutton'){
|
94 |
?>
|
95 |
|
96 |
-
<a
|
97 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
98 |
<?php }
|
99 |
else{ ?>
|
100 |
-
<a rel='nofollow'
|
101 |
<?php
|
102 |
}
|
103 |
}
|
@@ -106,74 +124,81 @@ if(mo_openid_is_customer_registered()) {
|
|
106 |
if($selected_theme == 'longbutton'){
|
107 |
?>
|
108 |
|
109 |
-
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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
|
110 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
111 |
<?php }
|
112 |
else{ ?>
|
113 |
-
<a 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; ?> login-button" ></a>
|
114 |
<?php
|
115 |
}
|
116 |
}
|
117 |
|
118 |
-
|
119 |
if( get_option('mo_openid_twitter_enable') ) {
|
120 |
if($selected_theme == 'longbutton'){
|
121 |
-
?> <a rel='nofollow' onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" 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
|
122 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
123 |
<?php }
|
124 |
else{ ?>
|
125 |
|
126 |
|
127 |
-
<a 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; ?> login-button"></a>
|
128 |
<?php }
|
129 |
}
|
130 |
|
131 |
if( get_option('mo_openid_linkedin_enable') ) {
|
132 |
if($selected_theme == 'longbutton'){ ?>
|
133 |
-
<a rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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
|
134 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
135 |
<?php }
|
136 |
else{ ?>
|
137 |
-
<a rel='nofollow' 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; ?> login-button" ></a>
|
138 |
<?php }
|
139 |
-
}
|
|
|
|
|
140 |
if($selected_theme == 'longbutton'){ ?>
|
141 |
-
<a rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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
|
142 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
143 |
<?php }
|
144 |
else{ ?>
|
145 |
|
146 |
|
147 |
-
<a rel='nofollow' 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; ?> login-button"></a>
|
148 |
<?php }
|
149 |
-
}
|
|
|
|
|
150 |
if($selected_theme == 'longbutton'){
|
151 |
-
?> <a rel='nofollow' onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" 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
|
152 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
153 |
<?php }
|
154 |
else{ ?>
|
155 |
|
156 |
-
<a rel='nofollow' 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; ?> login-button"></a>
|
157 |
<?php }
|
158 |
-
}
|
|
|
|
|
159 |
if($selected_theme == 'longbutton'){
|
160 |
-
?> <a rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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
|
161 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
162 |
<?php }
|
163 |
else{ ?>
|
164 |
|
165 |
|
166 |
-
<a rel='nofollow' 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; ?> login-button" ></a>
|
167 |
<?php }
|
168 |
-
}
|
|
|
|
|
169 |
if($selected_theme == 'longbutton'){
|
170 |
-
?> <a rel='nofollow' onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" 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
|
171 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
172 |
<?php }
|
173 |
else{ ?>
|
174 |
|
175 |
|
176 |
-
<a rel='nofollow' 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; ?> login-button"></a>
|
177 |
<?php }
|
178 |
}
|
179 |
|
@@ -186,12 +211,12 @@ if(mo_openid_is_customer_registered()) {
|
|
186 |
if($customTheme == 'custom'){
|
187 |
if( get_option('mo_openid_facebook_enable') ) {
|
188 |
if($selected_theme == 'longbutton'){
|
189 |
-
?> <a rel='nofollow'
|
190 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
191 |
<?php }
|
192 |
else{ ?>
|
193 |
|
194 |
-
<a rel='nofollow'
|
195 |
|
196 |
<?php }
|
197 |
|
@@ -201,11 +226,11 @@ if(mo_openid_is_customer_registered()) {
|
|
201 |
if($selected_theme == 'longbutton'){
|
202 |
?>
|
203 |
|
204 |
-
<a rel='nofollow'
|
205 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
206 |
<?php }
|
207 |
else{ ?>
|
208 |
-
<a rel='nofollow'
|
209 |
<?php
|
210 |
}
|
211 |
}
|
@@ -214,11 +239,11 @@ if(mo_openid_is_customer_registered()) {
|
|
214 |
if($selected_theme == 'longbutton'){
|
215 |
?>
|
216 |
|
217 |
-
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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
|
218 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
219 |
<?php }
|
220 |
else{ ?>
|
221 |
-
<a rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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>
|
222 |
<?php
|
223 |
}
|
224 |
}
|
@@ -227,60 +252,69 @@ if(mo_openid_is_customer_registered()) {
|
|
227 |
if($selected_theme == 'longbutton'){
|
228 |
?>
|
229 |
|
230 |
-
<a rel='nofollow'
|
231 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
232 |
<?php }
|
233 |
else{ ?>
|
234 |
-
<a rel='nofollow'
|
235 |
<?php
|
236 |
}
|
237 |
}
|
|
|
238 |
if( get_option('mo_openid_linkedin_enable') ) {
|
239 |
if($selected_theme == 'longbutton'){ ?>
|
240 |
-
<a rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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
|
241 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
242 |
<?php }
|
243 |
else{ ?>
|
244 |
-
<a rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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>
|
245 |
<?php }
|
246 |
-
}
|
|
|
|
|
247 |
if($selected_theme == 'longbutton'){ ?>
|
248 |
-
<a rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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
|
249 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
250 |
<?php }
|
251 |
else{ ?>
|
252 |
|
253 |
|
254 |
-
<a rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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>
|
255 |
<?php }
|
256 |
-
}
|
|
|
|
|
257 |
if($selected_theme == 'longbutton'){
|
258 |
-
?> <a rel='nofollow'
|
259 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
260 |
<?php }
|
261 |
else{ ?>
|
262 |
|
263 |
-
<a rel='nofollow'
|
264 |
<?php }
|
265 |
-
}
|
|
|
|
|
266 |
if($selected_theme == 'longbutton'){
|
267 |
-
?> <a rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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
|
268 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
269 |
<?php }
|
270 |
else{ ?>
|
271 |
|
272 |
|
273 |
-
<a rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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>
|
274 |
<?php }
|
275 |
-
}
|
|
|
|
|
276 |
if($selected_theme == 'longbutton'){
|
277 |
-
?> <a rel='nofollow'
|
278 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
279 |
<?php }
|
280 |
else{ ?>
|
281 |
|
282 |
|
283 |
-
<a rel='nofollow' onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" 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>
|
284 |
<?php }
|
285 |
}
|
286 |
|
@@ -392,97 +426,116 @@ if(mo_openid_is_customer_registered()) {
|
|
392 |
$customTheme = 'custom';
|
393 |
}
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
if( ! is_user_logged_in() ) {
|
396 |
|
397 |
if( $appsConfigured ) {
|
398 |
$this->mo_openid_load_login_script();
|
399 |
$html .= "<div class='mo-openid-app-icons'>
|
400 |
-
|
401 |
-
|
402 |
<p style='color:#".$customTextColor."'> $customText</p>";
|
403 |
|
|
|
|
|
|
|
|
|
404 |
if($customTheme == 'default'){
|
405 |
|
406 |
if( get_option('mo_openid_facebook_enable') ) {
|
407 |
if($selected_theme == 'longbutton'){
|
408 |
-
$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','" .$facebook_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
409 |
else{
|
410 |
-
$html .= "<a 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='login-button " .$selected_theme . "' ></a>";
|
411 |
}
|
412 |
|
413 |
}
|
414 |
|
415 |
if( get_option('mo_openid_google_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-google btn-custom-dec login-button' onClick=\"moOpenIdLogin('google','".$google_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-google-plus'></i>" . $buttonText . " Google</a>";
|
418 |
}
|
419 |
else{
|
420 |
|
421 |
-
$html .= "<a 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='login-button " .$selected_theme . "' ></a>";
|
422 |
|
423 |
}
|
424 |
}
|
425 |
|
426 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
427 |
if($selected_theme == 'longbutton'){
|
428 |
-
$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','" .
|
429 |
$vkontakte_custom_app.
|
430 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
431 |
}
|
432 |
else{
|
433 |
|
434 |
-
$html .= "<a rel='nofollow'
|
435 |
$vkontakte_custom_app.
|
436 |
-
"');\" 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='login-button " .$selected_theme . "' ></a>";
|
437 |
|
438 |
}
|
439 |
}
|
440 |
|
441 |
if( get_option('mo_openid_twitter_enable') ) {
|
442 |
if($selected_theme == 'longbutton'){
|
443 |
-
$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','" .
|
444 |
$twitter_custom_app.
|
445 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
446 |
else{
|
447 |
-
$html .= "<a rel='nofollow'
|
448 |
-
$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='login-button " .$selected_theme . "' ></a>";
|
449 |
}
|
450 |
|
451 |
}
|
|
|
452 |
if( get_option('mo_openid_linkedin_enable') ) {
|
453 |
if($selected_theme == 'longbutton'){
|
454 |
-
$html .= "<a rel='nofollow'
|
455 |
}
|
456 |
else{
|
457 |
-
$html .= "<a rel='nofollow'
|
458 |
}
|
459 |
}if( get_option('mo_openid_instagram_enable') ) {
|
460 |
if($selected_theme == 'longbutton'){
|
461 |
-
$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','" . $instagram_custom_app . "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
462 |
}
|
463 |
else{
|
464 |
-
$html .= "<a rel='nofollow'
|
465 |
}
|
466 |
}if( get_option('mo_openid_amazon_enable') ) {
|
467 |
if($selected_theme == 'longbutton'){
|
468 |
-
$html .= "<a rel='nofollow'
|
469 |
}
|
470 |
else{
|
471 |
-
$html .= "<a 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='login-button " .$selected_theme . "' ></a>";
|
472 |
}
|
473 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
474 |
if($selected_theme == 'longbutton'){
|
475 |
-
$html .= "<a rel='nofollow'
|
476 |
}
|
477 |
else{
|
478 |
-
$html .= "<a rel='nofollow'
|
479 |
}
|
480 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
481 |
if($selected_theme == 'longbutton'){
|
482 |
-
$html .= "<a rel='nofollow'
|
483 |
}
|
484 |
else{
|
485 |
-
$html .= "<a 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='login-button " .$selected_theme . "' ></a>";
|
486 |
}
|
487 |
}
|
488 |
}
|
@@ -492,77 +545,77 @@ if(mo_openid_is_customer_registered()) {
|
|
492 |
if($customTheme == 'custom'){
|
493 |
if( get_option('mo_openid_facebook_enable') ) {
|
494 |
if($selected_theme == 'longbutton'){
|
495 |
-
$html .= "<a rel='nofollow' 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-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>";
|
496 |
}
|
497 |
else{
|
498 |
-
$html .= "<a rel='nofollow'
|
499 |
}
|
500 |
|
501 |
}
|
502 |
|
503 |
if( get_option('mo_openid_google_enable') ) {
|
504 |
if($selected_theme == 'longbutton'){
|
505 |
-
$html .= "<a rel='nofollow' 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-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>";
|
506 |
}
|
507 |
else{
|
508 |
-
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' ". $customTextofTitle." Google'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
509 |
|
510 |
}
|
511 |
}
|
512 |
|
513 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
514 |
if($selected_theme == 'longbutton'){
|
515 |
-
$html .= "<a rel='nofollow' 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-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>";
|
516 |
}
|
517 |
else{
|
518 |
-
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app. "');\" title= ' ". $customTextofTitle." Vkontakte'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
519 |
|
520 |
}
|
521 |
}
|
522 |
|
523 |
if( get_option('mo_openid_twitter_enable') ) {
|
524 |
if($selected_theme == 'longbutton'){
|
525 |
-
$html .= "<a rel='nofollow'
|
526 |
}
|
527 |
else{
|
528 |
-
$html .= "<a rel='nofollow'
|
529 |
}
|
530 |
|
531 |
}
|
532 |
if( get_option('mo_openid_linkedin_enable') ) {
|
533 |
if($selected_theme == 'longbutton'){
|
534 |
-
$html .= "<a rel='nofollow'
|
535 |
}
|
536 |
else{
|
537 |
-
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
538 |
}
|
539 |
}if( get_option('mo_openid_instagram_enable') ) {
|
540 |
if($selected_theme == 'longbutton'){
|
541 |
-
$html .= "<a rel='nofollow'
|
542 |
}
|
543 |
else{
|
544 |
-
$html .= "<a rel='nofollow'
|
545 |
}
|
546 |
}if( get_option('mo_openid_amazon_enable') ) {
|
547 |
if($selected_theme == 'longbutton'){
|
548 |
-
$html .= "<a rel='nofollow' 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-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>";
|
549 |
}
|
550 |
else{
|
551 |
-
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
552 |
}
|
553 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
554 |
if($selected_theme == 'longbutton'){
|
555 |
-
$html .= "<a rel='nofollow' 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-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>";
|
556 |
}
|
557 |
else{
|
558 |
-
$html .= "<a rel='nofollow'
|
559 |
}
|
560 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
561 |
if($selected_theme == 'longbutton'){
|
562 |
-
$html .= "<a rel='nofollow' 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-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>";
|
563 |
}
|
564 |
else{
|
565 |
-
$html .= "<a rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
566 |
}
|
567 |
}
|
568 |
}
|
@@ -596,8 +649,32 @@ if(mo_openid_is_customer_registered()) {
|
|
596 |
return $html;
|
597 |
}
|
598 |
|
599 |
-
private function mo_openid_load_login_script() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
601 |
function moOpenIdLogin(app_name,is_custom_app) {
|
602 |
var current_url = window.location.href;
|
603 |
var cookie_name = "redirect_current_url";
|
@@ -854,8 +931,17 @@ if(mo_openid_is_customer_registered()) {
|
|
854 |
|
855 |
function mo_openid_login_validate(){
|
856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
// ajax call - custom app over default app
|
858 |
-
|
859 |
if($_POST['selected_app_value'] == 'true'){
|
860 |
//if custome app enable
|
861 |
$option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
|
@@ -987,7 +1073,7 @@ if(mo_openid_is_customer_registered()) {
|
|
987 |
if(!isset($_POST['otp_field'])) {
|
988 |
$user_email = sanitize_email($user_email);
|
989 |
$username = preg_replace('/[\x00-\x1F][\x7F][\x81][\x8D][\x8F][\x90][\x9D][\xA0][\xAD]/', '', $username);
|
990 |
-
|
991 |
|
992 |
global $wpdb;
|
993 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
@@ -1214,7 +1300,6 @@ if(mo_openid_is_customer_registered()) {
|
|
1214 |
global $wpdb;
|
1215 |
$db_prefix = $wpdb->prefix;
|
1216 |
$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));
|
1217 |
-
|
1218 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $decrypted_email));
|
1219 |
|
1220 |
mo_openid_start_session();
|
@@ -1339,7 +1424,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1339 |
|
1340 |
global $wpdb;
|
1341 |
$user_email = sanitize_email($decrypted_email);
|
1342 |
-
$username =
|
1343 |
|
1344 |
//Checking if email or username already exist
|
1345 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
@@ -1468,7 +1553,6 @@ if(mo_openid_is_customer_registered()) {
|
|
1468 |
}
|
1469 |
|
1470 |
else if( isset( $_REQUEST['option'] ) and strpos( $_REQUEST['option'], 'oauthredirect' ) !== false ) {
|
1471 |
-
|
1472 |
$appname = $_REQUEST['app_name'];
|
1473 |
|
1474 |
if(isset($_REQUEST['test']))
|
@@ -1672,52 +1756,27 @@ if(mo_openid_is_customer_registered()) {
|
|
1672 |
$first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
|
1673 |
|
1674 |
if ($appname == "facebook"){
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
$email = isset( $profile_json_output['email']) ? $profile_json_output['email'] : '';
|
1683 |
-
}
|
1684 |
-
if(isset($profile_json_output['name'])){
|
1685 |
-
$user_name = isset( $profile_json_output['name']) ? $profile_json_output['name'] : '';
|
1686 |
-
}
|
1687 |
-
if(isset($profile_json_output['link'])){
|
1688 |
-
$user_url = isset( $profile_json_output['link']) ? $profile_json_output['link'] : '';
|
1689 |
-
}
|
1690 |
-
if(isset($profile_json_output['picture']['data']['url'])){
|
1691 |
-
$user_picture = isset( $profile_json_output['picture']['data']['url']) ? $profile_json_output['picture']['data']['url'] : '';
|
1692 |
-
}
|
1693 |
-
if(isset($profile_json_output['id'])){
|
1694 |
-
$social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
|
1695 |
-
}
|
1696 |
}
|
1697 |
else if ($appname == "google"){
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
if(isset($profile_json_output['displayName'])){
|
1702 |
-
$user_name = isset( $profile_json_output['displayName']) ? $profile_json_output['displayName'] : '';
|
1703 |
-
}
|
1704 |
-
if(isset($profile_json_output['name']['familyName'])){
|
1705 |
-
$last_name = isset( $profile_json_output['name']['familyName']) ? $profile_json_output['name']['familyName'] : '';
|
1706 |
-
}
|
1707 |
if(isset($profile_json_output['emails'])){
|
1708 |
foreach($profile_json_output['emails'] as $entry){
|
1709 |
$email = isset( $entry['value']) ? $entry['value'] : '';
|
1710 |
}
|
1711 |
}
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
$user_picture = isset( $profile_json_output['image']['url']) ? $profile_json_output['image']['url'] : '';
|
1717 |
-
}
|
1718 |
-
if(isset($profile_json_output['id'])){
|
1719 |
-
$social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
|
1720 |
-
}
|
1721 |
}
|
1722 |
else if($appname == "twitter") {
|
1723 |
if (isset($profile_json_output['name'])) {
|
@@ -1725,21 +1784,11 @@ if(mo_openid_is_customer_registered()) {
|
|
1725 |
$first_name = isset( $full_name[0]) ? $full_name[0] : '';
|
1726 |
$last_name = isset( $full_name[1]) ? $full_name[1] : '';
|
1727 |
}
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
}
|
1734 |
-
if (isset($profile_json_output['url'])) {
|
1735 |
-
$user_url = isset( $profile_json_output['url']) ? $profile_json_output['url'] : '';
|
1736 |
-
}
|
1737 |
-
if (isset($profile_json_output['profile_image_url'])) {
|
1738 |
-
$user_picture = isset( $profile_json_output['profile_image_url']) ? $profile_json_output['profile_image_url'] : '';
|
1739 |
-
}
|
1740 |
-
if (isset($profile_json_output['id_str'])) {
|
1741 |
-
$social_user_id = isset( $profile_json_output['id_str']) ? $profile_json_output['id_str'] : '';
|
1742 |
-
}
|
1743 |
}
|
1744 |
|
1745 |
//Set User Full Name
|
@@ -1882,7 +1931,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1882 |
else{
|
1883 |
global $wpdb;
|
1884 |
$user_email = sanitize_email($email);
|
1885 |
-
$username =
|
1886 |
|
1887 |
//Checking if username already exist
|
1888 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
@@ -2289,7 +2338,7 @@ if(mo_openid_is_customer_registered()) {
|
|
2289 |
/* $wpdb->show_errors();
|
2290 |
$wpdb->print_error();
|
2291 |
exit;*/
|
2292 |
-
wp_die('Error in insert query');
|
2293 |
}
|
2294 |
}
|
2295 |
}
|
@@ -2544,9 +2593,27 @@ Thank you.';
|
|
2544 |
return $path;
|
2545 |
}
|
2546 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2547 |
if(get_option('mo_openid_logout_redirection_enable') == 1){
|
2548 |
add_filter( 'logout_url', 'mo_openid_redirect_after_logout',0,1);
|
2549 |
}
|
|
|
|
|
|
|
|
|
|
|
2550 |
|
2551 |
add_action( 'widgets_init', function(){register_widget( "mo_openid_login_wid" );});
|
2552 |
add_action( 'widgets_init', function(){register_widget( "mo_openid_sharing_ver_wid" );});
|
@@ -2562,11 +2629,33 @@ Thank you.';
|
|
2562 |
add_action( 'delete_user', 'mo_openid_delete_account_linking_rows' );
|
2563 |
add_action( 'mo_user_register','mo_openid_send_email',1, 2 );
|
2564 |
|
|
|
2565 |
//compatibility with international characters
|
2566 |
add_filter('sanitize_user', 'mo_openid_sanitize_user', 10, 3);
|
2567 |
remove_filter('sanitize_title','sanitize_title_with_dashes', 10);
|
2568 |
add_filter( 'sanitize_title', 'mo_openid_sanitize_title_with_dashes', 10, 3 );
|
2569 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2570 |
function mo_openid_sanitize_user($username, $raw_username, $strict) {
|
2571 |
|
2572 |
$username = wp_strip_all_tags( $raw_username );
|
36 |
|
37 |
public function openidloginForm(){
|
38 |
|
|
|
39 |
$selected_theme = get_option('mo_openid_login_theme');
|
40 |
$appsConfigured = get_option('mo_openid_google_enable') | get_option('mo_openid_salesforce_enable') | get_option('mo_openid_facebook_enable') | get_option('mo_openid_linkedin_enable') | get_option('mo_openid_instagram_enable') | get_option('mo_openid_amazon_enable') | get_option('mo_openid_windowslive_enable') | get_option('mo_openid_twitter_enable') | get_option('mo_openid_vkontakte_enable');
|
41 |
$spacebetweenicons = get_option('mo_login_icon_space');
|
61 |
$amazon_custom_app = $this->if_custom_app_exists('amazon');
|
62 |
$instagram_custom_app = $this->if_custom_app_exists('instagram');
|
63 |
|
64 |
+
if(get_option('mo_openid_gdpr_consent_enable')) {
|
65 |
+
$gdpr_setting = "disabled='disabled'";
|
66 |
+
}
|
67 |
+
else
|
68 |
+
$gdpr_setting = '';
|
69 |
+
|
70 |
+
$url = get_option('mo_openid_privacy_policy_url');
|
71 |
+
$text = get_option('mo_openid_privacy_policy_text');
|
72 |
+
|
73 |
+
if( !empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'),$text)){
|
74 |
+
$consent_message = str_replace(get_option('mo_openid_privacy_policy_text'),'<a target="_blank" href="'.$url.'">'.$text.'</a>',get_option('mo_openid_gdpr_consent_message'));
|
75 |
+
}else if(empty($text)){
|
76 |
+
$consent_message = get_option('mo_openid_gdpr_consent_message');
|
77 |
+
}
|
78 |
+
|
79 |
if( ! is_user_logged_in() ) {
|
80 |
|
81 |
if( $appsConfigured ) {
|
86 |
|
87 |
<p style="color:#<?php echo $customTextColor ?>"><?php echo $customText ?>
|
88 |
</p>
|
89 |
+
<?php if(get_option('mo_openid_gdpr_consent_enable')){?>
|
90 |
+
<input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox"><label class="mo-consent"><?php echo $consent_message;?></label>
|
91 |
+
<?php }
|
92 |
if($customTheme == 'default'){
|
93 |
+
|
94 |
if( get_option('mo_openid_facebook_enable') ) {
|
95 |
if($selected_theme == 'longbutton'){
|
96 |
?>
|
97 |
|
98 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" 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-mo 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
|
99 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
100 |
<?php
|
101 |
|
102 |
}else{ ?>
|
103 |
|
104 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> 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; ?> btn-mo login-button" ></a>
|
105 |
|
106 |
<?php }
|
107 |
|
108 |
}
|
109 |
+
|
110 |
if( get_option('mo_openid_google_enable') ) {
|
111 |
if($selected_theme == 'longbutton'){
|
112 |
?>
|
113 |
|
114 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" 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-mo 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
|
115 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
116 |
<?php }
|
117 |
else{ ?>
|
118 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> 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; ?> btn-mo login-button" ></a>
|
119 |
<?php
|
120 |
}
|
121 |
}
|
124 |
if($selected_theme == 'longbutton'){
|
125 |
?>
|
126 |
|
127 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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-mo 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
|
128 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
129 |
<?php }
|
130 |
else{ ?>
|
131 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> 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; ?> btn-mo login-button" ></a>
|
132 |
<?php
|
133 |
}
|
134 |
}
|
135 |
|
|
|
136 |
if( get_option('mo_openid_twitter_enable') ) {
|
137 |
if($selected_theme == 'longbutton'){
|
138 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" 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-mo 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
|
139 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
140 |
<?php }
|
141 |
else{ ?>
|
142 |
|
143 |
|
144 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> 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; ?> btn-mo login-button"></a>
|
145 |
<?php }
|
146 |
}
|
147 |
|
148 |
if( get_option('mo_openid_linkedin_enable') ) {
|
149 |
if($selected_theme == 'longbutton'){ ?>
|
150 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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-mo 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
|
151 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
152 |
<?php }
|
153 |
else{ ?>
|
154 |
+
<a 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; ?> btn-mo login-button" ></a>
|
155 |
<?php }
|
156 |
+
}
|
157 |
+
|
158 |
+
if( get_option('mo_openid_instagram_enable') ) {
|
159 |
if($selected_theme == 'longbutton'){ ?>
|
160 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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-mo 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
|
161 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
162 |
<?php }
|
163 |
else{ ?>
|
164 |
|
165 |
|
166 |
+
<a 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; ?> btn-mo login-button"></a>
|
167 |
<?php }
|
168 |
+
}
|
169 |
+
|
170 |
+
if( get_option('mo_openid_amazon_enable') ) {
|
171 |
if($selected_theme == 'longbutton'){
|
172 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" 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-mo 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
|
173 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
174 |
<?php }
|
175 |
else{ ?>
|
176 |
|
177 |
+
<a 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; ?> btn-mo login-button"></a>
|
178 |
<?php }
|
179 |
+
}
|
180 |
+
|
181 |
+
if( get_option('mo_openid_salesforce_enable') ) {
|
182 |
if($selected_theme == 'longbutton'){
|
183 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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-mo 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
|
184 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
185 |
<?php }
|
186 |
else{ ?>
|
187 |
|
188 |
|
189 |
+
<a 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; ?> btn-mo login-button" ></a>
|
190 |
<?php }
|
191 |
+
}
|
192 |
+
|
193 |
+
if( get_option('mo_openid_windowslive_enable') ) {
|
194 |
if($selected_theme == 'longbutton'){
|
195 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" 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-mo 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
|
196 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
197 |
<?php }
|
198 |
else{ ?>
|
199 |
|
200 |
|
201 |
+
<a 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; ?> btn-mo login-button"></a>
|
202 |
<?php }
|
203 |
}
|
204 |
|
211 |
if($customTheme == 'custom'){
|
212 |
if( get_option('mo_openid_facebook_enable') ) {
|
213 |
if($selected_theme == 'longbutton'){
|
214 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" 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-mo 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
|
215 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
216 |
<?php }
|
217 |
else{ ?>
|
218 |
|
219 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
220 |
|
221 |
<?php }
|
222 |
|
226 |
if($selected_theme == 'longbutton'){
|
227 |
?>
|
228 |
|
229 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" 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-mo 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
|
230 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
231 |
<?php }
|
232 |
else{ ?>
|
233 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
234 |
<?php
|
235 |
}
|
236 |
}
|
239 |
if($selected_theme == 'longbutton'){
|
240 |
?>
|
241 |
|
242 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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-mo 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
|
243 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
244 |
<?php }
|
245 |
else{ ?>
|
246 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
247 |
<?php
|
248 |
}
|
249 |
}
|
252 |
if($selected_theme == 'longbutton'){
|
253 |
?>
|
254 |
|
255 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" 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-mo 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
|
256 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
257 |
<?php }
|
258 |
else{ ?>
|
259 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
260 |
<?php
|
261 |
}
|
262 |
}
|
263 |
+
|
264 |
if( get_option('mo_openid_linkedin_enable') ) {
|
265 |
if($selected_theme == 'longbutton'){ ?>
|
266 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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-mo 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
|
267 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
268 |
<?php }
|
269 |
else{ ?>
|
270 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
271 |
<?php }
|
272 |
+
}
|
273 |
+
|
274 |
+
if( get_option('mo_openid_instagram_enable') ) {
|
275 |
if($selected_theme == 'longbutton'){ ?>
|
276 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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-mo 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
|
277 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
278 |
<?php }
|
279 |
else{ ?>
|
280 |
|
281 |
|
282 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" 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 btn-mo fa-instagram custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
283 |
<?php }
|
284 |
+
}
|
285 |
+
|
286 |
+
if( get_option('mo_openid_amazon_enable') ) {
|
287 |
if($selected_theme == 'longbutton'){
|
288 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" 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-mo 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
|
289 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
290 |
<?php }
|
291 |
else{ ?>
|
292 |
|
293 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
294 |
<?php }
|
295 |
+
}
|
296 |
+
|
297 |
+
if( get_option('mo_openid_salesforce_enable') ) {
|
298 |
if($selected_theme == 'longbutton'){
|
299 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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-mo 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
|
300 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
301 |
<?php }
|
302 |
else{ ?>
|
303 |
|
304 |
|
305 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" 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 btn-mo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
306 |
<?php }
|
307 |
+
}
|
308 |
+
|
309 |
+
if( get_option('mo_openid_windowslive_enable') ) {
|
310 |
if($selected_theme == 'longbutton'){
|
311 |
+
?> <a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" 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-mo 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
|
312 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
313 |
<?php }
|
314 |
else{ ?>
|
315 |
|
316 |
|
317 |
+
<a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" 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 btn-mo fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
318 |
<?php }
|
319 |
}
|
320 |
|
426 |
$customTheme = 'custom';
|
427 |
}
|
428 |
|
429 |
+
if(get_option('mo_openid_gdpr_consent_enable')) {
|
430 |
+
$gdpr_setting = "disabled='disabled'";
|
431 |
+
}
|
432 |
+
else
|
433 |
+
$gdpr_setting = '';
|
434 |
+
|
435 |
+
$url = get_option('mo_openid_privacy_policy_url');
|
436 |
+
$text = get_option('mo_openid_privacy_policy_text');
|
437 |
+
|
438 |
+
if( !empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'),$text)){
|
439 |
+
$consent_message = str_replace(get_option('mo_openid_privacy_policy_text'),'<a target="_blank" href="'.$url.'">'.$text.'</a>',get_option('mo_openid_gdpr_consent_message'));
|
440 |
+
}else if(empty($text)){
|
441 |
+
$consent_message = get_option('mo_openid_gdpr_consent_message');
|
442 |
+
}
|
443 |
+
|
444 |
if( ! is_user_logged_in() ) {
|
445 |
|
446 |
if( $appsConfigured ) {
|
447 |
$this->mo_openid_load_login_script();
|
448 |
$html .= "<div class='mo-openid-app-icons'>
|
449 |
+
|
|
|
450 |
<p style='color:#".$customTextColor."'> $customText</p>";
|
451 |
|
452 |
+
if(get_option('mo_openid_gdpr_consent_enable')){
|
453 |
+
$html .= '<label class="mo-consent"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox">';
|
454 |
+
$html .= $consent_message.'</label>';
|
455 |
+
}
|
456 |
if($customTheme == 'default'){
|
457 |
|
458 |
if( get_option('mo_openid_facebook_enable') ) {
|
459 |
if($selected_theme == 'longbutton'){
|
460 |
+
$html .= "<a rel='nofollow' disabled='".$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>"; }
|
461 |
else{
|
462 |
+
$html .= "<a rel='nofollow' disabled='".$gdpr_setting."' 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='btn-mo login-button " .$selected_theme . "' ></a>";
|
463 |
}
|
464 |
|
465 |
}
|
466 |
|
467 |
if( get_option('mo_openid_google_enable') ) {
|
468 |
if($selected_theme == 'longbutton'){
|
469 |
+
$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-google btn-custom-dec login-button' onClick=\"moOpenIdLogin('google','".$google_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-google-plus'></i>" . $buttonText . " Google</a>";
|
470 |
}
|
471 |
else{
|
472 |
|
473 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." 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='btn-mo login-button " .$selected_theme . "' ></a>";
|
474 |
|
475 |
}
|
476 |
}
|
477 |
|
478 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
479 |
if($selected_theme == 'longbutton'){
|
480 |
+
$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-vk btn-custom-dec login-button' onClick=\"moOpenIdLogin('vkontakte','" .
|
481 |
$vkontakte_custom_app.
|
482 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
483 |
}
|
484 |
else{
|
485 |
|
486 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('vkontakte','" .
|
487 |
$vkontakte_custom_app.
|
488 |
+
"');\" 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='btn-mo login-button " .$selected_theme . "' ></a>";
|
489 |
|
490 |
}
|
491 |
}
|
492 |
|
493 |
if( get_option('mo_openid_twitter_enable') ) {
|
494 |
if($selected_theme == 'longbutton'){
|
495 |
+
$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-twitter btn-custom-dec login-button' onClick=\"moOpenIdLogin('twitter','" .
|
496 |
$twitter_custom_app.
|
497 |
"');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
498 |
else{
|
499 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" .
|
500 |
+
$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='btn-mo login-button " .$selected_theme . "' ></a>";
|
501 |
}
|
502 |
|
503 |
}
|
504 |
+
|
505 |
if( get_option('mo_openid_linkedin_enable') ) {
|
506 |
if($selected_theme == 'longbutton'){
|
507 |
+
$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>";
|
508 |
}
|
509 |
else{
|
510 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."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='btn-mo login-button " .$selected_theme . "' ></a>";
|
511 |
}
|
512 |
}if( get_option('mo_openid_instagram_enable') ) {
|
513 |
if($selected_theme == 'longbutton'){
|
514 |
+
$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>";
|
515 |
}
|
516 |
else{
|
517 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$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='btn-mo login-button " .$selected_theme . "' ></a>";
|
518 |
}
|
519 |
}if( get_option('mo_openid_amazon_enable') ) {
|
520 |
if($selected_theme == 'longbutton'){
|
521 |
+
$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>";
|
522 |
}
|
523 |
else{
|
524 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." 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='btn-mo login-button " .$selected_theme . "' ></a>";
|
525 |
}
|
526 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
527 |
if($selected_theme == 'longbutton'){
|
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-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>";
|
529 |
}
|
530 |
else{
|
531 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."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='btn-mo login-button " .$selected_theme . "' ></a>";
|
532 |
}
|
533 |
}if( get_option('mo_openid_windowslive_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-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>";
|
536 |
}
|
537 |
else{
|
538 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." 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='btn-mo login-button " .$selected_theme . "' ></a>";
|
539 |
}
|
540 |
}
|
541 |
}
|
545 |
if($customTheme == 'custom'){
|
546 |
if( get_option('mo_openid_facebook_enable') ) {
|
547 |
if($selected_theme == 'longbutton'){
|
548 |
+
$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>";
|
549 |
}
|
550 |
else{
|
551 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><i style='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>";
|
552 |
}
|
553 |
|
554 |
}
|
555 |
|
556 |
if( get_option('mo_openid_google_enable') ) {
|
557 |
if($selected_theme == 'longbutton'){
|
558 |
+
$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>";
|
559 |
}
|
560 |
else{
|
561 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." title= ' ".$customTextofTitle." Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' ". $customTextofTitle." Google'><i style='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>";
|
562 |
|
563 |
}
|
564 |
}
|
565 |
|
566 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
567 |
if($selected_theme == 'longbutton'){
|
568 |
+
$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>";
|
569 |
}
|
570 |
else{
|
571 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." title= ' ".$customTextofTitle." Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app. "');\" title= ' ". $customTextofTitle." Vkontakte'><i style='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>";
|
572 |
|
573 |
}
|
574 |
}
|
575 |
|
576 |
if( get_option('mo_openid_twitter_enable') ) {
|
577 |
if($selected_theme == 'longbutton'){
|
578 |
+
$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>";
|
579 |
}
|
580 |
else{
|
581 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" ><i style='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>";
|
582 |
}
|
583 |
|
584 |
}
|
585 |
if( get_option('mo_openid_linkedin_enable') ) {
|
586 |
if($selected_theme == 'longbutton'){
|
587 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('linkedin','" . $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-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>";
|
588 |
}
|
589 |
else{
|
590 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='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>";
|
591 |
}
|
592 |
}if( get_option('mo_openid_instagram_enable') ) {
|
593 |
if($selected_theme == 'longbutton'){
|
594 |
+
$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>";
|
595 |
}
|
596 |
else{
|
597 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><i style='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>";
|
598 |
}
|
599 |
}if( get_option('mo_openid_amazon_enable') ) {
|
600 |
if($selected_theme == 'longbutton'){
|
601 |
+
$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>";
|
602 |
}
|
603 |
else{
|
604 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='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>";
|
605 |
}
|
606 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
607 |
if($selected_theme == 'longbutton'){
|
608 |
+
$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>";
|
609 |
}
|
610 |
else{
|
611 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><i style='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>";
|
612 |
}
|
613 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
614 |
if($selected_theme == 'longbutton'){
|
615 |
+
$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>";
|
616 |
}
|
617 |
else{
|
618 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting." title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='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>";
|
619 |
}
|
620 |
}
|
621 |
}
|
649 |
return $html;
|
650 |
}
|
651 |
|
652 |
+
private function mo_openid_load_login_script() {
|
653 |
+
|
654 |
+
if(!get_option('mo_openid_gdpr_consent_enable')){?>
|
655 |
+
<script>
|
656 |
+
jQuery(".btn-mo").prop("disabled",false);
|
657 |
+
</script>
|
658 |
+
<?php }
|
659 |
+
|
660 |
+
?>
|
661 |
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
662 |
<script type="text/javascript">
|
663 |
+
|
664 |
+
|
665 |
+
function mo_openid_on_consent_change(checkbox,value){
|
666 |
+
|
667 |
+
if (value == 0) {
|
668 |
+
jQuery('#mo_openid_consent_checkbox').val(1);
|
669 |
+
jQuery(".btn-mo").attr("disabled",true);
|
670 |
+
}
|
671 |
+
else {
|
672 |
+
jQuery('#mo_openid_consent_checkbox').val(0);
|
673 |
+
jQuery(".btn-mo").attr("disabled",false);
|
674 |
+
//jQuery(".btn-mo").removeAttr("disabled");
|
675 |
+
}
|
676 |
+
}
|
677 |
+
|
678 |
function moOpenIdLogin(app_name,is_custom_app) {
|
679 |
var current_url = window.location.href;
|
680 |
var cookie_name = "redirect_current_url";
|
931 |
|
932 |
function mo_openid_login_validate(){
|
933 |
|
934 |
+
if(isset($_POST['action']) && isset($_POST['user_id'])){
|
935 |
+
// delete first name, last name, user_url and profile_url from usermeta
|
936 |
+
global $wpdb;
|
937 |
+
$id = $_POST['user_id']; $metakey1 = 'first_name'; $metakey2 = 'last_name'; $metakey3 = 'moopenid_user_avatar'; $metakey4 = 'moopenid_user_profile_url';
|
938 |
+
$wpdb->query($wpdb->prepare('DELETE from '.$wpdb->prefix.'usermeta where user_id = %d and meta_key = %s or meta_key = %s or meta_key = %s or meta_key = %s ',$id,$metakey1,$metakey2,$metakey3,$metakey4));
|
939 |
+
update_user_meta($id,'mo_openid_data_deleted','1');
|
940 |
+
exit;
|
941 |
+
}
|
942 |
+
|
943 |
// ajax call - custom app over default app
|
944 |
+
elseif ((isset($_POST['selected_app'])) && (isset($_POST['selected_app_value']))){
|
945 |
if($_POST['selected_app_value'] == 'true'){
|
946 |
//if custome app enable
|
947 |
$option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
|
1073 |
if(!isset($_POST['otp_field'])) {
|
1074 |
$user_email = sanitize_email($user_email);
|
1075 |
$username = preg_replace('/[\x00-\x1F][\x7F][\x81][\x8D][\x8F][\x90][\x9D][\xA0][\xAD]/', '', $username);
|
1076 |
+
//$username = strtolower(str_replace(" ","",$username));
|
1077 |
|
1078 |
global $wpdb;
|
1079 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
1300 |
global $wpdb;
|
1301 |
$db_prefix = $wpdb->prefix;
|
1302 |
$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));
|
|
|
1303 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = \"%s\"", $decrypted_email));
|
1304 |
|
1305 |
mo_openid_start_session();
|
1424 |
|
1425 |
global $wpdb;
|
1426 |
$user_email = sanitize_email($decrypted_email);
|
1427 |
+
$username = $decrypted_user_name;
|
1428 |
|
1429 |
//Checking if email or username already exist
|
1430 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
1553 |
}
|
1554 |
|
1555 |
else if( isset( $_REQUEST['option'] ) and strpos( $_REQUEST['option'], 'oauthredirect' ) !== false ) {
|
|
|
1556 |
$appname = $_REQUEST['app_name'];
|
1557 |
|
1558 |
if(isset($_REQUEST['test']))
|
1756 |
$first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
|
1757 |
|
1758 |
if ($appname == "facebook"){
|
1759 |
+
$first_name = isset( $profile_json_output['first_name']) ? $profile_json_output['first_name'] : '';
|
1760 |
+
$last_name = isset( $profile_json_output['last_name']) ? $profile_json_output['last_name'] : '';
|
1761 |
+
$email = isset( $profile_json_output['email']) ? $profile_json_output['email'] : '';
|
1762 |
+
$user_name = isset( $profile_json_output['name']) ? $profile_json_output['name'] : '';
|
1763 |
+
$user_url = isset( $profile_json_output['link']) ? $profile_json_output['link'] : '';
|
1764 |
+
$user_picture = isset( $profile_json_output['picture']['data']['url']) ? $profile_json_output['picture']['data']['url'] : '';
|
1765 |
+
$social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1766 |
}
|
1767 |
else if ($appname == "google"){
|
1768 |
+
$first_name = isset( $profile_json_output['name']['givenName']) ? $profile_json_output['name']['givenName'] : '';
|
1769 |
+
$user_name = isset( $profile_json_output['displayName']) ? $profile_json_output['displayName'] : '';
|
1770 |
+
$last_name = isset( $profile_json_output['name']['familyName']) ? $profile_json_output['name']['familyName'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
1771 |
if(isset($profile_json_output['emails'])){
|
1772 |
foreach($profile_json_output['emails'] as $entry){
|
1773 |
$email = isset( $entry['value']) ? $entry['value'] : '';
|
1774 |
}
|
1775 |
}
|
1776 |
+
$user_url = isset( $profile_json_output['url']) ? $profile_json_output['url'] : '';
|
1777 |
+
$user_picture = isset( $profile_json_output['image']['url']) ? $profile_json_output['image']['url'] : '';
|
1778 |
+
$social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
|
1779 |
+
|
|
|
|
|
|
|
|
|
|
|
1780 |
}
|
1781 |
else if($appname == "twitter") {
|
1782 |
if (isset($profile_json_output['name'])) {
|
1784 |
$first_name = isset( $full_name[0]) ? $full_name[0] : '';
|
1785 |
$last_name = isset( $full_name[1]) ? $full_name[1] : '';
|
1786 |
}
|
1787 |
+
$user_name = isset( $profile_json_output['screen_name']) ? $profile_json_output['screen_name'] : '';
|
1788 |
+
$email = isset( $profile_json_output['email']) ? $profile_json_output['email'] : '';
|
1789 |
+
$user_url = isset( $profile_json_output['url']) ? $profile_json_output['url'] : '';
|
1790 |
+
$user_picture = isset( $profile_json_output['profile_image_url']) ? $profile_json_output['profile_image_url'] : '';
|
1791 |
+
$social_user_id = isset( $profile_json_output['id_str']) ? $profile_json_output['id_str'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1792 |
}
|
1793 |
|
1794 |
//Set User Full Name
|
1931 |
else{
|
1932 |
global $wpdb;
|
1933 |
$user_email = sanitize_email($email);
|
1934 |
+
$username = $user_name;
|
1935 |
|
1936 |
//Checking if username already exist
|
1937 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
2338 |
/* $wpdb->show_errors();
|
2339 |
$wpdb->print_error();
|
2340 |
exit;*/
|
2341 |
+
//wp_die('Error in insert query');
|
2342 |
}
|
2343 |
}
|
2344 |
}
|
2593 |
return $path;
|
2594 |
}
|
2595 |
|
2596 |
+
function mo_openid_delete_profile_column($value, $columnName, $userId){
|
2597 |
+
if('mo_openid_delete_profile_data' == $columnName){
|
2598 |
+
global $wpdb;
|
2599 |
+
$socialUser = $wpdb->get_var($wpdb->prepare('SELECT id FROM '. $wpdb->prefix .'mo_openid_linked_user WHERE user_id = %d ', $userId));
|
2600 |
+
if($socialUser > 0 && !get_user_meta($userId,'mo_openid_data_deleted')){
|
2601 |
+
return '<a href="javascript:void(0)" onclick="javascript:moOpenidDeleteSocialProfile(this, '. $userId .')">Delete</a>';
|
2602 |
+
}
|
2603 |
+
else
|
2604 |
+
return '<p>NA</p>';
|
2605 |
+
}
|
2606 |
+
}
|
2607 |
+
add_action('manage_users_custom_column', 'mo_openid_delete_profile_column', 9, 3);
|
2608 |
+
|
2609 |
if(get_option('mo_openid_logout_redirection_enable') == 1){
|
2610 |
add_filter( 'logout_url', 'mo_openid_redirect_after_logout',0,1);
|
2611 |
}
|
2612 |
+
function mo_openid_add_custom_column($columns){
|
2613 |
+
$columns['mo_openid_delete_profile_data'] = 'Delete Social Profile Data';
|
2614 |
+
return $columns;
|
2615 |
+
}
|
2616 |
+
add_filter('manage_users_columns', 'mo_openid_add_custom_column');
|
2617 |
|
2618 |
add_action( 'widgets_init', function(){register_widget( "mo_openid_login_wid" );});
|
2619 |
add_action( 'widgets_init', function(){register_widget( "mo_openid_sharing_ver_wid" );});
|
2629 |
add_action( 'delete_user', 'mo_openid_delete_account_linking_rows' );
|
2630 |
add_action( 'mo_user_register','mo_openid_send_email',1, 2 );
|
2631 |
|
2632 |
+
|
2633 |
//compatibility with international characters
|
2634 |
add_filter('sanitize_user', 'mo_openid_sanitize_user', 10, 3);
|
2635 |
remove_filter('sanitize_title','sanitize_title_with_dashes', 10);
|
2636 |
add_filter( 'sanitize_title', 'mo_openid_sanitize_title_with_dashes', 10, 3 );
|
2637 |
|
2638 |
+
function mo_openid_delete_social_profile_script(){
|
2639 |
+
?>
|
2640 |
+
<script type="text/javascript">
|
2641 |
+
function moOpenidDeleteSocialProfile(elem, userId){
|
2642 |
+
jQuery.ajax({
|
2643 |
+
url:"<?php echo admin_url();?>", //the page containing php script
|
2644 |
+
method: "POST", //request type,
|
2645 |
+
data: {action : 'delete_social_profile_data', user_id : userId},
|
2646 |
+
dataType: 'text',
|
2647 |
+
success:function(result){
|
2648 |
+
alert('Social Profile Data Deleted successfully. Press OK to continue.');
|
2649 |
+
}
|
2650 |
+
});
|
2651 |
+
}
|
2652 |
+
</script>
|
2653 |
+
<?php
|
2654 |
+
|
2655 |
+
}
|
2656 |
+
|
2657 |
+
add_action('admin_head', 'mo_openid_delete_social_profile_script');
|
2658 |
+
|
2659 |
function mo_openid_sanitize_user($username, $raw_username, $strict) {
|
2660 |
|
2661 |
$username = wp_strip_all_tags( $raw_username );
|
class-mo-openid-sso-customer.php
CHANGED
@@ -239,6 +239,8 @@ class CustomerOpenID {
|
|
239 |
$customerKey = get_option('mo_openid_admin_customer_key');
|
240 |
$apiKey = get_option('mo_openid_admin_api_key');
|
241 |
|
|
|
|
|
242 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
243 |
$currentTimeInMillis = self::get_timestamp();
|
244 |
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
239 |
$customerKey = get_option('mo_openid_admin_customer_key');
|
240 |
$apiKey = get_option('mo_openid_admin_api_key');
|
241 |
|
242 |
+
$username = get_option('mo_openid_admin_email');
|
243 |
+
$phone = get_option('mo_openid_admin_phone');
|
244 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
245 |
$currentTimeInMillis = self::get_timestamp();
|
246 |
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
includes/css/mo_openid_style.css
CHANGED
@@ -438,3 +438,10 @@ aside.widget-area>section.widget_mo_openid_sharing_hor_wid>div.mo-openid-app-ico
|
|
438 |
.mo-slider.round:before {
|
439 |
border-radius: 50%;}
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
.mo-slider.round:before {
|
439 |
border-radius: 50%;}
|
440 |
|
441 |
+
.mo-consent{
|
442 |
+
font-size:11px !important;
|
443 |
+
font-weight:normal;
|
444 |
+
color:#72777c;
|
445 |
+
padding-bottom: 5px;
|
446 |
+
}
|
447 |
+
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 6.6.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
@@ -15,7 +15,7 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
|
|
15 |
require('class-mo-openid-sso-customer.php');
|
16 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
17 |
require('class-mo-openid-social-comment.php');
|
18 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '6.6.
|
19 |
|
20 |
class Miniorange_OpenID_SSO {
|
21 |
|
@@ -244,6 +244,12 @@ class Miniorange_OpenID_SSO {
|
|
244 |
add_option('mo_openid_enable_custom_app_google','1');
|
245 |
add_option('mo_openid_enable_custom_app_facebook','1');
|
246 |
add_option('mo_openid_enable_custom_app_twitter','1');
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
}
|
248 |
|
249 |
function mo_openid_deactivate() {
|
@@ -794,6 +800,12 @@ class Miniorange_OpenID_SSO {
|
|
794 |
update_option( 'mo_openid_bp_before_account_details_fields', isset( $_POST['mo_openid_bp_before_account_details_fields']) ? $_POST['mo_openid_bp_before_account_details_fields'] : 0);
|
795 |
update_option( 'mo_openid_bp_after_register_page', isset( $_POST['mo_openid_bp_after_register_page']) ? $_POST['mo_openid_bp_after_register_page'] : 0);
|
796 |
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
//Redirect URL
|
798 |
update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
|
799 |
update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
|
@@ -858,7 +870,8 @@ class Miniorange_OpenID_SSO {
|
|
858 |
update_option('mo_openid_message', 'Please register an account before trying to enable any app');
|
859 |
$this->mo_openid_show_error_message();
|
860 |
}
|
861 |
-
}
|
|
|
862 |
if(mo_openid_is_customer_registered()) {
|
863 |
|
864 |
//commenting
|
@@ -883,7 +896,8 @@ class Miniorange_OpenID_SSO {
|
|
883 |
update_option('mo_openid_message', 'Please register an account before trying to enable any app');
|
884 |
$this->mo_openid_show_error_message();
|
885 |
}
|
886 |
-
}
|
|
|
887 |
// Contact Us query
|
888 |
$email = $_POST['mo_openid_contact_us_email'];
|
889 |
$phone = $_POST['mo_openid_contact_us_phone'];
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 6.6.3
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
15 |
require('class-mo-openid-sso-customer.php');
|
16 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
17 |
require('class-mo-openid-social-comment.php');
|
18 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '6.6.3');
|
19 |
|
20 |
class Miniorange_OpenID_SSO {
|
21 |
|
244 |
add_option('mo_openid_enable_custom_app_google','1');
|
245 |
add_option('mo_openid_enable_custom_app_facebook','1');
|
246 |
add_option('mo_openid_enable_custom_app_twitter','1');
|
247 |
+
|
248 |
+
//GDPR options
|
249 |
+
add_option('mo_openid_gdpr_consent_enable', 0);
|
250 |
+
add_option( 'mo_openid_privacy_policy_text', 'terms and conditions');
|
251 |
+
add_option( 'mo_openid_gdpr_consent_message','I accept the terms and conditions.');
|
252 |
+
|
253 |
}
|
254 |
|
255 |
function mo_openid_deactivate() {
|
800 |
update_option( 'mo_openid_bp_before_account_details_fields', isset( $_POST['mo_openid_bp_before_account_details_fields']) ? $_POST['mo_openid_bp_before_account_details_fields'] : 0);
|
801 |
update_option( 'mo_openid_bp_after_register_page', isset( $_POST['mo_openid_bp_after_register_page']) ? $_POST['mo_openid_bp_after_register_page'] : 0);
|
802 |
|
803 |
+
// GDPR options
|
804 |
+
update_option( 'mo_openid_gdpr_consent_enable', isset( $_POST['mo_openid_gdpr_consent_enable']) ? $_POST['mo_openid_gdpr_consent_enable'] : 0);
|
805 |
+
update_option( 'mo_openid_privacy_policy_url', $_POST['mo_openid_privacy_policy_url']);
|
806 |
+
update_option( 'mo_openid_privacy_policy_text', $_POST['mo_openid_privacy_policy_text']);
|
807 |
+
update_option( 'mo_openid_gdpr_consent_message', stripslashes($_POST['mo_openid_gdpr_consent_message']));
|
808 |
+
|
809 |
//Redirect URL
|
810 |
update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
|
811 |
update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
|
870 |
update_option('mo_openid_message', 'Please register an account before trying to enable any app');
|
871 |
$this->mo_openid_show_error_message();
|
872 |
}
|
873 |
+
}
|
874 |
+
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_comment_settings" ) {
|
875 |
if(mo_openid_is_customer_registered()) {
|
876 |
|
877 |
//commenting
|
896 |
update_option('mo_openid_message', 'Please register an account before trying to enable any app');
|
897 |
$this->mo_openid_show_error_message();
|
898 |
}
|
899 |
+
}
|
900 |
+
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_contact_us_query_option" ) {
|
901 |
// Contact Us query
|
902 |
$email = $_POST['mo_openid_contact_us_email'];
|
903 |
$phone = $_POST['mo_openid_contact_us_phone'];
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -26,6 +26,7 @@ function mo_register_openid() {
|
|
26 |
<a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
|
27 |
<a class="nav-tab <?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
|
28 |
<a class="nav-tab <?php echo $active_tab == 'help' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'help'), $_SERVER['REQUEST_URI'] ); ?>">FAQ</a>
|
|
|
29 |
</h2>
|
30 |
</div>
|
31 |
|
@@ -77,7 +78,10 @@ function mo_register_openid() {
|
|
77 |
mo_openid_pricing_info();
|
78 |
} else if($active_tab == 'help') {
|
79 |
mo_openid_troubleshoot_info();
|
80 |
-
} else if($active_tab == '
|
|
|
|
|
|
|
81 |
?>
|
82 |
<td style="vertical-align:top;width:65%;">
|
83 |
<?php mo_openid_custom_app_config();?>
|
@@ -670,10 +674,41 @@ function mo_openid_apps_config() {
|
|
670 |
<input type="checkbox" id="bp_after_register_page" name="mo_openid_bp_after_register_page" value="1"
|
671 |
<?php checked( get_option('mo_openid_bp_after_register_page') == 1 );?> />After BuddyPress Registration Form</td>
|
672 |
</tr>
|
673 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
|
675 |
<tr>
|
676 |
<td>
|
|
|
677 |
<b>Redirect URL after login:</b>
|
678 |
</td>
|
679 |
</tr>
|
@@ -804,36 +839,6 @@ function mo_openid_apps_config() {
|
|
804 |
<?php checked( get_option('mo_openid_account_linking_enable') == 1 );?> /><b>Enable Account-Linking</b>
|
805 |
</td>
|
806 |
</tr>
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
<?php if(mo_openid_is_customer_registered() && mo_openid_is_customer_valid()) { ?>
|
811 |
-
<tr>
|
812 |
-
<td>
|
813 |
-
<h3 style="font-size: 16px;">Role Mapping</h3>
|
814 |
-
</td>
|
815 |
-
</tr>
|
816 |
-
<tr>
|
817 |
-
<td>
|
818 |
-
Use Role Mapping to assign this universal role to the all users registering through Social Login.
|
819 |
-
</td>
|
820 |
-
</tr>
|
821 |
-
<tr>
|
822 |
-
<td>
|
823 |
-
<br/>
|
824 |
-
<b>Universal Role: </b>
|
825 |
-
<br>
|
826 |
-
<select name="mapping_value_default" style="width:30%" id="default_group_mapping">
|
827 |
-
<?php
|
828 |
-
if(get_option('mo_openid_login_role_mapping'))
|
829 |
-
$default_role = get_option('mo_openid_login_role_mapping');
|
830 |
-
else
|
831 |
-
$default_role = get_option('default_role');
|
832 |
-
wp_dropdown_roles($default_role); ?>
|
833 |
-
</select>
|
834 |
-
</td>
|
835 |
-
</tr>
|
836 |
-
<?php } ?>
|
837 |
<script>
|
838 |
var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
|
839 |
var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
|
@@ -3230,6 +3235,166 @@ function mo_openid_troubleshoot_info(){ ?>
|
|
3230 |
<?php
|
3231 |
}
|
3232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3233 |
function mo_openid_custom_app_config(){?>
|
3234 |
<style>
|
3235 |
.tableborder {
|
26 |
<a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
|
27 |
<a class="nav-tab <?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
|
28 |
<a class="nav-tab <?php echo $active_tab == 'help' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'help'), $_SERVER['REQUEST_URI'] ); ?>">FAQ</a>
|
29 |
+
<a class="nav-tab <?php echo $active_tab == 'help' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>">Privacy Policy</a>
|
30 |
</h2>
|
31 |
</div>
|
32 |
|
78 |
mo_openid_pricing_info();
|
79 |
} else if($active_tab == 'help') {
|
80 |
mo_openid_troubleshoot_info();
|
81 |
+
} else if($active_tab == 'privacy_policy'){
|
82 |
+
mo_openid_privacy_policy();
|
83 |
+
}
|
84 |
+
else if($active_tab == 'custom_app') {
|
85 |
?>
|
86 |
<td style="vertical-align:top;width:65%;">
|
87 |
<?php mo_openid_custom_app_config();?>
|
674 |
<input type="checkbox" id="bp_after_register_page" name="mo_openid_bp_after_register_page" value="1"
|
675 |
<?php checked( get_option('mo_openid_bp_after_register_page') == 1 );?> />After BuddyPress Registration Form</td>
|
676 |
</tr>
|
677 |
+
|
678 |
+
<tr>
|
679 |
+
<td>
|
680 |
+
<br>
|
681 |
+
<hr>
|
682 |
+
<h3>GDPR Settings</h3>
|
683 |
+
</td>
|
684 |
+
</tr>
|
685 |
+
<tr>
|
686 |
+
<td>
|
687 |
+
If GDPR check is enabled, users will be asked to give consent before using Social Login. Users who will not give consent will not be able to log in. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress. (Click <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>"> here </a> to read miniOrange Social Login Privacy Policy. Please update your website's privacy policy accordingly and enter the URL to your privacy policy below.)
|
688 |
+
<br/><br/>
|
689 |
+
<input type="checkbox" name="mo_openid_gdpr_consent_enable" value="1"
|
690 |
+
<?php checked( get_option('mo_openid_gdpr_consent_enable') == 1 );?> /><b>Take consent from users</b>
|
691 |
+
<br/><br/>
|
692 |
+
<b>Enter the Consent message: </b><br>
|
693 |
+
<textarea style="width:80%" name="mo_openid_gdpr_consent_message" ><?php echo get_option('mo_openid_gdpr_consent_message')?></textarea>
|
694 |
+
<br><br>
|
695 |
+
<b>Enter the text that redirects to Privacy Policy URL: </b><br>
|
696 |
+
<input type="text" style="width:90%" name="mo_openid_privacy_policy_text" value="<?php echo get_option('mo_openid_privacy_policy_text')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
697 |
+
<br><br>
|
698 |
+
<b>Enter Privacy Policy URL: </b><br>
|
699 |
+
<input type="text" style="width:90%" name="mo_openid_privacy_policy_url" value="<?php echo get_option('mo_openid_privacy_policy_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
700 |
+
</td>
|
701 |
+
</tr>
|
702 |
+
|
703 |
+
<tr><td>
|
704 |
+
<br>
|
705 |
+
<hr>
|
706 |
+
</td>
|
707 |
+
</tr>
|
708 |
|
709 |
<tr>
|
710 |
<td>
|
711 |
+
<h3>Redirection Options</h3>
|
712 |
<b>Redirect URL after login:</b>
|
713 |
</td>
|
714 |
</tr>
|
839 |
<?php checked( get_option('mo_openid_account_linking_enable') == 1 );?> /><b>Enable Account-Linking</b>
|
840 |
</td>
|
841 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
842 |
<script>
|
843 |
var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
|
844 |
var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
|
3235 |
<?php
|
3236 |
}
|
3237 |
|
3238 |
+
function mo_openid_privacy_policy(){ ?>
|
3239 |
+
<td style="vertical-align:top;width:65%;">
|
3240 |
+
<div class="mo_openid_table_layout">
|
3241 |
+
|
3242 |
+
<table width="100%">
|
3243 |
+
<tbody>
|
3244 |
+
|
3245 |
+
<tr><td>
|
3246 |
+
<p>If you are unable to open any section, press CTRL + F5 to clear cache.<p>
|
3247 |
+
<h3><a id="openid_question_plugin" class="mo_openid_title_panel" >Terms used in this document</a></h3>
|
3248 |
+
<div class="mo_openid_help_desc" hidden="" id="openid_question_plugin_desc">
|
3249 |
+
<ol>
|
3250 |
+
<li>Customer - Person who is registered with miniOrange and has installed the Social Login Plugin on his/her website </li>
|
3251 |
+
<li>End-user - Person who will log in to your site using social applications like Facebook, Google, Twitter etc. </li>
|
3252 |
+
<li>miniOrange - Company owning the Social Login Plugin. </li>
|
3253 |
+
<li>Social Profile Data - Information like the first name, last name, email address etc. that is fetched from a social application like Facebook when end-user logs into the website</li>
|
3254 |
+
<li>Website Administrator - Alias for Customer </li>
|
3255 |
+
</ol>
|
3256 |
+
</div>
|
3257 |
+
<hr>
|
3258 |
+
</td></tr>
|
3259 |
+
|
3260 |
+
<tr><td>
|
3261 |
+
<h3><a id="openid_question_email" class="mo_openid_title_panel" >Introduction</a></h3>
|
3262 |
+
<div class="mo_openid_help_desc" hidden="" id="openid_question_email_desc">
|
3263 |
+
<div id="openid_question20_desc">
|
3264 |
+
We protect your personal information using industry standard safeguards. We may share your information only with your consent or as required by law as detailed in this policy, and we will always let you know when we make significant changes to this Privacy Policy. Maintaining your trust is our top priority, so we adhere to the following principles to protect your privacy:
|
3265 |
+
<br><br>
|
3266 |
+
We protect your personal information and will only provide it to third parties:
|
3267 |
+
<ol>
|
3268 |
+
<li>with your consent; </li>
|
3269 |
+
<li>where it is necessary to carry out your instructions; </li>
|
3270 |
+
<li>as reasonably necessary in order to provide our features and functionality to you; </li>
|
3271 |
+
<li>when we reasonably believe it is required by law, subpoena or other legal process; or </li>
|
3272 |
+
<li>as necessary to enforce our User Agreement or protect the rights, property, or safety of miniOrange, its Customers and End users,
|
3273 |
+
and the public. </li>
|
3274 |
+
</ol>
|
3275 |
+
</div><br/>
|
3276 |
+
</div>
|
3277 |
+
<hr>
|
3278 |
+
</td></tr>
|
3279 |
+
|
3280 |
+
<tr><td>
|
3281 |
+
<h3><a id="openid_question_curl" class="mo_openid_title_panel" >What information do we collect ? </a></h3>
|
3282 |
+
<div class="mo_openid_help_desc" hidden="" id="openid_question_curl_desc">
|
3283 |
+
|
3284 |
+
<div id="openid_question1_desc">
|
3285 |
+
1. When you register in the plugin, you provide us with information (including your name(optional), email address, phone number(optional), company name/website and password) that we use to offer you a personalized, relevant experience on miniOrange.
|
3286 |
+
</div>
|
3287 |
+
<hr>
|
3288 |
+
|
3289 |
+
<div id="openid_question1_desc">
|
3290 |
+
2. When you contact our Customer Support, personal contact information, such as name, company name, address, phone number, email address, and any other information necessary for us to provide Visitors with access to the various aspects of the Services. The Personal Information you provided is used for such purposes as answering questions, improving the content of the website, customizing the content, and communicating with the Visitors about
|
3291 |
+
miniOrange’s Services, including specials and new features.
|
3292 |
+
</div>
|
3293 |
+
<hr>
|
3294 |
+
|
3295 |
+
<div id="openid_question1_desc">
|
3296 |
+
3. When you contact us using our support form, we collect information that helps us categorize your question, respond to it, and, if applicable, investigate any breach of our User Agreement or this Privacy Policy. We also use this information to track potential problems and trends and customize our support responses to better serve you.
|
3297 |
+
</div>
|
3298 |
+
<hr>
|
3299 |
+
|
3300 |
+
<div id="openid_question1_desc">
|
3301 |
+
4. We do not collect email address from miniOrange production service for marketing use.
|
3302 |
+
</div>
|
3303 |
+
<hr>
|
3304 |
+
|
3305 |
+
<div id="openid_question1_desc">
|
3306 |
+
5. In the free and standard plans of the social login plugin, we collect the following information from your end users :
|
3307 |
+
<ol>
|
3308 |
+
<li>First name </li>
|
3309 |
+
<li>last name </li>
|
3310 |
+
<li>username </li>
|
3311 |
+
<li>email </li>
|
3312 |
+
<li>application name </li>
|
3313 |
+
<li>social profile url </li>
|
3314 |
+
<li>profile picture </li>
|
3315 |
+
<li>the identifier in the social application </li>
|
3316 |
+
</ol>
|
3317 |
+
</div>
|
3318 |
+
<hr>
|
3319 |
+
|
3320 |
+
<div id="openid_question1_desc">
|
3321 |
+
6. In the premium plugin, we collect the following information from your end users.
|
3322 |
+
<ol>
|
3323 |
+
<li>First name </li>
|
3324 |
+
<li>last name </li>
|
3325 |
+
<li>username </li>
|
3326 |
+
<li>email </li>
|
3327 |
+
<li>application name </li>
|
3328 |
+
<li>social profile url </li>
|
3329 |
+
<li>profile picture </li>
|
3330 |
+
<li>Age</li>
|
3331 |
+
<li>Gender </li>
|
3332 |
+
<li>Location </li>
|
3333 |
+
<li>DOB</li>
|
3334 |
+
<li>Company Name</li>
|
3335 |
+
<li>Friend list</li>
|
3336 |
+
<li>Contact number</li>
|
3337 |
+
<li>website</li>
|
3338 |
+
<li>Relationship Status</li>
|
3339 |
+
<li>Education</li>
|
3340 |
+
<li>university_name</li>
|
3341 |
+
<li>description</li>
|
3342 |
+
<li>placesLived</li>
|
3343 |
+
<li>Industry</li>
|
3344 |
+
<li>headline</li>
|
3345 |
+
|
3346 |
+
</ol>
|
3347 |
+
</div>
|
3348 |
+
</div>
|
3349 |
+
<hr>
|
3350 |
+
</td></tr>
|
3351 |
+
|
3352 |
+
<tr><td>
|
3353 |
+
<h3><a id="openid_question_otp" class="mo_openid_title_panel" >How we use personal information?</a></h3>
|
3354 |
+
<div class="mo_openid_help_desc" hidden="" id="openid_question_otp_desc">
|
3355 |
+
<div id="openid_question7_desc">
|
3356 |
+
miniOrange Social Login Plugin gives two options to website administrators/customers/you<br>
|
3357 |
+
A. to login users with default miniOrange apps that are pre-configured in the plugin<br>
|
3358 |
+
B. to login users with custom apps that you can configure in the plugin
|
3359 |
+
<br><br>
|
3360 |
+
In the free & standard plugin, miniOrange collects data but it is not stored in miniOrange (except for an identifier for audit and usage purposes). This data is to log in the end-user on the WordPress website and for enhancing the end user's experience.
|
3361 |
+
<br><br>
|
3362 |
+
In the premium plugin, miniOrange collects and stores data only if the customer has chosen the Extended attributes feature. The data collected is for reporting for customers. miniOrange does not sell, reproduce or use this information in any way. Website administrators have the sole right to this information of end users.
|
3363 |
+
</div>
|
3364 |
+
<hr>
|
3365 |
+
|
3366 |
+
<h4><a id="openid_question8" >Data Security when you choose A</a></h4>
|
3367 |
+
<div id="openid_question8_desc">
|
3368 |
+
>><b> Right to be forgotten:</b> Social profile data that is fetched from a social application is stored in two places -> WordPress database & miniOrange. Website administrator can delete a specific end user's social profile data from WordPress & miniOrange if an end user requests so.
|
3369 |
+
<br><br>
|
3370 |
+
>> <b>User consent:</b> End users will be asked for consent if they agree to the terms and conditions of your website. If they deny consent, they will not be logged in and no data will be fetched.
|
3371 |
+
<br><br>
|
3372 |
+
>><b> Encryption: </b>All data that is in transit because of miniOrange is encrypted with a key that is unique to the customer registered in the Social Login plugin.
|
3373 |
+
</div>
|
3374 |
+
<hr>
|
3375 |
+
|
3376 |
+
<h4><a id="openid_question5" >Data Security when you choose B</a></h4>
|
3377 |
+
<div id="openid_question5_desc">
|
3378 |
+
>> <b> Right to be forgotten:</b> Social profile data fetched from each social application is stored only in the WordPress database. Website administrator can delete a specific end user's social profile data from WordPress if an end user requests so.
|
3379 |
+
<br><br>
|
3380 |
+
>> <b>User consent:</b> End users will be asked for consent if they agree to the terms and conditions of your website. If they deny consent, they will not be logged in and no data will be fetched.
|
3381 |
+
</div>
|
3382 |
+
|
3383 |
+
</div>
|
3384 |
+
<hr>
|
3385 |
+
</td></tr>
|
3386 |
+
|
3387 |
+
</tbody>
|
3388 |
+
</table>
|
3389 |
+
</div>
|
3390 |
+
</td>
|
3391 |
+
<td style="vertical-align:top;padding-left:1%;">
|
3392 |
+
<?php echo miniorange_openid_support(); ?>
|
3393 |
+
</td>
|
3394 |
+
|
3395 |
+
<?php
|
3396 |
+
}
|
3397 |
+
|
3398 |
function mo_openid_custom_app_config(){?>
|
3399 |
<style>
|
3400 |
.tableborder {
|
readme.txt
CHANGED
@@ -3,12 +3,12 @@ Contributors: miniOrange
|
|
3 |
Donate link: https://www.miniorange.com
|
4 |
Tags: social login, social, facebook, twitter, 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 |
-
Stable tag: 6.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Social Login enables social login, sharing, comment using social apps like Google, Facebook, Twitter, Vkontakte, LinkedIn & more. QUICKEST setup.
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -16,8 +16,9 @@ Social Login enables social login, sharing, comment using social apps like Googl
|
|
16 |
|
17 |
= Free Social Login Features =
|
18 |
|
|
|
19 |
* Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce
|
20 |
-
* **NO SETUP required for default apps.**
|
21 |
* Setup your own social application with APP ID and APP Secret for Facebook, Google, Twitter.
|
22 |
* **Preview is available for Social Login icons**
|
23 |
* **Icon Customizations** - customize shape, theme, space & size of social login icons.
|
@@ -28,7 +29,7 @@ Social Login enables social login, sharing, comment using social apps like Googl
|
|
28 |
* **BuddyPress display options** - Enable Social login icons on BuddyPress Registartion & Account pagess.
|
29 |
* Add the Social Login Icons on: login page, registration page, comment form or anywhere on your site using our Social Login widget/ shortcode.
|
30 |
* Sync Social Profile Picture with WordPress.
|
31 |
-
* Enable Email Notification to admin
|
32 |
* Enable/disable user registration.
|
33 |
* Customize Login Redirect URL.
|
34 |
* Customize Logout Redirect URL.
|
@@ -165,6 +166,11 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
165 |
|
166 |
|
167 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
168 |
= 6.6.2 =
|
169 |
* Updated Readme
|
170 |
* Removed the message 'No user is returned'
|
@@ -521,6 +527,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
521 |
* First version of Social Login, Social Sharing plugin.
|
522 |
|
523 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
524 |
= 6.6.2 =
|
525 |
* Updated Readme
|
526 |
* Removed the message 'No user is returned'
|
3 |
Donate link: https://www.miniorange.com
|
4 |
Tags: social login, social, facebook, twitter, 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.6
|
7 |
+
Stable tag: 6.6.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Social Login is GDPR compliant & enables social login, sharing, comment using social apps like Google, Facebook, Twitter, Vkontakte, LinkedIn & more. QUICKEST setup.
|
12 |
|
13 |
== Description ==
|
14 |
|
16 |
|
17 |
= Free Social Login Features =
|
18 |
|
19 |
+
* Compliance with GDPR.
|
20 |
* Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce
|
21 |
+
* **NO SETUP required for default social apps.**
|
22 |
* Setup your own social application with APP ID and APP Secret for Facebook, Google, Twitter.
|
23 |
* **Preview is available for Social Login icons**
|
24 |
* **Icon Customizations** - customize shape, theme, space & size of social login icons.
|
29 |
* **BuddyPress display options** - Enable Social login icons on BuddyPress Registartion & Account pagess.
|
30 |
* Add the Social Login Icons on: login page, registration page, comment form or anywhere on your site using our Social Login widget/ shortcode.
|
31 |
* Sync Social Profile Picture with WordPress.
|
32 |
+
* Enable Email Notification to admin when user registers with social application.
|
33 |
* Enable/disable user registration.
|
34 |
* Customize Login Redirect URL.
|
35 |
* Customize Logout Redirect URL.
|
166 |
|
167 |
|
168 |
== Changelog ==
|
169 |
+
|
170 |
+
= 6.6.3 =
|
171 |
+
* GDPR Compliance
|
172 |
+
* Fix for issue in login (International Characters)
|
173 |
+
|
174 |
= 6.6.2 =
|
175 |
* Updated Readme
|
176 |
* Removed the message 'No user is returned'
|
527 |
* First version of Social Login, Social Sharing plugin.
|
528 |
|
529 |
== Upgrade Notice ==
|
530 |
+
= 6.6.3 =
|
531 |
+
* GDPR Compliance
|
532 |
+
* Fix for issue in login (International Characters)
|
533 |
+
|
534 |
= 6.6.2 =
|
535 |
* Updated Readme
|
536 |
* Removed the message 'No user is returned'
|
uninstall.php
CHANGED
@@ -144,6 +144,10 @@
|
|
144 |
delete_option( 'mo_openid_enable_custom_app_google');
|
145 |
delete_option( 'mo_openid_enable_custom_app_facebook');
|
146 |
delete_option( 'mo_openid_enable_custom_app_twitter');
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
149 |
?>
|
144 |
delete_option( 'mo_openid_enable_custom_app_google');
|
145 |
delete_option( 'mo_openid_enable_custom_app_facebook');
|
146 |
delete_option( 'mo_openid_enable_custom_app_twitter');
|
147 |
+
|
148 |
+
//GDPR options
|
149 |
+
delete_option('mo_openid_gdpr_consent_enable');
|
150 |
+
delete_option( 'mo_openid_privacy_policy_text');
|
151 |
+
delete_option( 'mo_openid_gdpr_consent_message');
|
152 |
+
delete_option( 'mo_openid_privacy_policy_url');
|
153 |
?>
|