From 77abf3c5599b1e4099f6ac633da978b469ae8827 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 1 Jul 2008 13:24:29 -0400 Subject: add OpenID documentation darcs-hash:20080701172429-84dde-94b70a726459e7309f179c18788f2a7de8d233f1.gz --- actions/openidlogin.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'actions/openidlogin.php') diff --git a/actions/openidlogin.php b/actions/openidlogin.php index f00c17181..5ec17ec46 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -40,15 +40,22 @@ class OpenidloginAction extends Action { } } + function get_instructions() { + return _t('Login with an [OpenID](%%doc.openid%%) account.'); + } + function show_top($error=NULL) { if ($error) { common_element('div', array('class' => 'error'), $error); } else { - common_element('div', 'instructions', - _t('Login with an OpenID account.')); + $instr = $this->get_instructions(); + $output = common_markup_to_html($instr); + common_element_start('div', 'instructions'); + common_raw($output); + common_element_end('div'); } } - + function show_form($error=NULL, $openid_url) { common_show_header(_t('OpenID Login'), NULL, $error, array($this, 'show_top')); $formaction = common_local_url('openidlogin'); -- cgit v1.2.3-54-g00ecf