From: Logan Schmidt Date: Wed, 6 Nov 2013 08:06:54 +0000 (-0600) Subject: Added new theme: darkdos X-Git-Tag: v2.15-beta1~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e8fb1dada5cf710ffc4199f436618e4a2664e41;p=people%2Fpmueller%2Fipfire-2.x.git Added new theme: darkdos Red styled theme inspired by maniac's theme. --- diff --git a/html/html/themes/darkdos/images/IPFire.png b/html/html/themes/darkdos/images/IPFire.png new file mode 100644 index 0000000000..ec56b7af56 Binary files /dev/null and b/html/html/themes/darkdos/images/IPFire.png differ diff --git a/html/html/themes/darkdos/images/b1.gif b/html/html/themes/darkdos/images/b1.gif new file mode 100644 index 0000000000..123ff917e9 Binary files /dev/null and b/html/html/themes/darkdos/images/b1.gif differ diff --git a/html/html/themes/darkdos/images/b2.gif b/html/html/themes/darkdos/images/b2.gif new file mode 100644 index 0000000000..0172874506 Binary files /dev/null and b/html/html/themes/darkdos/images/b2.gif differ diff --git a/html/html/themes/darkdos/images/b3.gif b/html/html/themes/darkdos/images/b3.gif new file mode 100644 index 0000000000..8c8fba3bd3 Binary files /dev/null and b/html/html/themes/darkdos/images/b3.gif differ diff --git a/html/html/themes/darkdos/images/b4.gif b/html/html/themes/darkdos/images/b4.gif new file mode 100644 index 0000000000..5964fa7726 Binary files /dev/null and b/html/html/themes/darkdos/images/b4.gif differ diff --git a/html/html/themes/darkdos/images/b5.gif b/html/html/themes/darkdos/images/b5.gif new file mode 100644 index 0000000000..a032242789 Binary files /dev/null and b/html/html/themes/darkdos/images/b5.gif differ diff --git a/html/html/themes/darkdos/images/b6.gif b/html/html/themes/darkdos/images/b6.gif new file mode 100644 index 0000000000..ed1781c5ff Binary files /dev/null and b/html/html/themes/darkdos/images/b6.gif differ diff --git a/html/html/themes/darkdos/images/spacer.gif b/html/html/themes/darkdos/images/spacer.gif new file mode 100644 index 0000000000..5bfd67a2d6 Binary files /dev/null and b/html/html/themes/darkdos/images/spacer.gif differ diff --git a/html/html/themes/darkdos/include/colors.txt b/html/html/themes/darkdos/include/colors.txt new file mode 100644 index 0000000000..6efefc53f0 --- /dev/null +++ b/html/html/themes/darkdos/include/colors.txt @@ -0,0 +1,25 @@ +color1=#CD0000 +color2=#FF0000 +color3=#CD0000 +color4=#FA1818 +color5=#CD0000 +color6=#FF0000 +color7=#FF2424 +color8=#FF5050 +color9=#EE0F0F +color10=#EE0000 +color11=#0000FF +color12=#00FF00 +color13=#FF0000 +color14=#F32020 +color15=#CCCCCC +color16=#40E0D0 +color17=#90EE90 +color18=#F4A460 +color19=#EAE9EE +color20=#1C1C1C +color21=#CD6600 +color22=#4F4F4F +color23=#FF00FF +color24=#6464FF +color25=#FF6464 diff --git a/html/html/themes/darkdos/include/functions.pl b/html/html/themes/darkdos/include/functions.pl new file mode 100644 index 0000000000..a161b269a2 --- /dev/null +++ b/html/html/themes/darkdos/include/functions.pl @@ -0,0 +1,414 @@ +#!/usr/bin/perl +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +sub showmenu() { + print < +
    +EOF +; + foreach my $k1 ( sort keys %$menu ) { + if (! $menu->{$k1}{'enabled'}) { + next; + } + my $link = getlink($menu->{$k1}); + if ($link eq '') { + next; + } + if (! is_menu_visible($link)) { + next; + } + if ($menu->{$k1}->{'selected'}) { + print "
  • $menu->{$k1}{'caption'}
  • "; + } else { + print "
  • $menu->{$k1}{'caption'}
  • "; + } + } + print < + +EOF +; +} + +sub getselected($) { + my $root = shift; + if (!$root) { + return 0; + } + + foreach my $item (%$root) { + if ($root->{$item}{'selected'}) { + return $root->{$item}; + } + } +} + +sub showsubsection($$) { + my $root = shift; + + if (! $root) { + return; + } + my $selected = getselected($root); + if (! $selected) { + return; + } + my $submenus = $selected->{'subMenu'}; + if (! $submenus) { + return; + } + + print <Sidemenu +