Social Login - Version 7.1.5

Version Description

  • Fixed issue of getting '#=' string appended to URL after login with Facebook.
  • Google+ APIs will shut down soon, so updated Google OAuth 2 APIs.
  • UI changes.
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Social Login
Version 7.1.5
Comparing to
See all releases

Code changes from version 7.1.4 to 7.1.5

class-mo-openid-login-widget.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  include "twitter_oauth.php";
3
 
4
- if(mo_openid_is_customer_registered()) {
5
  /*
6
  * Login Widget
7
  *
@@ -34,364 +33,610 @@ if(mo_openid_is_customer_registered()) {
34
  return $instance;
35
  }
36
 
37
- public function openidloginForm(){
38
-
39
- if ( $GLOBALS['pagenow'] === 'wp-login.php' ) {
40
- ?>
41
- <script
42
- src="https://code.jquery.com/jquery-1.12.4.js"
43
- integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU="
44
- crossorigin="anonymous"></script>
45
- <?php
46
- }
47
-
48
- $selected_theme = get_option('mo_openid_login_theme');
49
- $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')| get_option('mo_openid_yahoo_enable');
50
- $spacebetweenicons = get_option('mo_login_icon_space');
51
- $customWidth = get_option('mo_login_icon_custom_width');
52
- $customHeight = get_option('mo_login_icon_custom_height');
53
- $customSize = get_option('mo_login_icon_custom_size');
54
- $customBackground = get_option('mo_login_icon_custom_color');
55
- $customTheme = get_option('mo_openid_login_custom_theme');
56
- $customTextofTitle = get_option('mo_openid_login_button_customize_text');
57
- $customBoundary = get_option('mo_login_icon_custom_boundary');
58
- $customLogoutName = get_option('mo_openid_login_widget_customize_logout_name_text');
59
- $customLogoutLink = get_option('mo_openid_login_widget_customize_logout_text');
60
- $customTextColor=get_option('mo_login_openid_login_widget_customize_textcolor');
61
- $customText=get_option('mo_openid_login_widget_customize_text');
62
-
63
- $facebook_custom_app = $this->if_custom_app_exists('facebook');
64
- $google_custom_app = $this->if_custom_app_exists('google');
65
- $twitter_custom_app = $this->if_custom_app_exists('twitter');
66
- $salesforce_custom_app = $this->if_custom_app_exists('salesforce');
67
- $linkedin_custom_app = $this->if_custom_app_exists('linkedin');
68
- $windowslive_custom_app = $this->if_custom_app_exists('windowslive');
69
- $vkontakte_custom_app = $this->if_custom_app_exists('vkontakte');
70
- $amazon_custom_app = $this->if_custom_app_exists('amazon');
71
- $instagram_custom_app = $this->if_custom_app_exists('instagram');
72
- $yahoo_custom_app = $this->if_custom_app_exists('yahoo');
73
-
74
- if(get_option('mo_openid_gdpr_consent_enable')) {
75
- $gdpr_setting = "disabled='disabled'";
76
- }
77
- else
78
- $gdpr_setting ='';
79
-
80
- $url = get_option('mo_openid_privacy_policy_url');
81
- $text = get_option('mo_openid_privacy_policy_text');
82
-
83
- if( !empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'),$text)){
84
- $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'));
85
- }else if(empty($text)){
86
- $consent_message = get_option('mo_openid_gdpr_consent_message');
87
- }
88
-
89
- if( ! is_user_logged_in() ) {
90
-
91
- if( $appsConfigured ) {
92
- $this->mo_openid_load_login_script();
93
  ?>
 
 
 
 
 
 
94
 
95
- <div class="mo-openid-app-icons">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
- <p style="color:#<?php echo $customTextColor ?>"><?php echo $customText ?>
98
- </p>
99
- <?php if(get_option('mo_openid_gdpr_consent_enable')){
100
- $consent_message = isset($consent_message) ? $consent_message: ''; ?>
101
- <!-- space -->
102
- <label class="mo-consent" style="padding-right: 10px;"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox"><?php echo $consent_message;?></label>
 
 
 
 
 
 
103
  <br>
104
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
- if($customTheme == 'default'){
107
-
108
- if( get_option('mo_openid_facebook_enable') ) {
109
- if($selected_theme == 'longbutton'){
110
-
111
- ?>
112
-
113
- <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
114
- echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
115
- <?php
116
-
117
- }else{
118
- ?>
119
-
120
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');"><img alt='Facebook' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
121
- <?php }
122
-
123
- }
124
-
125
- if( get_option('mo_openid_google_enable') ) {
126
- if($selected_theme == 'longbutton'){
127
- ?>
128
-
129
- <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
130
- echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
131
- <?php }
132
- else{ ?>
133
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" title="<?php echo $customTextofTitle ?> Google" ><img alt='Google' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
134
- <?php
135
  }
136
- }
137
 
138
- if( get_option('mo_openid_vkontakte_enable') ) {
139
- if($selected_theme == 'longbutton'){
140
- ?>
141
-
142
- <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
143
- echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
144
- <?php }
145
- else{ ?>
146
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" title="<?php echo $customTextofTitle ?> Vkontakte" ><img alt='Vkontakte' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
147
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  }
149
- }
150
-
151
- if( get_option('mo_openid_twitter_enable') ) {
152
- if($selected_theme == 'longbutton'){
153
- ?> <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
154
- echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
155
- <?php }
156
- else{ ?>
157
-
158
-
159
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Twitter" onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');"><img alt='Twitter' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
160
- <?php }
161
- }
162
-
163
- if( get_option('mo_openid_linkedin_enable') ) {
164
- if($selected_theme == 'longbutton'){ ?>
165
- <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
166
- echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
167
- <?php }
168
- else{ ?>
169
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');"><img alt='LinkedIn' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> btn-mo login-button" ></a>
170
- <?php }
171
- }
172
-
173
- if( get_option('mo_openid_instagram_enable') ) {
174
- if($selected_theme == 'longbutton'){ ?>
175
- <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
176
- echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
177
- <?php }
178
- else{ ?>
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');"><img alt='Instagram' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
182
- <?php }
183
- }
184
-
185
- if( get_option('mo_openid_amazon_enable') ) {
186
- if($selected_theme == 'longbutton'){
187
- ?> <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
188
- echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
189
- <?php }
190
- else{ ?>
191
-
192
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');"><img alt='Amazon' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/amazon.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
193
- <?php }
194
- }
 
 
 
 
 
 
 
 
 
 
 
195
 
196
- if( get_option('mo_openid_salesforce_enable') ) {
197
- if($selected_theme == 'longbutton'){
198
- ?> <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
199
- echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
200
- <?php }
201
- else{ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
 
204
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');"><img alt='Salesforce' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/salesforce.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
205
- <?php }
206
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
- if( get_option('mo_openid_windowslive_enable') ) {
209
- if($selected_theme == 'longbutton'){
210
- ?> <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
211
- echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
212
- <?php }
213
- else{ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
 
216
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
217
- <?php }
218
  }
219
- if( get_option('mo_openid_yahoo_enable') ) {
220
- if($selected_theme == 'longbutton'){
221
- ?><a rel='nofollow' <?php echo $gdpr_setting; ?> onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_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-yahoo btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-yahoo"></i><?php
222
- echo get_option('mo_openid_login_button_customize_text'); ?> Yahoo</a>
223
- <?php
224
- }else{
225
- ?><a class=" <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Yahoo" onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app?>');"><img alt='Yahoo' 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/yahoo.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" ></a>
226
- <?php }
227
- }
228
-
229
- }
230
- ?>
231
 
232
 
233
 
234
- <?php
235
- if($customTheme == 'custom'){
236
- if( get_option('mo_openid_facebook_enable') ) {
237
- if($selected_theme == 'longbutton'){
238
- ?> <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
239
- echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
240
- <?php }
241
- else{ ?>
 
 
 
 
242
 
243
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app?>');" title="<?php echo $customTextofTitle ?> Facebook"><i style="margin-top:10px;!important;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-facebook custom-login-button <?php echo $selected_theme; ?>" ></i></a>
 
 
 
 
 
 
244
 
245
- <?php }
246
 
247
- }
248
-
249
- if( get_option('mo_openid_google_enable') ) {
250
- if($selected_theme == 'longbutton'){
251
- ?>
252
-
253
- <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
254
- echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
255
- <?php }
256
- else{ ?>
257
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('google','<?php echo $google_custom_app?>');" title="<?php echo $customTextofTitle ?> Google"><i style="margin-top:10px;!important;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-google-plus custom-login-button <?php echo $selected_theme; ?>" ></i></a>
258
- <?php
259
  }
260
- }
261
-
262
- if( get_option('mo_openid_vkontakte_enable') ) {
263
- if($selected_theme == 'longbutton'){
264
- ?>
265
 
266
- <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
267
- echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
268
- <?php }
269
- else{ ?>
270
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app?>');" title="<?php echo $customTextofTitle ?> Vkontakte"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-vk custom-login-button <?php echo $selected_theme; ?>" ></i></a>
271
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
273
- }
274
-
275
- if( get_option('mo_openid_twitter_enable') ) {
276
- if($selected_theme == 'longbutton'){
277
- ?>
278
 
279
- <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
280
- echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
281
- <?php }
282
- else{ ?>
283
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app?>');" title="<?php echo $customTextofTitle ?> Twitter"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-twitter custom-login-button <?php echo $selected_theme; ?>" ></i></a>
284
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  }
286
- }
287
 
288
- if( get_option('mo_openid_linkedin_enable') ) {
289
- if($selected_theme == 'longbutton'){ ?>
290
- <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
291
- echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
292
- <?php }
293
- else{ ?>
294
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app?>');" title="<?php echo $customTextofTitle ?> LinkedIn"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-linkedin custom-login-button <?php echo $selected_theme; ?>" ></i></a>
295
- <?php }
296
- }
297
-
298
- if( get_option('mo_openid_instagram_enable') ) {
299
- if($selected_theme == 'longbutton'){ ?>
300
- <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
301
- echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
302
- <?php }
303
- else{ ?>
304
-
305
-
306
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app?>');" title="<?php echo $customTextofTitle ?> Instagram"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-instagram custom-login-button <?php echo $selected_theme; ?>"></i></a>
307
- <?php }
308
- }
309
-
310
- if( get_option('mo_openid_amazon_enable') ) {
311
- if($selected_theme == 'longbutton'){
312
- ?> <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
313
- echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
314
- <?php }
315
- else{ ?>
316
 
317
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app?>');" title="<?php echo $customTextofTitle ?> Amazon"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-amazon custom-login-button <?php echo $selected_theme; ?>"></i></a>
318
- <?php }
319
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
 
321
- if( get_option('mo_openid_salesforce_enable') ) {
322
- if($selected_theme == 'longbutton'){
323
- ?> <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
324
- echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
325
- <?php }
326
- else{ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
 
329
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app?>');" title="<?php echo $customTextofTitle ?> Salesforce"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px " class="fa fa-cloud custom-login-button <?php echo $selected_theme; ?>" ></i></a>
330
- <?php }
331
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
 
333
- if( get_option('mo_openid_windowslive_enable') ) {
334
- if($selected_theme == 'longbutton'){
335
- ?> <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
336
- echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
337
- <?php }
338
- else{ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
 
 
340
 
341
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app?>');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="margin-top:10px;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class=" fa fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
342
- <?php }
343
- }
344
- if( get_option('mo_openid_yahoo_enable') ) {
345
- if($selected_theme == 'longbutton'){
346
- ?> <a rel='nofollow' <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_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-yahoo btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-yahoo"></i><?php
347
- echo get_option('mo_openid_login_button_customize_text'); ?> Yahoo</a>
348
- <?php }
349
- else{ ?>
350
- <a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app?>');" title="<?php echo $customTextofTitle ?> Yahoo"><i style="margin-top:10px;!important;width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-yahoo custom-login-button <?php echo $selected_theme; ?>" ></i></a>
351
- <?php }
352
 
353
  }
 
 
 
 
354
 
355
 
356
- }
357
  ?>
358
- <br>
359
- </div>
360
- <?php
361
-
362
-
363
- }
364
- else {
365
- ?>
366
- <div>No apps configured. Please contact your administrator.</div>
367
- <?php
368
- }
369
- if( $appsConfigured && get_option('moopenid_logo_check') == 1){
370
- $logo_html = $this->mo_openid_customize_logo();
371
- echo $logo_html;
372
- }
373
- ?>
374
- <br />
375
- <?php
376
- }else {
377
- global $current_user;
378
- $current_user = wp_get_current_user();
379
- $customLogoutName = str_replace('##username##', $current_user->display_name, $customLogoutName);
380
- $link_with_username = $customLogoutName;
381
- if (empty($customLogoutName) || empty($customLogoutLink)) {
382
  ?>
383
- <div id="logged_in_user" class="mo_openid_login_wid">
384
- <li><?php echo $link_with_username;?> <a href="<?php echo wp_logout_url( site_url() ); ?>" title="<?php _e('Logout','flw');?>"><?php _e($customLogoutLink,'flw');?></a></li>
385
- </div>
386
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
387
 
388
- }
389
- else {
390
- ?>
391
- <div id="logged_in_user" class="mo_openid_login_wid">
392
- <li><?php echo $link_with_username;?> <a href="<?php echo wp_logout_url( site_url() ); ?>" title="<?php _e('Logout','flw');?>"><?php _e($customLogoutLink,'flw');?></a></li>
393
- </div>
394
- <?php
 
 
395
  }
396
  }
397
  }
@@ -420,295 +665,282 @@ if(mo_openid_is_customer_registered()) {
420
  return 'false';
421
  }
422
 
423
- public function openidloginFormShortCode( $atts ){
424
-
425
-
426
- global $post;
427
- $html = '';
428
- //$this->error_message();
429
- $selected_theme = isset( $atts['shape'] )? $atts['shape'] : get_option('mo_openid_login_theme');
430
- $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')| get_option('mo_openid_yahoo_enable');
431
- $spacebetweenicons = isset( $atts['space'] )? $atts['space'] : get_option('mo_login_icon_space');
432
- $customWidth = isset( $atts['width'] )? $atts['width'] : get_option('mo_login_icon_custom_width');
433
- $customHeight = isset( $atts['height'] )? $atts['height'] : get_option('mo_login_icon_custom_height');
434
- $customSize = isset( $atts['size'] )? $atts['size'] : get_option('mo_login_icon_custom_size');
435
- $customBackground = isset( $atts['background'] )? $atts['background'] : get_option('mo_login_icon_custom_color');
436
- $customTheme = isset( $atts['theme'] )? $atts['theme'] : get_option('mo_openid_login_custom_theme');
437
- $customText = get_option('mo_openid_login_widget_customize_text');
438
- $buttonText = get_option('mo_openid_login_button_customize_text');
439
- $customTextofTitle = get_option('mo_openid_login_button_customize_text');
440
- $logoutUrl = wp_logout_url( site_url() );
441
- $customBoundary = isset( $atts['edge'] )? $atts['edge'] : get_option('mo_login_icon_custom_boundary');
442
- $customLogoutName = get_option('mo_openid_login_widget_customize_logout_name_text');
443
- $customLogoutLink = get_option('mo_openid_login_widget_customize_logout_text');
444
- $customTextColor= isset( $atts['color'] )? $atts['color'] : get_option('mo_login_openid_login_widget_customize_textcolor');
445
- $customText=isset( $atts['heading'] )? $atts['heading'] :get_option('mo_openid_login_widget_customize_text');
446
-
447
- $facebook_custom_app = $this->if_custom_app_exists('facebook');
448
- $google_custom_app = $this->if_custom_app_exists('google');
449
- $twitter_custom_app = $this->if_custom_app_exists('twitter');
450
- $salesforce_custom_app = $this->if_custom_app_exists('salesforce');
451
- $linkedin_custom_app = $this->if_custom_app_exists('linkedin');
452
- $windowslive_custom_app = $this->if_custom_app_exists('windowslive');
453
- $vkontakte_custom_app = $this->if_custom_app_exists('vkontakte');
454
- $amazon_custom_app = $this->if_custom_app_exists('amazon');
455
- $instagram_custom_app = $this->if_custom_app_exists('instagram');
456
- $yahoo_custom_app = $this->if_custom_app_exists('yahoo');
457
-
458
- if($selected_theme == 'longbuttonwithtext'){
459
- $selected_theme = 'longbutton';
460
- }
461
- if($customTheme == 'custombackground'){
462
- $customTheme = 'custom';
463
- }
464
-
465
- if(get_option('mo_openid_gdpr_consent_enable')) {
466
- $gdpr_setting = "disabled='disabled'";
467
- }
468
- else
469
- $gdpr_setting = '';
470
-
471
- $url = get_option('mo_openid_privacy_policy_url');
472
- $text = get_option('mo_openid_privacy_policy_text');
473
-
474
- if( !empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'),$text)){
475
- $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'));
476
- }else if(empty($text)){
477
- $consent_message = get_option('mo_openid_gdpr_consent_message');
478
- }
479
 
480
- if(get_option('mo_openid_gdpr_consent_enable'))
481
- {
482
- $dis = "dis";
483
- }
484
- else{
485
- $dis = '';
486
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
 
488
- if( ! is_user_logged_in() ) {
489
 
490
- if( $appsConfigured ) {
491
- $this->mo_openid_load_login_script();
492
- $html .= "<div class='mo-openid-app-icons'>
493
 
494
- <p style='color:#".$customTextColor."'> $customText</p>";
495
 
496
- if(get_option('mo_openid_gdpr_consent_enable')){
497
- $html .= '<label class="mo-consent"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox">';
498
- $html .= $consent_message.'</label><br>';
499
- }
500
-
501
- if($customTheme == 'default'){
502
 
503
- if( get_option('mo_openid_facebook_enable') ) {
504
- if($selected_theme == 'longbutton'){
505
- $html .= "<a rel='nofollow' ".$gdpr_setting." style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-mo btn-block btn-social btn-facebook btn-custom-dec login-button' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
506
- else{
507
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" .$facebook_custom_app."');\" ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
508
- }
509
 
510
- }
 
 
 
 
 
511
 
512
- if( get_option('mo_openid_google_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-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>";
515
  }
516
- else{
517
 
518
- $html .= "<a class='".$dis." login-button' rel='nofollow' onClick=\"moOpenIdLogin('google','".$google_custom_app."');\" title= ' ".$customTextofTitle." Google'><img alt='Google' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
 
 
 
519
 
520
- }
521
- }
522
 
523
- if( get_option('mo_openid_vkontakte_enable') ) {
524
- if($selected_theme == 'longbutton'){
525
- $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','" .
526
- $vkontakte_custom_app.
527
- "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
528
  }
529
- else{
530
 
531
- $html .= "<a class='".$dis." login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" .
532
- $vkontakte_custom_app.
533
- "');\" title= ' ".$customTextofTitle." Vkontakte'><img alt='Vkontakte' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
 
 
 
534
 
535
- }
536
- }
 
537
 
538
- if( get_option('mo_openid_twitter_enable') ) {
539
- if($selected_theme == 'longbutton'){
540
- $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','" .
541
- $twitter_custom_app.
542
- "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
543
- else{
544
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" .
545
- $twitter_custom_app. "');\" ><img alt='Twitter' style=' width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
546
  }
547
 
548
- }
 
 
 
 
 
 
 
 
549
 
550
- if( get_option('mo_openid_linkedin_enable') ) {
551
- if($selected_theme == 'longbutton'){
552
- $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','" .$linkedin_custom_app. "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
553
- }
554
- else{
555
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
556
- }
557
- }if( get_option('mo_openid_instagram_enable') ) {
558
- if($selected_theme == 'longbutton'){
559
- $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>";
560
  }
561
- else{
562
- $html .= "<a class='".$dis." login-button' rel='nofollow' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
563
- }
564
- }if( get_option('mo_openid_amazon_enable') ) {
565
- if($selected_theme == 'longbutton'){
566
- $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>";
567
- }
568
- else{
569
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
570
- }
571
- }if( get_option('mo_openid_salesforce_enable') ) {
572
- if($selected_theme == 'longbutton'){
573
- $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>";
574
  }
575
- else{
576
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
 
 
 
 
577
  }
578
- }if( get_option('mo_openid_windowslive_enable') ) {
579
- if($selected_theme == 'longbutton'){
580
- $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>";
 
 
 
581
  }
582
- else{
583
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='".$dis." login-button " .$selected_theme . "' ></a>";
 
 
 
 
584
  }
585
- }
586
- if (get_option('mo_openid_yahoo_enable')) {
587
- if ($selected_theme == 'longbutton') {
588
- $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-yahoo btn-custom-dec login-button' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-yahoo'></i>" . $buttonText . " Yahoo</a>";
589
- } else {
590
- $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
591
- $customTextofTitle . " Yahoo' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\" ><img alt='Yahoo' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/yahoo.png', __FILE__) . "' class='login-button " . $selected_theme . "' ></a>";
592
  }
 
 
 
 
 
 
 
593
 
 
594
  }
595
- }
596
 
597
 
 
 
 
 
 
 
 
598
 
599
- if($customTheme == 'custom'){
600
- if( get_option('mo_openid_facebook_enable') ) {
601
- if($selected_theme == 'longbutton'){
602
- $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>";
603
- }
604
- else{
605
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
606
  }
607
 
608
- }
 
 
 
 
609
 
610
- if( get_option('mo_openid_google_enable') ) {
611
- if($selected_theme == 'longbutton'){
612
- $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>";
613
  }
614
- else{
615
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' ". $customTextofTitle." Google'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
616
 
617
- }
618
- }
619
-
620
- if( get_option('mo_openid_vkontakte_enable') ) {
621
- if($selected_theme == 'longbutton'){
622
- $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>";
623
- }
624
- else{
625
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app. "');\" title= ' ". $customTextofTitle." Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
626
 
 
627
  }
628
- }
629
 
630
- if( get_option('mo_openid_twitter_enable') ) {
631
- if($selected_theme == 'longbutton'){
632
- $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>";
633
- }
634
- else{
635
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Twitter' onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
636
- }
637
 
638
- }
639
- if( get_option('mo_openid_linkedin_enable') ) {
640
- if($selected_theme == 'longbutton'){
641
- $html .= "<a rel='nofollow' ".$gdpr_setting."onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom:" . ($spacebetweenicons-5) . "px !important; background:#" . $customBackground . "!important;border-radius: " .$customBoundary. "px !important;' class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-linkedin'></i> " . $buttonText . " LinkedIn</a>";
642
- }
643
- else{
644
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
645
- }
646
- }if( get_option('mo_openid_instagram_enable') ) {
647
- if($selected_theme == 'longbutton'){
648
- $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>";
649
- }
650
- else{
651
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
652
  }
653
- }if( get_option('mo_openid_amazon_enable') ) {
654
- if($selected_theme == 'longbutton'){
655
- $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>";
656
- }
657
- else{
658
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
659
- }
660
- }if( get_option('mo_openid_salesforce_enable') ) {
661
- if($selected_theme == 'longbutton'){
662
- $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>";
663
- }
664
- else{
665
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
666
  }
667
- }if( get_option('mo_openid_windowslive_enable') ) {
668
- if($selected_theme == 'longbutton'){
669
- $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>";
 
 
 
670
  }
671
- else{
672
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
 
 
 
 
673
  }
674
- }
675
- if( get_option('mo_openid_yahoo_enable') ) {
676
- if($selected_theme == 'longbutton'){
677
- $html .= "<a rel='nofollow' ".$gdpr_setting." onClick=\"moOpenIdLogin('yahoo','" . $yahoo_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-yahoo'></i> " . $buttonText . " Yahoo</a>";
 
 
678
  }
679
- else{
680
- $html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." Yahoo' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa btn-mo fa-yahoo custom-login-button " . $selected_theme . "' ></i></a>";
 
 
 
 
681
  }
 
 
 
 
 
 
682
 
 
683
  }
684
- }
685
- $html .= '</div> <br>';
686
 
687
- }
688
- else {
689
 
690
- $html .= '<div>No apps configured. Please contact your administrator.</div>';
691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
692
  }
693
- if( $appsConfigured && get_option('moopenid_logo_check') == 1 ){
694
- $logo_html=$this->mo_openid_customize_logo();
695
- $html .= $logo_html;
696
- }
697
- ?>
698
- <?php
699
- }else {
700
- global $current_user;
701
- $current_user = wp_get_current_user();
702
- $customLogoutName = str_replace('##username##', $current_user->display_name, $customLogoutName);
703
- $flw = __($customLogoutLink,"flw");
704
- if (empty($customLogoutName) || empty($customLogoutLink)) {
705
- $html .= '<div id="logged_in_user" class="mo_openid_login_wid">' . $customLogoutName . ' <a href=' . $logoutUrl .' title=" ' . $flw . '"> ' . $flw . '</a></div>';
706
- }
707
- else {
708
- $html .= '<div id="logged_in_user" class="mo_openid_login_wid">' . $customLogoutName . ' <a href=' . $logoutUrl .' title=" ' . $flw . '"> ' . $flw . '</a></div>';
709
- }
710
  }
711
- return $html;
712
  }
713
 
714
  private function mo_openid_load_login_script() {
@@ -1011,16 +1243,28 @@ if(mo_openid_is_customer_registered()) {
1011
  elseif ((isset($_POST['selected_app'])) && (isset($_POST['selected_app_value']))){
1012
  if($_POST['selected_app_value'] == 'true'){
1013
  //if custome app enable
 
 
 
 
1014
  $option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
1015
  update_option( $option, '1');
1016
  }
1017
  else{
1018
  //if custome app Disable
 
 
 
 
1019
  $option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
1020
  update_option( $option, '0');
1021
  }
1022
  exit;
1023
  }
 
 
 
 
1024
  else if( isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
1025
  echo mo_openid_profile_completion_form($_POST["last_name"],$_POST["first_name"], $_POST["user_full_name"],$_POST["user_url"], $_POST["user_picture"], $_POST['username_field'], $_POST['email_field'],$_POST["decrypted_app_name"],$_POST["decrypted_user_id"]);
1026
  exit;
@@ -1748,7 +1992,7 @@ if(mo_openid_is_customer_registered()) {
1748
 
1749
  else if( strpos( $_SERVER['REQUEST_URI'], "openidcallback") !== false ||((strpos( $_SERVER['REQUEST_URI'], "oauth_token")!== false)&&(strpos( $_SERVER['REQUEST_URI'], "oauth_verifier") ) )) {
1750
 
1751
- if( is_user_logged_in()){
1752
  return;
1753
  }
1754
 
@@ -1864,10 +2108,24 @@ if(mo_openid_is_customer_registered()) {
1864
  $result = curl_exec($ch);
1865
 
1866
  if( curl_errno( $ch ) ){
 
1867
  echo 'Request Error:' . curl_error( $ch );
1868
  exit();
1869
  }
1870
  $access_token_json_output = json_decode($result, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
1871
 
1872
  }
1873
  else
@@ -1888,7 +2146,7 @@ if(mo_openid_is_customer_registered()) {
1888
  break;
1889
  }
1890
  else if($key == "google" && $appname == "google"){
1891
- $profile_url = 'https://www.googleapis.com/plus/v1/people/me?access_token=' .$access_token_json_output['access_token'];
1892
  break;
1893
  }
1894
  else if($key == "twitter" && $appname == "twitter"){
@@ -1925,9 +2183,23 @@ if(mo_openid_is_customer_registered()) {
1925
 
1926
  $profile_json_output = json_decode($output, true);
1927
 
1928
-
1929
  }
 
 
 
 
 
 
 
 
 
 
1930
 
 
 
 
 
 
1931
  $social_app_name = $appname;
1932
  $first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
1933
 
@@ -1941,18 +2213,13 @@ if(mo_openid_is_customer_registered()) {
1941
  $social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
1942
  }
1943
  else if ($appname == "google"){
1944
- $first_name = isset( $profile_json_output['name']['givenName']) ? $profile_json_output['name']['givenName'] : '';
1945
- $user_name = isset( $profile_json_output['displayName']) ? $profile_json_output['displayName'] : '';
1946
- $last_name = isset( $profile_json_output['name']['familyName']) ? $profile_json_output['name']['familyName'] : '';
1947
- if(isset($profile_json_output['emails'])){
1948
- foreach($profile_json_output['emails'] as $entry){
1949
- $email = isset( $entry['value']) ? $entry['value'] : '';
1950
- }
1951
- }
1952
- $user_url = isset( $profile_json_output['url']) ? $profile_json_output['url'] : '';
1953
- $user_picture = isset( $profile_json_output['image']['url']) ? $profile_json_output['image']['url'] : '';
1954
  $social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
1955
-
1956
  }
1957
  else if($appname == "twitter") {
1958
  if (isset($profile_json_output['name'])) {
@@ -2263,6 +2530,25 @@ if(mo_openid_is_customer_registered()) {
2263
  }
2264
  }
2265
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2266
 
2267
  function mo_openid_validate_otp_form($username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name ,$first_name, $decrypted_app_name, $decrypted_user_id,$message = ''){
2268
  $path = mo_openid_get_wp_style();
@@ -2273,12 +2559,26 @@ if(mo_openid_is_customer_registered()) {
2273
  else
2274
  $message=get_option('mo_email_verify_wrong_otp');
2275
 
2276
- $html = '<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2277
 
2278
  <body class="login login-action-login wp-core-ui locale-en-us">
2279
  <div style="position:fixed;background:#f1f1f1;"></div>
2280
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
2281
- <div style="width: 500px; margin: 30px auto;">
2282
  <form name="f" method="post" action="">
2283
  <div style="background: white;margin-top:-15px;padding: 15px;">
2284
 
@@ -2342,12 +2642,28 @@ if(mo_openid_is_customer_registered()) {
2342
 
2343
  function mo_openid_username_already_exists($last_name,$first_name,$user_full_name,$user_url,$user_picture,$username,$user_email, $decrypted_app_name, $decrypted_user_id){
2344
  $path = mo_openid_get_wp_style();
2345
- $html = '<style>.form-input-validation.is-error {color: #d94f4f;}</style><head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2346
 
2347
  <body class="login login-action-login wp-core-ui locale-en-us">
2348
  <div style="position:fixed;background:#f1f1f1;"></div>
2349
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
2350
- <div style="width: 500px; margin: 30px auto;">
2351
  <form name="f" method="post" action="">
2352
  <div style="background: white;margin-top:-15px;padding: 15px;">
2353
 
@@ -2391,11 +2707,25 @@ if(mo_openid_is_customer_registered()) {
2391
  function mo_openid_profile_completion_form($last_name,$first_name,$user_full_name,$user_url,$user_picture, $decrypted_user_name, $decrypted_email, $decrypted_app_name, $decrypted_user_id){
2392
  $path = mo_openid_get_wp_style();
2393
  $html = '<style>.form-input-validation.note {color: #d94f4f;}</style>
2394
- <head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2395
  <body class="login login-action-login wp-core-ui locale-en-us">
2396
  <div style="position:fixed;background:#f1f1f1;"></div>
2397
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:70px;">
2398
- <div style="width: 500px; margin: 30px auto;">
2399
  <form name="f" method="post" action="">
2400
  <div style="background: white;margin-top:-15px;padding: 15px;">
2401
 
@@ -2438,12 +2768,26 @@ if(mo_openid_is_customer_registered()) {
2438
 
2439
  function mo_openid_account_linking_form($username,$user_email,$first_name,$last_name,$user_full_name,$user_url,$user_picture,$decrypted_app_name,$decrypted_user_id){
2440
  $path = mo_openid_get_wp_style();
2441
- $html = "<head><link rel=\"stylesheet\" href=".$path. " type='text/css' media='all' /><head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2442
  <body class='login login-action-login wp-core-ui locale-en-us'>
2443
- <div style=\"position:fixed;background:#f1f1f1;\"></div>
2444
- <div id=\"add_field\" style=\"position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;\">
2445
- <div style=\"width: 500px; margin: 30px auto;\">
2446
- <form name = 'f' method = 'post' action=''>
2447
  <input type = 'hidden' name = 'option' value = 'mo_openid_account_linking'/>
2448
  <input type='hidden' name='user_email' value=".$user_email.">
2449
  <input type='hidden' name='username' value=".$username.">
@@ -2454,7 +2798,7 @@ if(mo_openid_is_customer_registered()) {
2454
  <input type='hidden' name='user_picture' value=".$user_picture.">
2455
  <input type='hidden' name='decrypted_app_name' value=".$decrypted_app_name.">
2456
  <input type='hidden' name='decrypted_user_id' value=".$decrypted_user_id.">
2457
- <div style = 'background-color:white; padding:12px; position:fixed; top:100px; right: 350px; padding-bottom: 20px;left:350px; overflow:hidden; outline:1px black;border-radius: 5px;'>
2458
 
2459
  <br>
2460
  <div style=\"text-align:center\"><span style='font-size: 24px;font-family: Arial;text-align:center'>".get_option('mo_account_linking_title')."</span></div><br>
@@ -2463,9 +2807,9 @@ if(mo_openid_is_customer_registered()) {
2463
  </div>
2464
  <br><br>
2465
 
2466
- <input type = 'submit' value = '".get_option('mo_account_linking_existing_user_button')."' name = 'mo_openid_link_account' class='button button-primary button-large' style = 'margin-left: 13%;margin-right: 17%;'/>
2467
 
2468
- <input type = 'submit' value = '".get_option('mo_account_linking_new_user_button')."' name = 'mo_openid_create_new_account' class='button button-primary button-large'/>";
2469
 
2470
  if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
2471
  $html .= mo_openid_customize_logo();
@@ -2890,5 +3234,5 @@ if(mo_openid_is_customer_registered()) {
2890
  $username = preg_replace( '|\s+|', ' ', $username );
2891
  return $username;
2892
  }
2893
- }
2894
  ?>
1
  <?php
2
  include "twitter_oauth.php";
3
 
 
4
  /*
5
  * Login Widget
6
  *
33
  return $instance;
34
  }
35
 
36
+ public function openidloginForm()
37
+ {
38
+ if (mo_openid_is_customer_registered()) {
39
+ if ($GLOBALS['pagenow'] === 'wp-login.php') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ?>
41
+ <script
42
+ src="https://code.jquery.com/jquery-1.12.4.js"
43
+ integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU="
44
+ crossorigin="anonymous"></script>
45
+ <?php
46
+ }
47
 
48
+ $selected_theme = get_option('mo_openid_login_theme');
49
+ $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') | get_option('mo_openid_yahoo_enable');
50
+ $spacebetweenicons = get_option('mo_login_icon_space');
51
+ $customWidth = get_option('mo_login_icon_custom_width');
52
+ $customHeight = get_option('mo_login_icon_custom_height');
53
+ $customSize = get_option('mo_login_icon_custom_size');
54
+ $customBackground = get_option('mo_login_icon_custom_color');
55
+ $customTheme = get_option('mo_openid_login_custom_theme');
56
+ $customTextofTitle = get_option('mo_openid_login_button_customize_text');
57
+ $customBoundary = get_option('mo_login_icon_custom_boundary');
58
+ $customLogoutName = get_option('mo_openid_login_widget_customize_logout_name_text');
59
+ $customLogoutLink = get_option('mo_openid_login_widget_customize_logout_text');
60
+ $customTextColor = get_option('mo_login_openid_login_widget_customize_textcolor');
61
+ $customText = get_option('mo_openid_login_widget_customize_text');
62
+
63
+ $facebook_custom_app = $this->if_custom_app_exists('facebook');
64
+ $google_custom_app = $this->if_custom_app_exists('google');
65
+ $twitter_custom_app = $this->if_custom_app_exists('twitter');
66
+ $salesforce_custom_app = $this->if_custom_app_exists('salesforce');
67
+ $linkedin_custom_app = $this->if_custom_app_exists('linkedin');
68
+ $windowslive_custom_app = $this->if_custom_app_exists('windowslive');
69
+ $vkontakte_custom_app = $this->if_custom_app_exists('vkontakte');
70
+ $amazon_custom_app = $this->if_custom_app_exists('amazon');
71
+ $instagram_custom_app = $this->if_custom_app_exists('instagram');
72
+ $yahoo_custom_app = $this->if_custom_app_exists('yahoo');
73
+
74
+ if (get_option('mo_openid_gdpr_consent_enable')) {
75
+ $gdpr_setting = "disabled='disabled'";
76
+ } else
77
+ $gdpr_setting = '';
78
+
79
+ $url = get_option('mo_openid_privacy_policy_url');
80
+ $text = get_option('mo_openid_privacy_policy_text');
81
+
82
+ if (!empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'), $text)) {
83
+ $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'));
84
+ } else if (empty($text)) {
85
+ $consent_message = get_option('mo_openid_gdpr_consent_message');
86
+ }
87
+
88
+ if (!is_user_logged_in()) {
89
+
90
+ if ($appsConfigured) {
91
+ $this->mo_openid_load_login_script();
92
+ ?>
93
 
94
+ <div class="mo-openid-app-icons">
95
+
96
+ <p style="color:#<?php echo $customTextColor ?>"><?php echo $customText ?>
97
+ </p>
98
+ <?php if (get_option('mo_openid_gdpr_consent_enable')) {
99
+ $consent_message = isset($consent_message) ? $consent_message : ''; ?>
100
+ <!-- space -->
101
+ <label class="mo-consent" style="padding-right: 10px;"><input type="checkbox"
102
+ onchange="mo_openid_on_consent_change(this,value)"
103
+ value="1"
104
+ id="mo_openid_consent_checkbox"><?php echo $consent_message; ?>
105
+ </label>
106
  <br>
107
+ <?php }
108
+
109
+ if ($customTheme == 'default') {
110
+
111
+ if (get_option('mo_openid_facebook_enable')) {
112
+ if ($selected_theme == 'longbutton') {
113
+
114
+ ?>
115
+
116
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
117
+ onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app ?>');"
118
+ 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;"
119
+ class="btn-mo btn btn-block btn-social btn-facebook btn-custom-size login-button">
120
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
121
+ class="fa fa-facebook"></i><?php
122
+ echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
123
+ <?php
124
+
125
+ } else {
126
+ ?>
127
+
128
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
129
+ echo "dis";
130
+ } ?> login-button" rel='nofollow'
131
+ title="<?php echo $customTextofTitle ?> Facebook"
132
+ onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app ?>');"><img
133
+ alt='Facebook'
134
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
135
+ src="<?php echo plugins_url('includes/images/icons/facebook.png', __FILE__) ?>"
136
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
137
+ echo "dis";
138
+ } ?> login-button"></a>
139
+ <?php }
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  }
 
142
 
143
+ if (get_option('mo_openid_google_enable')) {
144
+ if ($selected_theme == 'longbutton') {
145
+ ?>
146
+
147
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
148
+ onClick="moOpenIdLogin('google','<?php echo $google_custom_app ?>');"
149
+ 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;'
150
+ class='btn-mo btn btn-block btn-social btn-google btn-custom-size login-button'>
151
+ <i style='padding-top:<?php echo $customHeight - 35 ?>px !important'
152
+ class='fa fa-google'></i><?php
153
+ echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
154
+ <?php } else { ?>
155
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
156
+ echo "dis";
157
+ } ?> login-button" rel='nofollow'
158
+ onClick="moOpenIdLogin('google','<?php echo $google_custom_app ?>');"
159
+ title="<?php echo $customTextofTitle ?> Google"><img alt='Google'
160
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
161
+ src="<?php echo plugins_url('includes/images/icons/google.png', __FILE__) ?>"
162
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
163
+ echo "dis";
164
+ } ?> login-button"></a>
165
+ <?php
166
+ }
167
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
+ if (get_option('mo_openid_vkontakte_enable')) {
170
+ if ($selected_theme == 'longbutton') {
171
+ ?>
172
+
173
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
174
+ onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app ?>');"
175
+ 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;'
176
+ class='btn-mo btn btn-block btn-social btn-vk btn-custom-size login-button'>
177
+ <i style='padding-top:<?php echo $customHeight - 35 ?>px !important'
178
+ class='fa fa-vk'></i><?php
179
+ echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
180
+ <?php } else { ?>
181
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
182
+ echo "dis";
183
+ } ?> login-button" rel='nofollow'
184
+ onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app ?>');"
185
+ title="<?php echo $customTextofTitle ?> Vkontakte"><img alt='Vkontakte'
186
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
187
+ src="<?php echo plugins_url('includes/images/icons/vk.png', __FILE__) ?>"
188
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
189
+ echo "dis";
190
+ } ?> login-button"></a>
191
+ <?php
192
+ }
193
+ }
194
 
195
+ if (get_option('mo_openid_twitter_enable')) {
196
+ if ($selected_theme == 'longbutton') {
197
+ ?> <a rel='nofollow' <?php echo $gdpr_setting; ?>
198
+ onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app ?>');"
199
+ 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;"
200
+ class="btn-mo btn btn-block btn-social btn-twitter btn-custom-size login-button">
201
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
202
+ class="fa fa-twitter"></i><?php
203
+ echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
204
+ <?php } else { ?>
205
+
206
+
207
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
208
+ echo "dis";
209
+ } ?> login-button" rel='nofollow'
210
+ title="<?php echo $customTextofTitle ?> Twitter"
211
+ onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app ?>');"><img
212
+ alt='Twitter'
213
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
214
+ src="<?php echo plugins_url('includes/images/icons/twitter.png', __FILE__) ?>"
215
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
216
+ echo "dis";
217
+ } ?> login-button"></a>
218
+ <?php }
219
+ }
220
 
221
+ if (get_option('mo_openid_linkedin_enable')) {
222
+ if ($selected_theme == 'longbutton') { ?>
223
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
224
+ onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app ?>');"
225
+ 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;"
226
+ class="btn-mo btn btn-block btn-social btn-linkedin btn-custom-size login-button">
227
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
228
+ class="fa fa-linkedin"></i><?php
229
+ echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
230
+ <?php } else { ?>
231
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
232
+ echo "dis";
233
+ } ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>
234
+ title="<?php echo $customTextofTitle ?> LinkedIn"
235
+ onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app ?>');"><img
236
+ alt='LinkedIn'
237
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
238
+ src="<?php echo plugins_url('includes/images/icons/linkedin.png', __FILE__) ?>"
239
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
240
+ echo "dis";
241
+ } ?> btn-mo login-button"></a>
242
+ <?php }
243
+ }
244
 
245
+ if (get_option('mo_openid_instagram_enable')) {
246
+ if ($selected_theme == 'longbutton') { ?>
247
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
248
+ onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app ?>');"
249
+ 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;"
250
+ class="btn-mo btn btn-block btn-social btn-instagram btn-custom-size login-button">
251
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
252
+ class="fa fa-instagram"></i><?php
253
+ echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
254
+ <?php } else { ?>
255
+
256
+
257
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
258
+ echo "dis";
259
+ } ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>
260
+ title="<?php echo $customTextofTitle ?> Instagram"
261
+ onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app ?>');"><img
262
+ alt='Instagram'
263
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
264
+ src="<?php echo plugins_url('includes/images/icons/instagram.png', __FILE__) ?>"
265
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
266
+ echo "dis";
267
+ } ?> login-button"></a>
268
+ <?php }
269
+ }
270
 
271
+ if (get_option('mo_openid_amazon_enable')) {
272
+ if ($selected_theme == 'longbutton') {
273
+ ?> <a rel='nofollow' <?php echo $gdpr_setting; ?>
274
+ onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app ?>');"
275
+ 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;"
276
+ class="btn-mo btn btn-block btn-social btn-soundcloud btn-custom-size login-button">
277
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
278
+ class="fa fa-amazon"></i><?php
279
+ echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
280
+ <?php } else { ?>
281
+
282
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
283
+ echo "dis";
284
+ } ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>
285
+ title="<?php echo $customTextofTitle ?> Amazon"
286
+ onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app ?>');"><img
287
+ alt='Amazon'
288
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
289
+ src="<?php echo plugins_url('includes/images/icons/amazon.png', __FILE__) ?>"
290
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
291
+ echo "dis";
292
+ } ?> login-button"></a>
293
+ <?php }
294
+ }
295
 
296
+ if (get_option('mo_openid_salesforce_enable')) {
297
+ if ($selected_theme == 'longbutton') {
298
+ ?> <a rel='nofollow' <?php echo $gdpr_setting; ?>
299
+ onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app ?>');"
300
+ 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;"
301
+ class="btn-mo btn btn-block btn-social btn-vimeo btn-custom-size login-button">
302
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
303
+ class="fa fa-cloud"></i> <?php
304
+ echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
305
+ <?php } else { ?>
306
+
307
+
308
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
309
+ echo "dis";
310
+ } ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>
311
+ title="<?php echo $customTextofTitle ?> Salesforce"
312
+ onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app ?>');"><img
313
+ alt='Salesforce'
314
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
315
+ src="<?php echo plugins_url('includes/images/icons/salesforce.png', __FILE__) ?>"
316
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
317
+ echo "dis";
318
+ } ?> login-button"></a>
319
+ <?php }
320
+ }
321
 
322
+ if (get_option('mo_openid_windowslive_enable')) {
323
+ if ($selected_theme == 'longbutton') {
324
+ ?> <a rel='nofollow'
325
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app ?>');"
326
+ 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;"
327
+ class="btn-mo btn btn-block btn-social btn-microsoft btn-custom-size login-button">
328
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
329
+ class="fa fa-windows"></i><?php
330
+ echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
331
+ <?php } else { ?>
332
+
333
+
334
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
335
+ echo "dis";
336
+ } ?> login-button" rel='nofollow'
337
+ <?php echo $gdpr_setting; ?>title="<?php echo $customTextofTitle ?> Microsoft"
338
+ onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app ?>');"><img
339
+ alt='Windowslive'
340
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
341
+ src="<?php echo plugins_url('includes/images/icons/windowslive.png', __FILE__) ?>"
342
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
343
+ echo "dis";
344
+ } ?> login-button"></a>
345
+ <?php }
346
+ }
347
+ if (get_option('mo_openid_yahoo_enable')) {
348
+ if ($selected_theme == 'longbutton') {
349
+ ?><a rel='nofollow' <?php echo $gdpr_setting; ?>
350
+ onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app ?>');"
351
+ 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;"
352
+ class="btn-mo btn btn-block btn-social btn-yahoo btn-custom-size login-button" >
353
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
354
+ class="fa fa-yahoo"></i><?php
355
+ echo get_option('mo_openid_login_button_customize_text'); ?> Yahoo</a>
356
+ <?php
357
+ } else {
358
+ ?><a class=" <?php if (get_option('mo_openid_gdpr_consent_enable')) {
359
+ echo "dis";
360
+ } ?> login-button" rel='nofollow' title="<?php echo $customTextofTitle ?> Yahoo"
361
+ onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app ?>');"><img
362
+ alt='Yahoo'
363
+ style="width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important"
364
+ src="<?php echo plugins_url('includes/images/icons/yahoo.png', __FILE__) ?>"
365
+ class="<?php echo $selected_theme; ?> <?php if (get_option('mo_openid_gdpr_consent_enable')) {
366
+ echo "dis";
367
+ } ?> login-button"></a>
368
+ <?php }
369
+ }
370
 
 
 
371
  }
372
+ ?>
 
 
 
 
 
 
 
 
 
 
 
373
 
374
 
375
 
376
+ <?php
377
+ if ($customTheme == 'custom') {
378
+ if (get_option('mo_openid_facebook_enable')) {
379
+ if ($selected_theme == 'longbutton') {
380
+ ?> <a rel='nofollow'
381
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app ?>');"
382
+ 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;"
383
+ class="btn-mo btn btn-block btn-social btn-facebook btn-custom-size login-button">
384
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
385
+ class="fa fa-facebook"></i><?php
386
+ echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
387
+ <?php } else { ?>
388
 
389
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
390
+ echo "dis";
391
+ } ?> login-button" rel='nofollow'
392
+ onClick="moOpenIdLogin('facebook','<?php echo $facebook_custom_app ?>');"
393
+ title="<?php echo $customTextofTitle ?> Facebook"><i
394
+ style="margin-top:10px;!important;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
395
+ class="fa fa-facebook custom-login-button <?php echo $selected_theme; ?>"></i></a>
396
 
397
+ <?php }
398
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  }
 
 
 
 
 
400
 
401
+ if (get_option('mo_openid_google_enable')) {
402
+ if ($selected_theme == 'longbutton') {
403
+ ?>
404
+
405
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
406
+ onClick="moOpenIdLogin('google','<?php echo $google_custom_app ?>');"
407
+ 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;"
408
+ class="btn-mo btn btn-block btn-social btn-customtheme btn-custom-size login-button">
409
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
410
+ class="fa fa-google"></i><?php
411
+ echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
412
+ <?php } else { ?>
413
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
414
+ echo "dis";
415
+ } ?> login-button" rel='nofollow'
416
+ onClick="moOpenIdLogin('google','<?php echo $google_custom_app ?>');"
417
+ title="<?php echo $customTextofTitle ?> Google"><i
418
+ style="margin-top:10px;!important;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
419
+ class="fa fa-google custom-login-button <?php echo $selected_theme; ?>"></i></a>
420
+ <?php
421
+ }
422
  }
 
 
 
 
 
423
 
424
+ if (get_option('mo_openid_vkontakte_enable')) {
425
+ if ($selected_theme == 'longbutton') {
426
+ ?>
427
+
428
+ <a rel='nofollow'
429
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app ?>');"
430
+ 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;"
431
+ class="btn-mo btn btn-block btn-social btn-customtheme btn-custom-size login-button">
432
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
433
+ class="fa fa-vk"></i><?php
434
+ echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
435
+ <?php } else { ?>
436
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
437
+ echo "dis";
438
+ } ?> login-button" rel='nofollow'
439
+ onClick="moOpenIdLogin('vkontakte','<?php echo $vkontakte_custom_app ?>');"
440
+ title="<?php echo $customTextofTitle ?> Vkontakte"><i
441
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
442
+ class="fa fa-vk custom-login-button <?php echo $selected_theme; ?>"></i></a>
443
+ <?php
444
+ }
445
  }
 
446
 
447
+ if (get_option('mo_openid_twitter_enable')) {
448
+ if ($selected_theme == 'longbutton') {
449
+ ?>
450
+
451
+ <a rel='nofollow' <?php echo $gdpr_setting; ?>
452
+ onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app ?>');"
453
+ 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;"
454
+ class="btn btn-mo btn-block btn-social btn-customtheme btn-custom-size login-button">
455
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
456
+ class="fa fa-twitter"></i><?php
457
+ echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
458
+ <?php } else { ?>
459
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
460
+ echo "dis";
461
+ } ?> login-button" rel='nofollow'
462
+ onClick="moOpenIdLogin('twitter','<?php echo $twitter_custom_app ?>');"
463
+ title="<?php echo $customTextofTitle ?> Twitter"><i
464
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
465
+ class="fa fa-twitter custom-login-button <?php echo $selected_theme; ?>"></i></a>
466
+ <?php
467
+ }
468
+ }
 
 
 
 
 
 
469
 
470
+ if (get_option('mo_openid_linkedin_enable')) {
471
+ if ($selected_theme == 'longbutton') { ?>
472
+ <a rel='nofollow'
473
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app ?>');"
474
+ 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;"
475
+ class="btn btn-mo btn-block btn-social btn-linkedin btn-custom-size login-button">
476
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
477
+ class="fa fa-linkedin"></i><?php
478
+ echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
479
+ <?php } else { ?>
480
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
481
+ echo "dis";
482
+ } ?> login-button" rel='nofollow'
483
+ onClick="moOpenIdLogin('linkedin','<?php echo $linkedin_custom_app ?>');"
484
+ title="<?php echo $customTextofTitle ?> LinkedIn"><i
485
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
486
+ class="fa fa-linkedin custom-login-button <?php echo $selected_theme; ?>"></i></a>
487
+ <?php }
488
+ }
489
 
490
+ if (get_option('mo_openid_instagram_enable')) {
491
+ if ($selected_theme == 'longbutton') { ?>
492
+ <a rel='nofollow'
493
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app ?>');"
494
+ 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;"
495
+ class="btn btn-block btn-mo btn-social btn-instagram btn-custom-size login-button">
496
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
497
+ class="fa fa-instagram"></i><?php
498
+ echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
499
+ <?php } else { ?>
500
+
501
+
502
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
503
+ echo "dis";
504
+ } ?> login-button" rel='nofollow'
505
+ onClick="moOpenIdLogin('instagram','<?php echo $instagram_custom_app ?>');"
506
+ title="<?php echo $customTextofTitle ?> Instagram"><i
507
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
508
+ class="fa fa-instagram custom-login-button <?php echo $selected_theme; ?>"></i></a>
509
+ <?php }
510
+ }
511
 
512
+ if (get_option('mo_openid_amazon_enable')) {
513
+ if ($selected_theme == 'longbutton') {
514
+ ?> <a rel='nofollow' <?php echo $gdpr_setting; ?>
515
+ onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app ?>');"
516
+ 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;"
517
+ class="btn btn-mo btn-block btn-social btn-linkedin btn-custom-size login-button"><i
518
+ style="padding-top:<?php echo $customHeight - 35 ?>px !important"
519
+ class="fa fa-amazon"></i><?php
520
+ echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
521
+ <?php } else { ?>
522
+
523
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
524
+ echo "dis";
525
+ } ?> login-button" rel='nofollow'
526
+ onClick="moOpenIdLogin('amazon','<?php echo $amazon_custom_app ?>');"
527
+ title="<?php echo $customTextofTitle ?> Amazon"><i
528
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
529
+ class="fa fa-amazon custom-login-button <?php echo $selected_theme; ?>"></i></a>
530
+ <?php }
531
+ }
532
 
533
+ if (get_option('mo_openid_salesforce_enable')) {
534
+ if ($selected_theme == 'longbutton') {
535
+ ?> <a rel='nofollow'
536
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app ?>');"
537
+ 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;"
538
+ class="btn btn-mo btn-block btn-social btn-linkedin btn-custom-size login-button"><i
539
+ style="padding-top:<?php echo $customHeight - 35 ?>px !important"
540
+ class="fa fa-cloud"></i> <?php
541
+ echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
542
+ <?php } else { ?>
543
+
544
+
545
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
546
+ echo "dis";
547
+ } ?> login-button" rel='nofollow'
548
+ onClick="moOpenIdLogin('salesforce','<?php echo $salesforce_custom_app ?>');"
549
+ title="<?php echo $customTextofTitle ?> Salesforce"><i
550
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px "
551
+ class="fa fa-cloud custom-login-button <?php echo $selected_theme; ?>"></i></a>
552
+ <?php }
553
+ }
554
 
555
+ if (get_option('mo_openid_windowslive_enable')) {
556
+ if ($selected_theme == 'longbutton') {
557
+ ?> <a rel='nofollow'
558
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app ?>');"
559
+ 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;"
560
+ class="btn btn-mo btn-block btn-social btn-microsoft btn-custom-size login-button">
561
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
562
+ class="fa fa-windows"></i><?php
563
+ echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
564
+ <?php } else { ?>
565
+
566
+
567
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
568
+ echo "dis";
569
+ } ?> login-button" rel='nofollow'
570
+ onClick="moOpenIdLogin('windowslive','<?php echo $windowslive_custom_app ?>');"
571
+ title="<?php echo $customTextofTitle ?> Microsoft"><i
572
+ style="margin-top:10px;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
573
+ class=" fa fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
574
+ <?php }
575
+ }
576
+ if (get_option('mo_openid_yahoo_enable')) {
577
+ if ($selected_theme == 'longbutton') {
578
+ ?> <a rel='nofollow'
579
+ <?php echo $gdpr_setting; ?>onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app ?>');"
580
+ 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;"
581
+ class="btn-mo btn btn-block btn-social btn-yahoo btn-custom-size login-button">
582
+ <i style="padding-top:<?php echo $customHeight - 35 ?>px !important"
583
+ class="fa fa-yahoo"></i><?php
584
+ echo get_option('mo_openid_login_button_customize_text'); ?> Yahoo</a>
585
+ <?php } else { ?>
586
+ <a class="<?php if (get_option('mo_openid_gdpr_consent_enable')) {
587
+ echo "dis";
588
+ } ?> login-button" rel='nofollow'
589
+ onClick="moOpenIdLogin('yahoo','<?php echo $yahoo_custom_app ?>');"
590
+ title="<?php echo $customTextofTitle ?> Yahoo"><i
591
+ style="margin-top:10px;!important;width:<?php echo $customSize ?>px !important;height:<?php echo $customSize ?>px !important;margin-left:<?php echo $spacebetweenicons - 4 ?>px !important;background:<?php echo "#" . $customBackground ?> !important;font-size:<?php echo $customSize - 16 ?>px !important;"
592
+ class="fa fa-yahoo custom-login-button <?php echo $selected_theme; ?>"></i></a>
593
+ <?php }
594
 
595
+ }
596
 
 
 
 
 
 
 
 
 
 
 
 
597
 
598
  }
599
+ ?>
600
+ <br>
601
+ </div>
602
+ <?php
603
 
604
 
605
+ } else {
606
  ?>
607
+ <div>No apps configured. Please contact your administrator.</div>
608
+ <?php
609
+ }
610
+ if ($appsConfigured && get_option('moopenid_logo_check') == 1) {
611
+ $logo_html = $this->mo_openid_customize_logo();
612
+ echo $logo_html;
613
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
614
  ?>
615
+ <br/>
 
 
616
  <?php
617
+ } else {
618
+ global $current_user;
619
+ $current_user = wp_get_current_user();
620
+ $customLogoutName = str_replace('##username##', $current_user->display_name, $customLogoutName);
621
+ $link_with_username = $customLogoutName;
622
+ if (empty($customLogoutName) || empty($customLogoutLink)) {
623
+ ?>
624
+ <div id="logged_in_user" class="mo_openid_login_wid">
625
+ <li><?php echo $link_with_username; ?> <a href="<?php echo wp_logout_url(site_url()); ?>"
626
+ title="<?php _e('Logout', 'flw'); ?>"><?php _e($customLogoutLink, 'flw'); ?></a>
627
+ </li>
628
+ </div>
629
+ <?php
630
 
631
+ } else {
632
+ ?>
633
+ <div id="logged_in_user" class="mo_openid_login_wid">
634
+ <li><?php echo $link_with_username; ?> <a href="<?php echo wp_logout_url(site_url()); ?>"
635
+ title="<?php _e('Logout', 'flw'); ?>"><?php _e($customLogoutLink, 'flw'); ?></a>
636
+ </li>
637
+ </div>
638
+ <?php
639
+ }
640
  }
641
  }
642
  }
665
  return 'false';
666
  }
667
 
668
+ public function openidloginFormShortCode( $atts )
669
+ {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
670
 
671
+ if (mo_openid_is_customer_registered()) {
672
+ global $post;
673
+ $html = '';
674
+ //$this->error_message();
675
+ $selected_theme = isset($atts['shape']) ? $atts['shape'] : get_option('mo_openid_login_theme');
676
+ $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') | get_option('mo_openid_yahoo_enable');
677
+ $spacebetweenicons = isset($atts['space']) ? $atts['space'] : get_option('mo_login_icon_space');
678
+ $customWidth = isset($atts['width']) ? $atts['width'] : get_option('mo_login_icon_custom_width');
679
+ $customHeight = isset($atts['height']) ? $atts['height'] : get_option('mo_login_icon_custom_height');
680
+ $customSize = isset($atts['size']) ? $atts['size'] : get_option('mo_login_icon_custom_size');
681
+ $customBackground = isset($atts['background']) ? $atts['background'] : get_option('mo_login_icon_custom_color');
682
+ $customTheme = isset($atts['theme']) ? $atts['theme'] : get_option('mo_openid_login_custom_theme');
683
+ $customText = get_option('mo_openid_login_widget_customize_text');
684
+ $buttonText = get_option('mo_openid_login_button_customize_text');
685
+ $customTextofTitle = get_option('mo_openid_login_button_customize_text');
686
+ $logoutUrl = wp_logout_url(site_url());
687
+ $customBoundary = isset($atts['edge']) ? $atts['edge'] : get_option('mo_login_icon_custom_boundary');
688
+ $customLogoutName = get_option('mo_openid_login_widget_customize_logout_name_text');
689
+ $customLogoutLink = get_option('mo_openid_login_widget_customize_logout_text');
690
+ $customTextColor = isset($atts['color']) ? $atts['color'] : get_option('mo_login_openid_login_widget_customize_textcolor');
691
+ $customText = isset($atts['heading']) ? $atts['heading'] : get_option('mo_openid_login_widget_customize_text');
692
+
693
+ $facebook_custom_app = $this->if_custom_app_exists('facebook');
694
+ $google_custom_app = $this->if_custom_app_exists('google');
695
+ $twitter_custom_app = $this->if_custom_app_exists('twitter');
696
+ $salesforce_custom_app = $this->if_custom_app_exists('salesforce');
697
+ $linkedin_custom_app = $this->if_custom_app_exists('linkedin');
698
+ $windowslive_custom_app = $this->if_custom_app_exists('windowslive');
699
+ $vkontakte_custom_app = $this->if_custom_app_exists('vkontakte');
700
+ $amazon_custom_app = $this->if_custom_app_exists('amazon');
701
+ $instagram_custom_app = $this->if_custom_app_exists('instagram');
702
+ $yahoo_custom_app = $this->if_custom_app_exists('yahoo');
703
+
704
+ if ($selected_theme == 'longbuttonwithtext') {
705
+ $selected_theme = 'longbutton';
706
+ }
707
+ if ($customTheme == 'custombackground') {
708
+ $customTheme = 'custom';
709
+ }
710
+
711
+ if (get_option('mo_openid_gdpr_consent_enable')) {
712
+ $gdpr_setting = "disabled='disabled'";
713
+ } else
714
+ $gdpr_setting = '';
715
+
716
+ $url = get_option('mo_openid_privacy_policy_url');
717
+ $text = get_option('mo_openid_privacy_policy_text');
718
+
719
+ if (!empty($text) && strpos(get_option('mo_openid_gdpr_consent_message'), $text)) {
720
+ $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'));
721
+ } else if (empty($text)) {
722
+ $consent_message = get_option('mo_openid_gdpr_consent_message');
723
+ }
724
+
725
+ if (get_option('mo_openid_gdpr_consent_enable')) {
726
+ $dis = "dis";
727
+ } else {
728
+ $dis = '';
729
+ }
730
 
731
+ if (!is_user_logged_in()) {
732
 
733
+ if ($appsConfigured) {
734
+ $this->mo_openid_load_login_script();
735
+ $html .= "<div class='mo-openid-app-icons'>
736
 
737
+ <p style='color:#" . $customTextColor . "'> $customText</p>";
738
 
739
+ if (get_option('mo_openid_gdpr_consent_enable')) {
740
+ $html .= '<label class="mo-consent"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox">';
741
+ $html .= $consent_message . '</label><br>';
742
+ }
 
 
743
 
744
+ if ($customTheme == 'default') {
 
 
 
 
 
745
 
746
+ if (get_option('mo_openid_facebook_enable')) {
747
+ if ($selected_theme == 'longbutton') {
748
+ $html .= "<a rel='nofollow' " . $gdpr_setting . " style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;' class='btn btn-mo btn-block btn-social btn-facebook btn-custom-dec login-button' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>";
749
+ } else {
750
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><img alt='Facebook' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/facebook.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
751
+ }
752
 
 
 
 
753
  }
 
754
 
755
+ if (get_option('mo_openid_google_enable')) {
756
+ if ($selected_theme == 'longbutton') {
757
+ $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'></i>" . $buttonText . " Google</a>";
758
+ } else {
759
 
760
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' " . $customTextofTitle . " Google'><img alt='Google' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
 
761
 
762
+ }
 
 
 
 
763
  }
 
764
 
765
+ if (get_option('mo_openid_vkontakte_enable')) {
766
+ if ($selected_theme == 'longbutton') {
767
+ $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','" .
768
+ $vkontakte_custom_app .
769
+ "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
770
+ } else {
771
 
772
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" .
773
+ $vkontakte_custom_app .
774
+ "');\" title= ' " . $customTextofTitle . " Vkontakte'><img alt='Vkontakte' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
775
 
776
+ }
 
 
 
 
 
 
 
777
  }
778
 
779
+ if (get_option('mo_openid_twitter_enable')) {
780
+ if ($selected_theme == 'longbutton') {
781
+ $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','" .
782
+ $twitter_custom_app .
783
+ "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>";
784
+ } else {
785
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter' onClick=\"moOpenIdLogin('twitter','" .
786
+ $twitter_custom_app . "');\" ><img alt='Twitter' style=' width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
787
+ }
788
 
 
 
 
 
 
 
 
 
 
 
789
  }
790
+
791
+ if (get_option('mo_openid_linkedin_enable')) {
792
+ if ($selected_theme == 'longbutton') {
793
+ $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','" . $linkedin_custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
794
+ } else {
795
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><img alt='LinkedIn' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
796
+ }
 
 
 
 
 
 
797
  }
798
+ if (get_option('mo_openid_instagram_enable')) {
799
+ if ($selected_theme == 'longbutton') {
800
+ $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>";
801
+ } else {
802
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' " . $customTextofTitle . " Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/instagram.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
803
+ }
804
  }
805
+ if (get_option('mo_openid_amazon_enable')) {
806
+ if ($selected_theme == 'longbutton') {
807
+ $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>";
808
+ } else {
809
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><img alt='Amazon' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/amazon.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
810
+ }
811
  }
812
+ if (get_option('mo_openid_salesforce_enable')) {
813
+ if ($selected_theme == 'longbutton') {
814
+ $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>";
815
+ } else {
816
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><img alt='Salesforce' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/salesforce.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
817
+ }
818
  }
819
+ if (get_option('mo_openid_windowslive_enable')) {
820
+ if ($selected_theme == 'longbutton') {
821
+ $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>";
822
+ } else {
823
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><img alt='Windowslive' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/windowslive.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
824
+ }
 
825
  }
826
+ if (get_option('mo_openid_yahoo_enable')) {
827
+ if ($selected_theme == 'longbutton') {
828
+ $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-yahoo btn-custom-dec login-button' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-yahoo'></i>" . $buttonText . " Yahoo</a>";
829
+ } else {
830
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
831
+ $customTextofTitle . " Yahoo' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\" ><img alt='Yahoo' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/yahoo.png', __FILE__) . "' class='login-button " . $selected_theme . "' ></a>";
832
+ }
833
 
834
+ }
835
  }
 
836
 
837
 
838
+ if ($customTheme == 'custom') {
839
+ if (get_option('mo_openid_facebook_enable')) {
840
+ if ($selected_theme == 'longbutton') {
841
+ $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>";
842
+ } else {
843
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Facebook' onClick=\"moOpenIdLogin('facebook','" . $facebook_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
844
+ }
845
 
 
 
 
 
 
 
 
846
  }
847
 
848
+ if (get_option('mo_openid_google_enable')) {
849
+ if ($selected_theme == 'longbutton') {
850
+ $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'></i> " . $buttonText . " Google</a>";
851
+ } else {
852
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Google' onClick=\"moOpenIdLogin('google','" . $google_custom_app . "');\" title= ' " . $customTextofTitle . " Google'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-google custom-login-button " . $selected_theme . "' ></i></a>";
853
 
854
+ }
 
 
855
  }
 
 
856
 
857
+ if (get_option('mo_openid_vkontakte_enable')) {
858
+ if ($selected_theme == 'longbutton') {
859
+ $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>";
860
+ } else {
861
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app . "');\" title= ' " . $customTextofTitle . " Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
 
 
 
 
862
 
863
+ }
864
  }
 
865
 
866
+ if (get_option('mo_openid_twitter_enable')) {
867
+ if ($selected_theme == 'longbutton') {
868
+ $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>";
869
+ } else {
870
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter' onClick=\"moOpenIdLogin('twitter','" . $twitter_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
871
+ }
 
872
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
  }
874
+ if (get_option('mo_openid_linkedin_enable')) {
875
+ if ($selected_theme == 'longbutton') {
876
+ $html .= "<a rel='nofollow' " . $gdpr_setting . "onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;' class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-linkedin'></i> " . $buttonText . " LinkedIn</a>";
877
+ } else {
878
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
879
+ }
 
 
 
 
 
 
 
880
  }
881
+ if (get_option('mo_openid_instagram_enable')) {
882
+ if ($selected_theme == 'longbutton') {
883
+ $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>";
884
+ } else {
885
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
886
+ }
887
  }
888
+ if (get_option('mo_openid_amazon_enable')) {
889
+ if ($selected_theme == 'longbutton') {
890
+ $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>";
891
+ } else {
892
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' onClick=\"moOpenIdLogin('amazon','" . $amazon_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
893
+ }
894
  }
895
+ if (get_option('mo_openid_salesforce_enable')) {
896
+ if ($selected_theme == 'longbutton') {
897
+ $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>";
898
+ } else {
899
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $salesforce_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
900
+ }
901
  }
902
+ if (get_option('mo_openid_windowslive_enable')) {
903
+ if ($selected_theme == 'longbutton') {
904
+ $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>";
905
+ } else {
906
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $windowslive_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
907
+ }
908
  }
909
+ if (get_option('mo_openid_yahoo_enable')) {
910
+ if ($selected_theme == 'longbutton') {
911
+ $html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('yahoo','" . $yahoo_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-yahoo'></i> " . $buttonText . " Yahoo</a>";
912
+ } else {
913
+ $html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Yahoo' onClick=\"moOpenIdLogin('yahoo','" . $yahoo_custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-yahoo custom-login-button " . $selected_theme . "' ></i></a>";
914
+ }
915
 
916
+ }
917
  }
918
+ $html .= '</div> <br>';
 
919
 
920
+ } else {
 
921
 
922
+ $html .= '<div>No apps configured. Please contact your administrator.</div>';
923
 
924
+ }
925
+ if ($appsConfigured && get_option('moopenid_logo_check') == 1) {
926
+ $logo_html = $this->mo_openid_customize_logo();
927
+ $html .= $logo_html;
928
+ }
929
+ ?>
930
+ <?php
931
+ } else {
932
+ global $current_user;
933
+ $current_user = wp_get_current_user();
934
+ $customLogoutName = str_replace('##username##', $current_user->display_name, $customLogoutName);
935
+ $flw = __($customLogoutLink, "flw");
936
+ if (empty($customLogoutName) || empty($customLogoutLink)) {
937
+ $html .= '<div id="logged_in_user" class="mo_openid_login_wid">' . $customLogoutName . ' <a href=' . $logoutUrl . ' title=" ' . $flw . '"> ' . $flw . '</a></div>';
938
+ } else {
939
+ $html .= '<div id="logged_in_user" class="mo_openid_login_wid">' . $customLogoutName . ' <a href=' . $logoutUrl . ' title=" ' . $flw . '"> ' . $flw . '</a></div>';
940
+ }
941
  }
942
+ return $html;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
943
  }
 
944
  }
945
 
946
  private function mo_openid_load_login_script() {
1243
  elseif ((isset($_POST['selected_app'])) && (isset($_POST['selected_app_value']))){
1244
  if($_POST['selected_app_value'] == 'true'){
1245
  //if custome app enable
1246
+ if($_POST['selected_app']=="facebook")
1247
+ {
1248
+ update_option('mo_openid_facebook_enable',1);
1249
+ }
1250
  $option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
1251
  update_option( $option, '1');
1252
  }
1253
  else{
1254
  //if custome app Disable
1255
+ if($_POST['selected_app']=="facebook")
1256
+ {
1257
+ update_option('mo_openid_facebook_enable',0);
1258
+ }
1259
  $option = 'mo_openid_enable_custom_app_' . $_POST['selected_app'];
1260
  update_option( $option, '0');
1261
  }
1262
  exit;
1263
  }
1264
+ else if ((isset($_POST['appname'])) && (isset($_POST['test_configuration']))){
1265
+ update_option( 'mo_openid_test_configuration', 1);
1266
+ exit;
1267
+ }
1268
  else if( isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
1269
  echo mo_openid_profile_completion_form($_POST["last_name"],$_POST["first_name"], $_POST["user_full_name"],$_POST["user_url"], $_POST["user_picture"], $_POST['username_field'], $_POST['email_field'],$_POST["decrypted_app_name"],$_POST["decrypted_user_id"]);
1270
  exit;
1992
 
1993
  else if( strpos( $_SERVER['REQUEST_URI'], "openidcallback") !== false ||((strpos( $_SERVER['REQUEST_URI'], "oauth_token")!== false)&&(strpos( $_SERVER['REQUEST_URI'], "oauth_verifier") ) )) {
1994
 
1995
+ if( is_user_logged_in() && get_option('mo_openid_test_configuration') != 1){
1996
  return;
1997
  }
1998
 
2108
  $result = curl_exec($ch);
2109
 
2110
  if( curl_errno( $ch ) ){
2111
+ update_option( 'mo_openid_test_configuration', 0);
2112
  echo 'Request Error:' . curl_error( $ch );
2113
  exit();
2114
  }
2115
  $access_token_json_output = json_decode($result, true);
2116
+ // this handles incorrect client secret for all apps.
2117
+ if ((array_key_exists('error', $access_token_json_output)) || array_key_exists('error_message', $access_token_json_output)){
2118
+ if( is_user_logged_in() && get_option('mo_openid_test_configuration') == 1 ) {
2119
+ update_option('mo_openid_test_configuration', 0);
2120
+ //Test configuration failed window.
2121
+ echo '<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;">TEST FAILED</div>
2122
+ <div style="color: #a94442;font-size:14pt; margin-bottom:20px;">WARNING: Client secret is incorrect for this app. Please check the client secret and try again.<br/>';
2123
+ print_r($access_token_json_output);
2124
+ echo '</div>
2125
+ <div style="display:block;text-align:center;margin-bottom:4%;"><img style="width:15%;"src="' . plugin_dir_url(__FILE__) . '/includes/images/wrong.png"></div>';
2126
+ exit;
2127
+ }
2128
+ }
2129
 
2130
  }
2131
  else
2146
  break;
2147
  }
2148
  else if($key == "google" && $appname == "google"){
2149
+ $profile_url = 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' .$access_token_json_output['access_token'];
2150
  break;
2151
  }
2152
  else if($key == "twitter" && $appname == "twitter"){
2183
 
2184
  $profile_json_output = json_decode($output, true);
2185
 
 
2186
  }
2187
+ //Test Configuration
2188
+ if( is_user_logged_in() && get_option('mo_openid_test_configuration') == 1 )
2189
+ {
2190
+ update_option( 'mo_openid_test_configuration', 0);
2191
+ $print = '<div style="color: #3c763d;
2192
+ background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; border:1px solid #AEDB9A; font-size:18pt;">TEST SUCCESSFUL</div>
2193
+ <div style="display:block;text-align:center;margin-bottom:1%;"><img style="width:15%;"src="'. plugin_dir_url(__FILE__) . '/includes/images/green_check.png"></div>';
2194
+
2195
+
2196
+ $print .= mo_openid_json_to_htmltable($profile_json_output);
2197
 
2198
+
2199
+
2200
+ echo $print;
2201
+ exit;
2202
+ }
2203
  $social_app_name = $appname;
2204
  $first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
2205
 
2213
  $social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
2214
  }
2215
  else if ($appname == "google"){
2216
+ $first_name = isset( $profile_json_output['given_name']) ? $profile_json_output['given_name'] : '';
2217
+ $user_name = isset( $profile_json_output['name']) ? $profile_json_output['name'] : '';
2218
+ $last_name = isset( $profile_json_output['family_name']) ? $profile_json_output['family_name'] : '';
2219
+ $email = isset( $profile_json_output['email']) ? $profile_json_output['email'] : '';
2220
+ $user_url = isset( $profile_json_output['link']) ? $profile_json_output['link'] : '';
2221
+ $user_picture = isset( $profile_json_output['picture']) ? $profile_json_output['picture'] : '';
 
 
 
 
2222
  $social_user_id = isset( $profile_json_output['id']) ? $profile_json_output['id'] : '';
 
2223
  }
2224
  else if($appname == "twitter") {
2225
  if (isset($profile_json_output['name'])) {
2530
  }
2531
  }
2532
  }
2533
+ function mo_openid_json_to_htmltable($arr) {
2534
+ $str = "<table border='1'><tbody>";
2535
+ foreach ($arr as $key => $val) {
2536
+ $str .= "<tr>";
2537
+ $str .= "<td>$key</td>";
2538
+ $str .= "<td>";
2539
+ if (is_array($val)) {
2540
+ if (!empty($val)) {
2541
+ $str .= mo_openid_json_to_htmltable($val);
2542
+ }
2543
+ } else {
2544
+ $str .= "<strong>$val</strong>";
2545
+ }
2546
+ $str .= "</td></tr>";
2547
+ }
2548
+ $str .= "</tbody></table>";
2549
+
2550
+ return $str;
2551
+ }
2552
 
2553
  function mo_openid_validate_otp_form($username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name ,$first_name, $decrypted_app_name, $decrypted_user_id,$message = ''){
2554
  $path = mo_openid_get_wp_style();
2559
  else
2560
  $message=get_option('mo_email_verify_wrong_otp');
2561
 
2562
+ $html = '
2563
+ <style>
2564
+ .mocomp {
2565
+ margin: auto !important;
2566
+ }
2567
+ @media only screen and (max-width: 600px) {
2568
+ .mocomp {width: 90%;}
2569
+ }
2570
+ @media only screen and (min-width: 600px) {
2571
+ .mocomp {width: 500px;}
2572
+ }
2573
+ </style>
2574
+ <head>
2575
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
2576
+ <link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
2577
 
2578
  <body class="login login-action-login wp-core-ui locale-en-us">
2579
  <div style="position:fixed;background:#f1f1f1;"></div>
2580
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
2581
+ <div class="mocomp">
2582
  <form name="f" method="post" action="">
2583
  <div style="background: white;margin-top:-15px;padding: 15px;">
2584
 
2642
 
2643
  function mo_openid_username_already_exists($last_name,$first_name,$user_full_name,$user_url,$user_picture,$username,$user_email, $decrypted_app_name, $decrypted_user_id){
2644
  $path = mo_openid_get_wp_style();
2645
+ $html = '<style>.form-input-validation.is-error {color: #d94f4f;}</style>
2646
+ <style>
2647
+ .mocomp {
2648
+ margin: auto !important;
2649
+ }
2650
+ @media only screen and (max-width: 600px) {
2651
+ .mocomp {width: 90%;}
2652
+ }
2653
+ @media only screen and (min-width: 600px) {
2654
+ .mocomp {width: 500px;}
2655
+ }
2656
+ </style>
2657
+
2658
+
2659
+ <head>
2660
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
2661
+ <link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
2662
 
2663
  <body class="login login-action-login wp-core-ui locale-en-us">
2664
  <div style="position:fixed;background:#f1f1f1;"></div>
2665
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
2666
+ <div class="mocomp">
2667
  <form name="f" method="post" action="">
2668
  <div style="background: white;margin-top:-15px;padding: 15px;">
2669
 
2707
  function mo_openid_profile_completion_form($last_name,$first_name,$user_full_name,$user_url,$user_picture, $decrypted_user_name, $decrypted_email, $decrypted_app_name, $decrypted_user_id){
2708
  $path = mo_openid_get_wp_style();
2709
  $html = '<style>.form-input-validation.note {color: #d94f4f;}</style>
2710
+ <style>
2711
+ .mocomp {
2712
+ margin: auto !important;
2713
+ }
2714
+ @media only screen and (max-width: 600px) {
2715
+ .mocomp {width: 90%;}
2716
+ }
2717
+ @media only screen and (min-width: 600px) {
2718
+ .mocomp {width: 500px;}
2719
+ }
2720
+ </style>
2721
+
2722
+ <head>
2723
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
2724
+ <link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
2725
  <body class="login login-action-login wp-core-ui locale-en-us">
2726
  <div style="position:fixed;background:#f1f1f1;"></div>
2727
  <div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:70px;">
2728
+ <div class="mocomp">
2729
  <form name="f" method="post" action="">
2730
  <div style="background: white;margin-top:-15px;padding: 15px;">
2731
 
2768
 
2769
  function mo_openid_account_linking_form($username,$user_email,$first_name,$last_name,$user_full_name,$user_url,$user_picture,$decrypted_app_name,$decrypted_user_id){
2770
  $path = mo_openid_get_wp_style();
2771
+ $html = "
2772
+ <style>
2773
+ .mocomp {
2774
+ margin: auto !important;
2775
+ }
2776
+ @media only screen and (max-width: 600px) {
2777
+ .mocomp {width: 90%;}
2778
+ }
2779
+ @media only screen and (min-width: 600px) {
2780
+ .mocomp {width: 500px;}
2781
+ }
2782
+ </style>
2783
+ <head>
2784
+ <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
2785
+ <link rel=\"stylesheet\" href=".$path. " type='text/css' media='all' /><head>
2786
  <body class='login login-action-login wp-core-ui locale-en-us'>
2787
+ <div style=\"background:#f1f1f1;\"></div>
2788
+ <div id=\"add_field\" style=\"top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:2%;\">
2789
+ <div class='mocomp'>
2790
+ <form name = 'f' method = 'post' action='' style='margin-left: 2%;margin-right: 2%;'>
2791
  <input type = 'hidden' name = 'option' value = 'mo_openid_account_linking'/>
2792
  <input type='hidden' name='user_email' value=".$user_email.">
2793
  <input type='hidden' name='username' value=".$username.">
2798
  <input type='hidden' name='user_picture' value=".$user_picture.">
2799
  <input type='hidden' name='decrypted_app_name' value=".$decrypted_app_name.">
2800
  <input type='hidden' name='decrypted_user_id' value=".$decrypted_user_id.">
2801
+ <div style = 'background-color:white; padding:12px; top:100px; right: 350px; padding-bottom: 20px;left:350px; overflow:hidden; outline:1px black;border-radius: 5px;'>
2802
 
2803
  <br>
2804
  <div style=\"text-align:center\"><span style='font-size: 24px;font-family: Arial;text-align:center'>".get_option('mo_account_linking_title')."</span></div><br>
2807
  </div>
2808
  <br><br>
2809
 
2810
+ <input type = 'submit' value = '".get_option('mo_account_linking_existing_user_button')."' name = 'mo_openid_link_account' class='button button-primary button-large' style = 'margin-left: 3%;margin-right: 0%;'/>
2811
 
2812
+ <input type = 'submit' value = '".get_option('mo_account_linking_new_user_button')."' name = 'mo_openid_create_new_account' class='button button-primary button-large' style = 'margin-left: 5%margin-right: 5%;'/>";
2813
 
2814
  if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
2815
  $html .= mo_openid_customize_logo();
3234
  $username = preg_replace( '|\s+|', ' ', $username );
3235
  return $username;
3236
  }
3237
+
3238
  ?>
includes/images/green_check.png ADDED
Binary file
includes/images/icons/google.png CHANGED
Binary file
includes/images/wrong.png ADDED
Binary file
includes/js/jquery.cookie.min.js CHANGED
@@ -5,4 +5,7 @@
5
  * Copyright 2013 Klaus Hartl
6
  * Released under the MIT license
7
  */
 
 
 
8
  !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
5
  * Copyright 2013 Klaus Hartl
6
  * Released under the MIT license
7
  */
8
+ if (window.location.hash && window.location.hash == '#_=_') {
9
+ window.location.href = window.location.href.split('#_=_')[0];
10
+ }
11
  !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
miniorange_openid_sso_settings.php CHANGED
@@ -3,10 +3,9 @@
3
  * Plugin Name: Social Login, Social Sharing by miniOrange
4
  * Plugin URI: https://www.miniorange.com/social-login
5
  * Description: Allow your users to login, comment and share with social login apps like Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
6
- * Version: 7.1.4
7
  * Author: social login (miniOrange)
8
- * Author URI: https://www.miniorange.com/social-login
9
- * License: GPL2
10
  */
11
 
12
  require('miniorange_openid_sso_settings_page.php');
@@ -14,7 +13,7 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
14
  require('class-mo-openid-sso-customer.php');
15
  require('class-mo-openid-sso-shortcode-buttons.php');
16
  require('class-mo-openid-social-comment.php');
17
- define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.1.4');
18
  include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
19
  class Miniorange_OpenID_SSO {
20
 
@@ -227,6 +226,8 @@ class Miniorange_OpenID_SSO {
227
  add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
228
  add_option( 'mo_openid_enable_profile_completion','0' );
229
  add_option( 'moopenid_logo_check','1' );
 
 
230
 
231
  //profile completion
232
  add_option( 'mo_profile_complete_title','Profile Completion');
3
  * Plugin Name: Social Login, Social Sharing by miniOrange
4
  * Plugin URI: https://www.miniorange.com/social-login
5
  * Description: Allow your users to login, comment and share with social login apps like Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
6
+ * Version: 7.1.5
7
  * Author: social login (miniOrange)
8
+ * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
 
9
  */
10
 
11
  require('miniorange_openid_sso_settings_page.php');
13
  require('class-mo-openid-sso-customer.php');
14
  require('class-mo-openid-sso-shortcode-buttons.php');
15
  require('class-mo-openid-social-comment.php');
16
+ define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.1.5');
17
  include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
18
  class Miniorange_OpenID_SSO {
19
 
226
  add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
227
  add_option( 'mo_openid_enable_profile_completion','0' );
228
  add_option( 'moopenid_logo_check','1' );
229
+ add_option( 'mo_openid_test_configuration', 0);
230
+
231
 
232
  //profile completion
233
  add_option( 'mo_profile_complete_title','Profile Completion');
miniorange_openid_sso_settings_page.php CHANGED
@@ -2,7 +2,10 @@
2
  ob_start();
3
  function mo_register_openid() {
4
 
5
-
 
 
 
6
  if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
7
  $active_tab = $_GET[ 'tab' ];
8
  } else if(mo_openid_is_customer_registered()) {
@@ -18,10 +21,9 @@ function mo_register_openid() {
18
  <p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
19
  <?php
20
  }?>
21
- <div >
22
  <table>
23
  <tr><td>
24
-
25
  <img id="logo" style="margin-top: 25px" src="<?php echo plugin_dir_url(__FILE__);?>includes/images/logo.png">
26
  </td> <td>&nbsp;<a style="text-decoration:none" href="https://www.miniorange.com/social-login-social-sharing/" target="_blank"><h1 style="color: #c9302c">miniOrange Social Login</h1></a></td>
27
  <td> &nbsp;&nbsp;&nbsp;&nbsp; <a id="pricing" style="margin-top: 23px" class="button"<?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
@@ -365,7 +367,6 @@ function mo_openid_apps_config() {
365
  <div class="mo_openid_table_layout">
366
 
367
 
368
-
369
  <table>
370
  <tr>
371
  <td colspan="2">
@@ -380,23 +381,13 @@ function mo_openid_apps_config() {
380
 
381
  <table>
382
  <tr id="select_app"><td><table style="width: 100%"> <h3>Select Apps</h3>
383
- <p>Select applications to enable social login</p>
384
 
385
  <tr >
386
  <td>
387
  <table style="width:100%">
388
  <tr >
389
- <td>
390
- <div class="tooltip">
391
-
392
- <input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" onchange="previewLoginIcons();"
393
- <?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook <i class="fa fa-exclamation" aria-hidden="true"> </i> </strong>
394
-
395
- <span class="tooltiptext" style="width: 235px;transition: visibility 0.5s; "> There is an issue with Facebook default app which is provided by us as a result of a change in Facebook Policies. Please configure <a class="mo-tomato" href='<?php echo admin_url() ?>admin.php?page=mo_openid_settings&tab=custom_app&action=add'>custom app</a> for Facebook. </span>
396
- </div>
397
- </td>
398
-
399
- <td>
400
  <input type="checkbox" id="google_enable" class="app_enable" name="mo_openid_google_enable" value="1" onchange="previewLoginIcons();"
401
  <?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
402
  </td>
@@ -413,12 +404,13 @@ function mo_openid_apps_config() {
413
  id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
414
  <?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>*Instagram</strong>
415
  </td>
416
- </tr>
417
- <tr>
418
  <td>
419
  <input type="checkbox" id="linkedin_enable" class="app_enable" name="mo_openid_linkedin_enable" value="1" onchange="previewLoginIcons();"
420
  <?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
421
  </td>
 
 
 
422
  <td>
423
  <input type="checkbox" id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
424
  <?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
@@ -431,21 +423,30 @@ function mo_openid_apps_config() {
431
  <input type="checkbox" id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
432
  <?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
433
  </td>
434
- <td>
435
- <input type="checkbox" id="yahoo_enable" class="app_enable" name="mo_openid_yahoo_enable" value="1" onchange="previewLoginIcons();"
436
  <?php checked( get_option('mo_openid_yahoo_enable') == 1 );?> /><strong>Yahoo</strong>
437
- </td>
438
- <tr>
439
- <td>
440
  <input type="checkbox" id="wordpress_enable" class="app_enable" name="mo_openid_wordpress_enable" value="1" onchange="previewLoginIcons();"
441
- disabled="disabled" /><strong><span style="color: red">*</span>Wordpress</strong>
442
  </td>
443
- </tr> </tr>
444
  </table>
445
  </td>
446
- </tr></table></td></tr>
 
 
 
 
 
 
 
 
 
 
 
447
  <tr>
448
  <td>
 
449
  <br>
450
  <strong><span style="color: red">*</span>Available in standard and premium plugins.</strong>
451
  <hr>
@@ -568,7 +569,7 @@ function mo_openid_apps_config() {
568
  <div>
569
  <a id="mo_login_button_preview_facebook" class="btn btn-block btn-defaulttheme btn-social btn-facebook btn-custom-size"> <i class="fa fa-facebook"></i><?php
570
  echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
571
- <a id="mo_login_button_preview_google" class="btn btn-block btn-defaulttheme btn-social btn-google btn-custom-size"> <i class="fa fa-google-plus"></i><?php
572
  echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
573
  <a id="mo_login_button_preview_vkontakte" class="btn btn-block btn-defaulttheme btn-social btn-vk btn-custom-size"> <i class="fa fa-vk"></i><?php
574
  echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
@@ -590,7 +591,7 @@ function mo_openid_apps_config() {
590
  </div>
591
  <div>
592
  <i class="mo_custom_login_icon_preview fa fa-facebook" id="mo_custom_login_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
593
- <i class="mo_custom_login_icon_preview fa fa-google-plus" id="mo_custom_login_icon_preview_google" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
594
  <i class="mo_custom_login_icon_preview fa fa-vk" id="mo_custom_login_icon_preview_vkontakte" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
595
  <i class="mo_custom_login_icon_preview fa fa-twitter" id="mo_custom_login_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
596
  <i class="mo_custom_login_icon_preview fa fa-instagram" id="mo_custom_login_icon_preview_instagram" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
@@ -603,7 +604,7 @@ function mo_openid_apps_config() {
603
  <div>
604
  <a id="mo_custom_login_button_preview_facebook" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-facebook"></i><?php
605
  echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
606
- <a id="mo_custom_login_button_preview_google" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-google-plus"></i><?php
607
  echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
608
  <a id="mo_custom_login_button_preview_vkontakte" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-vk"></i><?php
609
  echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
@@ -1039,6 +1040,20 @@ function customize_email_verify_img(){
1039
  }
1040
  </script>
1041
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1042
  var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
1043
  var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
1044
  var tempHorCustomTheme = '<?php echo get_option('mo_openid_login_custom_theme') ?>';
@@ -1443,6 +1458,7 @@ function customize_email_verify_img(){
1443
  );
1444
  }
1445
  });
 
1446
  </script>
1447
 
1448
  <tr>
@@ -1860,12 +1876,15 @@ function mo_openid_email_notification(){
1860
 
1861
  function mo_openid_app_comment() {
1862
  ?>
 
1863
  <td style="vertical-align:top;width:65%;">
 
1864
  <form name="f" method="post" id="comment_settings_form" action="">
1865
  <input type="hidden" name="option" value="mo_openid_save_comment_settings" />
1866
  <div class="mo_openid_table_layout">
1867
 
1868
  <table class="mo_openid_display_table">
 
1869
  <tr>
1870
  <td colspan="2">
1871
  <h3>Social Comments
@@ -2347,7 +2366,7 @@ function mo_openid_other_settings(){
2347
  <div>
2348
  <i class="mo_custom_sharing_icon_preview fa fa-facebook" id="mo_custom_sharing_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2349
  <i class="mo_custom_sharing_icon_preview fa fa-twitter" id="mo_custom_sharing_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
2350
- <i class="mo_custom_sharing_icon_preview fa fa-google-plus" id="mo_custom_sharing_icon_preview_google" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2351
  <i class="mo_custom_sharing_icon_preview fa fa-vk" id="mo_custom_sharing_icon_preview_vk" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2352
  <i class="mo_custom_sharing_icon_preview fa fa-tumblr" id="mo_custom_sharing_icon_preview_tumblr" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2353
  <i class="mo_custom_sharing_icon_preview fa fa-stumbleupon" id="mo_custom_sharing_icon_preview_stumble" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
@@ -2366,7 +2385,7 @@ function mo_openid_other_settings(){
2366
  <div>
2367
  <i class="mo_custom_sharing_icon_font_preview fa fa-facebook" id="mo_custom_sharing_icon_font_preview_facebook" style="text-align:center;margin-top:5px;"></i>
2368
  <i class="mo_custom_sharing_icon_font_preview fa fa-twitter" id="mo_custom_sharing_icon_font_preview_twitter" style="text-align:center;margin-top:5px;" ></i>
2369
- <i class="mo_custom_sharing_icon_font_preview fa fa-google-plus" id="mo_custom_sharing_icon_font_preview_google" style="text-align:center;margin-top:5px;"></i>
2370
  <i class="mo_custom_sharing_icon_font_preview fa fa-vk" id="mo_custom_sharing_icon_font_preview_vk" style="text-align:center;margin-top:5px;"></i>
2371
  <i class="mo_custom_sharing_icon_font_preview fa fa-tumblr" id="mo_custom_sharing_icon_font_preview_tumblr" style="text-align:center;margin-top:5px;"></i>
2372
  <i class="mo_custom_sharing_icon_font_preview fa fa-stumbleupon" id="mo_custom_sharing_icon_font_preview_stumble" style="text-align:center;margin-top:5px;"></i>
@@ -3196,7 +3215,7 @@ function mo_openid_pricing_info(){
3196
  <td><div class="tooltip">Custom Social Login Apps <i class="fa fa-commenting " style="font-size:18px;color:#85929E"></i><span class="tooltiptext"style="width:350px;"> Using the custom app tab, you can set up your own App ID and secret in the plugin. Login flow will not involve miniOrange in between. Login flow will go from plugin to social media application and then back to plugin.</span></div></td>
3197
  <td>Facebook, Twitter</td>
3198
  <td><div class="tooltip">10 Apps&nbsp <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Yahoo WordPress</span></div></td>
3199
- <td><div class="tooltip">10 Apps&nbsp <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Yahoo WordPress</span></div></td>
3200
 
3201
  </tr>
3202
  <tr>
@@ -3289,11 +3308,9 @@ function mo_openid_pricing_info(){
3289
  </tr>
3290
  <tr>
3291
  <td>Account Linking</td>
3292
- <?php if(!mo_openid_restrict_user()){?> <td><i class="fa fa-check"></i></td>
3293
- <?php } else{?><td></td> <?php }?>
3294
-
3295
- <td><i class="fa fa-check"></i></td>
3296
- <td><i class="fa fa-check"></i></td>
3297
  </tr>
3298
  <tr>
3299
  <td>Email Notification to multiple admins</td>
@@ -3876,6 +3893,11 @@ function mo_openid_custom_app_config(){?>
3876
  }
3877
  }
3878
  else if(get_option('mo_openid_apps_list')){
 
 
 
 
 
3879
  $appslist = get_option('mo_openid_apps_list');
3880
  echo "<br><input onclick='window.location.href=\"admin.php?page=mo_openid_settings&tab=custom_app&action=add\"' type='button' class='button button-primary button-large' style='float:right;text-align:center;' value='Add Application'>";
3881
  echo "<h3>Applications List</h3>";
@@ -3891,12 +3913,18 @@ function mo_openid_custom_app_config(){?>
3891
  else{
3892
  $enable_status = '';
3893
  }
3894
- echo "<tr><td>".$key."</td><td><a href='admin.php?page=mo_openid_settings&tab=custom_app&action=update&app=".$key."'>Edit</a> | <a onclick='popup_delete_app(\"".$key."\")'>Delete</a>
 
 
 
 
 
 
 
3895
  </td><td><label class='mo-switch'>
3896
  <input type='checkbox' ". $enable_status ." onclick='enable_custom_app(\"".$key."\"); ' id='mo_id_".$key."' >
3897
  <div class='mo-slider round' id='switch_checkbox' >
3898
- </div>
3899
-
3900
  </label></td></tr>";
3901
  }
3902
  echo "</table>";
@@ -3933,24 +3961,45 @@ function mo_openid_custom_app_config(){?>
3933
  }
3934
  });
3935
  }
 
 
 
 
 
 
 
 
 
 
 
3936
  </script>
3937
 
3938
  <?php
3939
  }
3940
 
3941
  function add_custom_app(){
 
 
3942
  ?>
3943
 
3944
  <script>
3945
- function selectapp() {
3946
- var appname = document.getElementById("mo_oauth_app").value;
 
 
 
 
 
 
 
 
3947
  document.getElementById("instructions").innerHTML = "";
3948
  if(appname=="google"){
3949
- document.getElementById("mo_oauth_scope").value = "";
3950
- document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, click on + to Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials menu, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Enter <b><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/google";}else echo site_url()."/?openidcallback=google"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></b> in Authorized redirect URIs.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li><li>Input scope as <b>https://www.googleapis.com/auth/userinfo.profile+ https://www.googleapis.com/auth/user.birthday.read+ https://www.googleapis.com/auth/plus.login+ https://www.googleapis.com/auth/plus.profile.emails.read+ https://www.googleapis.com/auth/userinfo.email+ https://www.googleapis.com/auth/plus.me </b></li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
3951
  } else if(appname=="facebook"){
3952
  document.getElementById("mo_oauth_scope").value = "email, public_profile";
3953
- document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account.</li><li>Click on Create a New App/Add new App button.</li><li>Enter <b>Display Name</b> and click on Create App ID.</li><li>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b><?php echo site_url(); ?></b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b><?php $str=str_replace('https://','',site_url()); echo $str; ?></b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/facebook";}else echo site_url()."/?openidcallback=facebook"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
3954
  } else if(appname=="twitter"){
3955
  document.getElementById("mo_oauth_scope").value = "";
3956
  document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =><?php echo site_url();?><br> then your callback URL should be => <?php echo site_url();?><br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback</li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>.Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>.Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Go to Permissions tab -> Access. Select <b>Read Only</b> type of access.</li><li>Click on the Update settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
@@ -3958,60 +4007,59 @@ function add_custom_app(){
3958
 
3959
  }
3960
 
3961
- </script>
3962
- <div id="toggle2" class="panel_toggle">
3963
- <h3>Add Application</h3>
3964
- </div>
3965
- <form id="form-common" name="form-common" method="post" action="admin.php?page=mo_openid_settings&tab=custom_app">
3966
- <input type="hidden" name="option" value="mo_openid_add_custom_app" />
3967
- <table class="mo_settings_table">
3968
- <tr>
3969
- <td><strong><font color="#FF0000">*</font>Select Application:</strong></td>
3970
- <td>
3971
- <select class="mo_table_textbox" style="width:500px;" required="true" name="mo_oauth_app_name" id="mo_oauth_app" onchange="selectapp()">
3972
- <option value="">Select Application</option>
3973
- <?php if(!mo_openid_restrict_user())echo "<option value=\"google\">Google</option>";?>
3974
- <option value="facebook">Facebook</option>
3975
- <option value="twitter">Twitter</option>
3976
- </select>
3977
- </td>
3978
- </tr>
3979
- <tr>
3980
- <td><strong><font color="#FF0000">*</font>Client ID:</strong></td>
3981
- <td><input class="mo_table_textbox" required="" style="height: 27px; width:500px" type="text" name="mo_oauth_client_id" value=""></td>
3982
- </tr>
3983
- <tr>
3984
- <td><strong><font color="#FF0000">*</font>Client Secret:</strong></td>
3985
- <td><input class="mo_table_textbox" required="" style="height: 27px; width:500px" type="text" name="mo_oauth_client_secret" value=""></td>
3986
- </tr>
3987
- <tr>
3988
  <td><strong>Scope:</strong></td>
3989
  <td><input class="mo_table_textbox" style="height: 27px; width:500px" type="text" id="mo_oauth_scope" name="mo_oauth_scope" value="" ></td>
3990
  </tr>
3991
- <tr>
3992
- <td>&nbsp;</td>
3993
- <td><input type="submit" name="submit" value="Save settings" class="button button-primary button-large" />
3994
  <input type="button" name="back" onclick="goBack();" value="Back" class="button button-primary button-large" />
3995
  </td>
3996
- </tr>
3997
- </table>
3998
- </form>
3999
-
4000
- <div id="instructions">
4001
-
4002
- </div>
4003
- <script>
4004
- function goBack(){
4005
 
4006
  var base_url = '<?php echo site_url();?>';
4007
  base_url += '/wp-admin/admin.php?page=mo_openid_settings&tab=custom_app';
4008
  window.location.href= base_url ;
4009
- }
4010
- </script>
4011
-
4012
- <?php
4013
- }
4014
 
 
 
4015
  function update_custom_app($appname){
4016
 
4017
  $appslist = get_option('mo_openid_apps_list');
@@ -4080,6 +4128,10 @@ function delete_custom_app($appname){
4080
  unset($appslist[$key]);
4081
  }
4082
  }
 
 
 
 
4083
  update_option('mo_openid_apps_list', $appslist);
4084
  }
4085
 
@@ -4101,9 +4153,9 @@ function mo_custom_app_instructions($appname){
4101
  }
4102
 
4103
  if ($appname == "google") {
4104
- echo '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials page, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Follow the instructions to enter JavaScript origins, redirect URIs, or both. provide <b>' . $oauth_redirect_url . '</b> for the Redirect URI.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li></li><li>Input scope as <b>https://www.googleapis.com/auth/plus.login+https://www.googleapis.com/auth/plus.profile.emails.read </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
4105
  } else if ($appname == "facebook") {
4106
- echo '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account.</li><li>Click on Create a New App/Add new App button.</li><li>Enter <b>Display Name</b> and click on Create App ID.</li><li>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b>' . site_url() . '</b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b>' . str_replace('https://', '', site_url()) . '</b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b>' . $oauth_redirect_url . '</b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4107
  } else if ($appname == "twitter") {
4108
  echo '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =>' . site_url() . '<br> then your callback URL should be => ' . site_url() . '<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback </li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>. Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>. Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4109
  }
@@ -4475,4 +4527,31 @@ function mo_pop_show_verify_password_page() {
4475
  </script>
4476
  <?php
4477
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4478
  ?>
2
  ob_start();
3
  function mo_register_openid() {
4
 
5
+ if(get_option('mo_openid_social_comment_google') == 1){
6
+ ?>
7
+ <div id="upgrade_notice" class="update-nag" style="width: 92.5%;margin-left: 0%;"><strong>Google+ APIs will be shut down soon on March 7, 2019. So please disable the Google+ commenting option from<a href="<?php echo site_url();?>/wp-admin/admin.php?page=mo_openid_settings&tab=comment" ><b> Social Comments</b></a> tab.</strong></div>
8
+ <?php }
9
  if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
10
  $active_tab = $_GET[ 'tab' ];
11
  } else if(mo_openid_is_customer_registered()) {
21
  <p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
22
  <?php
23
  }?>
24
+ <div>
25
  <table>
26
  <tr><td>
 
27
  <img id="logo" style="margin-top: 25px" src="<?php echo plugin_dir_url(__FILE__);?>includes/images/logo.png">
28
  </td> <td>&nbsp;<a style="text-decoration:none" href="https://www.miniorange.com/social-login-social-sharing/" target="_blank"><h1 style="color: #c9302c">miniOrange Social Login</h1></a></td>
29
  <td> &nbsp;&nbsp;&nbsp;&nbsp; <a id="pricing" style="margin-top: 23px" class="button"<?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
367
  <div class="mo_openid_table_layout">
368
 
369
 
 
370
  <table>
371
  <tr>
372
  <td colspan="2">
381
 
382
  <table>
383
  <tr id="select_app"><td><table style="width: 100%"> <h3>Select Apps</h3>
384
+ <h4>Select Default Apps:</h4>
385
 
386
  <tr >
387
  <td>
388
  <table style="width:100%">
389
  <tr >
390
+ <td>
 
 
 
 
 
 
 
 
 
 
391
  <input type="checkbox" id="google_enable" class="app_enable" name="mo_openid_google_enable" value="1" onchange="previewLoginIcons();"
392
  <?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
393
  </td>
404
  id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
405
  <?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>*Instagram</strong>
406
  </td>
 
 
407
  <td>
408
  <input type="checkbox" id="linkedin_enable" class="app_enable" name="mo_openid_linkedin_enable" value="1" onchange="previewLoginIcons();"
409
  <?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
410
  </td>
411
+ </tr>
412
+ <tr>
413
+
414
  <td>
415
  <input type="checkbox" id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
416
  <?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
423
  <input type="checkbox" id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
424
  <?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
425
  </td>
426
+ <td> <input type="checkbox" id="yahoo_enable" class="app_enable" name="mo_openid_yahoo_enable" value="1" onchange="previewLoginIcons();"
 
427
  <?php checked( get_option('mo_openid_yahoo_enable') == 1 );?> /><strong>Yahoo</strong>
428
+ </td><td>
 
 
429
  <input type="checkbox" id="wordpress_enable" class="app_enable" name="mo_openid_wordpress_enable" value="1" onchange="previewLoginIcons();"
430
+ disabled="disabled" /><strong><span style="color: red">*</span>WordPress</strong>
431
  </td>
432
+ </tr>
433
  </table>
434
  </td>
435
+ </tr>
436
+ <tr><td><h4>Setup Custom Apps:</h4></td>
437
+ </tr>
438
+ <tr><td>
439
+ <div>
440
+ <input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" <?php $x=is_custom_app('facebook');echo "onchange='previewLoginIcons(),redirectto_custom_tab(".$x.")'";?>
441
+ <?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook </strong>
442
+ &nbsp &nbsp &nbsp&nbsp &nbsp <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Disqus</strong>
443
+ </div>
444
+ </td>
445
+ </tr>
446
+ </table></td></tr>
447
  <tr>
448
  <td>
449
+
450
  <br>
451
  <strong><span style="color: red">*</span>Available in standard and premium plugins.</strong>
452
  <hr>
569
  <div>
570
  <a id="mo_login_button_preview_facebook" class="btn btn-block btn-defaulttheme btn-social btn-facebook btn-custom-size"> <i class="fa fa-facebook"></i><?php
571
  echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
572
+ <a id="mo_login_button_preview_google" class="btn btn-block btn-defaulttheme btn-social btn-google btn-custom-size"> <i class="fa fa-google"></i><?php
573
  echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
574
  <a id="mo_login_button_preview_vkontakte" class="btn btn-block btn-defaulttheme btn-social btn-vk btn-custom-size"> <i class="fa fa-vk"></i><?php
575
  echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
591
  </div>
592
  <div>
593
  <i class="mo_custom_login_icon_preview fa fa-facebook" id="mo_custom_login_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
594
+ <i class="mo_custom_login_icon_preview fa fa-google" id="mo_custom_login_icon_preview_google" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
595
  <i class="mo_custom_login_icon_preview fa fa-vk" id="mo_custom_login_icon_preview_vkontakte" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
596
  <i class="mo_custom_login_icon_preview fa fa-twitter" id="mo_custom_login_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
597
  <i class="mo_custom_login_icon_preview fa fa-instagram" id="mo_custom_login_icon_preview_instagram" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
604
  <div>
605
  <a id="mo_custom_login_button_preview_facebook" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-facebook"></i><?php
606
  echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
607
+ <a id="mo_custom_login_button_preview_google" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-google"></i><?php
608
  echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
609
  <a id="mo_custom_login_button_preview_vkontakte" class="btn btn-block btn-customtheme btn-social btn-custom-size"> <i class="fa fa-vk"></i><?php
610
  echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
1040
  }
1041
  </script>
1042
  <script>
1043
+ function redirectto_custom_tab(x)
1044
+ {
1045
+ var site_url = '<?php echo site_url();?>';
1046
+ box1 = document.getElementById('facebook_enable');
1047
+ if (box1.checked == true){
1048
+ if(x==0){
1049
+ window.location= site_url+"/wp-admin/admin.php?page=mo_openid_settings&tab=custom_app&action=add&app_name=facebook";
1050
+ }
1051
+ if(x==1){
1052
+ window.location= site_url+"/wp-admin/admin.php?page=mo_openid_settings&tab=custom_app&setup_msg";
1053
+ }
1054
+ }
1055
+ }
1056
+
1057
  var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
1058
  var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
1059
  var tempHorCustomTheme = '<?php echo get_option('mo_openid_login_custom_theme') ?>';
1458
  );
1459
  }
1460
  });
1461
+
1462
  </script>
1463
 
1464
  <tr>
1876
 
1877
  function mo_openid_app_comment() {
1878
  ?>
1879
+
1880
  <td style="vertical-align:top;width:65%;">
1881
+
1882
  <form name="f" method="post" id="comment_settings_form" action="">
1883
  <input type="hidden" name="option" value="mo_openid_save_comment_settings" />
1884
  <div class="mo_openid_table_layout">
1885
 
1886
  <table class="mo_openid_display_table">
1887
+
1888
  <tr>
1889
  <td colspan="2">
1890
  <h3>Social Comments
2366
  <div>
2367
  <i class="mo_custom_sharing_icon_preview fa fa-facebook" id="mo_custom_sharing_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2368
  <i class="mo_custom_sharing_icon_preview fa fa-twitter" id="mo_custom_sharing_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
2369
+ <i class="mo_custom_sharing_icon_preview fa fa-google" id="mo_custom_sharing_icon_preview_google" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2370
  <i class="mo_custom_sharing_icon_preview fa fa-vk" id="mo_custom_sharing_icon_preview_vk" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2371
  <i class="mo_custom_sharing_icon_preview fa fa-tumblr" id="mo_custom_sharing_icon_preview_tumblr" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2372
  <i class="mo_custom_sharing_icon_preview fa fa-stumbleupon" id="mo_custom_sharing_icon_preview_stumble" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
2385
  <div>
2386
  <i class="mo_custom_sharing_icon_font_preview fa fa-facebook" id="mo_custom_sharing_icon_font_preview_facebook" style="text-align:center;margin-top:5px;"></i>
2387
  <i class="mo_custom_sharing_icon_font_preview fa fa-twitter" id="mo_custom_sharing_icon_font_preview_twitter" style="text-align:center;margin-top:5px;" ></i>
2388
+ <i class="mo_custom_sharing_icon_font_preview fa fa-google" id="mo_custom_sharing_icon_font_preview_google" style="text-align:center;margin-top:5px;"></i>
2389
  <i class="mo_custom_sharing_icon_font_preview fa fa-vk" id="mo_custom_sharing_icon_font_preview_vk" style="text-align:center;margin-top:5px;"></i>
2390
  <i class="mo_custom_sharing_icon_font_preview fa fa-tumblr" id="mo_custom_sharing_icon_font_preview_tumblr" style="text-align:center;margin-top:5px;"></i>
2391
  <i class="mo_custom_sharing_icon_font_preview fa fa-stumbleupon" id="mo_custom_sharing_icon_font_preview_stumble" style="text-align:center;margin-top:5px;"></i>
3215
  <td><div class="tooltip">Custom Social Login Apps <i class="fa fa-commenting " style="font-size:18px;color:#85929E"></i><span class="tooltiptext"style="width:350px;"> Using the custom app tab, you can set up your own App ID and secret in the plugin. Login flow will not involve miniOrange in between. Login flow will go from plugin to social media application and then back to plugin.</span></div></td>
3216
  <td>Facebook, Twitter</td>
3217
  <td><div class="tooltip">10 Apps&nbsp <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Yahoo WordPress</span></div></td>
3218
+ <td><div class="tooltip">13 Apps&nbsp <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Yahoo WordPress Disqus Pinterest Twitch</span></div></td>
3219
 
3220
  </tr>
3221
  <tr>
3308
  </tr>
3309
  <tr>
3310
  <td>Account Linking</td>
3311
+ <td>Basic</td>
3312
+ <td>Advanced</td>
3313
+ <td>Advanced</td>
 
 
3314
  </tr>
3315
  <tr>
3316
  <td>Email Notification to multiple admins</td>
3893
  }
3894
  }
3895
  else if(get_option('mo_openid_apps_list')){
3896
+ if(strpos($_SERVER['REQUEST_URI'], "setup_msg")!== false)
3897
+ {
3898
+ ?><div id="upgrade_notice" class="notice notice-success is-dismissible" style="width: 92.5%;margin-left: 0%;"><p><strong>Please enable the Facebook custom app.</strong></p></div>
3899
+ <?php
3900
+ }
3901
  $appslist = get_option('mo_openid_apps_list');
3902
  echo "<br><input onclick='window.location.href=\"admin.php?page=mo_openid_settings&tab=custom_app&action=add\"' type='button' class='button button-primary button-large' style='float:right;text-align:center;' value='Add Application'>";
3903
  echo "<h3>Applications List</h3>";
3913
  else{
3914
  $enable_status = '';
3915
  }
3916
+ if($key=='facebook')
3917
+ {
3918
+ $test_config=" <a onclick=\"testconfiguration('".$key."')\"><u>Test Configuration</u></a> |";
3919
+ }
3920
+ else {
3921
+ $test_config = '';
3922
+ }
3923
+ echo "<tr><td>".$key."</td><td><a href='admin.php?page=mo_openid_settings&tab=custom_app&action=update&app=".$key."'>Edit</a> | ".$test_config." <a onclick='popup_delete_app(\"".$key."\")'>Delete</a>
3924
  </td><td><label class='mo-switch'>
3925
  <input type='checkbox' ". $enable_status ." onclick='enable_custom_app(\"".$key."\"); ' id='mo_id_".$key."' >
3926
  <div class='mo-slider round' id='switch_checkbox' >
3927
+ </div>
 
3928
  </label></td></tr>";
3929
  }
3930
  echo "</table>";
3961
  }
3962
  });
3963
  }
3964
+ function testconfiguration(selected_app) {
3965
+ jQuery.ajax({
3966
+ url:"<?php echo admin_url();?>", //the page containing php script
3967
+ method: "POST", //request type,
3968
+ data: {appname: selected_app, test_configuration : true},
3969
+ dataType: 'text',
3970
+ success:function(result){
3971
+ var myWindow = window.open('<?php echo home_url(); ?>' + '/?option=oauthredirect&app_name='+selected_app,"", "width=950, height=600");
3972
+ }
3973
+ });
3974
+ }
3975
  </script>
3976
 
3977
  <?php
3978
  }
3979
 
3980
  function add_custom_app(){
3981
+ if(strpos( $_SERVER['REQUEST_URI'], "facebook")!== false){?><div id="upgrade_notice" class="notice notice-success is-dismissible" style="width: 92.5%;margin-left: 0%;"><p><strong>Please configure the Facebook custom app and test your configuration.</strong></p></div>
3982
+ <?php }
3983
  ?>
3984
 
3985
  <script>
3986
+
3987
+ function selectapp(app_name) {
3988
+ var appname
3989
+ if(app_name=="facebook")
3990
+ {
3991
+ appname="facebook";
3992
+ }
3993
+ else{
3994
+ appname = document.getElementById("mo_oauth_app").value;
3995
+ }
3996
  document.getElementById("instructions").innerHTML = "";
3997
  if(appname=="google"){
3998
+ document.getElementById("mo_oauth_scope").value = "email+profile";
3999
+ document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, click on + to Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials menu, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Enter <b><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/google";}else echo site_url()."/?openidcallback=google"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></b> in Authorized redirect URIs.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li><li>Input scope as <b>email+profile </b></li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4000
  } else if(appname=="facebook"){
4001
  document.getElementById("mo_oauth_scope").value = "email, public_profile";
4002
+ document.getElementById("instructions").innerHTML = '<br><br><strong>Facebook custom application setup video : </strong><br><br><iframe width="450" height="250" src="https://www.youtube.com/embed/hHx-oR7XiZo" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left: 17%;"></iframe><br><br><strong>Instructions to configure Facebook : </strong><br><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account.</li><li>Click on Create a New App/Add new App button.</li><li>Enter <b>Display Name</b> and click on Create App ID.</li><li>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b><?php echo site_url(); ?></b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b><?php $str=str_replace('https://','',site_url()); echo $str; ?></b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/facebook";}else echo site_url()."/?openidcallback=facebook"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4003
  } else if(appname=="twitter"){
4004
  document.getElementById("mo_oauth_scope").value = "";
4005
  document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =><?php echo site_url();?><br> then your callback URL should be => <?php echo site_url();?><br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback</li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>.Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>.Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Go to Permissions tab -> Access. Select <b>Read Only</b> type of access.</li><li>Click on the Update settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4007
 
4008
  }
4009
 
4010
+ </script>
4011
+ <div id="toggle2" class="panel_toggle">
4012
+ <h3>Add Application</h3>
4013
+ </div>
4014
+ <form id="form-common" name="form-common" method="post" action="admin.php?page=mo_openid_settings&tab=custom_app">
4015
+ <input type="hidden" name="option" value="mo_openid_add_custom_app" />
4016
+ <table class="mo_settings_table">
4017
+ <tr>
4018
+ <td><strong><font color="#FF0000">*</font>Select Application:</strong></td>
4019
+ <td>
4020
+ <select class="mo_table_textbox" style="width:500px;" required="true" name="mo_oauth_app_name" id="mo_oauth_app" onchange="selectapp('')">
4021
+ <option value="">Select Application</option>
4022
+ <?php if(!mo_openid_restrict_user())echo "<option value='google'>Google</option>";?>
4023
+ <option value="facebook" <?php if(strpos( $_SERVER['REQUEST_URI'], "facebook")!== false) echo"selected";?> ">Facebook</option>
4024
+ <option value="twitter">Twitter</option>
4025
+ </select>
4026
+ </td>
4027
+ </tr>
4028
+ <tr>
4029
+ <td><strong><font color="#FF0000">*</font>Client ID:</strong></td>
4030
+ <td><input class="mo_table_textbox" required="" style="height: 27px; width:500px" type="text" name="mo_oauth_client_id" value=""></td>
4031
+ </tr>
4032
+ <tr>
4033
+ <td><strong><font color="#FF0000">*</font>Client Secret:</strong></td>
4034
+ <td><input class="mo_table_textbox" required="" style="height: 27px; width:500px" type="text" name="mo_oauth_client_secret" value=""></td>
4035
+ </tr>
4036
+ <tr>
4037
  <td><strong>Scope:</strong></td>
4038
  <td><input class="mo_table_textbox" style="height: 27px; width:500px" type="text" id="mo_oauth_scope" name="mo_oauth_scope" value="" ></td>
4039
  </tr>
4040
+ <tr>
4041
+ <td>&nbsp;</td>
4042
+ <td><input type="submit" name="submit" value="Save settings" class="button button-primary button-large" />
4043
  <input type="button" name="back" onclick="goBack();" value="Back" class="button button-primary button-large" />
4044
  </td>
4045
+ </tr>
4046
+ </table>
4047
+ </form>
4048
+
4049
+ <div id="instructions">
4050
+
4051
+ </div> <?php if(strpos( $_SERVER['REQUEST_URI'], "facebook")!== false){?><script>selectapp("facebook");</script><?php } ?>
4052
+ <script>
4053
+ function goBack(){
4054
 
4055
  var base_url = '<?php echo site_url();?>';
4056
  base_url += '/wp-admin/admin.php?page=mo_openid_settings&tab=custom_app';
4057
  window.location.href= base_url ;
4058
+ }
4059
+ </script>
 
 
 
4060
 
4061
+ <?php
4062
+ }
4063
  function update_custom_app($appname){
4064
 
4065
  $appslist = get_option('mo_openid_apps_list');
4128
  unset($appslist[$key]);
4129
  }
4130
  }
4131
+ if($appname=="facebook")
4132
+ {
4133
+ update_option('mo_openid_facebook_enable',0);
4134
+ }
4135
  update_option('mo_openid_apps_list', $appslist);
4136
  }
4137
 
4153
  }
