X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=WebConfig.pm;h=1b3ea33466ca4621db1a244617a9acf947b246af;hb=fca6167ea07ea2dcb66c132e37d78a99df260bed;hp=9e4b4ea77ddeb7a0adc4cae87c9e61e0e6f55772;hpb=f37f652212eb6cb31136488d14d2c2a3908fe30a;p=www.jankratochvil.net.git diff --git a/WebConfig.pm b/WebConfig.pm index 9e4b4ea..1b3ea33 100644 --- a/WebConfig.pm +++ b/WebConfig.pm @@ -32,10 +32,9 @@ use vars qw(@ISA @EXPORT); @EXPORT=qw(%WebConfig); use My::Web; -require CGI; -my $resume_url="/resume/Resume-JanKratochvil.pm/Resume-JanKratochvil.html"; +my $resume_url="/resume/ResumeJanKratochvil.pm/ResumeJanKratochvil.html"; # Only to be used privately by My::Web ! our %WebConfig=( @@ -45,8 +44,9 @@ 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_My"=>"http://cvs.jankratochvil.net/viewcvs/MyWeb/", "viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/www/www.jankratochvil.net/", "title_prefix"=>"Jan Kratochvil", "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", @@ -57,43 +57,41 @@ our %WebConfig=( "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"); @@ -101,9 +99,9 @@ our %WebConfig=( return $r; }, ###"footing"=>"

footing

\n", - "footing_delimit"=>sub () { + "footing_delimit_sub_push"=>sub () { return if $My::Web::W->{"no_job"}; - return <<"HERE"; + print <<"HERE";
A programmer for hire: @@ -118,6 +116,7 @@ our %WebConfig=( HERE }, "no_job"=>1, + "css_inherit"=>1, ); 1;