Revision: 2229
Author: andreassolberg
Date: Mon Mar 22 03:20:08 2010
Log: Update special theme login page to be somewhat more appealing
http://code.google.com/p/simplesamlphp/source/detail?r=2229

Added:
 /trunk/modules/themefeidernd/www
 /trunk/modules/themefeidernd/www/feidernd.css
 /trunk/modules/themefeidernd/www/ssplogo-fish-only-s.png
Deleted:
 /trunk/www/resources/feidernd.css
 /trunk/www/resources/login-bkg-bottom.png
 /trunk/www/resources/login-bkg-tile.png
Modified:
 /trunk/modules/themefeidernd/themes/feidernd/core/loginuserpass.php

=======================================
--- /dev/null
+++ /trunk/modules/themefeidernd/www/feidernd.css       Mon Mar 22 03:20:08 2010
@@ -0,0 +1,105 @@
+body {
+       font-family: 'Lucida Grande', arial, sans-serif;
+       background: #eee;
+}
+
+.error {
+       background: #FFEFF7;
+       border: 1px solid #c69;
+       margin: 1em 5% 10px;
+       padding: 0 1em 0 1em;
+}
+
+#login input.input {
+       width: 200px;
+       font-size: large;
+
+}
+#login input {
+/*     opacity: 0.6;*/
+}
+#login h1 {
+       color: #777;
+}
+#login input#wp-submit {
+       font-size: large;
+       padding: 4px 10px;
+}
+#languagebar a {
+       color: #aaa;
+}
+#languagebar {
+
+       color: #eee;
+       font-size: 80%;
+
+       margin: 0em auto 1em;
+       padding: 0px 40px;
+
+       color: #000;
+       width: 425px;
+}
+div#error {
+
+
+       -webkit-border-radius: 10px;
+       -moz-border-radius: 10px;
+       border-radius: 10px;
+
+       border: 1px solid #999999;
+
+       background: #fff;
+
+       margin: 10px auto 1em;
+       padding: 8px 20px;
+
+       color: #000;
+}
+#login {
+
+
+       -webkit-box-shadow:0px 3px 6px #333333;
+       -moz-box-shadow:0px 3px 6px #333333;
+       box-shadow:0px 3px 6px #333333;
+
+       -webkit-border-radius: 10px;
+       -moz-border-radius: 10px;
+       border-radius: 10px;
+
+       border: 0px solid #999999;
+
+ background: #F2F2F2 -webkit-gradient(linear, 0% 70%, 0% 100%, from(#fefefe), to(#ddd), color-stop(.6,#f0f0f0)); + background: #F2F2F2 -moz-linear-gradient(0% 100% 90deg,#dddddd, #f0f0f0, #FEFEFE 31%);
+
+       margin: 5em auto 1em;
+       padding: 20px 40px;
+
+       color: #000;
+       width: 425px;
+}
+#login ul.links a {
+       text-decoration: none;
+       color: #666;
+}
+#login ul.links a:hover {
+       color: #111;
+}
+#login ul.links {
+/*     border: 1px solid #111;*/
+       font-family: 'Lucida Grande', arial, sans-serif;
+       padding: 0px;
+       font-size: 85%;
+       list-style-type:square;
+       list-style-position: inside;
+}
+#login ul.links li {
+       margin-top: .3em;
+}
+
+
+#login p label {
+       font-size: medium;
+       color: #222;
+       font-weight: bold;
+}
+
=======================================
--- /dev/null   
+++ /trunk/modules/themefeidernd/www/ssplogo-fish-only-s.png Mon Mar 22 03:20:08 2010
Binary file, no diff available.
=======================================
--- /trunk/www/resources/feidernd.css   Wed Mar 26 23:07:46 2008
+++ /dev/null
@@ -1,178 +0,0 @@
-body {
-font-family: Verdana, Arial, sans-serif;
-}
-.error {
-       background: #FFEFF7;
-       border: 1px solid #c69;
-       margin: 1em 5% 10px;
-       padding: 0 1em 0 1em;
-}
-
-.wrap {
-       background: #fff;
-       border: 1px solid #ccc;
-       clear: both;
-       margin: 15px 5%;
-       padding: 1em;
-}
-
-.narrow {
-       width: 450px;
-       margin: auto;
-}
-
-.narrow p {
-       line-height: 150%;
-}
-
-.wrap h2 {
-       margin: 0 0 .5em;
-       clear: both;
-}
-
-* html .wrap h2 {
-       margin-top: 1em;
-}
-
-table .vers {
-       text-align: center;
-}
-
-textarea.all-options, input.all-options {
-       width: 250px;
-}
-
-input.disabled, textarea.disabled {
-       background: #ccc;
-}
-
-#content {
-       margin: 0;
-       width: 100%;
-}
-
-#login input {
-       filter:alpha(opacity=50);
-       -moz-opacity:0.5;
-       -khtml-opacity: 0.5;
-       opacity: 0.5;
-}
-#login {
-       position: relative;
-       background: url('login-bkg-tile.png') no-repeat top center;
-       color: #fff;
-       margin: 5em auto 1em;
-       padding: 20px 0 0;
-       width: 425px;
-       _width: 390px;
-}
-
-#login form {
-       background: url('login-bkg-bottom.png') no-repeat bottom center;
-       padding: 0 50px 25px;
-       _width: 325px;
-       _margin: 0 auto;
-       min-height: 200px;
-       height: auto !important; /* min-height fast hack */
-       height: 200px;
-}
-
-#login #login_error {
-       background: #0e3350;
-       border: 1px solid #2571ab;
-       color: #ebcd4e;
-       font-size: 11px;
-       font-weight: bold;
-       padding: .6em;
-       width: 310px;
-       margin: 0 50px;
-       text-align: center;
-}
-
-#login p {
-       font-size: 12px;
-}
-
-#login p.message {
-       width: 310px;
-       margin: 0 auto 1em;
-}
-
-#login #login_error a {
-       color: #ebcd4e;
-       border-color: #ebcd4e;
-}
-
-#login #send {
-       color: #fff;
-       text-align: left;
-       font-weight: normal;
-       font-size: 1.1em;
-       _width: 325px;
-       _margin: 0 auto 15px;
-}
-
-#login h1 a {
-       margin: 0 auto;
-       height: 88px;
-       width: 320px;
-       display: block;
-       border-bottom: none;
-       text-indent: -9999px;
-}
-
-#login .message {
-       font-size: 10pt;
-       text-align: center;
-}
-
-#login .register {
-       font-size: 20px;
-}
-
-#login input {
-       padding: 4px;
-}
-
-.login ul, #protected #login .bottom {
-       list-style: none;
-       width: 325px;
-       margin: 0 auto;
-       padding: 0;
-       line-height: 1.2;
-}
-
-.login ul li {
-       font-size: 11px;
-}
-
-.login ul li a {
-       color: #0d324f;
-       border: none;
-}
-
-#login ul li a:hover {
-       color: #fff;
-}
-
-#login .input {
-       font-size: 1.8em;
-       margin-top: 3px;
-       width: 97%;
-}
-
-#login p label {
-       font-size: 11px;
-}
-
-#login #submit {
-       margin: 0;
-       font-size: 15px;
-}
-
-.plugins p {
-}
-
-#login .fullwidth {
-       width: 320px;
-}
=======================================
--- /trunk/www/resources/login-bkg-bottom.png   Wed Mar 26 23:07:46 2008
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/www/resources/login-bkg-tile.png     Wed Mar 26 23:59:43 2008
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/modules/themefeidernd/themes/feidernd/core/loginuserpass.php Fri Jan 29 04:59:30 2010 +++ /trunk/modules/themefeidernd/themes/feidernd/core/loginuserpass.php Mon Mar 22 03:20:08 2010
@@ -4,13 +4,9 @@
        <title><?php echo $this->t('{login:user_pass_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' /> + <link rel='stylesheet' href="<?php echo SimpleSAML_Module::getModuleURL('themefeidernd/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();
@@ -19,12 +15,13 @@
        </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">
+
+ <img alt="logo" src="<?php echo SimpleSAML_Module::getModuleURL('themefeidernd/ssplogo-fish-only-s.png') ?>" style="float: right" />
+
                <p>
                        <label><?php echo $this->t('{login:username}'); ?><br />
<input type="text" name="username" id="username" class="input" <?php if (isset($this->data['username'])) {
@@ -46,19 +43,33 @@
 <?php
 if ($this->data['errorcode'] !== NULL) {
 ?>
-       <div style="border: 1px solid #500;  background: #880b17; ">
- <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" style="float: left; margin: 15px " />
+       <div id="error">
+ <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" style="float: right; margin: 15px " />
                <h2><?php echo $this->t('{login:error_header}'); ?></h2>
- <p><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p> + <p style="clear: both"><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p> <p><?php echo $this->t('{errors:descr_' . $this->data['errorcode'] . '}'); ?></p>
        </div>
 <?php
 }
+
+
+
+if(!empty($this->data['links'])) {
+       echo '<ul class="links" style="margin-top: 2em">';
+       foreach($this->data['links'] AS $l) {
+ echo '<li><a href="' . htmlspecialchars($l['href']) . '">' . htmlspecialchars($this->t($l['text'])) . '</a></li>';
+       }
+       echo '</ul>';
+}
+
+
+
 ?>

+
 <!--
        <?php if (isset($this->data['error'])) { ?>
-               <div style="border: 1px solid #500;  background: #880b17; ">
+               <div id="error">
<img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" style="float: left; margin: 15px " />
                <h2><?php echo $this->t('{error:error_header}'); ?></h2>

@@ -71,9 +82,9 @@
 <?php
 if ($this->data['errorcode'] !== NULL) {
 ?>
- <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5">
+       <div id="error">
<img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" style="float: left; margin: 15px " />
-               <h2><?php echo $this->t('{login:error_header}'); ?></h2>
+               <h2><?php echo $this->t('{login:error_header}'); ?>sdfsdf</h2>
<p><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p> <p><?php echo $this->t('{errors:descr_' . $this->data['errorcode'] . '}'); ?></p>
        </div>
@@ -97,15 +108,69 @@
 </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>
--->
+<?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">';
+
+ // echo '<form action="' . SimpleSAML_Utilities::selfURL() . '" method="get">';
+               // echo '<select name="language">';
+               // echo '</select>';
+               // echo '</form>';
+
+
+
+               $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',
+                       'eu' => 'Euskara',
+                       'fr' => 'Français',
+                       'nl' => 'Nederlands',
+                       'lb' => 'Luxembourgish',
+                       'cs' => 'Czech',
+                       'sl' => 'Slovenščina', // Slovensk
+                       'hr' => 'Hrvatski', // Croatian
+                       'hu' => 'Magyar', // Hungarian
+                       'pl' => 'Język polski', // Polish
+                       'pt' => 'Português', // Portuguese
+                       'pt-BR' => 'Português brasileiro', // Portuguese
+                       'tr' => 'Türkçe',
+               );
+
+               $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>';
+       }
+
+?>
+
 </body>
 </html>

--
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.

Reply via email to