]> 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 9aec77497b886941de0a8213d8408f5c1a38e360..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});
@@ -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
@@ -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
 ;
 }