From c7ee4b13f43d3d559cbfa00910cb6931aa8c85bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 19 Mar 2009 10:29:39 +0000 Subject: [PATCH] removed unused templates in rnd theme git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1425 44740490-163a-0410-bde0-09ae8108e29a --- .../themes/feidernd/default/login.php | 73 -------------- .../themes/feidernd/includes/footer.php | 16 ---- .../themes/feidernd/includes/header.php | 96 ------------------- 3 files changed, 185 deletions(-) delete mode 100644 modules/themefeidernd/themes/feidernd/default/login.php delete mode 100644 modules/themefeidernd/themes/feidernd/includes/footer.php delete mode 100644 modules/themefeidernd/themes/feidernd/includes/header.php diff --git a/modules/themefeidernd/themes/feidernd/default/login.php b/modules/themefeidernd/themes/feidernd/default/login.php deleted file mode 100644 index 305375825..000000000 --- a/modules/themefeidernd/themes/feidernd/default/login.php +++ /dev/null @@ -1,73 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> -<head> - <title><?php echo $this->t('error_header'); ?></title> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - - <link rel='stylesheet' href="/<?php echo $this->data['baseurlpath']; ?>resources/feidernd.css" type='text/css' /> - <!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style><![endif]--><!-- Curse you, IE! --> - <style> - input { - border: 1px solid #005; - } - </style> - <script type="text/javascript"> - function focusit() { - document.getElementById('username').focus(); - } - window.onload = focusit; - </script> -</head> -<body class="login"> -<div id="login"> - <h1> - <a href="http://feide.no/" title="Go to Feide.no">Feide</a> - </h1> - - <form name="loginform" id="loginform" action="?" method="post"> - <p> - <label><?php echo $this->t('username'); ?><br /> - <input type="text" name="username" id="username" class="input" <?php if (isset($this->data['username'])) { - echo 'value="' . htmlspecialchars($this->data['username']) . '"'; - } ?> size="20" tabindex="10" /></label> - </p> - <p> - <label><?php echo $this->t('password'); ?><br /> - <input type="password" name="password" id="user_pass" class="input" value="" size="20" tabindex="20" /></label> - </p> - <!-- p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember me</label></p --> - <p class="submit"> - <input type="submit" name="wp-submit" id="wp-submit" value="<?php echo $this->t('login_button'); ?> »" tabindex="100" /> - <input type="hidden" name="RelayState" value="<?php echo htmlspecialchars($this->data['relaystate']); ?>" /> - </p> - - <?php if (isset($this->data['error'])) { ?> - <div style="border: 1px solid #500; background: #880b17; "> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/bomb.png" style="float: left; margin: 15px " /> - <h2><?php echo $this->t('error_header'); ?></h2> - - <p style="padding: .2em"><?php echo $this->t($this->data['error']); ?> </p> - </div> - <?php } ?> - - </form> - - - - - -</div> - - - -<ul> - <li><a href="http://rnd.feide.no/" title="Feide RnD">» Feide RnD</a></li> -</ul> -<!-- - <h2><?php echo $this->t('help_header'); ?></h2> - - - <p><?php echo $this->t('help_text'); ?></p> ---> -</body> -</html> \ No newline at end of file diff --git a/modules/themefeidernd/themes/feidernd/includes/footer.php b/modules/themefeidernd/themes/feidernd/includes/footer.php deleted file mode 100644 index 0672a8c6a..000000000 --- a/modules/themefeidernd/themes/feidernd/includes/footer.php +++ /dev/null @@ -1,16 +0,0 @@ - - - - <hr /> - - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/ssplogo-fish-small.png" alt="Small fish logo" style="float: right" /> - Copyright © 2007-2008 <a href="http://rnd.feide.no/">Feide RnD</a> - - <br style="clear: right" /> - - </div> - -</div> - -</body> -</html> \ No newline at end of file diff --git a/modules/themefeidernd/themes/feidernd/includes/header.php b/modules/themefeidernd/themes/feidernd/includes/header.php deleted file mode 100644 index 0aa15123c..000000000 --- a/modules/themefeidernd/themes/feidernd/includes/header.php +++ /dev/null @@ -1,96 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<script type="text/javascript" src="/<?php echo $this->data['baseurlpath']; ?>resources/script.js"></script> -<title><?php -if(array_key_exists('header', $this->data)) { - echo $this->data['header']; -} else { - echo 'simpleSAMLphp'; -} -?></title> - - <link rel="stylesheet" type="text/css" href="/<?php echo $this->data['baseurlpath']; ?>resources/default.css" /> - <link rel="icon" type="image/icon" href="/<?php echo $this->data['baseurlpath']; ?>resources/icons/favicon.ico" /> - <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> - -<?php -if(array_key_exists('head', $this->data)) { - echo '<!-- head -->' . $this->data['head'] . '<!-- /head -->'; -} -?> -</head> -<?php -$onLoad = ''; -if(array_key_exists('autofocus', $this->data)) { - $onLoad .= 'SimpleSAML_focus(\'' . $this->data['autofocus'] . '\');'; -} -if (isset($this->data['onLoad'])) { - $onLoad .= $this->data['onLoad']; -} - -if($onLoad !== '') { - $onLoad = ' onload="' . $onLoad . '"'; -} -?> -<body<?php echo $onLoad; ?>> - -<div id="wrap"> - - <div id="header"> - <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> - - - <?php - - $includeLanguageBar = TRUE; - if (!empty($_POST)) - $includeLanguageBar = FALSE; - if (isset($this->data['hideLanguageBar']) && $this->data['hideLanguageBar'] === TRUE) - $includeLanguageBar = FALSE; - - if ($includeLanguageBar) { - - - echo '<div id="languagebar">'; - $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 - ); - - $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 '</div>'; - - } - - ?> - <div id="content"> -- GitLab