Version Description
- Done the removal of unnuecessary codes from the login check functions.
- Done the link fixings for the social media links in about page.
- Done some strings translation ready in the shortcode.php file.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.1.9 |
Comparing to | |
See all releases |
Code changes from version 3.1.8 to 3.1.9
- accesspress-social-login-lite.php +2 -2
- inc/backend/about.php +6 -6
- inc/frontend/login_check.php +1 -19
- inc/frontend/shortcode.php +1 -1
- readme.txt +6 -1
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.1.
|
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.1.
|
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.1.9
|
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.1.9' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
inc/backend/about.php
CHANGED
@@ -21,11 +21,11 @@
|
|
21 |
<div class="social-iframe"> <strong>Like us on facebook:</strong><br />
|
22 |
<iframe style="border: none; overflow: hidden; width: 764px; height: 206px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width="240" height="150" frameborder="0" scrolling="no"></iframe></div>
|
23 |
<ul class="about-social clearfix">
|
24 |
-
<li><a href="https://www.facebook.com/pages/AccessPress-Themes/1396595907277967" class="fb"><i class="fa fa-facebook"> </i><br /> <span> Follow us on <span class="bold"> Facebook </span></span></a></li>
|
25 |
-
<li><a href="https://twitter.com/apthemes" class="twt"><i class="fa fa-twitter"> </i><br /><span> Follow us on <span class="bold"> Twitter </span> </span></a></li>
|
26 |
-
<li><a href="https://plus.google.com/+Accesspressthemesprofile/" class="gp"><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"><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"> </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"><i class="fa fa-pinterest"> </i><br /><span> Follow us on <span class="bold"> Pinterest </span> </span></a></li>
|
30 |
</ul>
|
31 |
</div>
|
21 |
<div class="social-iframe"> <strong>Like us on facebook:</strong><br />
|
22 |
<iframe style="border: none; overflow: hidden; width: 764px; height: 206px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width="240" height="150" frameborder="0" scrolling="no"></iframe></div>
|
23 |
<ul class="about-social clearfix">
|
24 |
+
<li><a href="https://www.facebook.com/pages/AccessPress-Themes/1396595907277967" class="fb" target="_blank" rel="nofollow"><i class="fa fa-facebook"> </i><br /> <span> Follow us on <span class="bold"> Facebook </span></span></a></li>
|
25 |
+
<li><a href="https://twitter.com/apthemes" class="twt" target="_blank" rel="nofollow"><i class="fa fa-twitter"> </i><br /><span> Follow us on <span class="bold"> Twitter </span> </span></a></li>
|
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>
|
inc/frontend/login_check.php
CHANGED
@@ -169,7 +169,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
169 |
echo 'Facebook SDK returned an error: ' . $e->getMessage();
|
170 |
exit;
|
171 |
}
|
172 |
-
|
173 |
$user_profile = $this->accessProtected( $userNode, 'items' );
|
174 |
if( $user_profile != null ) {
|
175 |
$return_user_details->status = 'SUCCESS';
|
@@ -364,24 +364,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
364 |
//for google login
|
365 |
function onGoogleLogin() {
|
366 |
$result = $this->GoogleLogin();
|
367 |
-
// echo "<pre>";
|
368 |
if( isset( $result->status ) == 'SUCCESS' ) {
|
369 |
-
// $row = $this->getUserByMail( $result->email );
|
370 |
-
// $options = get_option( APSL_SETTINGS );
|
371 |
-
// if( !$row ) {
|
372 |
-
// $this->creatUser( $result->username, $result->email );
|
373 |
-
// $row = $this->getUserByMail( $result->email );
|
374 |
-
// update_user_meta( $row->ID, 'email', $result->email );
|
375 |
-
// update_user_meta( $row->ID, 'first_name', $result->first_name );
|
376 |
-
// update_user_meta( $row->ID, 'last_name', $result->last_name );
|
377 |
-
// update_user_meta( $row->ID, 'deuid', $result->deuid );
|
378 |
-
// update_user_meta( $row->ID, 'deutype', $result->deutype );
|
379 |
-
// update_user_meta( $row->ID, 'deuimage', $result->deuimage );
|
380 |
-
// update_user_meta( $row->ID, 'description', $result->about );
|
381 |
-
// wp_update_user( array('ID' => $row->ID, 'display_name' => $result->first_name, 'role' => 'subscriber', 'user_url' => $result->url) );
|
382 |
-
// }
|
383 |
-
// $this->loginUser( $row->ID );
|
384 |
-
//
|
385 |
global $wpdb;
|
386 |
$unique_verifier = sha1($result->deutype.$result->deuid);
|
387 |
$sql = "SELECT * FROM `{$wpdb->prefix}apsl_users_social_profile_details` WHERE `provider_name` LIKE '$result->deutype' AND `identifier` LIKE '$result->deuid' AND `unique_verifier` LIKE '$unique_verifier'";
|
@@ -394,7 +377,6 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
394 |
$id = $user_details_by_email->ID;
|
395 |
$sql = "SELECT * FROM `{$wpdb->prefix}apsl_users_social_profile_details` WHERE `user_id` LIKE '$id'; ";
|
396 |
$row = $wpdb->get_row($sql);
|
397 |
-
// var_dump($row);
|
398 |
if(!$row){
|
399 |
self:: link_user($id, $result);
|
400 |
}
|
169 |
echo 'Facebook SDK returned an error: ' . $e->getMessage();
|
170 |
exit;
|
171 |
}
|
172 |
+
// get the user profile details
|
173 |
$user_profile = $this->accessProtected( $userNode, 'items' );
|
174 |
if( $user_profile != null ) {
|
175 |
$return_user_details->status = 'SUCCESS';
|
364 |
//for google login
|
365 |
function onGoogleLogin() {
|
366 |
$result = $this->GoogleLogin();
|
|
|
367 |
if( isset( $result->status ) == 'SUCCESS' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
global $wpdb;
|
369 |
$unique_verifier = sha1($result->deutype.$result->deuid);
|
370 |
$sql = "SELECT * FROM `{$wpdb->prefix}apsl_users_social_profile_details` WHERE `provider_name` LIKE '$result->deutype' AND `identifier` LIKE '$result->deuid' AND `unique_verifier` LIKE '$unique_verifier'";
|
377 |
$id = $user_details_by_email->ID;
|
378 |
$sql = "SELECT * FROM `{$wpdb->prefix}apsl_users_social_profile_details` WHERE `user_id` LIKE '$id'; ";
|
379 |
$row = $wpdb->get_row($sql);
|
|
|
380 |
if(!$row){
|
381 |
self:: link_user($id, $result);
|
382 |
}
|
inc/frontend/shortcode.php
CHANGED
@@ -27,7 +27,7 @@ if ( is_user_logged_in() ) {
|
|
27 |
} else {
|
28 |
$user_logout_url = wp_logout_url( $current_url );
|
29 |
}
|
30 |
-
?><div class="user-login"
|
31 |
<?php
|
32 |
} else {
|
33 |
?>
|
27 |
} else {
|
28 |
$user_logout_url = wp_logout_url( $current_url );
|
29 |
}
|
30 |
+
?><div class="user-login"><?php _e('Welcome', 'accesspress-social-login-lite'); ?> <b><?php echo $user_info; ?></b> | <a href="<?php echo $user_logout_url; ?>" title="<?php _e('Logout', 'accesspress-social-login-lite'); ?>"><?php _e('Logout', 'accesspress-social-login-lite'); ?></a></div>
|
31 |
<?php
|
32 |
} else {
|
33 |
?>
|
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.6
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -137,6 +137,11 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
|
|
137 |
4. Backend Other settings Section.
|
138 |
|
139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
140 |
= 3.1.8 =
|
141 |
* Done the addition of the notice for the google+ login info.
|
142 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 3.1.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
137 |
4. Backend Other settings Section.
|
138 |
|
139 |
== Changelog ==
|
140 |
+
= 3.1.9 =
|
141 |
+
* Done the removal of unnuecessary codes from the login check functions.
|
142 |
+
* Done the link fixings for the social media links in about page.
|
143 |
+
* Done some strings translation ready in the shortcode.php file.
|
144 |
+
|
145 |
= 3.1.8 =
|
146 |
* Done the addition of the notice for the google+ login info.
|
147 |
|