Album: <:= Path('album_name') :>

#c// ################################################################### #c// Album Theme by David Ljung Madison #c// Design by Dave Simmer of DaveWeb.com #c// -- Auto generated by simmer_theme v3.00 #c// -- From: http://MarginalHacks.com/Hacks/album/ #c// ################################################################### #c// <: # Path setting - this is the path to the images $PATH = Theme_URL(); $text_color = "#000000"; $link_color = "#603913"; $TITLE_FONT = "size='4' color='$text_color' face='Times New Roman,Georgia,Times'"; $MAIN_FONT = "face='Times New Roman,Georgia,Times'"; $CREDIT_FONT = "face='Verdana' color='$text_color'"; $BODY = "background='$PATH/bkgrnd.gif' link='$link_color' alink='$link_color' vlink='$link_color' text='$text_color'"; # Icons/graphics @Locked = ("$PATH/Locked.gif", 8, 11); # Thumbnail border @Bord_LT = ("$PATH/Bord_LT.gif", 16, 13); @Bord_RT = ("$PATH/Bord_RT.gif", 16, 13); @Bord_LB = ("$PATH/Bord_LB.gif", 16, 13); @Bord_RB = ("$PATH/Bord_RB.gif", 16, 13); @Bord_L = ("$PATH/Bord_L.gif", 16, 74); @Bord_R = ("$PATH/Bord_R.gif", 16, 74); @Bord_TL = ("$PATH/Bord_TL.gif", 30, 16); @Bord_TR = ("$PATH/Bord_TR.gif", 30, 16); @Bord_BL = ("$PATH/Bord_BL.gif", 30, 16); @Bord_BR = ("$PATH/Bord_BR.gif", 30, 16); @Bord_T = ("$PATH/Bord_T.gif", 72, 16); @Bord_B = ("$PATH/Bord_B.gif", 72, 16); @Border = (\@Bord_TL,\@Bord_T,\@Bord_TR,\@Bord_RT,\@Bord_R,\@Bord_RB,\@Bord_BR,\@Bord_B,\@Bord_BL,\@Bord_LB,\@Bord_L,\@Bord_LT); sub Bar { my ($colspan) = @_; return unless @Bar_L; :>
<: print Image_Array(@Bar_L),Image_Array(@Bar_M),Image_Array(@Bar_R);:>
<: } :>// #c// #c// ################################################################### #c// Everything beyond here is the same for every DaveWeb theme.. #c// ################################################################### <: # Shorthand for column info specified by -columns $Cols = Option('columns'); $Col_Perc = int(100/$Cols)."%"; :>//
<: Meta() :>
>

<:=Image_Array("$PATH/Null.gif",11,10):>
<: if (@Icon) { print Image_Array(@Icon,"align='middle'"); print "\n \n"; } _:> > <:= Parent_Albums(':'); :> | <: $back=Back(); if ($back && $back ne "''") { print ""; print @Back ? Image_Array(@Back,"align='middle'") : " ## Back "; print "\n"; } :>
<: if (isHeader()) { _:>
<:pHeader():>
<: } _:> <: Bar($Cols) :>
<:=Image_Array("$PATH/Null.gif",20,10):>
#c// Are there more albums below this one? <: my $alb = First('dirs'); if ($alb) { _:>
<: if (@More) { :> <:=Image_Array(@More):> <: } else { :> | ## More albums: <: } :> #c// #c// Loop on all the albums <: my @save; while ($alb) { _:> | <: Border($alb, 'thumb','dir', @Border) if Get($alb,'thumb','x') :> <: push(@save,$alb); :> <: my $new_row = (!((Get($alb,'num')+2) % $Cols) && Next($alb)) ? 1 : 0; :> <: if ($new_row || !Next($alb)) { _:>
<: foreach my $save ( @save ) { _:> <:= "\n" unless Get($save,'num') :> | > <:= Image_Array(@Locked) if -e Get($save,'path').'/.htaccess'; :> <:=Get($save,'href','dir'):> <:=Name($save):> <: my $cap = Caption($save); my $num_pics = Get($save,'num_pics'); $num_pics = $num_pics ? $num_pics>1 ? "$num_pics images\n" : "1 image\n" : ""; my $num_dirs = Get($save,'num_dirs'); $num_dirs = $num_dirs ? $num_dirs>1 ? "$num_dirs folders\n" : "1 folder\n" : ""; if ($cap || $num_pics || $num_dirs) { _:> <:=$cap if $cap:> <:=" " if $cap && ($num_pics || $num_dirs):> <:=$num_dirs:> <:=", " if $num_pics && $num_dirs:> <:=$num_pics:> <: } :> <: } undef @save; if ($new_row) { _:>
<: } } $alb = Next($alb); } # End child album loop _:>
#c// Bar after child albums <: Bar($Cols) :> #c// #c// End if albums <: } :> #c// #c// The images <: my $img = First('pics'); if ($img) { _:>//
<: my @save; while ($img) { _:> > <: Border($img,'thumb','image', @Border) if Get($img,'thumb','x') :> <: push(@save,$img); :> <: my $new_row = (!((Get($img,'num')+1) % $Cols) && Next($img)) ? 1 : 0; :> <: if ($new_row || !Next($img)) { _:>
<: foreach my $save ( @save ) { _:> <:=Get($save,'href','image'):> <:=Name($save):> <: if (my $cap = Caption($save)) { _:> <:=$cap:> <: } :> <: } undef @save; if ($new_row) { _:>
<:=Image_Array("$PATH/Null.gif",20,20):>
<: } } $img = Next($img); } # End child album loop _:>
<:=Image_Array("$PATH/Null.gif",20,20):>
<: Bar($Cols) :> <:}:>// <: if (isFooter()) { _:>
<:pFooter():>
<: Bar($Cols) :> <: } _:>
><: Credit() :> on <:=scalar localtime:>