Album
view release on metacpan or search on metacpan
lib/Album/Tutorial.pm view on Meta::CPAN
(Needed to write 22 image pages)
Creating pages for 1 index
(Needed to write 1 index page)
The file 'dsc00052.jpg' has now been imported as
'200405171843310052.jpg'. 'album' tries to link to the image, if that
is not possible, the image will be coped. File 'dsc00053.jpg' must be
rotated, so it will always be a copy.
If you hover the mouse over the file name in the index page, or over
the title on the image pages, a pop-up will show a selection of
information from the EXIF data.
=head2 Embedding other albums
In the file 'info.dat' you can also enter names of HTML documents to
refer to arbitrary other information you want to include in your
album. You can use this to embed (more precisely: refer to) other
albums. For example:
20040910/index.html Pictures of an exhibition
script/album view on Meta::CPAN
# Cleanup excess indices.
for (my $i = $num_indexes ; ; $i++ ) {
unlink(d_dest("index$i.html")) or last;
}
}
sub write_index_page {
my ($x) = @_;
my $tt = $album_title.": Index"; # left title
my $t = ""; # right (index select)
my @b; # buttons
my %nav;
# Construct buttons and index selector.
if ( $num_indexes > 1 ) {
$nav{next} = ixname($x+1) if $x < $num_indexes-1;
$nav{prev} = ixname($x-1) if $x > 0;
$nav{up} = join("/",$lib_common,"index.html") if $lib_common ne "";
push(@b, button("up", join("/",$lib_common,"index.html"), 0, 1))
unless $lib_common eq "";
push(@b,
button("first", ixname(0), 0, $x > 0 ),
button("prev", ixname($x-1), 0, $x > 0 ),
( run in 0.702 second using v1.01-cache-2.11-cpan-49f99fa48dc )