-sub processfile {
- my ($start,$dir,$base,$fn,$info)=@_;
-
- my ($w,$h) = dim($info);
- my $title=$info->{'Comment'};
- $title=$base unless ($title);
- my $thumb=&scale($start,$dir,$base,$fn,160,$info);
- my $medium=&scale($start,$dir,$base,$fn,640,$info);
- print &infobox($info,$base,$fn),"\n";
- print table({-class=>'slide'},Tr(td(
- a({-href=>".html/$base-info.html",
- -onClick=>"return showIbox('$base');"},$title),
- br,
- a({-href=>$medium,-rel=>"lightbox",-title=>$title},
- img({-src=>$thumb})),
- br,
- a({-href=>$base},"($w x $h)"),
- br))),"\n";
- return 1;
+sub sub_entry {
+ my $self = shift;
+ my $IND = $self->{-parent}->{-IND};
+ my $name = $self->{-base};
+ my $title = $self->{-title};
+
+ $self->{-parent}->{-numofsubs}++;
+ print $IND Tr(td(a({-href=>$name.'/index.html'},$name)),
+ td(a({-href=>$name.'/index.html'},$title))),"\n";
+}
+
+sub endsublist {
+ my $self = shift;
+ my $IND = $self->{-IND};
+
+ print $IND end_table,"\n",br({-clear=>'all'}),hr,"\n\n";
+}
+
+sub startimglist {
+ my $self = shift;
+ my $IND = $self->{-IND};
+ my $first = $self->{-firstimg}->{-base};
+ my $slideref = sprintf(".html/%s-slide.html",$first);
+
+ print $IND h2({-class=>"ititle"},"Images ",
+ a({-href=>$slideref,-class=>'showStart',-rel=>'i'.$first},
+ '> slideshow')),"\n";
+}
+
+sub img_entry {
+ my $self = shift;
+ my $IND = $self->{-parent}->{-IND};
+ my $name = $self->{-base};
+ my $title = $self->{-info}->{'Comment'};
+ $title = $name unless ($title);
+ my $thumb = $self->{$sizes[0]}->{'url'};
+ my $info = $self->{-info};
+ my ($w, $h) = dim($info);
+
+ my $i=0+$self->{-parent}->{-numofimgs};
+ $self->{-parent}->{-numofimgs}++;
+
+ print $IND a({-name=>$name}),"\n",
+ start_table({-class=>'slide'}),start_Tr,start_td,"\n";
+ print $IND div({-class=>'slidetitle'},
+ "\n ",a({-href=>".html/$name-info.html",
+ -title=>'Image Info: '.$name,
+ -class=>'infoBox'},
+ $title),"\n"),"\n",
+ start_div({-class=>'slideimage'});
+ if ($self->{-geoloc}) {
+ my ($la,$lo) = @{$self->{-geoloc}};
+ print $IND a({-href=>"http://maps.google.com/".
+ "?q=$la,$lo&ll=$la,$lo",
+ -title=>"$la,$lo",
+ -class=>'geoloc'},
+ div({-class=>'geoloc'},"")),"\n";
+ }
+ print $IND a({-href=>".html/$name-static.html",
+ -title=>$title,
+ -class=>'showImage',
+ -rel=>'i'.$name},
+ img({-src=>$thumb,
+ -class=>'thumbnail',
+ -alt=>$title})),"\n",end_div,
+ start_div({-class=>'varimages',-id=>'i'.$name,-title=>$title}),"\n";
+ foreach my $sz(@sizes) {
+ my $src=$self->{$sz}->{'url'};
+ my $w=$self->{$sz}->{'dim'}->[0];
+ my $h=$self->{$sz}->{'dim'}->[1];
+ print $IND " ",a({-href=>$src,
+ -class=>"conceal",
+ -rel=>$w."x".$h,
+ -title=>"Reduced to ".$w."x".$h},
+ $w."x".$h)," \n";
+ }
+ print $IND " ",a({-href=>$name,
+ -rel=>$w."x".$h,
+ -title=>'Original'},$w."x".$h),
+ "\n",end_div,"\n",
+ end_td,end_Tr,end_table,"\n";