From d9bf22a0e29c2a70049443a0ae8521a2c0492c8b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 11 Dec 2011 06:38:23 -0500 Subject: initial commit for git repository --- views/default/openid_client/forms/missing.php | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 views/default/openid_client/forms/missing.php (limited to 'views/default/openid_client/forms/missing.php') diff --git a/views/default/openid_client/forms/missing.php b/views/default/openid_client/forms/missing.php new file mode 100644 index 000000000..7810f3c57 --- /dev/null +++ b/views/default/openid_client/forms/missing.php @@ -0,0 +1,73 @@ + + * @copyright Curverider Ltd 2008-2009 + * @link http://elgg.com/ + * + * @uses the following values in $vars: + * + * 'openid_url' the OpenID + * 'email' the user's email (if known) + * 'fullname' the user's full name (if known) + * 'email_confirmation' whether the email address needs to be confirmed + * 'code' a magic code that associates this data with a real user + */ + +$emailLabel = elgg_echo('openid_client:email_label'); +$nameLabel = elgg_echo('openid_client:name_label'); +$submitLabel = elgg_echo('openid_client:submit_label'); +$cancelLabel = elgg_echo('openid_client:cancel_label'); + +$missing_email = elgg_echo('openid_client:missing_email'); +$missing_name = elgg_echo('openid_client:missing_name'); +$and = elgg_echo('openid_client:and'); +$email_form = "
$emailLabel
'; +$name_form = "
$nameLabel
'; +$email_hidden = ''."\n"; +$name_hidden = ''."\n"; + +if (!$vars['email'] && !$$vars['fullname']) { + $missing_fields = $missing_email.' '.$and.' '.$missing_name; + $visible_fields = $email_form.'
'.$name_form; + $hidden_fields = ''; +} elseif (!$vars['email']) { + $missing_fields = $missing_email; + $visible_fields = $email_form; + $hidden_fields = $name_hidden; +} elseif (!$vars['fullname']) { + $missing_fields = $missing_name; + $visible_fields = $name_form; + $hidden_fields = $email_hidden; +} + +$hidden_fields .= ''."\n"; + +$instructions = sprintf(elgg_echo('openid_client:missing_info_instructions'),$missing_fields); + +$action = $CONFIG->wwwroot.'action/openid_client/missing'; +$security_token = elgg_view('input/securitytoken'); + +$body .= <<< END + $instructions +
+ $security_token +

+ $visible_fields +

+

+ $hidden_fields + + +

+
+ +END; + +echo elgg_view('page_elements/contentwrapper',array('body'=>$body)); + +?> \ No newline at end of file -- cgit v1.2.3