From e826cb586ba363babddad98164bf4c8999aec300 Mon Sep 17 00:00:00 2001 From: Sem Date: Mon, 24 Sep 2012 15:33:16 +0200 Subject: Added remaining files to last commit. --- views/default/core/account/login_box.php | 23 +++++++++++++++++++++ views/default/core/account/login_dropdown.php | 29 +++++++++++++++++++++++++++ views/default/openid_client/icon.php | 8 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 views/default/core/account/login_box.php create mode 100644 views/default/core/account/login_dropdown.php create mode 100644 views/default/openid_client/icon.php (limited to 'views') diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php new file mode 100644 index 000000000..1fe452e69 --- /dev/null +++ b/views/default/core/account/login_box.php @@ -0,0 +1,23 @@ + "{$login_url}action/login")); +$body .= elgg_view_form('openid_client/login', array('class' => 'elgg-form-login hidden'), array()); +$body .= elgg_view('openid_client/icon'); + +echo elgg_view_module($module, $title, $body); diff --git a/views/default/core/account/login_dropdown.php b/views/default/core/account/login_dropdown.php new file mode 100644 index 000000000..7882fde02 --- /dev/null +++ b/views/default/core/account/login_dropdown.php @@ -0,0 +1,29 @@ + "{$login_url}action/login"), array('returntoreferer' => TRUE)); +$body .= elgg_view_form('openid_client/login', array('class' => 'elgg-form-login hidden'), array()); +$body .= elgg_view('openid_client/icon'); +?> +
+ 'login#login-dropdown-box', + 'rel' => 'popup', + 'class' => 'elgg-button elgg-button-dropdown', + 'text' => elgg_echo('login'), + )); + echo elgg_view_module('dropdown', '', $body, array('id' => 'login-dropdown-box')); + ?> +
diff --git a/views/default/openid_client/icon.php b/views/default/openid_client/icon.php new file mode 100644 index 000000000..3a9a9d981 --- /dev/null +++ b/views/default/openid_client/icon.php @@ -0,0 +1,8 @@ + elgg_view_icon('openid') . elgg_echo('openid_client:login'), + 'href' => '', + 'title' => elgg_echo('openid_client'), + 'class' => "openid-login-icon", +)); \ No newline at end of file -- cgit v1.2.3