- 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";
- if (!$My::Web::W->{"WebConfig::heading_novskip"}) {
- print "<hr />\n";
- print My::Web::vskip("6ex");
+ $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",
+ "/product/"=>"Products",
+ "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;
+ my $class="";
+ if ($section_path=~m{^/(.*)$}) {
+ $class=$1;
+ $class=~s{/}{::}g;
+ $class=~s{[.]pm$}{};
+ }
+ my $chosen=($class && $My::Web::W->{"__PACKAGE__"}=~/^\Q$class\E/);
+ $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"=>($chosen
+ ? 'style="text-decoration: underline; font-weight: bold;"'
+ : '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.=WebConfig->vskip_hr();