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

Version Description

  • New section added for promotion text and other few changes in backend.
Download this release

Release Info

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

Code changes from version 3.3.7 to 3.3.8

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.7
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.7' );
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.8
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.8' );
16
  }
17
 
18
  if( !defined( 'APSL_IMAGE_DIR' ) ) {
inc/backend/about.php CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  <div class="about-wrapper clearfix">
2
  <div class="about-desc-wrap clearfix">
3
  <div class="ap-title"> About AccessPress Social Login Lite</div>
@@ -19,31 +22,7 @@
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>
@@ -51,6 +30,6 @@
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
 
1
+
2
+ <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
3
+
4
  <div class="about-wrapper clearfix">
5
  <div class="about-desc-wrap clearfix">
6
  <div class="ap-title"> About AccessPress Social Login Lite</div>
22
  <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>
23
  </ul>
24
  </div>
25
+ <div class="social-more-wrap clearfix">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  <div class="more-title"> More from AccessPress Themes </div>
27
  <ul class="more-product">
28
  <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>
30
  <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>
31
  </ul>
32
  <div class="clear"></div>
33
+ </div>
34
 
35
 
inc/backend/main-page.php CHANGED
@@ -35,15 +35,18 @@
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' ?>">
@@ -53,7 +56,8 @@
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>
@@ -144,18 +148,18 @@
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' />
@@ -189,17 +193,17 @@
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'>
@@ -237,7 +241,7 @@
237
  break;
238
  }
239
  ?>
240
- <?php endforeach; ?>
241
  </div>
242
  </div>
243
 
@@ -261,10 +265,10 @@
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'";
@@ -283,7 +287,7 @@
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>
@@ -291,7 +295,7 @@
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>
@@ -302,10 +306,10 @@
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>
@@ -316,10 +320,10 @@ if (isset($options['apsl_title_text_field']) && $options['apsl_title_text_field'
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');
@@ -328,26 +332,26 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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 />
@@ -364,10 +368,10 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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');
@@ -380,26 +384,26 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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 />
@@ -415,15 +419,15 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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>
@@ -437,15 +441,15 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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>
@@ -459,22 +463,23 @@ if (isset($options['apsl_custom_logout_redirect_options'])) {
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>
35
  </div>
36
  <div class="clear"></div>
37
 
38
+ <?php
39
+ $options = get_option(APSL_SETTINGS);
40
  if (isset($_SESSION['apsl_message'])) {
41
  ?>
42
  <div class="apsl-message">
43
+ <p> <?php
44
+ echo $_SESSION['apsl_message'];
45
+ unset($_SESSION['apsl_message']);
46
+ ?> </p>
47
  </div>
48
+ <?php }
49
+ ?>
50
  <div class='apsl-networks'>
51
  <div class='apsl-network-options'>
52
  <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
56
  <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>
57
  <li><a href='javascript: void(0);' id='apsl-theme-settings' class='apsl-settings-tab' ><?php _e('Other settings', 'accesspress-social-login-lite') ?></a></li>
58
  <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>
59
+ <li><a href='javascript: void(0);' id='apsl-about' class='apsl-settings-tab' ><?php _e('About Us', 'accesspress-social-login-lite') ?></a></li>
60
+ <li><a href='javascript: void(0);' id='apsl-more-wordpress-resources' class='apsl-settings-tab' ><?php _e('More WordPress Resources', 'accesspress-social-login-lite') ?></a></li>
61
  </ul>
62
  </div>
63
  <div class="clear"></div>
148
 
149
  <div class='apsl-app-id-wrapper'>
150
  <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
151
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_key'])) {
152
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_key'];
153
+ }
154
+ ?>' />
155
  </div>
156
 
157
  <div class='apsl-app-secret-wrapper'>
158
  <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
159
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_secret'])) {
160
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_secret'];
161
+ }
162
+ ?>' />
163
  </div>
164
 
165
  <input type='hidden' name='network_ordering[]' value='twitter' />
193
  </div>
194
  <div class='apsl-app-id-wrapper'>
195
  <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
196
+ if (isset($options['apsl_google_settings']['apsl_google_client_id'])) {
197
+ echo $options['apsl_google_settings']['apsl_google_client_id'];
198
+ }
199
+ ?>' />
200
  </div>
201
  <div class='apsl-app-secret-wrapper'>
202
  <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
203
+ if (isset($options['apsl_google_settings']['apsl_google_client_secret'])) {
204
+ echo $options['apsl_google_settings']['apsl_google_client_secret'];
205
+ }
206
+ ?>' />
207
  </div>
208
  <input type='hidden' name='network_ordering[]' value='google' />
209
  <div class='apsl-info'>
241
  break;
242
  }
243
  ?>
244
+ <?php endforeach; ?>
245
  </div>
246
  </div>
247
 
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'";
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>
295
  <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
296
  </div>
297
  </div>
298
+ <?php endfor; ?>
299
  </div>
300
  </div>
301
  </div>
306
  <div class='apsl_network_settings_wrapper' style='display:none'>
307
  <p class='apsl-title-text-field'>
308
  <span><?php _e('Login text:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_title_text_field' id='apsl-title-text' value='<?php
309
+ if (isset($options['apsl_title_text_field']) && $options['apsl_title_text_field'] != '') {
310
+ echo $options['apsl_title_text_field'];
311
+ }
312
+ ?>' />
313
  </p>
314
  </div>
315
  </div>
320
  <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>
321
  <div class='apsl_network_settings_wrapper' style='display:none'>
322
  <input type='radio' id='apsl_custom_logout_redirect_home' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='home' <?php
323
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
324
+ checked($options['apsl_custom_logout_redirect_options'], 'home', 'true');
325
+ }
326
+ ?> /> <label for='apsl_custom_logout_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
327
  <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
