aboutsummaryrefslogtreecommitdiff
path: root/views/default/openid_client
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/openid_client')
-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',
));