4154
 
4155
  if ($appname == "google") {
4156
+ echo '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials page, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Follow the instructions to enter JavaScript origins, redirect URIs, or both. provide <b>' . $oauth_redirect_url . '</b> for the Redirect URI.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li></li><li>Input scope as <b>email+profile </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
4157
  } else if ($appname == "facebook") {
4158
+ echo '<br><br><strong>Facebook custom application setup video : </strong><br><br><iframe width="450" height="250" src="https://www.youtube.com/embed/hHx-oR7XiZo" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left: 17%;"></iframe><br><br><strong>Instructions to configure Facebook : </strong><br><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account.</li><li>Click on Create a New App/Add new App button.</li><li>Enter <b>Display Name</b> and click on Create App ID.</li><li>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b>' . site_url() . '</b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b>' . str_replace('https://', '', site_url()) . '</b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b>' . $oauth_redirect_url . '</b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4159
  } else if ($appname == "twitter") {
4160
  echo '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =>' . site_url() . '<br> then your callback URL should be => ' . site_url() . '<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback </li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>. Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>. Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
4161
  }
4527
  </script>
4528
  <?php
4529
  }
4530
+ function is_custom_app($app_name){
4531
+
4532
+ if(get_option('mo_openid_apps_list'))
4533
+ $appslist = get_option('mo_openid_apps_list');
4534
+ else
4535
+ $appslist = array();
4536
+
4537
+ $flag=0;
4538
+ foreach( $appslist as $key => $app){
4539
+ if($app_name == $key ){
4540
+ $flag=1;
4541
+ break;
4542
+ }
4543
+ }
4544
+ $option = 'mo_openid_enable_custom_app_' .$app_name;
4545
+ if($flag==0)
4546
+ {
4547
+ return 0;
4548
+ }
4549
+ if($flag==1&&get_option($option) == '0'){
4550
+ return 1;
4551
+ }
4552
+ if($flag==1&&get_option($option) == '1')
4553
+ {
4554
+ return 2;
4555
+ }
4556
+ }
4557
  ?>
