Skip to content
Snippets Groups Projects
Commit a9465493 authored by Olav Morken's avatar Olav Morken
Browse files

Frontpage: Mark links to sp examples as deprecated.

Update issue 209
Owner: andreassolberg
Status: Started
Needs update of dictionary: {core:frontpage:deprecated}

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1820 44740490-163a-0410-bde0-09ae8108e29a
parent 689185cc
No related branches found
No related tags found
No related merge requests found
......@@ -900,6 +900,9 @@ $lang = array(
'es' => 'Probar las fuentes para la autentificación ya configuradas',
'tr' => 'Düzenlenmiş kimlik doğrulama kaynaklarını test et',
),
'deprecated' => array (
'en' => 'Deprecated',
),
);
......
......@@ -18,7 +18,11 @@ if ($this->data['isadmin']) {
<ul>
<?php
foreach ($this->data['links_auth'] AS $link) {
echo '<li><a href="' . htmlspecialchars($link['href']) . '">' . $this->t($link['text']) . '</a></li>';
echo '<li><a href="' . htmlspecialchars($link['href']) . '">' . $this->t($link['text']) . '</a>';
if (isset($link['deprecated']) && $link['deprecated']) {
echo ' <b>' . $this->t('{core:frontpage:deprecated}') . '</b>';
}
echo '</li>';
}
?>
</ul>
......
......@@ -32,12 +32,16 @@ $links_auth[] = array(
if ($config->getValue('enable.saml20-sp') === true)
$links_auth[] = array(
'href' => SimpleSAML_Utilities::getBaseURL() . 'example-simple/saml2-example.php',
'text' => '{core:frontpage:link_saml2example}');
'text' => '{core:frontpage:link_saml2example}',
'deprecated' => TRUE,
);
if ($config->getValue('enable.shib13-sp') === true)
$links_auth[] = array(
'href' => SimpleSAML_Utilities::getBaseURL() . 'example-simple/shib13-example.php',
'text' => '{core:frontpage:link_shib13example}');
'text' => '{core:frontpage:link_shib13example}',
'deprecated' => TRUE,
);
$allLinks = array(
......
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