X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=WebConfig.pm;h=2fbf8569649989abaded96fe83d0c143fd59488b;hp=81d3fa2dc78ffa6cd8b69f4ed031f27198f17d9f;hb=801399787c2807183550863e56d5f171ea7b0d3b;hpb=19c5ad8e26ac320516b8427c416a9195ce4fea48 diff --git a/WebConfig.pm b/WebConfig.pm index 81d3fa2..2fbf856 100644 --- a/WebConfig.pm +++ b/WebConfig.pm @@ -32,7 +32,6 @@ use vars qw(@ISA @EXPORT); @EXPORT=qw(%WebConfig); use My::Web; -require CGI; my $resume_url="/resume/Resume-JanKratochvil.pm/Resume-JanKratochvil.html"; @@ -45,7 +44,7 @@ our %WebConfig=( return My::Web::a_href("http://www.jankratochvil.net/","Jan Kratochvil") if 0 || $name eq "short" || $name eq "lace"; - return CGI::escapeHTML($name); + return escapeHTML($name); }, "viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/www/www.jankratochvil.net/", "title_prefix"=>"Jan Kratochvil", @@ -53,48 +52,45 @@ our %WebConfig=( "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', "pserver_path"=>"/cvs", "resume_url"=>$resume_url, - "web_hostname"=>sub { return "www.jankratochvil.net"; }, # $My::Web::W->{"r"}->hostname() "mailman_url" =>sub { return "http://".$My::Web::W->{"web_hostname"}."/mailman/"; }, "pipermail_url"=>sub { return "http://".$My::Web::W->{"web_hostname"}."/pipermail/"; }, "heading"=>sub () { my $r=""; - $r.=''."\n"; + $r.='
'."\n"; - $r.=''."\n"; - # Do not: - # as the constant are always bad. - $r.='\n"; + } + $r.='
'."\n"; - $r.='' - .'
'."\n"; - $r.='Jan Kratochvil'; + $r.=''."\n"; + # Do not: + # as the constant are always bad. + $r.=''."\n"; - $r.=''."\n"; + $r.=''."\n"; - $r.='
'."\n"; + $r.='' + .'
'."\n"; + $r.='Jan Kratochvil'; # $r.=My::Web::a_href('http://www.jankratochvil.net/','Jan Kratochvil', # "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'); - $r.='
'; - $r.='
'."\n"; - $r.='' - .''."\n"; - my @sections=( - "/project/"=>"Projects", - "http://cvs.jankratochvil.net/"=>"CVS", + $r.='
'; + $r.='
'."\n"; + $r.='' + .''."\n"; + my @sections=( + "/project/"=>"Projects", + "http://cvs.jankratochvil.net/"=>"CVS", # "/News.pm"=>"News", - $resume_url=>"Resume", - "/Contact.pm"=>"Contact", - ); - while (@sections) { - my $section_path=shift @sections; - my $section_name=shift @sections; - $r.='\n"; - } - $r.='
'; - $r.=(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name" - : My::Web::a_href($section_path,$section_name, - "attr"=>'style="text-decoration: inherit; /* revoke underline */;"')); - $r.="
'."\n"; - $r.='
'."\n"; - $r.='
'."\n"; + $resume_url=>"Resume", + "/Contact.pm"=>"Contact", + ); + while (@sections) { + my $section_path=shift @sections; + my $section_name=shift @sections; + $r.='
'; + $r.=(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name" + : My::Web::a_href($section_path,$section_name, + "attr"=>'style="text-decoration: inherit; /* revoke underline */;"')); + $r.="
'."\n"; + $r.='
'."\n"; if (!$My::Web::W->{"heading_novskip"}) { $r.="
\n"; $r.=My::Web::vskip("6ex"); @@ -119,6 +115,7 @@ our %WebConfig=( HERE }, "no_job"=>1, + "css_inherit"=>1, ); 1;