mo_openid_feedback_form.php CHANGED
@@ -22,9 +22,11 @@
22
  <input type="hidden" name="mo_openid_feedback" value="mo_openid_feedback"/>
23
  <div>
24
  <p style="margin-left:2%">
 
25
  <?php
26
  $deactivate_reasons = array(
27
  "Not Working",
 
28
  "Not Receiving OTP During Registration",
29
  "Does not have the features I am looking for",
30
  "Does not support login with app I am looking for",
@@ -33,21 +35,19 @@
33
  "I dont want to register",
34
  "Other Reasons:"
35
  );
36
-
37
  foreach ( $deactivate_reasons as $deactivate_reasons ) {?>
38
 
39
  <div class="radio" style="padding:1px;margin-left:2%">
40
  <label style="font-weight:normal;font-size:14.6px" for="<?php echo $deactivate_reasons; ?>">
41
  <input type="radio" name="deactivate_plugin" value="<?php echo $deactivate_reasons;?>" required >
42
- <?php echo $deactivate_reasons;?></label>
 
43
  </div>
44
-
45
-
46
  <?php } ?>
47
- <br>
48
-
49
- <textarea id="mo_openid_query_feedback" name="mo_openid_query_feedback" rows="4" style="margin-left:2%" cols="50" placeholder="Write your query here"></textarea>
50
- <br><br>
51
  <div class="mo_openid_modal-footer" >
