From d2d63d80de28c7356e81eb1143d729e4415cd1b4 Mon Sep 17 00:00:00 2001 From: Sven Donath Date: Sun, 26 Sep 2010 23:08:58 +0200 Subject: [PATCH] =?utf8?q?Das=20(linksseitige)=20HTML-Men=C3=BC=20komaptib?= =?utf8?q?el=20zum=20Textbrowser=20Links=20gemacht.=20Weiterhin=20werden?= =?utf8?q?=20die=20Bedienelemente=20(HTML-Links)=20im=20Kopf=20nur=20angez?= =?utf8?q?eigt,=20wenn=20nicht=20der=20Browser=20Links=20oder=20Links2=20v?= =?utf8?q?erwendet=20wird,=20da=20sie=20auf=20JavaScript=20basieren=20und?= =?utf8?q?=20somit=20keine=20Funktion=20h=C3=A4tten.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/kopf.pl | 13 +++++++++---- bin/mozilla/menu.pl | 34 +++++++++++++++++++++------------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index ac3935dd4..ad0b8171e 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -111,19 +111,24 @@ window.onload=clockon my $framesize = _calc_framesize(); # framesize calculation as in menu.pl is only a quick and dirty hack here # it would be better to use a global or config variable +# is there any better solution then the JS-Link for Back? Possibly with the callback variable? + print qq| - - |; + if ($framesize ne 240) { # only show the the links in case of "links" in $ENV{HTTP_USER_AGENT} (see sub _calc_framesize) + print qq| + + |; + } + print qq| diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 115880df9..f6305dfb8 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -33,7 +33,7 @@ # CHANGE LOG: # DS. 2002-03-25 Created # 2004-12-14 - New Optik - Marco Welter -# 2010-08-19 - Icons for sub entries and one click +# 2010-08-19 - Icons for sub entries and one click # JS switchable HTML-menu - Sven Donath ####################################################################### @@ -45,6 +45,7 @@ use URI; my $menufile = "menu.ini"; my $mainlevel; +our $framesize; # end of main @@ -82,7 +83,7 @@ sub acc_menu { my $form = $main::form; my $locale = $main::locale; - my $framesize = _calc_framesize(); # how to get it into kopf.pl or vice versa? + $framesize = _calc_framesize(); # how to get it into kopf.pl or vice versa? $mainlevel = $form->{level}; $mainlevel =~ s/\Q$mainlevel\E--//g; @@ -97,7 +98,7 @@ sub acc_menu { |; print qq|
\n
+
[| . $locale->text('Menu') . qq|]  [| . $locale->text('New Win/Tab') . qq|]  [| . $locale->text('Print') . qq|]  [| . $locale->text('Back') . qq|]  [| . $locale->text('Fwd') . qq|] - - | . $login . $datum . qq|  
\n|; §ion_menu($menu); @@ -199,18 +200,20 @@ sub section_menu { if ($zeige) { if (scalar @chunks <= 1) { print - qq|\n|; } else { @@ -231,7 +234,12 @@ sub section_menu { } else { my $ml_ = $form->escape($ml); print - qq|\n|; + qq|\n|; §ion_menu($menu, $item); print qq|\n|; -- 2.20.1
$spacer| + qq|
$spacer| . $menu->menuitem(\%myconfig, \%$form, $item, $level) ; - - if (-f "image/icons/16x16/$label_icon") - { print - qq|  | } + + if (-f "image/icons/16x16/$label_icon" && ($framesize ne 240)) + { print + qq|  | } else { - print qq||; + if ($framesize ne 240) { + print qq||; + } } - + print qq|$label
 $label    
+ |; + if ($framesize ne 240) { + print qq||; + } + print qq| $label