Skip to content
Snippets Groups Projects
Commit 338f9d34 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

improving layout on disco icon

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@657 44740490-163a-0410-bde0-09ae8108e29a
parent 5e3445de
No related branches found
No related tags found
No related merge requests found
...@@ -42,12 +42,11 @@ foreach ($this->data['idplist'] AS $idpentry) { ...@@ -42,12 +42,11 @@ foreach ($this->data['idplist'] AS $idpentry) {
echo '<div class="preferredidp">'; echo '<div class="preferredidp">';
echo ' <img src="/' . $this->data['baseurlpath'] .'resources/icons/star.png" style="float: right" />'; echo ' <img src="/' . $this->data['baseurlpath'] .'resources/icons/star.png" style="float: right" />';
echo ' <h3>';
if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) { if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) {
$iconUrl = SimpleSAML_Utilities::resolveURL($idpentry['icon']); $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'])) { if (!empty($idpentry['description'])) {
echo ' <p>' . htmlspecialchars($this->t('idpdesc_' . $idpentry['entityid'])) . '<br />'; echo ' <p>' . htmlspecialchars($this->t('idpdesc_' . $idpentry['entityid'])) . '<br />';
...@@ -61,12 +60,12 @@ foreach ($this->data['idplist'] AS $idpentry) { ...@@ -61,12 +60,12 @@ foreach ($this->data['idplist'] AS $idpentry) {
foreach ($this->data['idplist'] AS $idpentry) { foreach ($this->data['idplist'] AS $idpentry) {
if ($idpentry['entityid'] != $this->data['preferredidp']) { if ($idpentry['entityid'] != $this->data['preferredidp']) {
echo ' <h3>';
if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) { if(array_key_exists('icon', $idpentry) && $idpentry['icon'] !== NULL) {
$iconUrl = SimpleSAML_Utilities::resolveURL($idpentry['icon']); $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'])) { if (!empty($idpentry['description'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment