]> arthur.barton.de Git - ngircd-web.git/commitdiff
Update language and mirror selection
authorGötz Hoffart <goetz@hoffart.de>
Thu, 29 Mar 2012 10:58:03 +0000 (12:58 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 29 Mar 2012 10:58:03 +0000 (12:58 +0200)
common/mirrors.inc [deleted file]
includes/common.php
index.php.de
mirrors.php [new file with mode: 0644]
style.css

diff --git a/common/mirrors.inc b/common/mirrors.inc
deleted file mode 100644 (file)
index eef87e6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<p>
-       Mirrors:
-</p>
-<ul>
-       <li><a href="http://ngircd.berlios.de/">ngircd.berlios.de</a>
-       <li><a href="http://ngircd.barton.de/">ngircd.barton.de</a>
-</ul>
-
index 4def562f388cb3aa5d1415ebad6d6dd10e07748a..049285280ab10551d240657e1f2743335d01be9f 100644 (file)
@@ -22,6 +22,16 @@ function begin_page($lang = 'en', $title = null) {
        echo '<div id="bodyBox">';
 
        // Title & Slogan
+       echo '<div id="metaNav">';
+       switch($lang) {
+               case 'de':
+                               echo 'Deutsch&nbsp;|&nbsp;<a href="index.php.en">English</a>';
+                               break;
+               case 'en':
+                               echo '<a href="index.php.de">Deutsch</a>&nbsp;|&nbsp;English';
+                               break;
+       }
+       echo '&nbsp;|&nbsp;<a href="mirrors.php">Mirrors</a></div>';
        echo '<div id="sloganhead">';
        echo '<h1 class="titel">ng<span>IRC</span>d: Next Generation IRC Daemon</h1>';
        echo '<p style="font-family: Georgia">“… serving <em>white hat</em> 6667!”</p>';
@@ -53,7 +63,7 @@ function begin_page($lang = 'en', $title = null) {
 
 function end_page() {
        echo '</div>';
-       echo '<p id="footer">ngIRCd &copy;2001-2010 Alexander Barton and ';
+       echo '<p id="footer">ngIRCd &copy;2001-2012 Alexander Barton and ';
        echo '<a href="doc/AUTHORS">Contributors</a></p>';
        echo '</div></body></html>';
 }
index 8f67342d4d1643d96192230a0fbd730c312315e9..e9a44b1e0d292d7e45abb079dde52df5bdeab856 100644 (file)
        für ngIRCd. Dort ist es z. B. möglich, sich über neue Versionen zu
        informieren und via E-Mail benachrichtigen zu lassen.
 </p>
-<p class="btw">
-       BTW: There's an <a href="index.php.en">English</a> version of this
-       page, too.
-</p>
-<?php
-       include('common/mirrors.inc');
-?>
 <h2 id="why">
        Vorteile
 </h2>
diff --git a/mirrors.php b/mirrors.php
new file mode 100644 (file)
index 0000000..36fc27a
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+       include('includes/common.php');
+       begin_page('de');
+?>
+<h2>
+       Mirrors / Spiegel
+</h2>
+<ul>
+       <li><a href="http://ngircd.berlios.de/">ngircd.berlios.de</a>
+       <li><a href="http://ngircd.barton.de/">ngircd.barton.de</a>
+</ul>
+
+<?php
+       end_page();
+?>
+
index 49a01d5aa0df5b59096a46672c08f278999793ad..2f61900ea009bf39c8ffc4a9c9235433a4038f04 100644 (file)
--- a/style.css
+++ b/style.css
@@ -51,4 +51,9 @@ SMALL { line-height: 1em; }
        background: #fdd;
 }
 
+#metaNav {
+       text-align: right;
+       font-size: 10px;
+}
+
 /* -eof- */