diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-12-15 22:00:20 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-12-15 22:00:20 -0500 |
commit | bc56428d493d99576ff274611df3b029e7e47e0a (patch) | |
tree | 7867e8cdc71cc8b0f70dbbf254dff7d0dc06753c /views | |
parent | 49bb5234e9dbef676476bab2936344d8345065c9 (diff) | |
download | elgg-bc56428d493d99576ff274611df3b029e7e47e0a.tar.gz elgg-bc56428d493d99576ff274611df3b029e7e47e0a.tar.bz2 |
added some registration code for first time users
Diffstat (limited to 'views')
-rw-r--r-- | views/default/forms/openid_client/register.php | 55 | ||||
-rw-r--r-- | views/default/openid_client/login.php | 10 | ||||
-rw-r--r-- | views/default/openid_client/register.php | 7 |
3 files changed, 72 insertions, 0 deletions
diff --git a/views/default/forms/openid_client/register.php b/views/default/forms/openid_client/register.php new file mode 100644 index 000000000..b8f57fb59 --- /dev/null +++ b/views/default/forms/openid_client/register.php @@ -0,0 +1,55 @@ +<?php +/** + * OpenID register form body + * + * @uses $vars['openid_identifier'] + * @uses $vars['username'] + * @uses $vars['is_username_available'] + * @uses $vars['is_username_valid'] + * @uses $vars['email'] + * @uses $vars['name'] + */ + +$username_label = ''; +$username_input = elgg_view('input/text', array( + 'name' => 'username', + 'value' => $vars['username'], +)); + +$name_label = elgg_echo(); +$name_input = elgg_view('input/text', array( + 'name' => 'name', + 'value' => $vars['name'], +)); + +$email_label = elgg_echo(); +$email_input = elgg_view('input/email', array( + 'name' => 'email', + 'value' => $vars['email'], +)); + +$openid_input = elgg_view('input/hidden', array( + 'name' => 'openid_identifier', + 'value' => $vars['openid_identifier'], +)); +$button = elgg_view('input/submit', array('value' => elgg_echo('save'))); + +echo <<<HTML +<div> + <label>$username_label</label> + $username_input +</div> +<div> + <label>$name_label</label> + $name_input +</div> +<div> + <label>$email_label</label> + $email_input +</div> +<div class="elgg-foot"> + $openid_input + $button +</div> + +HTML; diff --git a/views/default/openid_client/login.php b/views/default/openid_client/login.php new file mode 100644 index 000000000..f89b790c0 --- /dev/null +++ b/views/default/openid_client/login.php @@ -0,0 +1,10 @@ +<?php +/** + * + */ + +echo elgg_view('output/url', array( + 'text' => 'login with Google', + 'href' => 'action/openid_client/login', + 'is_action' => true, +)); diff --git a/views/default/openid_client/register.php b/views/default/openid_client/register.php new file mode 100644 index 000000000..0c3770ed2 --- /dev/null +++ b/views/default/openid_client/register.php @@ -0,0 +1,7 @@ +<?php +/** + * Registration content view for OpenID client + * + */ + +echo elgg_view_form('openid_client/register', array(), $vars); |