]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blobdiff - html/html/themes/ipfire/include/functions.pl
Merge branch 'master' into next
[people/mfischer/ipfire-2.x.git] / html / html / themes / ipfire / include / functions.pl
index eedf069dda153450192f952197413fa7aad85fe1..d74c962e430fb9529792f22c360164879710ef4b 100644 (file)
@@ -39,7 +39,7 @@ require "${General::swroot}/lang.pl";
 # @param submenu entries
 sub showsubmenu() {
        my $submenus = shift;
-       
+
        print "<ul>";
        foreach my $item (sort keys %$submenus) {
                $link = getlink($submenus->{$item});
@@ -70,8 +70,8 @@ sub showmenu() {
                print <<EOF;
                        <div id='traffic'>
                                <strong>Traffic:</strong>
-                               In  <span id='rx_kbs'>--.-- Bit/s</span> &nbsp;
-                               Out <span id='tx_kbs'>--.-- Bit/s</span>
+                               In  <span id='rx_kbs'>--.-- bit/s</span> &nbsp;
+                               Out <span id='tx_kbs'>--.-- bit/s</span>
                        </div>
 EOF
        }
@@ -114,21 +114,18 @@ sub openpage {
                $headline =  "$settings{'HOSTNAME'}.$settings{'DOMAINNAME'}";
        }
 
-       my @stylesheets = ("style.css");
-       if ($THEME_NAME eq "ipfire-rounded") {
-               push(@stylesheets, "style-rounded.css");
-       }
 
 print <<END;
 <!DOCTYPE html>
 <html>
        <head>
        <title>$headline - $title</title>
-       $extrahead
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="shortcut icon" href="/favicon.ico" />
        <script type="text/javascript" src="/include/jquery.js"></script>
+       <script src="/include/rrdimage.js"></script>
 
+       $extrahead
        <script type="text/javascript">
                function swapVisibility(id) {
                        \$('#' + id).toggle();
@@ -136,9 +133,9 @@ print <<END;
        </script>
 END
 
-       foreach my $stylesheet (@stylesheets) {
-               print "<link href=\"/themes/ipfire/include/css/$stylesheet\" rel=\"stylesheet\" type=\"text/css\" />\n";
-       }
+
+print "<link href=\"/themes/ipfire/include/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
+
 
 if ($settings{'SPEED'} ne 'off') {
 print <<END
@@ -152,7 +149,7 @@ print <<END
        <body>
                <div id="header" class="fixed">
                        <div id="logo">
-                               <a href="http://www.ipfire.org" style="text-decoration: none;">
+                               <a href="https://www.ipfire.org" style="text-decoration: none;">
                                        <img src="/themes/ipfire/images/tux2.png" style="float:left; margin-left: -3px; margin-top: -3px;"/>
 END
 ;
@@ -173,7 +170,22 @@ END
 print <<END
        <div class="bigbox fixed">
                <div id="main_inner" class="fixed">
-                       <h1>$title</h1>
+                       <div id="main_header">
+                               <h1>$title</h1>
+END
+;
+
+# Print user manual link
+my $manual_url = &Header::get_manualpage_url($scriptName);
+if($manual_url) {
+       print <<END
+                               <span><a href="$manual_url" title="$Lang::tr{'online help en'}" target="_blank"><img src="/images/help-browser.png" alt="$Lang::tr{'online help en'}"></a></span>
+END
+;
+}
+
+print <<END
+                       </div>
 END
 ;
 }
@@ -205,8 +217,8 @@ print <<END;
 
        <div id="footer" class='bigbox fixed'>
                <span class="pull-right">
-                       <a href="http://www.ipfire.org/" target="_blank"><strong>IPFire.org</strong></a> &bull;
-                       <a href="http://www.ipfire.org/donate" target="_blank">$Lang::tr{'support donation'}</a>
+                       <a href="https://www.ipfire.org/" target="_blank"><strong>IPFire.org</strong></a> &bull;
+                       <a href="https://www.ipfire.org/donate" target="_blank">$Lang::tr{'support donation'}</a>
                </span>
 
                <strong>$system_release</strong>