52
  <input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
53
  <a name="mo_openid_option" value="mo_openid_skip_feedback" style="float:right" onclick="mo_openid_skip_feedback()">Skip Now</a>
@@ -62,81 +62,93 @@
62
 
63
  </div>
64
 
65
- <script>
66
  function mo_openid_skip_feedback(){
67
  jQuery('#mo_openid_feedback_form_close').submit();
68
  }
69
- jQuery('a[aria-label="Deactivate Social Login, Social Sharing by miniOrange"]').click(function(){
70
  // Get the mo_openid_modal
71
- <?php if(!get_option('mo_openid_feedback_form')){ ?>
72
- var mo_openid_modal = document.getElementById('myModal');
73
 
74
  // Get the button that opens the mo_openid_modal
75
- var btn = document.getElementById("myBtn");
76
 
77
  // Get the <span> element that closes the mo_openid_modal
78
- var span = document.getElementsByClassName("mo_openid_close")[0];
79
 
80
  // When the user clicks the button, open the mo_openid_modal
81
 
82
- mo_openid_modal.style.display = "block";
83
-
84
-
85
- jQuery('input:radio[name="deactivate_plugin"]').click(function () {
86
- var reason= jQuery(this).val();
87
- jQuery('#mo_openid_query_feedback').removeAttr('required')
88
-
89
- if(reason=='Facing issues During Registration'){
90
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you please describe the issue in detail?");
91
- }else if(reason=="Does not have the features I'm looking for"){
92
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Let us know what feature are you looking for");
93
- }else if(reason=="Other Reasons:"){
94
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you let us know the reason for deactivation");
95
- jQuery('#mo_openid_query_feedback').prop('required',true);
96
-
97
- }else if(reason=="Not Receiving OTP During Registration"){
98
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you please describe the issue in detail?");
99
-
100
- }else if(reason=="Bugs in the plugin"){
101
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you please let us know about the bug in detail?");
102
-
103
- }else if(reason=="Does not support login with app I am looking for"){
104
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Let us know which App are you looking for");
105
-
106
- }else if(reason=="Confusing Interface"){
107
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Finding it confusing? let us know so that we can improve the interface");
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
- }else if(reason=="Not Working"){
110
- jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you please describe what is not working?");
111
 
 
 
 
 
 
112
  }
113
- else if(reason=="I dont want to register"){
114
- jQuery('#mo_openid_query_feedback').attr("placeholder", "");
115
-
116
- }else if(reason=="Login Credentials Not Working"){
117
- jQuery('#mo_openid_query_feedback').attr("placeholder", "This is not a major issue please contact info@miniorange.com to get your issue resolved.");
118
-
119
  }
120
- });
121
-
 
122
 
123
 
 
 
 
 
124
 
125
- // When the user clicks on <span> (x), mo_openid_close the mo_openid_modal
126
- span.onclick = function() {
 
127
  mo_openid_modal.style.display = "none";
128
- jQuery('#mo_openid_feedback_form_close').submit();
129
- }
130
-
131
- // When the user clicks anywhere outside of the mo_openid_modal, mo_openid_close it
132
- window.onclick = function(event) {
133
- if (event.target == mo_openid_modal) {
134
- mo_openid_modal.style.display = "none";
135
- }
136
  }
137
- return false;
138
- <?php } ?>
139
- });
140
- </script><?php
141
- }
142
- ?>
 
