Social Login WordPress Plugin – AccessPress Social Login Lite - Version 3.3.7

Version Description

  • Added promolink in the backend of the site.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 3.3.7
Comparing to
See all releases

Code changes from version 3.3.6 to 3.3.7

accesspress-social-login-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
4
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
5
  Description: A plugin to add various social logins to a site.
6
- version: 3.3.6
7
  Author: AccessPress Themes
8
  Author URI: https://accesspressthemes.com/
9
  Text Domain: accesspress-social-login-lite
@@ -12,7 +12,7 @@
12
  */
13
  //Declearation of the necessary constants for plugin
14
  if( !defined( 'APSL_VERSION' ) ) {
15
- define( 'APSL_VERSION', '3.3.6' );
16
  }
17
 
18
  if( !defined( 'APSL_IMAGE_DIR' ) ) {
3
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
4
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
5
  Description: A plugin to add various social logins to a site.
6
+ version: 3.3.7
7
  Author: AccessPress Themes
8
  Author URI: https://accesspressthemes.com/
9
  Text Domain: accesspress-social-login-lite
12
  */
13
  //Declearation of the necessary constants for plugin
14
  if( !defined( 'APSL_VERSION' ) ) {
15
+ define( 'APSL_VERSION', '3.3.7' );
16
  }
17
 
18
  if( !defined( 'APSL_IMAGE_DIR' ) ) {
inc/backend/about.php CHANGED
@@ -6,16 +6,6 @@
6
  </div>
7
  </div>
8
  </div>
9
- <div class="social-more-wrap clearfix">
10
- <div class="more-title"> More from AccessPress Themes </div>
11
- <ul class="more-product">
12
- <li><a href="https://accesspressthemes.com/plugins/"><span class="prod-title"> Wordpress Plugins </span> <img src="<?php echo APSL_IMAGE_DIR . '/plugin.png'; ?>" width="100%" /> </a></li>
13
- <li><a href="https://accesspressthemes.com/themes/"><span class="prod-title"> Wordpress Themes </span> <img src="<?php echo APSL_IMAGE_DIR . '/theme.png'; ?>" width="100%" /></a></li>
14
- <li><a href="https://accesspressthemes.com/contact/"><span class="prod-title"> Wordpress Customization </span> <img src="<?php echo APSL_IMAGE_DIR . '/customize.png'; ?>" width="100%" /></a></li>
15
- </ul>
16
- <div class="clear"></div>
17
- </div>
18
-
19
  <div class="social-share-wrap clearfix">
20
  <div class="more-title"> Get social </div>
21
  <div class="social-iframe"> <strong>Like us on facebook:</strong><br />
@@ -26,6 +16,41 @@
26
  <li><a href="https://plus.google.com/+Accesspressthemesprofile/" class="gp" target="_blank" rel="nofollow"><i class="fa fa-google-plus"> </i><br /><span> Follow us on <span class="bold"> Google + </span> </span></a></li>
27
  <li><a href="https://www.youtube.com/user/accesspressthemes" class="utube" target="_blank" rel="nofollow"><i class="fa fa-youtube"> </i><br /><span> Subscribe us on <span class="bold"> Youtube </span> </span></a></li>
28
  <li><a href="skype:access-keys" class="skype"><i class="fa fa-skype" target="_blank" rel="nofollow"> </i><br /><span> Contact us on <span class="bold"> Skype </span> </span></a></li>
29
- <li><a href="https://www.pinterest.com/accesspresswp/" class="pin" target="_blank" rel="nofollow"><i class="fa fa-pinterest"> </i><br /><span> Follow us on <span class="bold"> Pinterest </span> </span></a></li>
30
  </ul>
31
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  </div>
7
  </div>
8
  </div>
 
 
 
 
 
 
 
 
 
 
9
  <div class="social-share-wrap clearfix">
10
  <div class="more-title"> Get social </div>
11
  <div class="social-iframe"> <strong>Like us on facebook:</strong><br />
16
  <li><a href="https://plus.google.com/+Accesspressthemesprofile/" class="gp" target="_blank" rel="nofollow"><i class="fa fa-google-plus"> </i><br /><span> Follow us on <span class="bold"> Google + </span> </span></a></li>
17
  <li><a href="https://www.youtube.com/user/accesspressthemes" class="utube" target="_blank" rel="nofollow"><i class="fa fa-youtube"> </i><br /><span> Subscribe us on <span class="bold"> Youtube </span> </span></a></li>
18
  <li><a href="skype:access-keys" class="skype"><i class="fa fa-skype" target="_blank" rel="nofollow"> </i><br /><span> Contact us on <span class="bold"> Skype </span> </span></a></li>
19
+ <li><a href="https://www.pinterest.com/accesspresswp/" class="pin" target="_blank" rel="nofollow"><i class="fa fa-pinterest"> </i><br /><span> Follow us on<span class="bold"> Pinterest </span> </span></a></li>
20
  </ul>
21
  </div>
22
+ <div class="about-wrapper clearfix">
23
+ <div class="about-desc-wrap clearfix">
24
+ <div class="more-title"> More WordPress Resources</div>
25
+ <div class="about-content">
26
+ <div>
27
+ <p> Themes Compatible with the Plugin :</p>
28
+
29
+ <p><strong>AccessPress Social Login Lite</strong> works best with every WordPress theme. It's even more remarkable when used with popular themes like VMagazine and AccessPress Parallax.</p>
30
+
31
+ <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
32
+
33
+ <p><a href="https://wpall.club/" target="_blank">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
34
+
35
+ <p> <a href="https://themeforest.net/user/accesskeys/portfolio" target="_blank">Premium WordPress Themes</a> - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
36
+
37
+ <p> <a href="https://codecanyon.net/user/accesskeys/portfolio?Ref=AccessKeys" target="_blank">Premium WordPress Plugins</a> - 45+ premium WordPress plugins of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace. </p>
38
+
39
+ <p> <a href="https://accesspressthemes.com/" target="_blank">AccessPress Themes</a> - AccessPress Themes has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.</p>
40
+
41
+ <p> <a href="https://8degreethemes.com/" target="_blank">8Degree Themes</a> - 8Degree Themes offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.</p>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <!--<div class="social-more-wrap clearfix">
47
+ <div class="more-title"> More from AccessPress Themes </div>
48
+ <ul class="more-product">
49
+ <li><a href="https://accesspressthemes.com/plugins/"><span class="prod-title"> Wordpress Plugins </span> <img src="< ?php echo APSL_IMAGE_DIR . '/plugin.png'; ?>" width="100%" /> </a></li>
50
+ <li><a href="https://accesspressthemes.com/themes/"><span class="prod-title"> Wordpress Themes </span> <img src="< ?php echo APSL_IMAGE_DIR . '/theme.png'; ?>" width="100%" /></a></li>
51
+ <li><a href="https://accesspressthemes.com/contact/"><span class="prod-title"> Wordpress Customization </span> <img src="< ?php echo APSL_IMAGE_DIR . '/customize.png'; ?>" width="100%" /></a></li>
52
+ </ul>
53
+ <div class="clear"></div>
54
+ </div>-->
55
+
56
+
inc/backend/main-page.php CHANGED
@@ -1,11 +1,11 @@
1
- <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
  <div class="wrap">
3
  <div class='apsl-outer-wrapper'>
4
  <div class="apsl-setting-header clearfix">
5
  <div class="apsl-headerlogo">
6
- <div class="logo-wrap"> <img src="<?php echo APSL_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e( 'AccessPress Social Login Lite', 'accesspress-social-login-lite' ); ?>" /></div>
7
- <div class="logo-content"><?php esc_attr_e( 'AccessPress Social Login Lite', 'accesspress-social-login-lite' ); ?><br />
8
- <span class='plugin-version'><?php _e( 'version ' . APSL_VERSION, 'accesspress-social-login-lite' ); ?></span>
9
  </div>
10
  </div>
11
 
@@ -35,77 +35,77 @@
35
  </div>
36
  <div class="clear"></div>
37
 
38
- <?php $options = get_option( APSL_SETTINGS );
39
- if( isset( $_SESSION['apsl_message'] ) ) { ?>
 
40
  <div class="apsl-message">
41
- <p> <?php echo $_SESSION['apsl_message']; unset( $_SESSION['apsl_message'] ); ?> </p>
 
42
  </div>
43
- <?php
44
- } ?>
45
  <div class='apsl-networks'>
46
  <div class='apsl-network-options'>
47
  <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
48
  <input type="hidden" name="action" value="apsl_save_options"/>
49
  <div class='apsl-settings-tabs-wrapper clearfix'>
50
  <ul class='apsl-tab-wrapper-fix clearfix'>
51
- <li><a href='javascript: void(0);' id='apsl-networks-settings' class='apsl-settings-tab apsl-active-tab' ><?php _e( 'Network settings', 'accesspress-social-login-lite' ) ?></a></li>
52
- <li><a href='javascript: void(0);' id='apsl-theme-settings' class='apsl-settings-tab' ><?php _e( 'Other settings', 'accesspress-social-login-lite' ) ?></a></li>
53
- <li><a href='javascript: void(0);' id='apsl-how-to-use' class='apsl-settings-tab' ><?php _e( 'How to use', 'accesspress-social-login-lite' ) ?></a></li>
54
- <li><a href='javascript: void(0);' id='apsl-about' class='apsl-settings-tab' ><?php _e( 'About', 'accesspress-social-login-lite' ) ?></a></li>
55
- <li><a href='http://wpall.club/' target="_blank" id='apsl-resource' class='apsl-settings-tab' ><?php _e( 'More WordPress Resources', 'accesspress-social-login-lite' ) ?></a></li>
56
  </ul>
57
  </div>
58
  <div class="clear"></div>
59
  <div class='apsl-setting-tabs-wrapper'>
60
  <div class='apsl-tab-contents' id='tab-apsl-networks-settings'>
61
  <div class='network-settings'>
62
- <?php
63
- foreach( $options['network_ordering'] as $key => $value ): ?>
64
  <?php
65
- switch( $value ) {
66
  case 'facebook':
67
- ?>
68
  <div class='apsl-settings apsl-facebook-settings'>
69
  <!-- Facebook Settings -->
70
- <div class='apsl-label'><?php _e( "Facebook", 'accesspress-social-login-lite' ); ?><span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
71
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
72
  <div class='apsl-enable-disable'>
73
- <label><?php _e( 'Enable?', 'accesspress-social-login-lite' ); ?></label>
74
  <input type='hidden' name='network_ordering[]' value='facebook' />
75
- <input type="checkbox" id='aspl-facbook-enable' value='enable' name='apsl_facebook_settings[apsl_facebook_enable]' <?php checked( 'enable', $options['apsl_facebook_settings']['apsl_facebook_enable'] ); ?> />
76
  </div>
77
  <div class='apsl-app-id-wrapper'>
78
- <label><?php _e( 'App ID:', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-facebook-app-id' name='apsl_facebook_settings[apsl_facebook_app_id]' value='<?php
79
- if( isset( $options['apsl_facebook_settings']['apsl_facebook_app_id'] ) ) {
80
- echo $options['apsl_facebook_settings']['apsl_facebook_app_id'];
81
- }
82
  ?>' />
83
  </div>
84
  <div class='apsl-app-secret-wrapper'>
85
- <label><?php _e( 'App Secret:', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-facebook-app-secret' name='apsl_facebook_settings[apsl_facebook_app_secret]' value='<?php
86
- if( isset( $options['apsl_facebook_settings']['apsl_facebook_app_secret'] ) ) {
87
- echo $options['apsl_facebook_settings']['apsl_facebook_app_secret'];
88
- }
89
  ?>' />
90
  </div>
91
 
92
  <div class='apsl-fb-profile-image-size'>
93
- <label><?php _e( 'Profile picture image size', 'accesspress-social-login-lite' ); ?></label><br />
94
- <label for='apsl-fb-profile-image-width'><?php _e( 'Width:', 'accesspress-social-login-lite' ); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_width]' id='apsl-fb-profile-image-width' value='<?php
95
- if( isset( $options['apsl_facebook_settings']['apsl_profile_image_width'] ) ) {
96
- echo $options['apsl_facebook_settings']['apsl_profile_image_width'];
97
- }
98
- ?>' style="width: 60px;" /> px
99
  <br />
100
- <label for='apsl-fb-profile-image-height'><?php _e( 'Height:', 'accesspress-social-login-lite' ); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_height]' id='apsl-fb-profile-image-height' value='<?php
101
- if( isset( $options['apsl_facebook_settings']['apsl_profile_image_height'] ) ) {
102
- echo $options['apsl_facebook_settings']['apsl_profile_image_height'];
103
- }
104
- ?>' style="width: 60px;" /> px
105
- <div class='apsl-info'>Please note that the facebook might not provide the exact dimention of the image as settings above.</div>
106
  </div>
107
  <div class='apsl-info'>
108
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
109
  <span class='apsl-info-content'>You need to create a new facebook API Applitation to setup facebook login. Please follow the instructions to create new app.</span>
110
  <br />
111
  <ul class='apsl-info-lists'>
@@ -130,39 +130,37 @@
130
  </div>
131
  </div>
132
  </div>
133
- <?php
134
- break; ?>
135
 
136
- <?php
137
- case 'twitter': ?>
138
  <div class='apsl-settings apsl-twitter-settings'>
139
  <!-- Twitter Settings -->
140
- <div class='apsl-label'><?php _e( "Twitter", 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
141
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
142
  <div class='apsl-enable-disable'>
143
- <label><?php _e( 'Enable?', 'accesspress-social-login-lite' ); ?></label>
144
- <input type="checkbox" id='aspl-twitter-enable' value='enable' name='apsl_twitter_settings[apsl_twitter_enable]' <?php checked( 'enable', $options['apsl_twitter_settings']['apsl_twitter_enable'] ); ?> />
145
  </div>
146
 
147
  <div class='apsl-app-id-wrapper'>
148
- <label><?php _e( 'Consumer Key (API Key):', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-twitter-app-id' name='apsl_twitter_settings[apsl_twitter_api_key]' value='<?php
149
- if( isset( $options['apsl_twitter_settings']['apsl_twitter_api_key'] ) ) {
150
- echo $options['apsl_twitter_settings']['apsl_twitter_api_key'];
151
- }
152
- ?>' />
153
  </div>
154
 
155
  <div class='apsl-app-secret-wrapper'>
156
- <label><?php _e( 'Consumer Secret (API Secret):', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-twitter-app-secret' name='apsl_twitter_settings[apsl_twitter_api_secret]' value='<?php
157
- if( isset( $options['apsl_twitter_settings']['apsl_twitter_api_secret'] ) ) {
158
- echo $options['apsl_twitter_settings']['apsl_twitter_api_secret'];
159
- }
160
- ?>' />
161
  </div>
162
 
163
  <input type='hidden' name='network_ordering[]' value='twitter' />
164
  <div class='apsl-info'>
165
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?> <br /> </span>
166
  <span class='apsl-info-content'>You need to create new twitter API application to setup the twitter login. Please follow the instructions to create new app.</span>
167
  <ul class='apsl-info-lists'>
168
  <li>Go to <a href='https://apps.twitter.com/' target='_blank'>https://apps.twitter.com/</a></li>
@@ -178,34 +176,34 @@
178
  </div>
179
  </div>
180
  <?php
181
- break;
182
  case 'google':
183
  ?>
184
  <div class='apsl-settings apsl-google-settings'>
185
  <!-- Google Settings -->
186
- <div class='apsl-label'><?php _e( "Google", 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
187
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
188
  <div class='apsl-enable-disable'>
189
- <label><?php _e( 'Enable?', 'accesspress-social-login-lite' ); ?></label>
190
- <input type="checkbox" id='aspl-google-enable' value='enable' name='apsl_google_settings[apsl_google_enable]' <?php checked( 'enable', $options['apsl_google_settings']['apsl_google_enable'] ); ?> />
191
  </div>
192
  <div class='apsl-app-id-wrapper'>
193
- <label><?php _e( 'Client ID:', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-google-client-id' name='apsl_google_settings[apsl_google_client_id]' value='<?php
194
- if( isset( $options['apsl_google_settings']['apsl_google_client_id'] ) ) {
195
- echo $options['apsl_google_settings']['apsl_google_client_id'];
196
- }
197
- ?>' />
198
  </div>
199
  <div class='apsl-app-secret-wrapper'>
200
- <label><?php _e( 'Client Secret:', 'accesspress-social-login-lite' ); ?></label><input type='text' id='apsl-google-client-secret' name='apsl_google_settings[apsl_google_client_secret]' value='<?php
201
- if( isset( $options['apsl_google_settings']['apsl_google_client_secret'] ) ) {
202
- echo $options['apsl_google_settings']['apsl_google_client_secret'];
203
- }
204
- ?>' />
205
  </div>
206
  <input type='hidden' name='network_ordering[]' value='google' />
207
  <div class='apsl-info'>
208
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
209
  <span class='apsl-info-content'>You need to create new google API application to setup the google login. Please follow the instructions to create new application.</span>
210
  <ul class='apsl-info-lists'>
211
  <li>Go to <a href='https://console.developers.google.com/project' target='_blank'>https://console.developers.google.com/project.</a> </li>
@@ -231,29 +229,27 @@
231
  </div>
232
  </div>
233
  </div>
234
- <?php
235
- break; ?>
236
 
237
  <?php
238
  default:
239
  echo "should not reach here";
240
- break;
241
  }
242
  ?>
243
- <?php
244
- endforeach; ?>
245
  </div>
246
  </div>
247
 
248
  <div class='apsl-tab-contents' id='tab-apsl-theme-settings' style="display:none">
249
  <div class='apsl-settings'>
250
  <div class='apsl-enable-disable-opt'>
251
- <div class="apsl-label"><?php _e( 'Social login', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
252
  <div class='apsl_network_settings_wrapper' style='display:none'>
253
  <p class="social-login">
254
- <span><?php _e( 'Enable social login?', 'accesspress-social-login-lite' ); ?></span>
255
- <input type='radio' id='apsl_enable_plugin' name='apsl_enable_disable_plugin' value='yes' <?php checked( $options['apsl_enable_disable_plugin'], 'yes', 'true' ); ?> /> <label for='apsl_enable_plugin'>Yes</label>
256
- <input type='radio' id='apsl_disable_plugin' name='apsl_enable_disable_plugin' value='no' <?php checked( $options['apsl_enable_disable_plugin'], 'no', 'true' ); ?> /> <label for='apsl_disable_plugin'>No</label>
257
  </p>
258
  </div>
259
  </div>
@@ -261,56 +257,55 @@
261
 
262
  <div class='apsl-settings'>
263
  <div class='apsl-display-options'>
264
- <div class="apsl-label"><?php _e( 'Display options', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span></div>
265
  <div class='apsl_network_settings_wrapper' style='display:none'>
266
- <p><?php _e( 'Please choose the options where you want to display the social login form.', 'accesspress-social-login-lite' ); ?></p>
267
  <p><input type="checkbox" id="apsl_login_form" value="login_form" name="apsl_display_options[]" <?php
268
- if( in_array( "login_form", $options['apsl_display_options'] ) ) {
269
- echo "checked='checked'";
270
- }
271
- ?> ><label for="apsl_login_form"><?php _e( 'Login Form', 'accesspress-social-login-lite' ); ?> </label></p>
272
- <p><input type="checkbox" id="apsl_register_form" value="register_form" name="apsl_display_options[]" <?php
273
- if( in_array( "register_form", $options['apsl_display_options'] ) ) {
274
  echo "checked='checked'";
275
  }
276
- ?> ><label for="apsl_register_form"><?php _e( 'Register Form', 'accesspress-social-login-lite' ); ?> </label></p>
277
- <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php
278
- if( in_array( "comment_form", $options['apsl_display_options'] ) ) {
279
  echo "checked='checked'";
280
  }
281
- ?> ><label for="apsl_comment_form"><?php _e( 'Comments', 'accesspress-social-login-lite' ); ?> </label></p>
282
  </div>
283
  </div>
284
  </div>
285
 
286
  <div class='apsl-settings'>
287
  <div class='apsl-themes-wrapper'>
288
- <div class="apsl-label"><?php _e( 'Available icon themes', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
289
  <div class='apsl_network_settings_wrapper' style='display:none'>
290
- <?php for( $i = 1;$i <= 4;$i++ ): ?>
291
  <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
292
- <label><input type="radio" id="apsl-theme-<?php echo $i; ?>" value="<?php echo $i; ?>" class="apsl-theme apsl-png-theme" name="apsl_icon_theme" <?php checked( $i, $options['apsl_icon_theme'] ); ?> >
293
- <span><?php _e( 'Theme ' . $i, 'accesspress-social-login-lite' ); ?></span></label>
294
  <div class="apsl-theme-previewbox">
295
  <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
296
  </div>
297
  </div>
298
- <?php
299
- endfor; ?>
300
  </div>
301
  </div>
302
  </div>
303
 
304
  <div class='apsl-settings'>
305
  <div class='apsl-text-settings'>
306
- <div class="apsl-label"><?php _e( 'Text settings', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
307
  <div class='apsl_network_settings_wrapper' style='display:none'>
308
  <p class='apsl-title-text-field'>
309
- <span><?php _e( 'Login text:', 'accesspress-social-login-lite' ); ?></span> <input type='text' name='apsl_title_text_field' id='apsl-title-text' value='<?php
310
- if( isset( $options['apsl_title_text_field'] ) && $options['apsl_title_text_field'] != '' ) {
311
- echo $options['apsl_title_text_field'];
312
- }
313
- ?>' />
314
  </p>
315
  </div>
316
  </div>
@@ -318,43 +313,44 @@
318
 
319
  <div class='apsl-settings'>
320
  <div class='apsl-logout-redirect-settings'>
321
- <div class="apsl-label"><?php _e( 'Logout redirect link', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
322
  <div class='apsl_network_settings_wrapper' style='display:none'>
323
  <input type='radio' id='apsl_custom_logout_redirect_home' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='home' <?php
324
- if( isset( $options['apsl_custom_logout_redirect_options'] ) ) {
325
- checked( $options['apsl_custom_logout_redirect_options'], 'home', 'true' );
326
- }
327
- ?> /> <label for='apsl_custom_logout_redirect_home'><?php _e( 'Home page', 'accesspress-social-login-lite' ); ?></label><br /><br />
328
  <input type='radio' id='apsl_custom_logout_redirect_current' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='current_page' <?php
329
- if( isset( $options['apsl_custom_logout_redirect_options'] ) ) {
330
- checked( $options['apsl_custom_logout_redirect_options'], 'current_page', 'true' );
331
  }
332
- ?> /> <label for='apsl_custom_logout_redirect_current'><?php _e( 'Current page', 'accesspress-social-login-lite' ); ?></label><br /><br />
333
 
334
 
335
  <input type='radio' id='apsl_custom_logout_redirect_custom' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='custom_page' <?php
336
- if( isset( $options['apsl_custom_logout_redirect_options'] ) ) {
337
- checked( $options['apsl_custom_logout_redirect_options'], 'custom_page', 'true' );
338
- }
339
- ?> /> <label for='apsl_custom_logout_redirect_custom'><?php _e( 'Custom page', 'accesspress-social-login-lite' ); ?></label><br />
340
 
341
- <div class='apsl-custom-logout-redirect-link' <?php if( isset( $options['apsl_custom_logout_redirect_options'] ) ) {
342
- if( $options['apsl_custom_logout_redirect_options'] == 'custom_page' ) {
343
- ?> style='display: block' <?php
344
- }
345
- else { ?> style='display:none' <?php
346
- }
347
- }
348
- ?>>
 
349
  <p class='apsl-title-text-field'>
350
- <span><?php _e( 'Logout redirect page:', 'accesspress-social-login-lite' ); ?></span> <input type='text' name='apsl_custom_logout_redirect_link' id='apsl-custom-logout-redirect-link' value='<?php
351
- if( isset( $options['apsl_custom_logout_redirect_link'] ) && $options['apsl_custom_logout_redirect_link'] != '' ) {
352
- echo $options['apsl_custom_logout_redirect_link'];
353
- }
354
- ?>' />
355
  </p>
356
  <div class='apsl-info'>
357
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
358
  <span class='apsl-info-content'>Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to current page.</span>
359
  </div>
360
  </div>
@@ -364,48 +360,49 @@
364
 
365
  <div class='apsl-settings'>
366
  <div class='apsl-login-redir
367
- ect-settings'>
368
- <div class="apsl-label"><?php _e( 'Login redirect link', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
369
  <div class='apsl_network_settings_wrapper' style='display:none'>
370
  <input type='radio' id='apsl_custom_login_redirect_home' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='home' <?php
371
- if( isset( $options['apsl_custom_login_redirect_options'] ) ) {
372
- checked( $options['apsl_custom_login_redirect_options'], 'home', 'true' );
373
- }
374
- ?> /> <label for='apsl_custom_login_redirect_home'><?php _e( 'Home page', 'accesspress-social-login-lite' ); ?></label><br /><br />
375
  <input type='radio' id='apsl_custom_login_redirect_current' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='current_page' <?php
376
- if( isset( $options['apsl_custom_login_redirect_options'] ) ) {
377
- checked( $options['apsl_custom_login_redirect_options'], 'current_page', 'true' );
378
  }
379
- ?> /> <label for='apsl_custom_login_redirect_current'><?php _e( 'Current page', 'accesspress-social-login-lite' ); ?></label><br /><br />
380
  <div class='apsl-custom-login-redirect-link1' >
381
  <div class='apsl-info'>
382
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
383
  <span class='apsl-info-content'> If plugin can't detect what is the redirect uri for the page it will be redirected to home page.</span>
384
  </div>
385
  </div>
386
  <input type='radio' id='apsl_custom_login_redirect_custom' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='custom_page' <?php
387
- if( isset( $options['apsl_custom_login_redirect_options'] ) ) {
388
- checked( $options['apsl_custom_login_redirect_options'], 'custom_page', 'true' );
389
- }
390
- ?> /> <label for='apsl_custom_login_redirect_custom'><?php _e( 'Custom page', 'accesspress-social-login-lite' ); ?></label><br />
391
 
392
- <div class='apsl-custom-login-redirect-link' <?php if( isset( $options['apsl_custom_login_redirect_options'] ) ) {
393
- if( $options['apsl_custom_login_redirect_options'] == 'custom_page' ) {
394
- ?> style='display: block' <?php
395
- }
396
- else { ?> style='display:none' <?php
397
- }
398
- }
399
- ?>>
 
400
  <p class='apsl-title-text-field'>
401
- <span><?php _e( 'Login redirect page:', 'accesspress-social-login-lite' ); ?></span> <input type='text' name='apsl_custom_login_redirect_link' id='apsl-custom-login-redirect-link' value='<?php
402
- if( isset( $options['apsl_custom_login_redirect_link'] ) && $options['apsl_custom_login_redirect_link'] != '' ) {
403
- echo $options['apsl_custom_login_redirect_link'];
404
- }
405
- ?>' />
406
  </p>
407
  <div class='apsl-info'>
408
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
409
  <span class='apsl-info-content'>Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to home page.</span>
410
  </div>
411
  </div>
@@ -415,20 +412,20 @@
415
 
416
  <div class='apsl-settings'>
417
  <div class='apsl-user-avatar-settings'>
418
- <div class="apsl-label"><?php _e( 'User avatar', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
419
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
420
  <input type='radio' id='apsl_user_avatar_default' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='default' <?php
421
- if( isset( $options['apsl_user_avatar_options'] ) ) {
422
- checked( $options['apsl_user_avatar_options'], 'default', 'true' );
423
- }
424
- ?> /> <label for='apsl_user_avatar_default'><?php _e( 'Use wordpress provided default avatar.', 'accesspress-social-login-lite' ); ?></label><br /><br />
425
  <input type='radio' id='apsl_user_avatar_social' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='social' <?php
426
- if( isset( $options['apsl_user_avatar_options'] ) ) {
427
- checked( $options['apsl_user_avatar_options'], 'social', 'true' );
428
- }
429
- ?> /> <label for='apsl_user_avatar_social'><?php _e( 'Use the profile picture from social media where available.', 'accesspress-social-login-lite' ); ?></label><br /><br />
430
  <div class='apsl-info'>
431
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
432
  <span class='apsl-info-content'>Please choose the options from where you want your users avatar to be loaded from. If you choose default wordpress avatar it will use the gravatar profile image if user have gravatar profile assocated with their registered email address.</span>
433
  </div>
434
  </div>
@@ -437,20 +434,20 @@
437
 
438
  <div class='apsl-settings'>
439
  <div class='apsl-user-email-settings'>
440
- <div class="apsl-label"><?php _e( 'Email notification settings', 'accesspress-social-login-lite' ); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
441
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
442
  <input type='radio' id='apsl_send_email_notification_yes' class='apsl_send_email_notification_yes' name='apsl_send_email_notification_options' value='yes' <?php
443
- if( isset( $options['apsl_send_email_notification_options'] ) ) {
444
- checked( $options['apsl_send_email_notification_options'], 'yes', 'true' );
445
- }
446
- ?> /> <label for='apsl_send_email_notification_yes'><?php _e( 'Send email notification to both user and site admin.', 'accesspress-social-login-lite' ); ?></label><br /><br />
447
  <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php
448
- if( isset( $options['apsl_send_email_notification_options'] ) ) {
449
- checked( $options['apsl_send_email_notification_options'], 'no', 'true' );
450
- }
451
- ?> /> <label for='apsl_send_email_notification_no'><?php _e( 'Do not send email notification to both user and site admin.', 'accesspress-social-login-lite' ); ?></label><br /><br />
452
  <div class='apsl-info'>
453
- <span class='apsl-info-note'><?php _e( 'Note:', 'accesspress-social-login-lite' ); ?></span> <br />
454
  <span class='apsl-info-content'>Here you can configure an options to send email notifications about user registration to site admin and user.</span>
455
  </div>
456
  </div>
@@ -462,23 +459,23 @@
462
 
463
  <!-- how to use section -->
464
  <div class='apsl-tab-contents' id='tab-apsl-how-to-use' style="display:none">
465
- <?php include( APSL_PLUGIN_DIR . 'inc/backend/how-to-use.php' ); ?>
466
  </div>
467
 
468
  <!-- about section -->
469
  <div class='apsl-tab-contents' id='tab-apsl-about' style="display:none">
470
- <?php include( APSL_PLUGIN_DIR . 'inc/backend/about.php' ); ?>
471
  </div>
472
 
473
  <!-- Save settings Button -->
474
  <div class='apsl-save-settings'>
475
- <?php wp_nonce_field( 'apsl_nonce_save_settings', 'apsl_settings_action' ); ?>
476
- <input type='submit' class='apsl-submit-settings primary-button' name='apsl_save_settings' value='<?php _e( 'Save settings', 'accesspress-social-login-lite' ); ?>' />
477
  </div>
478
 
479
  <div class='apsl-restore-settings'>
480
- <?php $nonce = wp_create_nonce( 'apsl-restore-default-settings-nonce' ); ?>
481
- <a href="<?php echo admin_url() . 'admin-post.php?action=apsl_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e( 'Are you sure you want to restore default settings?', 'accesspress-social-login-lite' ); ?>')"><input type="button" value="Restore Default Settings" class="apsl-reset-button button primary-button"/></a>
482
  </div>
483
  </div>
484
  </form>
1
+ <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <div class="wrap">
3
  <div class='apsl-outer-wrapper'>
4
  <div class="apsl-setting-header clearfix">
5
  <div class="apsl-headerlogo">
6
+ <div class="logo-wrap"> <img src="<?php echo APSL_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?>" /></div>
7
+ <div class="logo-content"><?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?><br />
8
+ <span class='plugin-version'><?php _e('version ' . APSL_VERSION, 'accesspress-social-login-lite'); ?></span>
9
  </div>
10
  </div>
11
 
35
  </div>
36
  <div class="clear"></div>
37
 
38
+ <?php $options = get_option(APSL_SETTINGS);
39
+ if (isset($_SESSION['apsl_message'])) {
40
+ ?>
41
  <div class="apsl-message">
42
+ <p> <?php echo $_SESSION['apsl_message'];
43
+ unset($_SESSION['apsl_message']); ?> </p>
44
  </div>
45
+ <?php }
46
+ ?>
47
  <div class='apsl-networks'>
48
  <div class='apsl-network-options'>
49
  <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
50
  <input type="hidden" name="action" value="apsl_save_options"/>
51
  <div class='apsl-settings-tabs-wrapper clearfix'>
52
  <ul class='apsl-tab-wrapper-fix clearfix'>
53
+ <li><a href='javascript: void(0);' id='apsl-networks-settings' class='apsl-settings-tab apsl-active-tab' ><?php _e('Network settings', 'accesspress-social-login-lite') ?></a></li>
54
+ <li><a href='javascript: void(0);' id='apsl-theme-settings' class='apsl-settings-tab' ><?php _e('Other settings', 'accesspress-social-login-lite') ?></a></li>
55
+ <li><a href='javascript: void(0);' id='apsl-how-to-use' class='apsl-settings-tab' ><?php _e('How to use', 'accesspress-social-login-lite') ?></a></li>
56
+ <li><a href='javascript: void(0);' id='apsl-about' class='apsl-settings-tab' ><?php _e('More WordPress Resources', 'accesspress-social-login-lite') ?></a></li>
 
57
  </ul>
58
  </div>
59
  <div class="clear"></div>
60
  <div class='apsl-setting-tabs-wrapper'>
61
  <div class='apsl-tab-contents' id='tab-apsl-networks-settings'>
62
  <div class='network-settings'>
63
+ <?php foreach ($options['network_ordering'] as $key => $value): ?>
 
64
  <?php
65
+ switch ($value) {
66
  case 'facebook':
67
+ ?>
68
  <div class='apsl-settings apsl-facebook-settings'>
69
  <!-- Facebook Settings -->
70
+ <div class='apsl-label'><?php _e("Facebook", 'accesspress-social-login-lite'); ?><span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
71
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
72
  <div class='apsl-enable-disable'>
73
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
74
  <input type='hidden' name='network_ordering[]' value='facebook' />
75
+ <input type="checkbox" id='aspl-facbook-enable' value='enable' name='apsl_facebook_settings[apsl_facebook_enable]' <?php checked('enable', $options['apsl_facebook_settings']['apsl_facebook_enable']); ?> />
76
  </div>
77
  <div class='apsl-app-id-wrapper'>
78
+ <label><?php _e('App ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-id' name='apsl_facebook_settings[apsl_facebook_app_id]' value='<?php
79
+ if (isset($options['apsl_facebook_settings']['apsl_facebook_app_id'])) {
80
+ echo $options['apsl_facebook_settings']['apsl_facebook_app_id'];
81
+ }
82
  ?>' />
83
  </div>
84
  <div class='apsl-app-secret-wrapper'>
85
+ <label><?php _e('App Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-secret' name='apsl_facebook_settings[apsl_facebook_app_secret]' value='<?php
86
+ if (isset($options['apsl_facebook_settings']['apsl_facebook_app_secret'])) {
87
+ echo $options['apsl_facebook_settings']['apsl_facebook_app_secret'];
88
+ }
89
  ?>' />
90
  </div>
91
 
92
  <div class='apsl-fb-profile-image-size'>
93
+ <label><?php _e('Profile picture image size', 'accesspress-social-login-lite'); ?></label><br />
94
+ <label for='apsl-fb-profile-image-width'><?php _e('Width:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_width]' id='apsl-fb-profile-image-width' value='<?php
95
+ if (isset($options['apsl_facebook_settings']['apsl_profile_image_width'])) {
96
+ echo $options['apsl_facebook_settings']['apsl_profile_image_width'];
97
+ }
98
+ ?>' style="width: 60px;" /> px
99
  <br />
100
+ <label for='apsl-fb-profile-image-height'><?php _e('Height:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_height]' id='apsl-fb-profile-image-height' value='<?php
101
+ if (isset($options['apsl_facebook_settings']['apsl_profile_image_height'])) {
102
+ echo $options['apsl_facebook_settings']['apsl_profile_image_height'];
103
+ }
104
+ ?>' style="width: 60px;" /> px
105
+ <div class='apsl-info'>Please note that the facebook might not provide the exact dimention of the image as settings above.</div>
106
  </div>
107
  <div class='apsl-info'>
108
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
109
  <span class='apsl-info-content'>You need to create a new facebook API Applitation to setup facebook login. Please follow the instructions to create new app.</span>
110
  <br />
111
  <ul class='apsl-info-lists'>
130
  </div>
131
  </div>
132
  </div>
133
+ <?php break; ?>
 
134
 
135
+ <?php case 'twitter': ?>
 
136
  <div class='apsl-settings apsl-twitter-settings'>
137
  <!-- Twitter Settings -->
138
+ <div class='apsl-label'><?php _e("Twitter", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
139
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
140
  <div class='apsl-enable-disable'>
141
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
142
+ <input type="checkbox" id='aspl-twitter-enable' value='enable' name='apsl_twitter_settings[apsl_twitter_enable]' <?php checked('enable', $options['apsl_twitter_settings']['apsl_twitter_enable']); ?> />
143
  </div>
144
 
145
  <div class='apsl-app-id-wrapper'>
146
+ <label><?php _e('Consumer Key (API Key):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-id' name='apsl_twitter_settings[apsl_twitter_api_key]' value='<?php
147
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_key'])) {
148
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_key'];
149
+ }
150
+ ?>' />
151
  </div>
152
 
153
  <div class='apsl-app-secret-wrapper'>
154
+ <label><?php _e('Consumer Secret (API Secret):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-secret' name='apsl_twitter_settings[apsl_twitter_api_secret]' value='<?php
155
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_secret'])) {
156
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_secret'];
157
+ }
158
+ ?>' />
159
  </div>
160
 
161
  <input type='hidden' name='network_ordering[]' value='twitter' />
162
  <div class='apsl-info'>
163
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?> <br /> </span>
164
  <span class='apsl-info-content'>You need to create new twitter API application to setup the twitter login. Please follow the instructions to create new app.</span>
165
  <ul class='apsl-info-lists'>
166
  <li>Go to <a href='https://apps.twitter.com/' target='_blank'>https://apps.twitter.com/</a></li>
176
  </div>
177
  </div>
178
  <?php
179
+ break;
180
  case 'google':
181
  ?>
182
  <div class='apsl-settings apsl-google-settings'>
183
  <!-- Google Settings -->
184
+ <div class='apsl-label'><?php _e("Google", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
185
  <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
186
  <div class='apsl-enable-disable'>
187
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
188
+ <input type="checkbox" id='aspl-google-enable' value='enable' name='apsl_google_settings[apsl_google_enable]' <?php checked('enable', $options['apsl_google_settings']['apsl_google_enable']); ?> />
189
  </div>
190
  <div class='apsl-app-id-wrapper'>
191
+ <label><?php _e('Client ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-id' name='apsl_google_settings[apsl_google_client_id]' value='<?php
192
+ if (isset($options['apsl_google_settings']['apsl_google_client_id'])) {
193
+ echo $options['apsl_google_settings']['apsl_google_client_id'];
194
+ }
195
+ ?>' />
196
  </div>
197
  <div class='apsl-app-secret-wrapper'>
198
+ <label><?php _e('Client Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-secret' name='apsl_google_settings[apsl_google_client_secret]' value='<?php
199
+ if (isset($options['apsl_google_settings']['apsl_google_client_secret'])) {
200
+ echo $options['apsl_google_settings']['apsl_google_client_secret'];
201
+ }
202
+ ?>' />
203
  </div>
204
  <input type='hidden' name='network_ordering[]' value='google' />
205
  <div class='apsl-info'>
206
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
207
  <span class='apsl-info-content'>You need to create new google API application to setup the google login. Please follow the instructions to create new application.</span>
208
  <ul class='apsl-info-lists'>
209
  <li>Go to <a href='https://console.developers.google.com/project' target='_blank'>https://console.developers.google.com/project.</a> </li>
229
  </div>
230
  </div>
231
  </div>
232
+ <?php break; ?>
 
233
 
234
  <?php
235
  default:
236
  echo "should not reach here";
237
+ break;
238
  }
239
  ?>
240
+ <?php endforeach; ?>
 
241
  </div>
242
  </div>
243
 
244
  <div class='apsl-tab-contents' id='tab-apsl-theme-settings' style="display:none">
245
  <div class='apsl-settings'>
246
  <div class='apsl-enable-disable-opt'>
247
+ <div class="apsl-label"><?php _e('Social login', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
248
  <div class='apsl_network_settings_wrapper' style='display:none'>
249
  <p class="social-login">
250
+ <span><?php _e('Enable social login?', 'accesspress-social-login-lite'); ?></span>
251
+ <input type='radio' id='apsl_enable_plugin' name='apsl_enable_disable_plugin' value='yes' <?php checked($options['apsl_enable_disable_plugin'], 'yes', 'true'); ?> /> <label for='apsl_enable_plugin'>Yes</label>
252
+ <input type='radio' id='apsl_disable_plugin' name='apsl_enable_disable_plugin' value='no' <?php checked($options['apsl_enable_disable_plugin'], 'no', 'true'); ?> /> <label for='apsl_disable_plugin'>No</label>
253
  </p>
254
  </div>
255
  </div>
257
 
258
  <div class='apsl-settings'>
259
  <div class='apsl-display-options'>
260
+ <div class="apsl-label"><?php _e('Display options', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span></div>
261
  <div class='apsl_network_settings_wrapper' style='display:none'>
262
+ <p><?php _e('Please choose the options where you want to display the social login form.', 'accesspress-social-login-lite'); ?></p>
263
  <p><input type="checkbox" id="apsl_login_form" value="login_form" name="apsl_display_options[]" <?php
264
+ if (in_array("login_form", $options['apsl_display_options'])) {
265
+ echo "checked='checked'";
266
+ }
267
+ ?> ><label for="apsl_login_form"><?php _e('Login Form', 'accesspress-social-login-lite'); ?> </label></p>
268
+ <p><input type="checkbox" id="apsl_register_form" value="register_form" name="apsl_display_options[]" <?php
269
+ if (in_array("register_form", $options['apsl_display_options'])) {
270
  echo "checked='checked'";
271
  }
272
+ ?> ><label for="apsl_register_form"><?php _e('Register Form', 'accesspress-social-login-lite'); ?> </label></p>
273
+ <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php
274
+ if (in_array("comment_form", $options['apsl_display_options'])) {
275
  echo "checked='checked'";
276
  }
277
+ ?> ><label for="apsl_comment_form"><?php _e('Comments', 'accesspress-social-login-lite'); ?> </label></p>
278
  </div>
279
  </div>
280
  </div>
281
 
282
  <div class='apsl-settings'>
283
  <div class='apsl-themes-wrapper'>
284
+ <div class="apsl-label"><?php _e('Available icon themes', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
285
  <div class='apsl_network_settings_wrapper' style='display:none'>
286
+ <?php for ($i = 1; $i <= 4; $i++): ?>
287
  <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
288
+ <label><input type="radio" id="apsl-theme-<?php echo $i; ?>" value="<?php echo $i; ?>" class="apsl-theme apsl-png-theme" name="apsl_icon_theme" <?php checked($i, $options['apsl_icon_theme']); ?> >
289
+ <span><?php _e('Theme ' . $i, 'accesspress-social-login-lite'); ?></span></label>
290
  <div class="apsl-theme-previewbox">
291
  <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
292
  </div>
293
  </div>
294
+ <?php endfor; ?>
 
295
  </div>
296
  </div>
297
  </div>
298
 
299
  <div class='apsl-settings'>
300
  <div class='apsl-text-settings'>
301
+ <div class="apsl-label"><?php _e('Text settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
302
  <div class='apsl_network_settings_wrapper' style='display:none'>
303
  <p class='apsl-title-text-field'>
304
+ <span><?php _e('Login text:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_title_text_field' id='apsl-title-text' value='<?php
305
+ if (isset($options['apsl_title_text_field']) && $options['apsl_title_text_field'] != '') {
306
+ echo $options['apsl_title_text_field'];
307
+ }
308
+ ?>' />
309
  </p>
310
  </div>
311
  </div>
313
 
314
  <div class='apsl-settings'>
315
  <div class='apsl-logout-redirect-settings'>
316
+ <div class="apsl-label"><?php _e('Logout redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
317
  <div class='apsl_network_settings_wrapper' style='display:none'>
318
  <input type='radio' id='apsl_custom_logout_redirect_home' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='home' <?php
319
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
320
+ checked($options['apsl_custom_logout_redirect_options'], 'home', 'true');
321
+ }
322
+ ?> /> <label for='apsl_custom_logout_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
323
  <input type='radio' id='apsl_custom_logout_redirect_current' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='current_page' <?php
324
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
325
+ checked($options['apsl_custom_logout_redirect_options'], 'current_page', 'true');
326
  }
327
+ ?> /> <label for='apsl_custom_logout_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
328
 
329
 
330
  <input type='radio' id='apsl_custom_logout_redirect_custom' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='custom_page' <?php
331
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
332
+ checked($options['apsl_custom_logout_redirect_options'], 'custom_page', 'true');
333
+ }
334
+ ?> /> <label for='apsl_custom_logout_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
335
 
336
+ <div class='apsl-custom-logout-redirect-link' <?php
337
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
338
+ if ($options['apsl_custom_logout_redirect_options'] == 'custom_page') {
339
+ ?> style='display: block' <?php
340
+ } else {
341
+ ?> style='display:none' <?php
342
+ }
343
+ }
344
+ ?>>
345
  <p class='apsl-title-text-field'>
346
+ <span><?php _e('Logout redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_logout_redirect_link' id='apsl-custom-logout-redirect-link' value='<?php
347
+ if (isset($options['apsl_custom_logout_redirect_link']) && $options['apsl_custom_logout_redirect_link'] != '') {
348
+ echo $options['apsl_custom_logout_redirect_link'];
349
+ }
350
+ ?>' />
351
  </p>
352
  <div class='apsl-info'>
353
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
354
  <span class='apsl-info-content'>Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to current page.</span>
355
  </div>
356
  </div>
360
 
361
  <div class='apsl-settings'>
362
  <div class='apsl-login-redir
363
+ ect-settings'>
364
+ <div class="apsl-label"><?php _e('Login redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
365
  <div class='apsl_network_settings_wrapper' style='display:none'>
366
  <input type='radio' id='apsl_custom_login_redirect_home' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='home' <?php
367
+ if (isset($options['apsl_custom_login_redirect_options'])) {
368
+ checked($options['apsl_custom_login_redirect_options'], 'home', 'true');
369
+ }
370
+ ?> /> <label for='apsl_custom_login_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
371
  <input type='radio' id='apsl_custom_login_redirect_current' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='current_page' <?php
372
+ if (isset($options['apsl_custom_login_redirect_options'])) {
373
+ checked($options['apsl_custom_login_redirect_options'], 'current_page', 'true');
374
  }
375
+ ?> /> <label for='apsl_custom_login_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
376
  <div class='apsl-custom-login-redirect-link1' >
377
  <div class='apsl-info'>
378
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
379
  <span class='apsl-info-content'> If plugin can't detect what is the redirect uri for the page it will be redirected to home page.</span>
380
  </div>
381
  </div>
382
  <input type='radio' id='apsl_custom_login_redirect_custom' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='custom_page' <?php
383
+ if (isset($options['apsl_custom_login_redirect_options'])) {
384
+ checked($options['apsl_custom_login_redirect_options'], 'custom_page', 'true');
385
+ }
386
+ ?> /> <label for='apsl_custom_login_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
387
 
388
+ <div class='apsl-custom-login-redirect-link' <?php
389
+ if (isset($options['apsl_custom_login_redirect_options'])) {
390
+ if ($options['apsl_custom_login_redirect_options'] == 'custom_page') {
391
+ ?> style='display: block' <?php
392
+ } else {
393
+ ?> style='display:none' <?php
394
+ }
395
+ }
396
+ ?>>
397
  <p class='apsl-title-text-field'>
398
+ <span><?php _e('Login redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_login_redirect_link' id='apsl-custom-login-redirect-link' value='<?php
399
+ if (isset($options['apsl_custom_login_redirect_link']) && $options['apsl_custom_login_redirect_link'] != '') {
400
+ echo $options['apsl_custom_login_redirect_link'];
401
+ }
402
+ ?>' />
403
  </p>
404
  <div class='apsl-info'>
405
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
406
  <span class='apsl-info-content'>Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to home page.</span>
407
  </div>
408
  </div>
412
 
413
  <div class='apsl-settings'>
414
  <div class='apsl-user-avatar-settings'>
415
+ <div class="apsl-label"><?php _e('User avatar', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
416
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
417
  <input type='radio' id='apsl_user_avatar_default' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='default' <?php
418
+ if (isset($options['apsl_user_avatar_options'])) {
419
+ checked($options['apsl_user_avatar_options'], 'default', 'true');
420
+ }
421
+ ?> /> <label for='apsl_user_avatar_default'><?php _e('Use wordpress provided default avatar.', 'accesspress-social-login-lite'); ?></label><br /><br />
422
  <input type='radio' id='apsl_user_avatar_social' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='social' <?php
423
+ if (isset($options['apsl_user_avatar_options'])) {
424
+ checked($options['apsl_user_avatar_options'], 'social', 'true');
425
+ }
426
+ ?> /> <label for='apsl_user_avatar_social'><?php _e('Use the profile picture from social media where available.', 'accesspress-social-login-lite'); ?></label><br /><br />
427
  <div class='apsl-info'>
428
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
429
  <span class='apsl-info-content'>Please choose the options from where you want your users avatar to be loaded from. If you choose default wordpress avatar it will use the gravatar profile image if user have gravatar profile assocated with their registered email address.</span>
430
  </div>
431
  </div>
434
 
435
  <div class='apsl-settings'>
436
  <div class='apsl-user-email-settings'>
437
+ <div class="apsl-label"><?php _e('Email notification settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
438
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
439
  <input type='radio' id='apsl_send_email_notification_yes' class='apsl_send_email_notification_yes' name='apsl_send_email_notification_options' value='yes' <?php
440
+ if (isset($options['apsl_send_email_notification_options'])) {
441
+ checked($options['apsl_send_email_notification_options'], 'yes', 'true');
442
+ }
443
+ ?> /> <label for='apsl_send_email_notification_yes'><?php _e('Send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
444
  <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php
445
+ if (isset($options['apsl_send_email_notification_options'])) {
446
+ checked($options['apsl_send_email_notification_options'], 'no', 'true');
447
+ }
448
+ ?> /> <label for='apsl_send_email_notification_no'><?php _e('Do not send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
449
  <div class='apsl-info'>
450
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
451
  <span class='apsl-info-content'>Here you can configure an options to send email notifications about user registration to site admin and user.</span>
452
  </div>
453
  </div>
459
 
460
  <!-- how to use section -->
461
  <div class='apsl-tab-contents' id='tab-apsl-how-to-use' style="display:none">
462
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/how-to-use.php' ); ?>
463
  </div>
464
 
465
  <!-- about section -->
466
  <div class='apsl-tab-contents' id='tab-apsl-about' style="display:none">
467
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/about.php' ); ?>
468
  </div>
469
 
470
  <!-- Save settings Button -->
471
  <div class='apsl-save-settings'>
472
+ <?php wp_nonce_field('apsl_nonce_save_settings', 'apsl_settings_action'); ?>
473
+ <input type='submit' class='apsl-submit-settings primary-button' name='apsl_save_settings' value='<?php _e('Save settings', 'accesspress-social-login-lite'); ?>' />
474
  </div>
475
 
476
  <div class='apsl-restore-settings'>
477
+ <?php $nonce = wp_create_nonce('apsl-restore-default-settings-nonce'); ?>
478
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apsl_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'accesspress-social-login-lite'); ?>')"><input type="button" value="Restore Default Settings" class="apsl-reset-button button primary-button"/></a>
479
  </div>
480
  </div>
481
  </form>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Social Login WordPress Plugin - AccessPress Social Login Lite ===
2
  Contributors: Access Keys
3
  Tags: social, login, social login, facebook, twitter, google, social connect, social network login, register, login with, signin, oauth, authorize, oauth
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
- Stable tag: 3.3.6
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -111,7 +111,6 @@ For complete information and documentation regarding plugin, please visit below
111
 
112
  [More WordPress Resources](http://wpall.club/)
113
 
114
-
115
  == Installation ==
116
  1. Unzip accesspress-social-login-lite.zip
117
  2. Upload all the files to the /wp-content/plugins/accesspress-social-login-lite
@@ -138,7 +137,11 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
138
  4. Backend Other settings Section.
139
 
140
  == Changelog ==
141
- = 3.3.5 =
 
 
 
 
142
  * GDPR check
143
 
144
  = 3.3.5 =
@@ -335,5 +338,22 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
335
  = 1.0.0 =
336
  * Plugin submitted to http://wordpress.org for review and approval
337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  == Upgrade Notice ==
339
  There is an update available for the AccessPress Social Login lite Plugin. Please update to receive new updates and bug fixes.
1
+ === AccessPress Social Login Lite - Social Login WordPress Plugin ===
2
  Contributors: Access Keys
3
  Tags: social, login, social login, facebook, twitter, google, social connect, social network login, register, login with, signin, oauth, authorize, oauth
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
+ Stable tag: 3.3.7
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
111
 
112
  [More WordPress Resources](http://wpall.club/)
113
 
 
114
  == Installation ==
115
  1. Unzip accesspress-social-login-lite.zip
116
  2. Upload all the files to the /wp-content/plugins/accesspress-social-login-lite
137
  4. Backend Other settings Section.
138
 
139
  == Changelog ==
140
+
141
+ = 3.3.7 =
142
+ * Added promolink in the backend of the site.
143
+
144
+ = 3.3.6 =
145
  * GDPR check
146
 
147
  = 3.3.5 =
338
  = 1.0.0 =
339
  * Plugin submitted to http://wordpress.org for review and approval
340
 
341
+ == More Resources ==
342
+ Themes Compatible With Our Plugin :
343
+
344
+ AccessPress Social Login Lite works best with every WordPress theme. Its even more remarkable when used with popular themes of ours or any other being compatible to almost all of the themes.
345
+
346
+ AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :
347
+
348
+ [WPAll Club](https://wpall.club/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
349
+
350
+ [Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
351
+
352
+ [Premium WordPress Plugins](https://codecanyon.net/user/accesskeys/portfolio) - 45+ premium WordPress plugins of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace.
353
+
354
+ [AccessPress Themes](https://accesspressthemes.com/) - AccessPress Themes has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.
355
+
356
+ [8Degree Themes](https://8degreethemes.com/) - 8Degree Themes offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.
357
+
358
  == Upgrade Notice ==
359
  There is an update available for the AccessPress Social Login lite Plugin. Please update to receive new updates and bug fixes.