{ # Available variables: # $base_url : URL for xhibition home page # $gallery_title: Gallery title # $gallery_text : Text description of the gallery # $gallery_date : Date gallery added # $gallery_width: Maximum number of columns in thumbnail table # $gallery_name : Directory name where the images live # $index_num : Which index page is this one? (zero-based) # @nav : Array of indexN.html page names for navigation generation # @thumbnails : Array containing info hashes for each thumbnail; # $thumb->{'src'} : Image src of thumbnail image # $thumb->{'height'}: Height of thumbnail image # $thumb->{'width'} : Width of thumbnail image # $thumb->{'url'} : URL of photo page for thumbnail # $thumb->{'title'} : Title of image # $thumb->{'date'} : Date of image } { # Generate navigation HTML - if this works for you, don't touch it. $navigation = ''; if ($#nav) { if ($index_num == 0) { $navigation .= "<< "; } else { $navigation .= "<< "; } my @navurls; for my $i (0..$#nav) { if ($i == $index_num) { $navurls[$i] = $i+1; } else { $navurls[$i] = "".($i+1).""; } } $navigation .= join(" | ", @navurls); if ($index_num == $#nav) { $navigation .= " >>"; } else { $navigation .= " >>"; } } '' }
{$navigation}
{$gallery_text}
Added {$gallery_date}
{$navigation}