Version Description
Download this release
Release Info
Developer | netweblogic |
Plugin | Login With Ajax |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.1
- login-with-ajax.php +13 -11
- readme.txt +7 -5
- templates/default/login.php +2 -2
login-with-ajax.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Login With Ajax
|
4 |
-
Plugin URI:
|
5 |
Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
|
6 |
-
Author:
|
7 |
-
Version: 4.
|
8 |
-
Author URI:
|
9 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, MultiSite, security, sidebar, admin, widget
|
10 |
Text Domain: login-with-ajax
|
11 |
|
12 |
-
Copyright (C) 2022 Marcus Sykes
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -24,7 +24,7 @@ GNU General Public License for more details.
|
|
24 |
You should have received a copy of the GNU General Public License
|
25 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
26 |
*/
|
27 |
-
define('LOGIN_WITH_AJAX_VERSION', '4.
|
28 |
define('LOGIN_WITH_AJAX_PATH', dirname(__FILE__));
|
29 |
define('LOGIN_WITH_AJAX_URL', trailingslashit(plugin_dir_url(__FILE__)));
|
30 |
class LoginWithAjax {
|
@@ -338,7 +338,7 @@ class LoginWithAjax {
|
|
338 |
} else {
|
339 |
$register_link = wp_registration_url();
|
340 |
}
|
341 |
-
return static::template_link( $
|
342 |
}
|
343 |
|
344 |
/**
|
@@ -348,7 +348,8 @@ class LoginWithAjax {
|
|
348 |
* @see LoginWithAjax::template_link()
|
349 |
*/
|
350 |
public static function get_remember_url( $template = null ){
|
351 |
-
|
|
|
352 |
}
|
353 |
|
354 |
/**
|
@@ -358,7 +359,8 @@ class LoginWithAjax {
|
|
358 |
* @see LoginWithAjax::template_link()
|
359 |
*/
|
360 |
public static function get_login_url( $template = null ){
|
361 |
-
|
|
|
362 |
}
|
363 |
|
364 |
/*
|
@@ -407,7 +409,7 @@ class LoginWithAjax {
|
|
407 |
}
|
408 |
//final replaces
|
409 |
if( !empty($redirect) ){
|
410 |
-
$redirect = str_replace("%LASTURL%",
|
411 |
if( !empty($lang) ){
|
412 |
$redirect = str_replace("%LANG%", $lang.'/', $redirect);
|
413 |
}
|
@@ -557,7 +559,7 @@ class LoginWithAjax {
|
|
557 |
foreach( array('login_form','lwa_register_form', 'lostpassword_form') as $action ) remove_action($action, 'lwa_wpml_input_var');
|
558 |
}
|
559 |
}
|
560 |
-
static::$template = self::$data['template'];
|
561 |
}
|
562 |
|
563 |
public static function get_output( $instance = array() ){
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Login With Ajax
|
4 |
+
Plugin URI: https://loginwithajax.com
|
5 |
Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
|
6 |
+
Author: Pixelite
|
7 |
+
Version: 4.1
|
8 |
+
Author URI: https://pixelite.com/?utm_source=login-with-ajax&utm_medium=plugin-header&utm_campaign=plugins
|
9 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, MultiSite, security, sidebar, admin, widget
|
10 |
Text Domain: login-with-ajax
|
11 |
|
12 |
+
Copyright (C) 2022 Marcus Sykes
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
24 |
You should have received a copy of the GNU General Public License
|
25 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
26 |
*/
|
27 |
+
define('LOGIN_WITH_AJAX_VERSION', '4.1');
|
28 |
define('LOGIN_WITH_AJAX_PATH', dirname(__FILE__));
|
29 |
define('LOGIN_WITH_AJAX_URL', trailingslashit(plugin_dir_url(__FILE__)));
|
30 |
class LoginWithAjax {
|
338 |
} else {
|
339 |
$register_link = wp_registration_url();
|
340 |
}
|
341 |
+
return static::template_link( $register_link, $template );
|
342 |
}
|
343 |
|
344 |
/**
|
348 |
* @see LoginWithAjax::template_link()
|
349 |
*/
|
350 |
public static function get_remember_url( $template = null ){
|
351 |
+
$url = apply_filters('lwa_remember_url', add_query_arg('action', 'lostpassword', wp_login_url()), $template );
|
352 |
+
return static::template_link( $url, $template );
|
353 |
}
|
354 |
|
355 |
/**
|
359 |
* @see LoginWithAjax::template_link()
|
360 |
*/
|
361 |
public static function get_login_url( $template = null ){
|
362 |
+
$url = apply_filters('lwa_login_url', wp_login_url(), $template);
|
363 |
+
return static::template_link( $url, $template );
|
364 |
}
|
365 |
|
366 |
/*
|
409 |
}
|
410 |
//final replaces
|
411 |
if( !empty($redirect) ){
|
412 |
+
$redirect = str_replace("%LASTURL%", wp_get_raw_referer(), $redirect);
|
413 |
if( !empty($lang) ){
|
414 |
$redirect = str_replace("%LANG%", $lang.'/', $redirect);
|
415 |
}
|
559 |
foreach( array('login_form','lwa_register_form', 'lostpassword_form') as $action ) remove_action($action, 'lwa_wpml_input_var');
|
560 |
}
|
561 |
}
|
562 |
+
if( !empty(self::$data['template']) ) static::$template = self::$data['template'];
|
563 |
}
|
564 |
|
565 |
public static function get_output( $instance = array() ){
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Login With Ajax ===
|
2 |
-
Contributors: netweblogic
|
3 |
Tags: login, ajax, ajax login, registration, redirect redirect, buddypress, multi site, sidebar, admin, widget, gutenberg, security, recaptcha
|
4 |
Text Domain: login-with-ajax
|
5 |
Requires at least: 4.8
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 4.
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -12,8 +12,6 @@ Add beautiful login forms with smooth AJAX login/registration effects, custom re
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
<blockquote> Version 4 is a major overhaul of the plugin, which has remained largely unchanged for 11 years yet remained a staple tool for logins to WordPress! Changes include a complete rewrite of login templates updated to modern stadnards and practices, as well as new WP features such as Gutenberg Blocks. </blockquote>
|
16 |
-
|
17 |
Login With Ajax is for sites that need user logins or registrations and would like to avoid the normal wordpress login pages, or add AJAX effects to the regular login pages. This plugin adds the capability of placing a login widget in the sidebar with smooth AJAX login effects.
|
18 |
|
19 |
Some of the features:
|
@@ -54,6 +52,8 @@ Some of the features:
|
|
54 |
* Easy-to-customize and overridable template files
|
55 |
* Well-documented
|
56 |
|
|
|
|
|
57 |
= Pro Add-On Features =
|
58 |
As of version 4.0, [we now offer a Pro add-on](https://loginwithajax.com/) which extends Login With AJAX with multiple new features:
|
59 |
|
@@ -67,6 +67,8 @@ As of version 4.0, [we now offer a Pro add-on](https://loginwithajax.com/) which
|
|
67 |
* More on the way!
|
68 |
|
69 |
= Getting Help/Support =
|
|
|
|
|
70 |
If you're stuck, we strongly suggest visiting our [Documentation Site](https://docs.loginwithajax.com/) which contains exensive information and advice on setup and troubleshooting.
|
71 |
|
72 |
If you have any problems with the plugin after reading our [Troubleshooting](https://doocs.loginwithajax.com/troubleshooting/), please visit our freely supported [community forums](http://wordpress.org/support/plugin/login-with-ajax), or [Go Pro](https://loginwithajax.com/gopro/) for premium support.
|
1 |
=== Login With Ajax ===
|
2 |
+
Contributors: pxlite, msykes, netweblogic
|
3 |
Tags: login, ajax, ajax login, registration, redirect redirect, buddypress, multi site, sidebar, admin, widget, gutenberg, security, recaptcha
|
4 |
Text Domain: login-with-ajax
|
5 |
Requires at least: 4.8
|
6 |
+
Tested up to: 6.1
|
7 |
+
Stable tag: 4.1
|
8 |
Requires PHP: 5.2
|
9 |
License: GPLv2 or later
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
|
|
|
|
15 |
Login With Ajax is for sites that need user logins or registrations and would like to avoid the normal wordpress login pages, or add AJAX effects to the regular login pages. This plugin adds the capability of placing a login widget in the sidebar with smooth AJAX login effects.
|
16 |
|
17 |
Some of the features:
|
52 |
* Easy-to-customize and overridable template files
|
53 |
* Well-documented
|
54 |
|
55 |
+
First released in 2009, the oldest login plugin for WordPress, regularly maintained and updated since then!
|
56 |
+
|
57 |
= Pro Add-On Features =
|
58 |
As of version 4.0, [we now offer a Pro add-on](https://loginwithajax.com/) which extends Login With AJAX with multiple new features:
|
59 |
|
67 |
* More on the way!
|
68 |
|
69 |
= Getting Help/Support =
|
70 |
+
<blockquote> Version 4 is a major overhaul of the plugin, which has remained largely unchanged for 11 years yet remained a staple tool for logins to WordPress! Changes include a complete rewrite of login templates updated to modern stadnards and practices, as well as new WP features such as Gutenberg Blocks. </blockquote>
|
71 |
+
|
72 |
If you're stuck, we strongly suggest visiting our [Documentation Site](https://docs.loginwithajax.com/) which contains exensive information and advice on setup and troubleshooting.
|
73 |
|
74 |
If you have any problems with the plugin after reading our [Troubleshooting](https://doocs.loginwithajax.com/troubleshooting/), please visit our freely supported [community forums](http://wordpress.org/support/plugin/login-with-ajax), or [Go Pro](https://loginwithajax.com/gopro/) for premium support.
|
templates/default/login.php
CHANGED
@@ -46,10 +46,10 @@
|
|
46 |
</label>
|
47 |
<?php endif; ?>
|
48 |
<?php if( !empty($lwa['remember']) ): ?>
|
49 |
-
<a class="lwa-links-remember" href="<?php echo LoginWithAjax::get_remember_url(); ?>" title="<?php esc_attr_e('Password Lost and Found','login-with-ajax') ?>"><?php esc_attr_e('Lost your password?','login-with-ajax') ?></a>
|
50 |
<?php endif; ?>
|
51 |
<?php if ( get_option('users_can_register') && !empty($lwa['registration']) ) : ?>
|
52 |
-
<a href="<?php echo LoginWithAjax::get_register_url(); ?>" class="lwa-links-register-inline"><?php esc_html_e('Register','login-with-ajax'); ?></a>
|
53 |
<?php endif; ?>
|
54 |
</div>
|
55 |
</div>
|
46 |
</label>
|
47 |
<?php endif; ?>
|
48 |
<?php if( !empty($lwa['remember']) ): ?>
|
49 |
+
<a class="lwa-links-remember" href="<?php echo LoginWithAjax::get_remember_url(false); ?>" title="<?php esc_attr_e('Password Lost and Found','login-with-ajax') ?>"><?php esc_attr_e('Lost your password?','login-with-ajax') ?></a>
|
50 |
<?php endif; ?>
|
51 |
<?php if ( get_option('users_can_register') && !empty($lwa['registration']) ) : ?>
|
52 |
+
<a href="<?php echo LoginWithAjax::get_register_url(false); ?>" class="lwa-links-register-inline"><?php esc_html_e('Register','login-with-ajax'); ?></a>
|
53 |
<?php endif; ?>
|
54 |
</div>
|
55 |
</div>
|