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

Version Description

  • Removal of unnecessary comments from the plugin files.
  • Code optimizations of plugin's files.
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

accesspress-social-login-lite.php CHANGED
@@ -1,11 +1,9 @@
1
- <?php
2
-
3
- defined('ABSPATH') or die("No script kiddies please!");
4
  /*
5
  Plugin name: AccessPress Social Login Lite
6
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
7
  Description: A plugin to add various social logins to a site.
8
- version: 2.0.1
9
  Author: AccessPress Themes
10
  Author URI: https://accesspressthemes.com/
11
  Text Domain: apsl-lite
@@ -15,7 +13,7 @@ defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  //Declearation of the necessary constants for plugin
17
  if (!defined('APSL_VERSION')) {
18
- define('APSL_VERSION', '2.0.1');
19
  }
20
 
21
  if (!defined('APSL_IMAGE_DIR')) {
@@ -310,4 +308,4 @@ if (!class_exists('APSL_Lite_Class')) {
310
  //class termination
311
  }
312
 
313
- $apsl_object = new APSL_Lite_Class();
1
+ <?php defined('ABSPATH') or die("No script kiddies please!");
 
 
2
  /*
3
  Plugin name: 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: 2.0.2
7
  Author: AccessPress Themes
8
  Author URI: https://accesspressthemes.com/
9
  Text Domain: apsl-lite
13
 
14
  //Declearation of the necessary constants for plugin
15
  if (!defined('APSL_VERSION')) {
16
+ define('APSL_VERSION', '2.0.2');
17
  }
18
 
19
  if (!defined('APSL_IMAGE_DIR')) {
308
  //class termination
309
  }
310
 
311
+ $apsl_object = new APSL_Lite_Class();
inc/backend/activation.php CHANGED
@@ -29,6 +29,7 @@ $google_parameters = array(
29
  'apsl_google_client_id' => '',
30
  'apsl_google_client_secret' => ''
31
  );
 
32
  $apsl_settings['apsl_google_settings'] = $google_parameters;
33
 
34
  $apsl_settings['apsl_enable_disable_plugin'] = 'yes';
29
  'apsl_google_client_id' => '',
30
  'apsl_google_client_secret' => ''
31
  );
32
+
33
  $apsl_settings['apsl_google_settings'] = $google_parameters;
34
 
35
  $apsl_settings['apsl_enable_disable_plugin'] = 'yes';
inc/backend/main-page.php CHANGED
@@ -43,10 +43,7 @@
43
 
44
  <?php if (isset($_SESSION['apsl_message'])) { ?>
45
  <div class="apsl-message">
46
- <p><?php
47
- echo $_SESSION['apsl_message'];
48
- unset($_SESSION['apsl_message']);
49
- ?></p>
50
  </div>
51
  <?php } ?>
52
  <div class='apsl-networks'>
@@ -235,7 +232,7 @@
235
  <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php if (in_array("comment_form", $options['apsl_display_options'])) {
236
  echo "checked='checked'";
237
  } ?> ><label for="apsl_comment_form"><?php _e('Comments', APSL_TEXT_DOMAIN); ?> </label></p>
238
- </div>
239
  </div>
240
  </div>
241
 
@@ -243,7 +240,7 @@
243
  <div class='apsl-themes-wrapper'>
244
  <div class="apsl-label"><?php _e('Available icon themes', APSL_TEXT_DOMAIN); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
245
  <div class='apsl_network_settings_wrapper' style='display:none'>
246
- <?php for ($i = 1; $i <= 4; $i++): ?>
247
  <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
248
  <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']); ?> >
249
  <span><?php _e('Theme ' . $i, APSL_TEXT_DOMAIN); ?></span></label>
@@ -251,7 +248,7 @@
251
  <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
252
  </div>
253
  </div>
254
- <?php endfor; ?>
255
  </div>
256
  </div>
257
  </div>
43
 
44
  <?php if (isset($_SESSION['apsl_message'])) { ?>
45
  <div class="apsl-message">
46
+ <p> <?php echo $_SESSION['apsl_message']; unset($_SESSION['apsl_message']); ?> </p>
 
 
 
47
  </div>
48
  <?php } ?>
49
  <div class='apsl-networks'>
232
  <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php if (in_array("comment_form", $options['apsl_display_options'])) {
233
  echo "checked='checked'";
234
  } ?> ><label for="apsl_comment_form"><?php _e('Comments', APSL_TEXT_DOMAIN); ?> </label></p>
235
+ </div>
236
  </div>
237
  </div>
238
 
240
  <div class='apsl-themes-wrapper'>
241
  <div class="apsl-label"><?php _e('Available icon themes', APSL_TEXT_DOMAIN); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
242
  <div class='apsl_network_settings_wrapper' style='display:none'>
243
+ <?php for ($i = 1; $i <= 4; $i++): ?>
244
  <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
245
  <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']); ?> >
246
  <span><?php _e('Theme ' . $i, APSL_TEXT_DOMAIN); ?></span></label>
248
  <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
249
  </div>
250
  </div>
251
+ <?php endfor; ?>
252
  </div>
253
  </div>
254
  </div>
inc/backend/widget.php CHANGED
@@ -97,8 +97,4 @@ class APSL_Lite_Widget extends WP_Widget {
97
  return $instance;
98
  }
99
 
100
-
101
-
102
- }
103
-
104
- ?>
97
  return $instance;
98
  }
99
 
100
+ }
 
 
 
 
inc/frontend/login_check.php CHANGED
@@ -19,7 +19,6 @@ if (!class_exists('APSL_Lite_Login_Check_Class')) {
19
  $exploder = explode('_', $_GET['apsl_login_id']);
20
  switch ($exploder[0]) {
21
  case 'facebook':
22
- //include( APSL_PLUGIN_DIR.'facebook/src/facebook.php' );
23
  if (version_compare(PHP_VERSION, '5.4.0', '<')) {
24
  echo _e('The Facebook SDK requires PHP version 5.4 or higher. Please notify about this error to site admin.', APSL_TEXT_DOMAIN);
25
  die();
@@ -357,11 +356,7 @@ if (!class_exists('APSL_Lite_Login_Check_Class')) {
357
  $this->redirect($authUrl);
358
  die();
359
  } else {
360
- // if($encoded_url == ''){
361
- // $this->redirect($redirect_uri);
362
- // }else{
363
  $this->redirect($redirect_uri . "&redirect_to=$encoded_url");
364
- // }
365
  die();
366
  }
367
  } elseif (isset($_GET['code'])) { // Perform HTTP Request to OpenID server to validate key
@@ -612,9 +607,7 @@ if (!class_exists('APSL_Lite_Login_Check_Class')) {
612
  return $property->getValue($obj);
613
  }
614
 
615
- }
616
-
617
- //termination of a class
618
  } //end of if statement
619
 
620
  $apsl_login_check = new APSL_Lite_Login_Check_Class();
19
  $exploder = explode('_', $_GET['apsl_login_id']);
20
  switch ($exploder[0]) {
21
  case 'facebook':
 
22
  if (version_compare(PHP_VERSION, '5.4.0', '<')) {
23
  echo _e('The Facebook SDK requires PHP version 5.4 or higher. Please notify about this error to site admin.', APSL_TEXT_DOMAIN);
24
  die();
356
  $this->redirect($authUrl);
357
  die();
358
  } else {
 
 
 
359
  $this->redirect($redirect_uri . "&redirect_to=$encoded_url");
 
360
  die();
361
  }
362
  } elseif (isset($_GET['code'])) { // Perform HTTP Request to OpenID server to validate key
607
  return $property->getValue($obj);
608
  }
609
 
610
+ }//termination of a class
 
 
611
  } //end of if statement
612
 
613
  $apsl_login_check = new APSL_Lite_Login_Check_Class();
index.php CHANGED
@@ -1,4 +1,2 @@
1
  <?php
2
- //silence is golden
3
-
4
- ?>
1
  <?php
2
+ //silence is golden
 
 
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.3
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,8 +131,12 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
 
 
 
 
134
  = 2.0.1 =
135
- * Code formatting and optimization of the plugin files.
136
 
137
  = 2.0.0 =
138
  * addition of the hookable function for the user creation.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 2.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  4. Backend Other settings Section.
132
 
133
  == Changelog ==
134
+ = 2.0.2 =
135
+ * Removal of unnecessary comments from the plugin files.
136
+ * Code optimizations of plugin's files.
137
+
138
  = 2.0.1 =
139
+ * Code formatting and optimization of the plugin's files.
140
 
141
  = 2.0.0 =
142
  * addition of the hookable function for the user creation.