]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/templates/base.html
Website update.
[people/shoehn/ipfire.org.git] / www / templates / base.html
index 3d34584764454dffcd4765f3c2c25dade9bfd31e..6f52ca95a336be6e67fdcde0b50a5c8809d381d3 100644 (file)
@@ -1,97 +1,79 @@
-<!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" xml:lang="de" lang="de">
+<!DOCTYPE html>
+<html lang="en">
        <head>
+               <title>{{ hostname }} - {% block title %}{{ _("No title given") }}{% end block %}</title>
                <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-               <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
-               <title>{{ hostname }} - {% block title %}{{ title }}{% end block %}</title>
-               <meta name="keywords" content="Linux, Firewall, IPFire, Security" />
-               <meta name="description" content="" />
+               <meta name="author" content="IPFire.org - IPFire Development Team" />
                <meta name="verify-v1" content="2LEf3W8naILGWVy2dhedSVEHPXTpp2xFNVsHXZMH1JI=" />
+
+               <!-- Your locale is {{ locale.code }} -->
+
+               <meta name="keywords" content="Linux, Firewall, IPFire, Security, IPCop, Open Source, Free, ARM, VPN, Proxy, IDS, IPS" />
+               <meta name="description" content="{{ _("IPFire is a free firewall distribution based on Linux.") }}" />
+
+               <!-- styling stuff -->
+               <link rel="stylesheet" type="text/css" href="{{ static_url("css/bootstrap.min.css") }}" />
                <link rel="stylesheet" type="text/css" href="{{ static_url("css/style.css") }}" />
-               <script type="text/javascript" src="{{ static_url("js/jquery.js") }}"></script>
-               <script type="text/javascript" src="{{ static_url("js/jquery-ui.js") }}"></script>
-               <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.ipfire.org/{{ lang }}/news.rss" />
-               <!--[if lt IE 7]>
-                       <link rel="stylesheet" type="text/css" href="{{ static_url("css/ie6.css") }}" />
-                       <script src="{{ static_url("js/correctpng.js") }}" type="text/javascript"></script>
-               <![endif]-->
+               <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
+
+               {% if rss_url %}
+                       <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ rss_url }}" />
+               {% end %}
        </head>
+
        <body>
-               <div id="header">
-                       <div id="header_inner" class="fixed">
-                               <div id="logo">
-                                       <a href="{{ link("") }}">
-                                               <img src="{{ static_url("images/tux_menu_99x100.png") }}" class="symbol" alt="IPFire" />
+               <div class="navbar navbar-fixed-top">
+                       <div class="navbar-inner">
+                               <div class="container">
+                                       <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                                               <span class="icon-bar"></span>
+                                               <span class="icon-bar"></span>
+                                               <span class="icon-bar"></span>
                                        </a>
-                               </div>
-                               <div id="line1">
-                                       {% block menu %}
-                                               {{ modules.Menu() }}
-                                       {% end block %}
-                                       <div id="lang">
-                                                       {% block languages %}
-                                                                       {% for lng in langs %}
-                                                                                       <a href="{{ lang_link(lng) }}"><img src="{{ static_url("images/%s.gif" % lng) }}" alt="{{ lng }}" /></a>
-                                                                       {% end %}
-                                                       {% end block %}
+                                       <a class="brand" href="/">{{ hostname }}</a>
+                                       <div class="nav-collapse">
+                                               {% block menu %}
+                                                       {{ modules.Menu() }}
+                                               {% end block %}
                                        </div>
                                </div>
-                               <div id="line2">
-                                       <h1>{{ server }}</h1>
-                               </div>
-                               <div id="line3">
-                                       <h2>{{ _("An Open Source Firewall Solution") }}</h2>
-                               </div>
-                               
                        </div>
                </div>
-               <div id="main">
-                   <div id="main_inner" class="fixed">
-                               <table>
-                               <tr>
-                                               <td id="sh-tl"></td>
-                                               <td id="sh-top"></td>
-                                               <td id="sh-tr"></td>
-                                       </tr>
-                                       <tr>
-                                               <td id="sh-lft"></td>
-                                               <td id="no-sh">
-                                                       <div id="primaryContent_2columns">
-                                                               <div id="columnA_2columns">
-                                                                       {% block content %}
-                                                                       {% end block %}
-                                                                       <br class="clear" />
-                                                               </div>
-                                                       </div>
-                                                       <div id="secondaryContent_2columns">
-                                                               <div id="columnC_2columns">
-                                                                       {% block sidebar %}
-                                                                               {{ modules.SidebarBanner(banner) }}
-                                                                       {% end block %}
-                                                                       <br class="clear" />
-                                                               </div>
-                                                       </div>
-                                               </td>
-                                               <td id="sh-rgt"></td>
-                                       </tr>
-                                       
-                                       <tr>
-                                               <td id="sh-lft"></td>
-                                               <td id="footer" class="fixed2">
-                                                       Copyright &copy; {{ year }} IPFire.org. All rights reserved. <a href="{{ link("imprint") }}">{{ _("imprint") }}</a>
-                                               </td>
-                                               <td id="sh-rgt"></td>
-                                       </tr>
-                                       
-                                       <tr>
-                                               <td id="sh-bl"></td>
-                                               <td id="sh-btn"></td>
-                                               <td id="sh-br"></td>
-                                       </tr>
-                               </table>
+
+               {% block container %}
+                       <div class="container container-body">
+                               {% block body %}EMPTY BODY{% end block %}
+
+                               <hr />
+
+                               <footer class="footer">
+                                       {% if not hostname == "planet.ipfire.org" %}
+                                               <div class="pull-right">
+                                                       <p>
+                                                               {% for l in ("en", "de") %}
+                                                                       {% if not l == lang %}
+                                                                               <a href="?locale={{ l }}">
+                                                                                       <img src="{{ static_url("images/flags/%s.png" % l) }}" alt="{{ l }}">
+                                                                               </a>
+                                                                       {% end %}
+                                                               {% end %}
+                                                       </p>
+                                               </div>
+                                       {% end %}
+
+                                       <p>
+                                               &copy; {{ year }} - <a href="http://www.ipfire.org/">IPFire.org</a> -
+                                               {% if hostname in ("www.ipfire.org", "dev.ipfire.org") %}
+                                                       <a href="/press">{{ _("Press") }}</a> -
+                                               {% end %}
+                                               <a href="http://www.ipfire.org/imprint">{{ _("imprint") }}</a>
+                                       </p>
+                               </footer>
                        </div>
-               </div>
-       {% block javascript %}{% end block %}
+               {% end block %}
+
+               <script src="{{ static_url("js/jquery.js") }}"></script>
+               <script src="{{ static_url("js/bootstrap.min.js") }}"></script>
+               <script src="{{ static_url("js/site.js") }}"></script>
        </body>
 </html>