[merge with nick: ganesh**Thu Jan 02 21:47:53 GMT 2003 merge with nick: added album-book.thtml and slideshow.thtml to dist/ change 1pic -> firstpic, introduce lastpic and randompic/randpic cleaned up examples/slideshow.html ] { hunk ./cgi-bin/album.pl 302 - if($ifph =~ /1pic/) { - my $options=getannot($photos[0],'options'); - $ifph =~ s/\/&dispimg($1,$photos[0],$options,$2)/gies; + my ($pnum,$ptag); + if($ifph =~ /(firstpic)/i) { + $pnum = 0; + $ptag = $1; + my $options=getannot($photos[$pnum],'options'); + $ifph =~ s/\/&dispimg($1,$photos[$pnum],$options,$2)/gies; hunk ./cgi-bin/album.pl 309 + if($ifph =~ /(lastpic)/i) { + $pnum = scalar(@photos) - 1; + $ptag = $1; + my $options=getannot($photos[$pnum],'options'); + $ifph =~ s/\/&dispimg($1,$photos[$pnum],$options,$2)/gies; + } + if($ifph =~ /(randompic)/i || $ifph =~ /(randpic)/i) { + $pnum = int(rand(scalar(@photos))); + $ptag = $1; + my $options=getannot($photos[$pnum],'options'); + $ifph =~ s/\/&dispimg($1,$photos[$pnum],$options,$2)/gies; + } addfile ./dist/album-book.thtml hunk ./dist/album-book.thtml 1 + + + + + + +Digital Camera pictures + + + + + + + + + + +
+ + +
+$description ($photocount photos) : +Downwards  +Downwards (fixed width)  +Across +Slideshow +
+$description +
+ +$title + +
+Previous $maxitems items +Next $maxitems items +

+ + hunk ./dist/manifest.files 21 +dist/album-book.thtml hunk ./dist/manifest.files 25 +dist/slideshow.thtml hunk ./dist/photopubrc 14 + book album-book.thtml hunk ./dist/photopubrc 20 + slide slideshow.thtml addfile ./dist/slideshow.thtml hunk ./dist/slideshow.thtml 1 + + + + + + +Slideshow of $range, Page $page + + + + + + + + + + + + + + + +
+ + Previous Photo + + + + Back to the Index + + +

Pictures from $range

+
+ + Next Photo + + + + Back to the Index + +
+
+ +
+ +
+ + Previous Photo + + +   + +
+ +

Back to the Index

+
+ + Next Photo + + +   + +
+ + + hunk ./doc/thtml-guide 45 - - Display the first image from the group (.... can be - anything you'd normally have in a range.pl IMG tag) + - Display the first image from the group (.... can + be anything you'd normally have in a range.pl IMG tag) + - As above, but the last image from the group + - As above, but a random image from the group + - An alternative tag for above hunk ./examples/album-book.thtml 11 - + hunk ./examples/album-book.thtml 17 -
+
+
+
hunk ./examples/slideshow.thtml 4 - + hunk ./examples/slideshow.thtml 7 - + }