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/default/forms/openid_client | |
parent | 49bb5234e9dbef676476bab2936344d8345065c9 (diff) | |
download | elgg-bc56428d493d99576ff274611df3b029e7e47e0a.tar.gz elgg-bc56428d493d99576ff274611df3b029e7e47e0a.tar.bz2 |
added some registration code for first time users
Diffstat (limited to 'views/default/forms/openid_client')
-rw-r--r-- | views/default/forms/openid_client/register.php | 55 |
1 files changed, 55 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; |