Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0 widget #16

Merged
merged 55 commits into from
Oct 8, 2014
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2f616bc
Fix for legacy php versions
glena Sep 27, 2014
e5867b5
A0 widget
glena Sep 26, 2014
21d10b6
Fix to allow to show multiple times the auth0 login form in the same …
glena Sep 26, 2014
b5a36ec
fix
glena Sep 26, 2014
dd2c202
plugin version updated
glena Sep 26, 2014
9c5ff93
upgraded to lock :)
glena Sep 26, 2014
e49b940
upgrade cdn settings to use the lock widget
glena Sep 26, 2014
8af498e
Merge remote-tracking branch 'origin/a0-widget' into a0-widget
glena Sep 27, 2014
b823c8d
Fix for legacy php versions
glena Sep 29, 2014
49a7b54
New settings management
glena Sep 30, 2014
68e09ae
agregado de configuracion
glena Sep 30, 2014
479c34c
change the way it generates the json configuration
glena Sep 30, 2014
9973cbc
added dict + extra settings
glena Oct 1, 2014
cc89ecb
added widget configurations
glena Oct 1, 2014
345cc9d
update version
glena Sep 30, 2014
58d1bf6
fix hidden WP login form when the plugin is disabled
glena Oct 1, 2014
2bae772
upgrade the plugin revision
glena Oct 1, 2014
8349e67
fix
glena Sep 26, 2014
d088c60
A0 widget
glena Sep 26, 2014
a2a362d
fix
glena Sep 26, 2014
0d0c582
upgraded to lock :)
glena Sep 26, 2014
84f5d09
agregado de configuracion
glena Sep 30, 2014
30facef
fix hidden WP login form when the plugin is disabled
glena Oct 1, 2014
f9c6784
the widget now has its own settings! :)
glena Oct 1, 2014
3a39a9f
now the widget can be shown as a modal! :D
glena Oct 2, 2014
2c62c15
shortCode with settings & modal
glena Oct 2, 2014
347dc53
fix the way that the modal is shown (by error it was setted as popup)
glena Oct 2, 2014
b2b5275
updated settings and readme
glena Oct 4, 2014
7529736
fix js changes
glena Oct 4, 2014
f975bfc
change the widget settings form to allow the user to select which opt…
glena Oct 4, 2014
a3b8157
fixes for the shortcode
glena Oct 4, 2014
594a97d
fixes :)
glena Oct 4, 2014
1544fc8
update version
glena Sep 30, 2014
106a829
fix hidden WP login form when the plugin is disabled
glena Oct 1, 2014
607c4ae
upgrade the plugin revision
glena Oct 1, 2014
41434d5
A0 widget
glena Sep 26, 2014
f53f4b5
Fix to allow to show multiple times the auth0 login form in the same …
glena Sep 26, 2014
7b683e5
fix
glena Sep 26, 2014
7cdd8e5
upgraded to lock :)
glena Sep 26, 2014
2a77e29
A0 widget
glena Sep 26, 2014
362f6a9
Fix to allow to show multiple times the auth0 login form in the same …
glena Sep 26, 2014
a48ce05
fix
glena Sep 26, 2014
e35b5b3
New settings management
glena Sep 30, 2014
d4ea519
agregado de configuracion
glena Sep 30, 2014
bfa0c97
added dict + extra settings
glena Oct 1, 2014
3147493
fix hidden WP login form when the plugin is disabled
glena Oct 1, 2014
d10006c
fix
glena Sep 26, 2014
2e57d26
agregado de configuracion
glena Sep 30, 2014
ac6159f
fix hidden WP login form when the plugin is disabled
glena Oct 1, 2014
75ebd3d
the widget now has its own settings! :)
glena Oct 1, 2014
36640dd
now the widget can be shown as a modal! :D
glena Oct 2, 2014
d6f6be9
removed fields, added fields, added descriptions and links
glena Oct 7, 2014
fcc4a42
changes to the plugin and screenshots added
glena Oct 7, 2014
fa7c512
fix widget as modal
glena Oct 7, 2014
8d4e4cb
screenshots added
glena Oct 7, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
A0 widget
  • Loading branch information
glena committed Oct 7, 2014
commit 2a77e29df1177a1480f13f9aaa6a0884cf1f7c1d
12 changes: 7 additions & 5 deletions templates/login-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ function renderAuth0Form($canShowLegacyLogin = true)
if(is_user_logged_in())
return;

$wordpress_login_enabled = WP_Auth0_Options::get('wordpress_login_enabled') == 1;
if (!$wordpress_login_enabled || !isset($_GET['wle'])) {
include ('auth0-login-form.php');
}else{
add_action('login_footer', array('WP_Auth0', 'render_back_to_auth0'));
$wordpress_login_enabled = $canShowLegacyLogin && (WP_Auth0_Options::get('wordpress_login_enabled') == 1);

if (!$wordpress_login_enabled || !isset($_GET['wle'])) {
include ('auth0-login-form.php');
}else{
add_action('login_footer', array(WP_Auth0::class, 'render_back_to_auth0'));
}
}

?>