Version Description
- Code optimization for activation and save settings page and login_check page.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- accesspress-social-login-lite.php +2 -2
- inc/backend/activation.php +19 -19
- inc/backend/save-settings.php +2 -2
- inc/frontend/login_check.php +14 -14
- js/frontend.js +1 -1
- readme.txt +4 -1
accesspress-social-login-lite.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
4 |
Plugin name: AccessPress Social Login Lite
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
6 |
Description: A plugin to add various social logins to a site.
|
7 |
-
version: 1.0.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: https://accesspressthemes.com/
|
10 |
Text Domain: apsl-lite
|
@@ -14,7 +14,7 @@ License: GPLv2 or later
|
|
14 |
|
15 |
//Declearation of the necessary constants for plugin
|
16 |
if(!defined ( 'APSL_VERSION' ) ){
|
17 |
-
define ( 'APSL_VERSION', '1.0.
|
18 |
}
|
19 |
|
20 |
if( !defined( 'APSL_IMAGE_DIR' ) ){
|
4 |
Plugin name: AccessPress Social Login Lite
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
6 |
Description: A plugin to add various social logins to a site.
|
7 |
+
version: 1.0.8
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: https://accesspressthemes.com/
|
10 |
Text Domain: apsl-lite
|
14 |
|
15 |
//Declearation of the necessary constants for plugin
|
16 |
if(!defined ( 'APSL_VERSION' ) ){
|
17 |
+
define ( 'APSL_VERSION', '1.0.8' );
|
18 |
}
|
19 |
|
20 |
if( !defined( 'APSL_IMAGE_DIR' ) ){
|
inc/backend/activation.php
CHANGED
@@ -2,8 +2,9 @@
|
|
2 |
<?php
|
3 |
$apsl_settings = array();
|
4 |
|
5 |
-
$social_networks = array(0=>'facebook', 1=>'twitter', 2=>'google');
|
6 |
-
|
|
|
7 |
|
8 |
//facebook settings
|
9 |
$facebook_parameters = array(
|
@@ -22,31 +23,30 @@ $twitter_parameters = array(
|
|
22 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
23 |
|
24 |
//google settings
|
25 |
-
$google_parameters
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
$apsl_settings['apsl_google_settings']
|
31 |
|
32 |
-
$apsl_settings['apsl_enable_disable_plugin']
|
33 |
|
34 |
$display_options = array('login_form', 'register_form', 'comment_form');
|
35 |
-
$apsl_settings['apsl_display_options']
|
36 |
-
|
37 |
-
$apsl_settings['apsl_icon_theme'] = '1';
|
38 |
|
39 |
-
$apsl_settings['
|
40 |
-
$apsl_settings['apsl_custom_logout_redirect_options'] = 'home';
|
41 |
-
$apsl_settings['apsl_custom_logout_redirect_link'] ='';
|
42 |
|
43 |
-
$apsl_settings['
|
44 |
-
$apsl_settings['
|
|
|
45 |
|
46 |
-
$apsl_settings['
|
|
|
47 |
|
48 |
-
$apsl_settings['
|
49 |
|
|
|
50 |
|
51 |
update_option( APSL_SETTINGS, $apsl_settings );
|
52 |
?>
|
2 |
<?php
|
3 |
$apsl_settings = array();
|
4 |
|
5 |
+
$social_networks = array( 0=>'facebook', 1=>'twitter', 2=>'google' );
|
6 |
+
|
7 |
+
$apsl_settings['network_ordering'] = $social_networks;
|
8 |
|
9 |
//facebook settings
|
10 |
$facebook_parameters = array(
|
23 |
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
24 |
|
25 |
//google settings
|
26 |
+
$google_parameters = array(
|
27 |
+
'apsl_google_enable' =>'0',
|
28 |
+
'apsl_google_client_id' =>'',
|
29 |
+
'apsl_google_client_secret'=>''
|
30 |
+
);
|
31 |
+
$apsl_settings['apsl_google_settings'] = $google_parameters;
|
32 |
|
33 |
+
$apsl_settings['apsl_enable_disable_plugin'] = 'yes';
|
34 |
|
35 |
$display_options = array('login_form', 'register_form', 'comment_form');
|
36 |
+
$apsl_settings['apsl_display_options'] =$display_options;
|
|
|
|
|
37 |
|
38 |
+
$apsl_settings['apsl_icon_theme'] = '1';
|
|
|
|
|
39 |
|
40 |
+
$apsl_settings['apsl_title_text_field'] = 'Social connect:';
|
41 |
+
$apsl_settings['apsl_custom_logout_redirect_options'] = 'home';
|
42 |
+
$apsl_settings['apsl_custom_logout_redirect_link'] ='';
|
43 |
|
44 |
+
$apsl_settings['apsl_custom_login_redirect_options'] = 'home';
|
45 |
+
$apsl_settings['apsl_custom_login_redirect_link'] = '';
|
46 |
|
47 |
+
$apsl_settings['apsl_user_avatar_options'] = 'default';
|
48 |
|
49 |
+
$apsl_settings['apsl_send_email_notification_options'] = 'yes';
|
50 |
|
51 |
update_option( APSL_SETTINGS, $apsl_settings );
|
52 |
?>
|
inc/backend/save-settings.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php defined('ABSPATH') or die("No script kiddies please!"); ?>
|
2 |
<?php
|
3 |
$apsl_settings= array();
|
4 |
-
$apsl_settings['network_ordering']
|
5 |
|
6 |
//for facebook settings
|
7 |
foreach ($_POST['apsl_facebook_settings'] as $key => $value) {
|
@@ -28,7 +28,7 @@
|
|
28 |
'apsl_twitter_api_secret'=>$apsl_twitter_api_secret
|
29 |
);
|
30 |
|
31 |
-
$apsl_settings['apsl_twitter_settings']
|
32 |
|
33 |
//for google settings
|
34 |
foreach ($_POST['apsl_google_settings'] as $key => $value) {
|
1 |
<?php defined('ABSPATH') or die("No script kiddies please!"); ?>
|
2 |
<?php
|
3 |
$apsl_settings= array();
|
4 |
+
$apsl_settings['network_ordering'] = $_POST['network_ordering'];
|
5 |
|
6 |
//for facebook settings
|
7 |
foreach ($_POST['apsl_facebook_settings'] as $key => $value) {
|
28 |
'apsl_twitter_api_secret'=>$apsl_twitter_api_secret
|
29 |
);
|
30 |
|
31 |
+
$apsl_settings['apsl_twitter_settings'] = $twitter_parameters;
|
32 |
|
33 |
//for google settings
|
34 |
foreach ($_POST['apsl_google_settings'] as $key => $value) {
|
inc/frontend/login_check.php
CHANGED
@@ -419,7 +419,7 @@ function siteUrl(){
|
|
419 |
function callBackUrl(){
|
420 |
$connection = !empty($_SERVER['HTTPS']) ? 'https://' : 'http://';
|
421 |
$url = $connection . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"];
|
422 |
-
if(strpos($url, '?')===false){
|
423 |
$url .= '?';
|
424 |
}else{
|
425 |
$url .= '&';
|
@@ -434,7 +434,7 @@ function get_json_values( $url ){
|
|
434 |
return $json_response;
|
435 |
}
|
436 |
|
437 |
-
function redirect($redirect){
|
438 |
if (headers_sent()){ // Use JavaScript to redirect if content has been previously sent (not recommended, but safe)
|
439 |
echo '<script language="JavaScript" type="text/javascript">window.location=\'';
|
440 |
echo $redirect;
|
@@ -588,19 +588,19 @@ function loginUser($user_id){
|
|
588 |
}
|
589 |
|
590 |
//returns the current page url
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
}
|
596 |
-
$pageURL .= "://";
|
597 |
-
if ( $_SERVER["SERVER_PORT"] != "80" ) {
|
598 |
-
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
|
599 |
-
} else {
|
600 |
-
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
|
601 |
-
}
|
602 |
-
return $pageURL;
|
603 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
604 |
|
605 |
//function to access the protected object properties
|
606 |
function accessProtected($obj, $prop) {
|
419 |
function callBackUrl(){
|
420 |
$connection = !empty($_SERVER['HTTPS']) ? 'https://' : 'http://';
|
421 |
$url = $connection . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"];
|
422 |
+
if( strpos($url, '?')===false ){
|
423 |
$url .= '?';
|
424 |
}else{
|
425 |
$url .= '&';
|
434 |
return $json_response;
|
435 |
}
|
436 |
|
437 |
+
function redirect( $redirect ){
|
438 |
if (headers_sent()){ // Use JavaScript to redirect if content has been previously sent (not recommended, but safe)
|
439 |
echo '<script language="JavaScript" type="text/javascript">window.location=\'';
|
440 |
echo $redirect;
|
588 |
}
|
589 |
|
590 |
//returns the current page url
|
591 |
+
Public static function curPageURL() {
|
592 |
+
$pageURL = 'http';
|
593 |
+
if ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ) {
|
594 |
+
$pageURL .= "s";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
}
|
596 |
+
$pageURL .= "://";
|
597 |
+
if ( $_SERVER["SERVER_PORT"] != "80" ) {
|
598 |
+
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
|
599 |
+
} else {
|
600 |
+
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
|
601 |
+
}
|
602 |
+
return $pageURL;
|
603 |
+
}
|
604 |
|
605 |
//function to access the protected object properties
|
606 |
function accessProtected($obj, $prop) {
|
js/frontend.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
jQuery(document).ready(function($){
|
2 |
$('.show-apsl-container').on('click', function(e){
|
3 |
e.preventDefault();
|
4 |
$('.apsl-container').slideToggle();
|
1 |
+
jQuery(document).ready( function($){
|
2 |
$('.show-apsl-container').on('click', function(e){
|
3 |
e.preventDefault();
|
4 |
$('.apsl-container').slideToggle();
|
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.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,9 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
|
|
131 |
4. Backend Other settings Section.
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
134 |
= 1.0.7 =
|
135 |
* Bug fixing for the social login issues with facebook.
|
136 |
* Implemented the new version of the facebook php sdk v5.0
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.0.8
|
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 |
+
= 1.0.8 =
|
135 |
+
* Code optimization for activation and save settings page and login_check page.
|
136 |
+
|
137 |
= 1.0.7 =
|
138 |
* Bug fixing for the social login issues with facebook.
|
139 |
* Implemented the new version of the facebook php sdk v5.0
|