aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 15:02:00 -0500
committercash <cash.costello@gmail.com>2011-12-17 15:02:00 -0500
commit4c677d75bef1f2e6c99e040ed79c712adf4262eb (patch)
treeab6f0f813919579a72d09eccdfcf84401153841b /views
parenta62adbd9cb180fe6bbf88cff2f787d262f737ecb (diff)
downloadelgg-4c677d75bef1f2e6c99e040ed79c712adf4262eb.tar.gz
elgg-4c677d75bef1f2e6c99e040ed79c712adf4262eb.tar.bz2
added a possible UI for logging in
Diffstat (limited to 'views')
-rw-r--r--views/default/openid_client/css.php50
-rw-r--r--views/default/openid_client/login.php10
2 files changed, 55 insertions, 5 deletions
diff --git a/views/default/openid_client/css.php b/views/default/openid_client/css.php
index ff81520da..900de7e6e 100644
--- a/views/default/openid_client/css.php
+++ b/views/default/openid_client/css.php
@@ -2,5 +2,53 @@
/**
* OpenID client CSS
*/
-
+
+$site_url = elgg_get_site_url();
+
?>
+
+.openid-client-login-or {
+ margin-top: 5px;
+ text-align: center;
+ color: #333;
+}
+
+.elgg-menu-openid-login {
+ text-align: center;
+}
+
+.elgg-menu-openid-login > li {
+ margin: 3px;
+}
+
+.elgg-menu-openid-login span {
+ display: block;
+ background: url("<?php echo $site_url; ?>mod/openid_client/graphics/openid_providers.png") no-repeat left;
+ border: 1px solid #ccc;
+}
+
+.elgg-menu-openid-login-large span {
+ height: 32px;
+ width: 92px;
+}
+
+.elgg-menu-openid-login-small span {
+ height: 20px;
+ width: 20px;
+}
+
+.elgg-menu-item-google span {
+ background-position: -5px -14px;
+}
+
+.elgg-menu-openid-login-large > .elgg-menu-item-yahoo span {
+ background-position: -105px -14px;
+}
+
+.elgg-menu-item-blogger span {
+ background-position: -170px -62px;
+}
+
+.elgg-menu-item-wordpress span {
+ background-position: -146px -62px;
+}
diff --git a/views/default/openid_client/login.php b/views/default/openid_client/login.php
index 2b476ec8e..7e71b8bab 100644
--- a/views/default/openid_client/login.php
+++ b/views/default/openid_client/login.php
@@ -3,8 +3,10 @@
* OpenID client login choices
*/
-echo elgg_view('output/url', array(
- 'text' => 'login with Google',
- 'href' => 'action/openid_client/login',
- 'is_action' => true,
+echo '<h3 class="openid-client-login-or">' . elgg_echo('openid_client:or:header') . '</h3>';
+echo '<h3>' . elgg_echo('openid_client:login:header') . '</h3>';
+
+echo elgg_view_menu('openid_login', array(
+ 'class' => 'elgg-menu-hz',
+ 'sort_by' => 'priority',
));