22
  <input type="hidden" name="mo_openid_feedback" value="mo_openid_feedback"/>
23
  <div>
24
  <p style="margin-left:2%">
25
+
26
  <?php
27
  $deactivate_reasons = array(
28
  "Not Working",
29
+ "Facebook Login Error",
30
  "Not Receiving OTP During Registration",
31
  "Does not have the features I am looking for",
32
  "Does not support login with app I am looking for",
35
  "I dont want to register",
36
  "Other Reasons:"
37
  );
38
+ $i=0;$p=0;
39
  foreach ( $deactivate_reasons as $deactivate_reasons ) {?>
40
 
41
  <div class="radio" style="padding:1px;margin-left:2%">
42
  <label style="font-weight:normal;font-size:14.6px" for="<?php echo $deactivate_reasons; ?>">
43
  <input type="radio" name="deactivate_plugin" value="<?php echo $deactivate_reasons;?>" required >
44
+ <?php echo $deactivate_reasons;?>
45
+ </label>
46
  </div>
47
+ <span id="link_id_<?php echo $p;$p++;?>"></span>
48
+ <div id="text_<?php echo $i;$i++;?>"></div>
49
  <?php } ?>
50
+ <br><br><br>
 
 
 
51
  <div class="mo_openid_modal-footer" >
