<: $CHILD_ALBUM_COLS = 4; :>// <: $IMAGE_COLS = Option("columns"); :>// Album: <:= Path('album_name') :> <: Meta() :>

<:= Parent_Albums(':') :>

>Up


<: if (isHeader()) { _:> <:pHeader():>
<: } _:> #c # Are there more albums below this one? <: if (my $dir = First('dirs')) { _:> #c # Loop on all the albums <: while ($dir) { _:> #c # And start a new row every fourth one <: if (!((Get($dir,'num')+2) % $CHILD_ALBUM_COLS) && Next($dir)) { _:> <: } :> #c # End album loop <: $dir = Next($dir) :> <: } :>
More albums: <:= Get($dir,'href','dir').Name($dir)."" :>

#c # End if albums <: } :> #c # Are there any images? (There might only be CHILD_ALBUMS!) <: if (my $pic = First('pics')) { _:> #c # Loop on the images <: while($pic) { _:> <: if (!((Get($pic,'num')+1) % Option('columns')) && Next($pic)) { _:> <: } :> #c # End while images <: $pic = Next($pic) :> <: } :>
<: if (my $img=Image($pic,'thumb')) { _:> <:=Get($pic,'href','image'):><:=$img:>
<: } _:> <:=Get($pic,'href','image'):><:=Name($pic):> <: if (my $cap = Caption($pic)) { _:>
<:= $cap :> <: } _:>
#c # End if images
<: } :> <: if (isFooter()) { _:>
<:pFooter():>


<: } _:> <: Credit() :> on <:=scalar localtime:>