Version Description
Download this release
Release Info
Developer | netweblogic |
Plugin | Login With Ajax |
Version | 3.0b1 |
Comparing to | |
See all releases |
Code changes from version 3.0b to 3.0b1
- login-with-ajax.php +14 -8
- readme.txt +1 -1
login-with-ajax.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Login With Ajax
|
|
4 |
Plugin URI: http://netweblogic.com/wordpress/plugins/login-with-ajax/
|
5 |
Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
|
6 |
Author: NetWebLogic
|
7 |
-
Version: 3.
|
8 |
Author URI: http://netweblogic.com/
|
9 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
|
10 |
|
@@ -323,21 +323,27 @@ class LoginWithAjax {
|
|
323 |
$this->template = ( array_key_exists($lwa_data['template'], $this->templates) ) ? $lwa_data['template']:'default';
|
324 |
//Choose the widget content to display.
|
325 |
if(is_user_logged_in()){
|
326 |
-
//
|
327 |
-
$template_loc =
|
328 |
-
|
|
|
|
|
329 |
//Footer
|
330 |
-
$footer_loc =
|
|
|
331 |
$footer_loc = ( $footer_loc != '' ) ? $footer_loc : 'widget/default/footer_in.php';
|
332 |
if( file_exists($footer_loc) ){
|
333 |
add_action('wp_footer', array(&$this, 'footer'));
|
334 |
}
|
335 |
}else{
|
|
|
|
|
336 |
//First check for custom templates or theme template default
|
337 |
-
$template_loc = ($this->template) ? $this->templates[$this->template].'/widget_out.php' :
|
338 |
-
include ( $template_loc != '' ) ? $template_loc : 'widget/widget_out.php';
|
339 |
//Footer
|
340 |
-
$footer_loc =
|
|
|
341 |
$footer_loc = ( $footer_loc != '' ) ? $footer_loc : 'widget/default/footer_out.php';
|
342 |
}
|
343 |
//Footer
|
4 |
Plugin URI: http://netweblogic.com/wordpress/plugins/login-with-ajax/
|
5 |
Description: Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
|
6 |
Author: NetWebLogic
|
7 |
+
Version: 3.0b1
|
8 |
Author URI: http://netweblogic.com/
|
9 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
|
10 |
|
323 |
$this->template = ( array_key_exists($lwa_data['template'], $this->templates) ) ? $lwa_data['template']:'default';
|
324 |
//Choose the widget content to display.
|
325 |
if(is_user_logged_in()){
|
326 |
+
//Firstly check for template in theme with no template folder (legacy)
|
327 |
+
$template_loc = locate_template( array('plugins/login-with-ajax/widget_in.php') );
|
328 |
+
//Then check for custom templates or theme template default
|
329 |
+
$template_loc = ($template_loc == '' && $this->template) ? $this->templates[$this->template].'/widget_in.php':$template_loc;
|
330 |
+
include ( $template_loc != '' ) ? $template_loc : 'widget/default/widget_in.php';
|
331 |
//Footer
|
332 |
+
$footer_loc = locate_template( array('plugins/login-with-ajax/footer_in.php') ); //Legacy Template Override
|
333 |
+
$footer_loc = ($footer_loc == '' && $this->template) ? $this->templates[$this->template].'/footer_in.php' : $footer_loc;
|
334 |
$footer_loc = ( $footer_loc != '' ) ? $footer_loc : 'widget/default/footer_in.php';
|
335 |
if( file_exists($footer_loc) ){
|
336 |
add_action('wp_footer', array(&$this, 'footer'));
|
337 |
}
|
338 |
}else{
|
339 |
+
//Firstly check for template in theme with no template folder (legacy)
|
340 |
+
$template_loc = locate_template( array('plugins/login-with-ajax/widget_out.php') );
|
341 |
//First check for custom templates or theme template default
|
342 |
+
$template_loc = ($template_loc == '' && $this->template) ? $this->templates[$this->template].'/widget_out.php' : $template_loc;
|
343 |
+
include ( $template_loc != '' ) ? $template_loc : 'widget/default/widget_out.php';
|
344 |
//Footer
|
345 |
+
$footer_loc = locate_template( array('plugins/login-with-ajax/footer_out.php'));
|
346 |
+
$footer_loc = ( $footer_loc == '' && $this->template) ? $this->templates[$this->template].'/footer_out.php' : $footer_loc;
|
347 |
$footer_loc = ( $footer_loc != '' ) ? $footer_loc : 'widget/default/footer_out.php';
|
348 |
}
|
349 |
//Footer
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: netweblogic
|
|
3 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0
|
6 |
-
Stable tag: 3.
|
7 |
|
8 |
Add smooth ajax login and registration effects to your blog and choose where users get redirected upon login/logout. Supports SSL, MU, and BuddyPress.
|
9 |
|
3 |
Tags: Login, Ajax, Redirect, BuddyPress, MU, WPMU, sidebar, admin, widget
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0
|
6 |
+
Stable tag: 3.0b1
|
7 |
|
8 |
Add smooth ajax login and registration effects to your blog and choose where users get redirected upon login/logout. Supports SSL, MU, and BuddyPress.
|
9 |
|