From 338f9d3412e01bcbd1c52f6de15a0187594af754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Mon, 16 Jun 2008 06:30:31 +0000 Subject: [PATCH] improving layout on disco icon git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@657 44740490-163a-0410-bde0-09ae8108e29a --- templates/default/selectidp-links.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/default/selectidp-links.php b/templates/default/selectidp-links.php index 7ac0494e6..222ceece5 100644 --- a/templates/default/selectidp-links.php +++ b/templates/default/selectidp-links.php @@ -42,12 +42,11 @@ foreach ($this->data['idplist'] AS $idpentry) { echo '<div class="preferredidp">'; echo ' <img src="/' . $this->data['baseurlpath'] .'resources/icons/star.png" style="float: right" />'; - echo ' <h3>'; if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) { $iconUrl = SimpleSAML_Utilities::resolveURL($idpentry['icon']); - echo '<img style="display: inline" src="' . htmlspecialchars($iconUrl) . '" />'; + echo '<img style="float: left; margin: 1em; padding: 3px; border: 1px solid #999" src="' . htmlspecialchars($iconUrl) . '" />'; } - echo htmlspecialchars($this->t('idpname_' . $idpentry['entityid'])) . '</h3>'; + echo '<h3 style="margin-top: 8px">' . htmlspecialchars($this->t('idpname_' . $idpentry['entityid'])) . '</h3>'; if (!empty($idpentry['description'])) { echo ' <p>' . htmlspecialchars($this->t('idpdesc_' . $idpentry['entityid'])) . '<br />'; @@ -61,12 +60,12 @@ foreach ($this->data['idplist'] AS $idpentry) { foreach ($this->data['idplist'] AS $idpentry) { if ($idpentry['entityid'] != $this->data['preferredidp']) { - echo ' <h3>'; + if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) { $iconUrl = SimpleSAML_Utilities::resolveURL($idpentry['icon']); - echo '<img style="display: inline" src="' . htmlspecialchars($iconUrl) . '" />'; + echo '<img style="float: left; margin: 1em; padding: 3px; border: 1px solid #999" src="' . htmlspecialchars($iconUrl) . '" />'; } - echo htmlspecialchars($this->t('idpname_' . $idpentry['entityid'])) . '</h3>'; + echo ' <h3 style="margin-top: 8px">' . htmlspecialchars($this->t('idpname_' . $idpentry['entityid'])) . '</h3>'; if (!empty($idpentry['description'])) { -- GitLab