328
  if (isset($options['apsl_custom_logout_redirect_options'])) {
329
  checked($options['apsl_custom_logout_redirect_options'], 'current_page', 'true');
332
 
333
 
334
  <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
335
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
336
+ checked($options['apsl_custom_logout_redirect_options'], 'custom_page', 'true');
337
+ }
338
+ ?> /> <label for='apsl_custom_logout_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
339
 
340
  <div class='apsl-custom-logout-redirect-link' <?php
341
  if (isset($options['apsl_custom_logout_redirect_options'])) {
342
  if ($options['apsl_custom_logout_redirect_options'] == 'custom_page') {
343
  ?> style='display: block' <?php
344
+ } else {
345
+ ?> 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 />
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');
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
393
+ if (isset($options['apsl_custom_login_redirect_options'])) {
394
+ if ($options['apsl_custom_login_redirect_options'] == 'custom_page') {
395
+ ?> style='display: block' <?php
396
+ } else {
397
+ ?> style='display:none' <?php
398
  }
399
  }
400
  ?>>
401
  <p class='apsl-title-text-field'>
402
  <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
403
+ if (isset($options['apsl_custom_login_redirect_link']) && $options['apsl_custom_login_redirect_link'] != '') {
404
+ echo $options['apsl_custom_login_redirect_link'];
405
+ }
406
+ ?>' />
407
  </p>
408
  <div class='apsl-info'>
409
  <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
419
  <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>
420
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
421
  <input type='radio' id='apsl_user_avatar_default' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='default' <?php
422
+ if (isset($options['apsl_user_avatar_options'])) {
423
+ checked($options['apsl_user_avatar_options'], 'default', 'true');
424
+ }
425
+ ?> /> <label for='apsl_user_avatar_default'><?php _e('Use wordpress provided default avatar.', 'accesspress-social-login-lite'); ?></label><br /><br />
426
  <input type='radio' id='apsl_user_avatar_social' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='social' <?php
427
+ if (isset($options['apsl_user_avatar_options'])) {
428
+ checked($options['apsl_user_avatar_options'], 'social', 'true');
429
+ }
430
+ ?> /> <label for='apsl_user_avatar_social'><?php _e('Use the profile picture from social media where available.', 'accesspress-social-login-lite'); ?></label><br /><br />
431
  <div class='apsl-info'>
432
  <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
433
  <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>
441
  <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>
442
  <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
443
  <input type='radio' id='apsl_send_email_notification_yes' class='apsl_send_email_notification_yes' name='apsl_send_email_notification_options' value='yes' <?php
444
+ if (isset($options['apsl_send_email_notification_options'])) {
445
+ checked($options['apsl_send_email_notification_options'], 'yes', 'true');
446
+ }
447
+ ?> /> <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 />
448
  <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php
449
+ if (isset($options['apsl_send_email_notification_options'])) {
450
+ checked($options['apsl_send_email_notification_options'], 'no', 'true');
451
+ }
452
+ ?> /> <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 />
453
  <div class='apsl-info'>
454
  <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
455
  <span class='apsl-info-content'>Here you can configure an options to send email notifications about user registration to site admin and user.</span>
463
 
464
  <!-- how to use section -->
465
  <div class='apsl-tab-contents' id='tab-apsl-how-to-use' style="display:none">
466
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/how-to-use.php' ); ?>
467
  </div>
 
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
+ <div class='apsl-tab-contents' id='tab-apsl-more-wordpress-resources' style="display:none">
473
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/more-wordpress-resources.php' ); ?>
474
  </div>
 
475
  <!-- Save settings Button -->
476
  <div class='apsl-save-settings'>
477
+ <?php wp_nonce_field('apsl_nonce_save_settings', 'apsl_settings_action'); ?>
478
  <input type='submit' class='apsl-submit-settings primary-button' name='apsl_save_settings' value='<?php _e('Save settings', 'accesspress-social-login-lite'); ?>' />
479
  </div>
480
 
481
  <div class='apsl-restore-settings'>
482
+ <?php $nonce = wp_create_nonce('apsl-restore-default-settings-nonce'); ?>
483
  <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>
484
  </div>
485
  </div>
inc/backend/more-wordpress-resources.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
+ <div class="about-wrapper clearfix">
3
+ <div class="about-desc-wrap clearfix">
4
+ <div class="ap-title">
5
+ <h3>More WordPress Resources</h3>
6
+ </div>
7
+ <div class="about-content">
8
+ <div>
9
+ <p> Themes Compatible with the Plugin :</p>
10
+
11
+ <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>
12
+
13
+ <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
14
+
15
+ <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>
16
+
17
+ <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>
18
+
19
+ <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>
20
+
21
+ <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>
22
+
23
+ <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>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
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
@@ -138,6 +138,9 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
138
 
139
  == Changelog ==
140
 
 
 
 
141
  = 3.3.7 =
142
  * Added promolink in the backend of the site.
143
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
+ Stable tag: 3.3.8
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
138
 
139
  == Changelog ==
140
 
141
+ = 3.3.8 =
142
+ * New section added for promotion text and other few changes in backend.
143
+
144
  = 3.3.7 =
145
  * Added promolink in the backend of the site.
146