52
  <input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
53
  <a name="mo_openid_option" value="mo_openid_skip_feedback" style="float:right" onclick="mo_openid_skip_feedback()">Skip Now</a>
62
 
63
  </div>
64
 
65
+ <script>
66
  function mo_openid_skip_feedback(){
67
  jQuery('#mo_openid_feedback_form_close').submit();
68
  }
69
+ jQuery('a[aria-label="Deactivate Social Login, Social Sharing by miniOrange"]').click(function(){
70
  // Get the mo_openid_modal
71
+ <?php if(!get_option('mo_openid_feedback_form')){ ?>
72
+ var mo_openid_modal = document.getElementById('myModal');
73
 
74
  // Get the button that opens the mo_openid_modal
75
+ var btn = document.getElementById("myBtn");
76
 
77
  // Get the <span> element that closes the mo_openid_modal
78
+ var span = document.getElementsByClassName("mo_openid_close")[0];
79
 
80
  // When the user clicks the button, open the mo_openid_modal
81
 
82
+ mo_openid_modal.style.display = "block";
83
+ var i=0;
84
+ var show_link='';
85
+
86
+ jQuery('input:radio[name="deactivate_plugin"]').click(function () {
87
+ var reason= jQuery(this).val();
88
+ jQuery('#mo_openid_query_feedback').removeAttr('required');
89
+
90
+ if(reason=='Facing issues During Registration'){
91
+ jQuery('#mo_openid_query_feedback').attr("placeholder", "Can you please describe the issue in detail?");
92
+ jQuery('#link_id').hide();
93
+ }else if(reason=="Does not have the features I am looking for"){
94
+ add_text_box(3,"Let us know what feature are you looking for");
95
+ }else if(reason=="Other Reasons:"){
96
+ add_text_box(8,"Can you let us know the reason for deactivation?");
97
+ // jQuery('#mo_openid_query_feedback').prop("required", true);
98
+ }else if(reason=="Not Receiving OTP During Registration"){
99
+ show_link='<p style="background-color:#feffb2;padding:5px 10px;">Please '+'<a href="https://www.miniorange.com/businessfreetrial" target="_blank"><b>click here</b></a>'+' to create an account.</p>';
100
+ add_text_box(2,"Can you please describe the issue in detail?");
101
+
102
+ }else if(reason=="Bugs in the plugin"){
103
+ add_text_box(6,"Can you please let us know about the bug in detail?");
104
+ }else if(reason=="Does not support login with app I am looking for"){
105
+ add_text_box(4,"Let us know which App are you looking for");
106
+ }else if(reason=="Confusing Interface"){
107
+ show_link='<p style="background-color:#feffb2;padding:5px 10px;">If you are facing issue while setting up the plugin. Please check out this ' + '<a href="https://www.youtube.com/watch?v=Hn4gMFi8pOE" target="_blank"><b>setup video.</b></p>';
108
+ add_text_box(5,"Finding it confusing? let us know so that we can improve the interface");
109
+ }else if(reason=="Not Working"){
110
+ add_text_box(0,"Please specify which functionality is not working.");
111
+ }
112
+ else if(reason=="I dont want to register"){
113
+ show_link='<p style="background-color:#feffb2;padding:5px 10px;"><a href="https://faq.miniorange.com/knowledgebase/why-should-i-register/" target="_blank"><b>Why should I register?</b></p>';
114
+ add_text_box(7,"");
115
+ }else if(reason=="Facebook Login Error"){
116
+ show_link='<p style="background-color:#feffb2;padding:5px 10px;">Sorry for your inconvenience. Facebook has blocked our default app so please configure your own custom app.'+'<br>'+'Follow <a href="https://faq.miniorange.com/knowledgebase/facebook-configuration-error/" target="_blank"><b>Facebook setup link</b></a> | <a href="https://www.youtube.com/watch?v=hHx-oR7XiZo&feature=youtu.be" target="_blank"><b>Setup Video.</b></a></p>';
117
+ add_text_box(1,"Please explain your issue in detail.");
118
+ }
119
+ });
120
 
121
+ function add_text_box(x,place_holder) {
122
+ jQuery('#text_'+x).html('<textarea id="mo_openid_query_feedback" name="mo_openid_query_feedback" rows="3" style="margin-left:3%" cols="50" placeholder="'+place_holder+'"></textarea>');
123
 
124
+ for (i = 0; i <11 ; i++)
125
+ {
126
+ if(x==i)
127
+ {
128
+ if(x==1||x==7||x==2||x==5) {jQuery('#link_id_' + x).html(show_link);jQuery('#link_id_' + x).show();} else{jQuery('#link_id_'+i).hide();}
129
  }
130
+ else{
131
+ jQuery('#link_id_'+i).hide();
 
 
 
 
132
  }
133
+ if(i==x&&x!=7) {jQuery('#text_'+i).show();}else{jQuery('#text_'+i).hide();}
134
+ }
135
+ }
136
 
137
 
138
+ // When the user clicks on <span> (x), mo_openid_close the mo_openid_modal
139
+ span.onclick = function() {
140
+ window.location.reload(true);
141
+ }
142
 
143
+ // When the user clicks anywhere outside of the mo_openid_modal, mo_openid_close it
144
+ window.onclick = function(event) {
145
+ if (event.target == mo_openid_modal) {
146
  mo_openid_modal.style.display = "none";
 
 
 
 
 
 
 
 
147
  }
148
+ }
149
+ return false;
150
+ <?php } ?>
151
+ });
152
+ </script><?php
153
+ }
154
+ ?>
readme.txt CHANGED
@@ -3,16 +3,15 @@ Contributors: vkontakte, sociallogin, cyberlord92
3
  Donate link: https://www.miniorange.com
