- print '</td>'."\n";
- print '</tr>'."\n";
- print '</table>';
- print '</td>'."\n";
- print '<td>'."\n";
- print '<table border="1" align="center"'
- .' style="border-collapse: collapse; border-style: solid; border-width: 2px;">'."\n";
- print '<tr>'."\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 '<td style="padding: 5px;">';
- print(($My::Web::W->{"section"} || "") eq $section_name ? "<b>$section_name</b>"
- : My::Web::a_href($section_path,$section_name,
- "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'));
- print "</td>\n";
- }
- print '</tr>'."\n";
- print '</table>'."\n";
- print '</td>'."\n";
- print '</tr>'."\n";
- print '</table>'."\n";
- print My::Web::vskip("1ex") if !$My::Web::W->{"WebConfig::heading_novskip"};
+ $r.='</td></tr></table>';
+ $r.='</td>'."\n";
+ $r.='<td>'."\n";
+ $r.='<table border="1"'
+ .' style="text-align: center; border-collapse: collapse; border-style: solid; border-width: 2px;">'
+ .'<tr>'."\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.='<td style="padding: 5px;">';
+ $r.=(($My::Web::W->{"section"} || "") eq $section_name ? "<b>$section_name</b>"
+ : My::Web::a_href($section_path,$section_name,
+ "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'));
+ $r.="</td>\n";
+ }
+ $r.='</tr></table>'."\n";
+ $r.='</td>'."\n";
+ $r.='</tr></table>'."\n";
+ if (!$My::Web::W->{"heading_novskip"}) {
+ $r.="<hr />\n";
+ $r.=My::Web::vskip("6ex");
+ }
+ return $r;