diff --git a/templates/default/admin-config.php b/templates/default/admin-config.php index e3bac4bdefbed8989a2074a318a31ff20006271a..08c13bac5dfb9a03f6c51eef8e55a0c1ef8c87fa 100644 --- a/templates/default/admin-config.php +++ b/templates/default/admin-config.php @@ -10,7 +10,6 @@ $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> <h2><?php echo $this->data['header']; ?></h2> <?php diff --git a/templates/default/admin-metadatalist.php b/templates/default/admin-metadatalist.php index 0707d54c220525bf7091a0b026f3cffa657600ce..a4e64c074ab7d84723304f4343dfc20fc15f5bfd 100644 --- a/templates/default/admin-metadatalist.php +++ b/templates/default/admin-metadatalist.php @@ -5,8 +5,7 @@ $this->data['icon'] = 'bino.png'; $this->includeAtTemplateBase('includes/header.php'); ?> - - <div id="content"> + <p><?php echo $this->t('metaover_intro'); ?></p> diff --git a/templates/default/consent.php b/templates/default/consent.php index 7840852db55878c3849b2920e19089b2e8ed9b02..d54d8439fde6ec4bab12bb8eb370e6b6acdb5b2d 100644 --- a/templates/default/consent.php +++ b/templates/default/consent.php @@ -7,7 +7,6 @@ $this->includeInlineTranslation('SPDESC', $this->data['sp_description']); ?> - <div id="content"> <p> <?php echo $this->t('consent_accept', array('SPNAME' => '', 'IDPNAME' => '', 'SPDESC' => '')) ?> diff --git a/templates/default/error.php b/templates/default/error.php index 8ca64bfbfc50b11bd6173dceb6ed0d7d845c8230..1c9a8a8c7d680c16b1a7f9b66791ce3488f7d579 100644 --- a/templates/default/error.php +++ b/templates/default/error.php @@ -4,7 +4,6 @@ $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> <h2><?php echo $this->t('title_' . $this->data['errorcode']); diff --git a/templates/default/errorreport.php b/templates/default/errorreport.php index 22d00ff1cf05db24a97343971297b3c34b405c7e..417ba92f8a67bf294a05f83865c3be96f934470e 100644 --- a/templates/default/errorreport.php +++ b/templates/default/errorreport.php @@ -3,7 +3,8 @@ $this->data['icon'] = 'bomb_l.png'; $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> + + <h2><?php echo $this->t('errorreport_header'); ?></h2> <p><?php echo $this->t('errorreport_text'); ?></p> <?php $this->includeAtTemplateBase('includes/footer.php'); ?> \ No newline at end of file diff --git a/templates/default/frontpage.php b/templates/default/frontpage.php index babad7c510604dd38493fe294a16220709927384..1824ef428f077f9f32737a6e1a9ca6e41b023146 100644 --- a/templates/default/frontpage.php +++ b/templates/default/frontpage.php @@ -1,9 +1,9 @@ <?php - $this->data['icon'] = 'compass_l.png'; +# $this->data['icon'] = 'compass_l.png'; $this->includeAtTemplateBase('includes/header.php'); ?> - <div id="content"> + <div class="enablebox mini"> <table> diff --git a/templates/default/httpredirect-debug.php b/templates/default/httpredirect-debug.php index c459342cd9e69d79daa1e044c6243a5fff93e714..b65338b24701d498912b8bd6190d9b72c94d58fd 100644 --- a/templates/default/httpredirect-debug.php +++ b/templates/default/httpredirect-debug.php @@ -4,22 +4,18 @@ $this->includeAtTemplateBase('includes/header.php'); ?> - <div id="content"> - - + <h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2> - <h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2> + <p><?php echo($this->t('{admin:debug_sending_message_text_link}')); ?></p> + + <p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>"><?php echo($this->t('{admin:debug_sending_message_send}')); ?></a> ]</p> + + <h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2> + + <p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p> - <p><?php echo($this->t('{admin:debug_sending_message_text_link}')); ?></p> - - <p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>"><?php echo($this->t('{admin:debug_sending_message_send}')); ?></a> ]</p> - - <h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2> - - <p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p> - - <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre> + <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre> - <p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p> + <p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p> <?php $this->includeAtTemplateBase('includes/footer.php'); ?> \ No newline at end of file diff --git a/templates/default/includes/header.php b/templates/default/includes/header.php index dfba0c27128426b91aa9b9bd6f02f3370c19497b..e610bb967510853032a6900176fa1a5fb7741811 100644 --- a/templates/default/includes/header.php +++ b/templates/default/includes/header.php @@ -42,48 +42,45 @@ if($onLoad !== '') { <h1><a style="text-decoration: none; color: white" href="/<?php echo $this->data['baseurlpath']; ?>"><?php echo (isset($this->data['header']) ? $this->data['header'] : 'simpleSAMLphp'); ?></a></h1> - <div id="poweredby"> - <a href="/<?php echo $this->data['baseurlpath']; ?>"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/<?php - echo (isset($this->data['icon']) ? $this->data['icon'] : 'compass_l.png'); - ?>" alt="Header icon" /></a></div> </div> -<div style="padding-right: 40px"> -<?php - -$languages = $this->getLanguageList(); -$langnames = array( - 'no' => 'Bokmål', - 'nn' => 'Nynorsk', - 'se' => 'Sámi', - 'da' => 'Dansk', - 'en' => 'English', - 'de' => 'Deutsch', - 'sv' => 'Svenska', - 'fi' => 'Suomeksi', - 'es' => 'Español', - 'fr' => 'Français', - 'nl' => 'Nederlands', - 'lb' => 'Luxembourgish', - 'sl' => 'Slovenščina', // Slovensk - 'hr' => 'Hrvatski', // Croatian - 'hu' => 'Magyar', // Hungarian - 'pt' => 'Português', // Portuguese -); - -if (empty($_POST) ) { - $textarray = array(); - foreach ($languages AS $lang => $current) { - if ($current) { - $textarray[] = $langnames[$lang]; - } else { - $textarray[] = '<a href="' . htmlspecialchars(SimpleSAML_Utilities::addURLparameter(SimpleSAML_Utilities::selfURL(), array('language' => $lang))) . '">' . - $langnames[$lang] . '</a>'; + <div id="languagebar"> + <?php + + $languages = $this->getLanguageList(); + $langnames = array( + 'no' => 'Bokmål', + 'nn' => 'Nynorsk', + 'se' => 'Sámi', + 'da' => 'Dansk', + 'en' => 'English', + 'de' => 'Deutsch', + 'sv' => 'Svenska', + 'fi' => 'Suomeksi', + 'es' => 'Español', + 'fr' => 'Français', + 'nl' => 'Nederlands', + 'lb' => 'Luxembourgish', + 'sl' => 'Slovenščina', // Slovensk + 'hr' => 'Hrvatski', // Croatian + 'hu' => 'Magyar', // Hungarian + 'pt' => 'Português', // Portuguese + 'pt-BR' => 'Português brasileiro', // Portuguese + ); + + if (empty($_POST) ) { + $textarray = array(); + foreach ($languages AS $lang => $current) { + if ($current) { + $textarray[] = $langnames[$lang]; + } else { + $textarray[] = '<a href="' . htmlspecialchars(SimpleSAML_Utilities::addURLparameter(SimpleSAML_Utilities::selfURL(), array('language' => $lang))) . '">' . + $langnames[$lang] . '</a>'; + } } + echo join(' | ', $textarray); } - echo join(' | ', $textarray); -} - -?> -</div> + + ?> + </div> + <div id="content"> diff --git a/templates/default/login-feide.php b/templates/default/login-feide.php index 6a082faca49aa44599272f353fbea547dcb8a3a7..b313af2a3a492841ae010970cb20736a944afb0a 100644 --- a/templates/default/login-feide.php +++ b/templates/default/login-feide.php @@ -7,9 +7,9 @@ $this->includeAtTemplateBase('includes/header.php'); ?> - <?php if (isset($this->data['error'])) { ?> - <div id="errorframe"> - <h2><?php echo $this->t('{login:error_header}'); ?></h2> +<?php if (isset($this->data['error'])) { ?> +<div id="errorframe"> + <h2><?php echo $this->t('{login:error_header}'); ?></h2> <?php diff --git a/templates/default/login-ldapmulti.php b/templates/default/login-ldapmulti.php index 3f3d6a9d1a7cb9ddbc6042bc330e8c53371890c8..1273a4ed1f0b44e747f39b1da0c4ab6ad57bd716 100644 --- a/templates/default/login-ldapmulti.php +++ b/templates/default/login-ldapmulti.php @@ -3,9 +3,7 @@ $this->includeAtTemplateBase('includes/header.php'); ?> - - <div id="content"> - + <?php if (isset($this->data['error'])) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5" <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/bomb.png" style="float: left; margin: 15px " /> diff --git a/templates/default/login.php b/templates/default/login.php index 4b6aade06315cd3a7fd7d88b775c72365d21c90b..0d16085873318dc4403dc67143ae47900951b776 100644 --- a/templates/default/login.php +++ b/templates/default/login.php @@ -3,7 +3,6 @@ $this->data['autofocus'] = 'username'; $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> <?php if (isset($this->data['error'])) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> diff --git a/templates/default/logout-iframe.php b/templates/default/logout-iframe.php index 5cf9e9892488e4a74c788da58bb58df0dfa5cdc7..794b20d2515cc1f46ce0e9b43aeee678d225194c 100644 --- a/templates/default/logout-iframe.php +++ b/templates/default/logout-iframe.php @@ -25,8 +25,6 @@ function showdiv(id) { ?> - <div id="content"> - <noscript> diff --git a/templates/default/logout.php b/templates/default/logout.php index ff57112af659328ceaa0faea2740156775e6d499..8ce3f71b548187582999b0bcae41a79909874a79 100644 --- a/templates/default/logout.php +++ b/templates/default/logout.php @@ -4,7 +4,7 @@ $this->data['header'] = $this->t('{logout:title}'); $this->includeAtTemplateBase('includes/header.php'); -echo('<div id="content">'); + echo('<h2>' . $this->data['header'] . '</h2>'); echo('<p>' . $this->t('{logout:logged_out_text}') . '</p>'); diff --git a/templates/default/metadata-converter.php b/templates/default/metadata-converter.php index fdea6673c0a24c025badb447409e07bd635f68ca..0bbb7a6d607162c8c988fa98249dd7817be6cf43 100644 --- a/templates/default/metadata-converter.php +++ b/templates/default/metadata-converter.php @@ -3,7 +3,7 @@ $this->data['header'] = $this->t('metaconv_title'); $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> + <h2><?php echo $this->t('metaconv_title'); ?></h2> diff --git a/templates/default/metadata.php b/templates/default/metadata.php index 6c0df97ed8b9a133ed83ba4d3099f9303a07c093..82c74a75b770928db2c0b68b6acf1a0660d2c08c 100644 --- a/templates/default/metadata.php +++ b/templates/default/metadata.php @@ -3,7 +3,6 @@ $this->data['header'] = $this->t('metadata_' . $this->data['header']); $this->includeAtTemplateBase('includes/header.php'); ?> - <div id="content"> <h2><?php echo $this->data['header']; ?></h2> diff --git a/templates/default/metashare-add.php b/templates/default/metashare-add.php index b0da34ee18d5089dabeeae01e9f61d943b140641..9575dd0d1be5626429623e4859699f6e1441dab2 100644 --- a/templates/default/metashare-add.php +++ b/templates/default/metashare-add.php @@ -2,7 +2,7 @@ $this->data['header'] = $this->t('addpage_header'); $this->includeAtTemplateBase('includes/header.php'); -echo('<div id="content">'); + echo('<h2>' . $this->t('addpage_header') . '</h2>'); $url = $this->data['url']; diff --git a/templates/default/metashare-list.php b/templates/default/metashare-list.php index fb26ef98774caa77c61d65519dac1edd91ead0f8..ffce4e62b2e39ca7a2454ff8130470515ff8476b 100644 --- a/templates/default/metashare-list.php +++ b/templates/default/metashare-list.php @@ -2,7 +2,7 @@ $this->data['header'] = $this->t('front_header'); $this->includeAtTemplateBase('includes/header.php'); -echo('<div id="content">'); + echo('<h2>' . $this->t('front_header') . '</h2>'); echo('<p>' . $this->t('front_desc') . '</p>'); diff --git a/templates/default/no_access.php b/templates/default/no_access.php index 44468a0a0400d385aec73874c5b8b30b75c5b39f..217e9de0ee725ee78678487e175fdbf6c92ee991 100644 --- a/templates/default/no_access.php +++ b/templates/default/no_access.php @@ -3,7 +3,7 @@ $this->data['header'] = $this->t('access_denied'); $this->includeAtTemplateBase('includes/header.php'); $this->includeInlineTranslation('spname', $this->data['sp_name']); ?> -<div id="content"> + <h2><?php echo $this->t('access_denied');?></h2> <p><?php echo $this->t('no_access_to');?></p> <p><b><?php echo $this->t('spname');?></b></p> diff --git a/templates/default/noconsent.php b/templates/default/noconsent.php index 0442ab7b5602d5073cefe3a8daeb7958eb593989..88d1d9a59faa64fdace8f298a4fe0091298f20b0 100644 --- a/templates/default/noconsent.php +++ b/templates/default/noconsent.php @@ -5,7 +5,6 @@ ?> -<div id="content"> <h2><?php echo($this->data['header']); ?></h2> <p><?php echo($this->t('{consent:noconsent_text}')); ?></p> diff --git a/templates/default/openid-about.php b/templates/default/openid-about.php index 4393e2fd64cf8f4305254995370223c64c422e19..bcc5a35f223e15484855c507bea3572e6379d55e 100644 --- a/templates/default/openid-about.php +++ b/templates/default/openid-about.php @@ -6,8 +6,6 @@ if (isset($this->data['header']) && $this->getTag($this->data['header']) !== NUL $this->includeAtTemplateBase('includes/header.php'); ?> - - <div id="content"> <?php if (isset($this->data['header'])) { echo '<h2>' . $this->data['header'] . '</h2>'; } ?> diff --git a/templates/default/openid-sites.php b/templates/default/openid-sites.php index e1b6e88fb7b381e631e1024faa435e660b1f5063..5d27abb8ab507bd7e70a27c7179210d9460dcc12 100644 --- a/templates/default/openid-sites.php +++ b/templates/default/openid-sites.php @@ -6,8 +6,7 @@ if (isset($this->data['header']) && $this->getTag($this->data['header']) !== NUL $this->includeAtTemplateBase('includes/header.php'); ?> - - <div id="content"> + <?php if (isset($this->data['header'])) { echo '<h2>' . $this->data['header'] . '</h2>'; } ?> diff --git a/templates/default/openid-trust.php b/templates/default/openid-trust.php index 8ac1205e951c48cdc1849d7ec40f5730b5833eb2..b6ebcdda1b7d7a84b8e7ad03d2912569fc4e4c30 100644 --- a/templates/default/openid-trust.php +++ b/templates/default/openid-trust.php @@ -6,8 +6,7 @@ if (isset($this->data['header']) && $this->getTag($this->data['header']) !== NUL $this->includeAtTemplateBase('includes/header.php'); ?> - - <div id="content"> + <?php if (isset($this->data['header'])) { echo '<h2>' . $this->data['header'] . '</h2>'; } ?> diff --git a/templates/default/post-debug.php b/templates/default/post-debug.php index be50b96910ea60e3f7af8af14e81a478dd6a07e6..2402f1afb93bfd4b7a488d1eab191696fda4c689 100644 --- a/templates/default/post-debug.php +++ b/templates/default/post-debug.php @@ -5,10 +5,6 @@ ?> - - <div id="content"> - - <h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2> diff --git a/templates/default/selectidp-dropdown.php b/templates/default/selectidp-dropdown.php index d2e324985def7cd5d8b2e1b6f6811597fe17eb59..937d2ec833946544036bdb337e81ce7803228e89 100644 --- a/templates/default/selectidp-dropdown.php +++ b/templates/default/selectidp-dropdown.php @@ -18,7 +18,6 @@ foreach ($this->data['idplist'] AS $idpentry) { ?> - <div id="content"> <h2><?php echo $this->data['header']; ?></h2> diff --git a/templates/default/selectidp-links.php b/templates/default/selectidp-links.php index 8d4d28817405d5b5408f66ccf8b590c9a18ab83e..256146a793e7d52f3117766703d8ba1d9edd06a1 100644 --- a/templates/default/selectidp-links.php +++ b/templates/default/selectidp-links.php @@ -18,7 +18,7 @@ foreach ($this->data['idplist'] AS $idpentry) { ?> - <div id="content"> + <h2><?php echo $this->data['header']; ?></h2> diff --git a/templates/default/status-table.php b/templates/default/status-table.php index 85d8f5d22bd2ba05dfdf0d98424cbc6ed40059bc..842eaf982c5edfdd0e64f366f529094bb0a107f6 100644 --- a/templates/default/status-table.php +++ b/templates/default/status-table.php @@ -16,7 +16,6 @@ foreach($table as $row_title => $row_data) { ?> -<div id="content"> <h2><?php echo htmlspecialchars($title); ?></h2> <table> diff --git a/templates/default/status.php b/templates/default/status.php index 92f83a03b01cb4f229681570cc19f29d296d204c..2ca1ddaa8fc9949c0e61ccd3614ea9f4e099b7fd 100644 --- a/templates/default/status.php +++ b/templates/default/status.php @@ -8,7 +8,7 @@ if(array_key_exists('header', $this->data)) { $this->includeAtTemplateBase('includes/header.php'); ?> -<div id="content"> + <h2><?php if (isset($this->data['header'])) { echo($this->data['header']); } else { echo($this->t('{status:some_error_occured}')); } ?></h2> @@ -36,13 +36,26 @@ $this->includeAtTemplateBase('includes/header.php'); } if (sizeof($value) > 1) { - echo '<tr><td>' . $txtname . '</td><td><ul>'; + echo '<tr><td>' . $txtname . '</td><td><ul>' . "\n"; foreach ($value AS $v) { - echo '<li>' . htmlspecialchars($v) . '</li>'; + + if (in_array($name, array('jpegPhoto'))) { + echo '<li><img src="data:image/jpeg;base64,' . htmlspecialchars($v) . '" /></li>' . "\n"; + } else { + echo '<li>' . htmlspecialchars($v) . '</li>' . "\n"; + } + + } echo '</ul></td></tr>'; } else { - echo '<tr><td>' . $txtname . '</td><td>' . htmlspecialchars($value[0]) . '</td></tr>'; + + if (in_array($name, array('jpegPhoto'))) { + echo '<tr><td>' . $txtname . '</td><td><img src="data:image/jpeg;base64,' . htmlspecialchars($value[0]) . '" /></td></tr>' . "\n"; + } else { + echo '<tr><td>' . $txtname . '</td><td>' . htmlspecialchars($value[0]) . '</td></tr>' . "\n"; + } + } }