4
  Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
5
  Requires at least: 2.0.2
6
- Tested up to: 5.0
7
- Stable tag: 7.1.4
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Social Login with Google, Facebook, Twitter, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. Quickest setup.
12
 
13
  == Description ==
14
 
15
- Social Login enables social login, social sharing, social comments using social login apps like Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce.
16
 
17
  = Free Social Login Features =
18
 
@@ -51,7 +50,7 @@ Social Login enables social login, social sharing, social comments using social
51
  * **Woocommerce display options** - Enable social login icons on the Woocommerce Checkout, Login, Registration pages.
52
  * **BuddyPress display options** - Enable Social login icons on BuddyPress Registration & Account pages.
53
  * All social login free version features
54
- * **Enable your own social login application with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce **[Premium]**
55
  * **Woocommerce Integration [Premium]** - Auto-fill first name, last name and email in billing details of a user logging in with social login application.
56
  * **BuddyPress Integration [Premium]** - Sync profile picture from social application to BuddyPress avatar. Sync user social profile to BuddyPress custom fields.
57
  * **Test Configuration [Premium]** - Test configuration of your social login app in admin panel before making your app live.
@@ -68,7 +67,7 @@ Social Login enables social login, social sharing, social comments using social
68
  * **Custom Integration [Premium]** - If you have a specific custom requirement in the Social Login Plugin, we can implement and integrate it in the Social Login Plugin for you. This includes all those custom features that come under the scope of Social Login/ Sharing/ Comments. These features are chargeable. Please send us a query through the support forum to get in touch with us about your custom requirements.
