options: -image_sizes -no_crop -medium 800x400 <: # Emboss Theme for Album (Time-stamp: "2003-02-18 18:47:48 ifi") # # Copyright (C) 2003 by Zoltán Ivánfi # # Emboss Theme is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Emboss Theme is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $cols = Option('columns'); if ($cols >= 5) { $albumImage = Theme_URL() . "/album-5.jpg"; } else { $albumImage = Theme_URL() . "/album-4.jpg"; } if (Parent_Albums_Left() > 1) { $hasParent = 1; } sub beginCell { if ($col == 0) { print(" \n"); } print(" "); $col++; } sub beginSpanningCell { if ($col == 0) { print(" \n"); } print(" "); $col = $cols; } sub endCell { print("\n"); if ($col == $cols) { $col = 0; print(" \n"); } } sub calculateSize { $width = Option('x'); $height = Option('y'); if (!Option('crop')) { $aspect = Image_Width() / Image_Height(); if ($width / $height < $aspect) { $height = int($width / $aspect + .5); } else { $width = int($height * $aspect + .5); } } } :>// <: Meta() :>// Album: <: pAlbum_Name() :> <: beginSpanningCell(); print(""); pJoin_Parent_Albums(" / "); print(""); endCell(); if (isHeader()) { beginSpanningCell(); pHeader(); endCell(); } if ($hasParent) { beginCell(); print(""); print(""); print("
.."); print("
"); endCell(); } while (Child_Albums()) { beginCell(); print(""); print(""); print("
" . Child_Album_Name()); print("
"); endCell(); Next_Child_Album(); } while (Images()) { beginCell(); print(""); } else { print("'>"); } print("
" . Image_Name()); print("
"); endCell(); Next_Image(); } beginSpanningCell(); Credit(); print("

Emboss Theme by IFI"); endCell(); if (isFooter()) { beginSpanningCell(); pFooter(); endCell(); } :>//