X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=WebConfig.pm;h=4fa0fc129808a6306bff839256abc1fbb890e614;hb=bcc344bd73dafe3a5af988a7e6a3b132c0d1299b;hp=71f3a51fe2fc2f5b941fbfab604a226c91fa5cfa;hpb=eef48d2e46f78c25e0a1145cc2748bfb1d7c5fd7;p=www.jankratochvil.net.git diff --git a/WebConfig.pm b/WebConfig.pm index 71f3a51..4fa0fc1 100644 --- a/WebConfig.pm +++ b/WebConfig.pm @@ -20,8 +20,9 @@ package WebConfig; require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway -use vars qw($VERSION); +use vars qw($VERSION $CVS_ID); $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; }; +$CVS_ID=q$Id$; use strict; use warnings; @@ -30,9 +31,12 @@ use vars qw(@ISA @EXPORT); @ISA=qw(Exporter); @EXPORT=qw(%WebConfig); +use My::Web; require CGI; +my $resume_url="/resume/Resume-JanKratochvil.html.pl/Resume-JanKratochvil.html"; + our %WebConfig=( "admin_mail"=>'web-www.jankratochvil.net@jankratochvil.net', "SendMsg_to"=>'web-www.jankratochvil.net@jankratochvil.net', @@ -48,6 +52,54 @@ our %WebConfig=( "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', "pserver_path"=>"/cvs", + "resume_url"=>$resume_url, + "heading"=>sub () { + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print '
'."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print '
'."\n"; + print My::Web::a_href('http://www.jankratochvil.net/','Jan Kratochvil', + "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'); + print '
'; + print '
'."\n"; + print ''."\n"; + print ''."\n"; + my @sections=( + "/project/"=>"Projects", + "http://cvs.jankratochvil.net/"=>"CVS", +# "/News.html.pl"=>"News", + $resume_url=>"Resume", + "/Contact.html.pl"=>"Contact", + ); + while (@sections) { + my $section_path=shift @sections; + my $section_name=shift @sections; + print '\n"; + } + print ''."\n"; + print '
'; + print(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name" + : My::Web::a_href($section_path,$section_name, + "attr"=>'style="text-decoration: inherit; /* revoke underline */;"')); + print "
'."\n"; + print '
'."\n"; + print My::Web::vskip("1ex") if !$My::Web::W->{"WebConfig::heading_novskip"}; + }, + "footing"=>sub () { +# print "

footing

\n"; + }, ); 1;