69
 
70
  = How is this plugin better than other plugins available =
71
- * **Support for 9 apps in free plan** - Social Login with Facebook, Google, Twitter, LinkedIn, Instagram, Vkontakte, Windows Live, Amazon, Salesforce all available in the free plan.
72
  * **Setup in seconds** - miniOrange Social Login removes the hassle of creating your own application in all the social media. In any other social login plugin, if you are providing login with a social login application, google for example, you will need an App ID for which you will need to create an entire application in google. So if you want to provide login with 10 different social applications then you need to go and create 10 applications in those social platforms. Using our plugin, Social Login, Social Sharing by miniOrange, you do not need to do that. Just by creating one registration with us, you get Social login plus other features.
73
  * **Icon Customizations** - Beautiful icon customisations for Social Login and Social Sharing are available in our free plan where you can use a range of UI options like shape, size and theme. You get to choose from the following shapes - square, circle, rounded and long. You get to choose from the following themes - default, filled background, without background. Additionally you can customize the curve of the long buttons.
74
  * **Free Support** - Social Login, Social Sharing plugin has in-plugin support available. Sending us a query is just a button-lick away.
@@ -77,7 +76,7 @@ Social Login allows your visitors to comment, share, login and register with man
77
  Social Login provides different display options with beautiful login button customizations which other plugins do not provide(CSS knowledge is also not needed!).
78
 
79
  = Social Login =
80
- Social Login includes Facebook, Twitter, Google, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Salesforce. Social Login allows your visitors to choose from their favourite social login apps to login, comment, share and optionally auto-register with your website or blog.
81
 
82
  One-click social login to your WordPress site using social login applications like Google, Twitter, Facebook. This means, if your user is logged in to Google, user can comment on any blog or site by simply clicking the `google icon` - no username or password is explicitly required! Simply enable Social Login, **no setup of social media application** is required and you are done.
83
 
@@ -131,7 +130,7 @@ For more support or info email us at info@miniorange.com or <a href="https://www
131
 
132
  = What are the steps to download and activate the social login premium plugin? =
133
  Please follow the steps given below to download and activate the social login premium plugin:
134
- 1. Login to miniOrange dashboard here.
135
  2. Click on License option on the left-hand menu.
136
  3. You will see the download the social login premium plugin link Click on Download Plugin and extract the zip.
137
  4. Do not delete the older files just replace the old plugin files with the new plugin.
@@ -176,6 +175,11 @@ Please email us at info@miniorange.com. You can also submit your query from the
176
 
177
 
178
  == Changelog ==
 
 
 
 
 
179
  = 7.1.4 =
180
  * Add Yahoo as social login option in dafault apps.
181
  * Fixed Permalink issue.
@@ -605,6 +609,11 @@ Please email us at info@miniorange.com. You can also submit your query from the
605
  * First version of Social Login, Social Sharing plugin.
606
 
607
  == Upgrade Notice ==
 
 
 
 
 
608
  = 7.1.4 =
609
  * Add Yahoo as social login option in dafault apps.
610
  * Fixed Permalink issue.
3
  Donate link: https://www.miniorange.com
4
  Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
5
  Requires at least: 2.0.2
6
+ Tested up to: 5.1
7
+ Stable tag: 7.1.5
8
+ License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
 
9
 
10
  Social Login with Google, Facebook, Twitter, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. Quickest setup.
11
 
12
  == Description ==
13
 
14
+ Social Login enables social login, social sharing, social comments using social login apps like Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce, Yahoo, WordPress.
15
 
16
  = Free Social Login Features =
17
 
50
  * **Woocommerce display options** - Enable social login icons on the Woocommerce Checkout, Login, Registration pages.
51
  * **BuddyPress display options** - Enable Social login icons on BuddyPress Registration & Account pages.
52
  * All social login free version features
53
+ * **Enable your own social login application with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live, WordPress, Yahoo, Disqus & Salesforce **[Premium]**
54
  * **Woocommerce Integration [Premium]** - Auto-fill first name, last name and email in billing details of a user logging in with social login application.
55
  * **BuddyPress Integration [Premium]** - Sync profile picture from social application to BuddyPress avatar. Sync user social profile to BuddyPress custom fields.
56
  * **Test Configuration [Premium]** - Test configuration of your social login app in admin panel before making your app live.
67
  * **Custom Integration [Premium]** - If you have a specific custom requirement in the Social Login Plugin, we can implement and integrate it in the Social Login Plugin for you. This includes all those custom features that come under the scope of Social Login/ Sharing/ Comments. These features are chargeable. Please send us a query through the support forum to get in touch with us about your custom requirements.
68
 
69
  = How is this plugin better than other plugins available =
70
+ * **Support for 10 apps in free plan** - Social Login with Facebook, Google, Twitter, LinkedIn, Instagram, Vkontakte, Windows Live, Amazon, Salesforce, Yahoo all available in the free plan.
71
  * **Setup in seconds** - miniOrange Social Login removes the hassle of creating your own application in all the social media. In any other social login plugin, if you are providing login with a social login application, google for example, you will need an App ID for which you will need to create an entire application in google. So if you want to provide login with 10 different social applications then you need to go and create 10 applications in those social platforms. Using our plugin, Social Login, Social Sharing by miniOrange, you do not need to do that. Just by creating one registration with us, you get Social login plus other features.
72
  * **Icon Customizations** - Beautiful icon customisations for Social Login and Social Sharing are available in our free plan where you can use a range of UI options like shape, size and theme. You get to choose from the following shapes - square, circle, rounded and long. You get to choose from the following themes - default, filled background, without background. Additionally you can customize the curve of the long buttons.
73
  * **Free Support** - Social Login, Social Sharing plugin has in-plugin support available. Sending us a query is just a button-lick away.
76
  Social Login provides different display options with beautiful login button customizations which other plugins do not provide(CSS knowledge is also not needed!).
77
 
78
  = Social Login =
79
+ Social Login includes Facebook, Twitter, Google, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live, Yahoo & Salesforce. Social Login allows your visitors to choose from their favourite social login apps to login, comment, share and optionally auto-register with your website or blog.
80
 
81
  One-click social login to your WordPress site using social login applications like Google, Twitter, Facebook. This means, if your user is logged in to Google, user can comment on any blog or site by simply clicking the `google icon` - no username or password is explicitly required! Simply enable Social Login, **no setup of social media application** is required and you are done.
82
 
130
 
131
  = What are the steps to download and activate the social login premium plugin? =
132
  Please follow the steps given below to download and activate the social login premium plugin:
133
+ 1. Login to miniOrange dashboard <a href="https://auth.miniorange.com/moas/login" >here</a>.
134
  2. Click on License option on the left-hand menu.
135
  3. You will see the download the social login premium plugin link Click on Download Plugin and extract the zip.
136
  4. Do not delete the older files just replace the old plugin files with the new plugin.
175
 
176
 
177
  == Changelog ==
178
+ = 7.1.5 =
179
+ * Fixed issue of getting '#_=_' string appended to URL after login with Facebook.
180
+ * <a href="https://developers.google.com/+/web/people/" >Google+ APIs </a> will shut down soon, so updated Google OAuth 2 APIs.
181
+ * UI changes.
182
+
183
  = 7.1.4 =
184
  * Add Yahoo as social login option in dafault apps.
185
  * Fixed Permalink issue.
609
  * First version of Social Login, Social Sharing plugin.
610
 
611
  == Upgrade Notice ==
612
+ = 7.1.5 =
613
+ * Fixed issue of getting '#_=_' string appended to URL after login with Facebook.
614
+ * <a href="https://developers.google.com/+/web/people/" >Google+ APIs </a> will shut down soon, so updated Google OAuth 2 APIs.
615
+ * UI changes.
616
+
617
  = 7.1.4 =
618
  * Add Yahoo as social login option in dafault apps.
619
  * Fixed Permalink issue.
uninstall.php CHANGED
@@ -183,6 +183,7 @@ delete_option( 'mo_account_linking_existing_user_button');
183
  delete_option( 'mo_account_linking_new_user_instruction');
184
  delete_option( 'mo_account_linking_existing_user_instruction');
185
  delete_option( 'mo_account_linking_extra_instruction');
 
186
 
187
  delete_option( 'custom_otp_msg' );
188
  delete_option( 'regi_pop_up' );
183
  delete_option( 'mo_account_linking_new_user_instruction');
184
  delete_option( 'mo_account_linking_existing_user_instruction');
185
  delete_option( 'mo_account_linking_extra_instruction');
186
+ delete_option( 'mo_openid_test_configuration' );
187
 
188
  delete_option( 'custom_otp_msg' );
189
  delete_option( 'regi_pop_up' );