Well I'm very happy you worked it out. Always nice to see the different ways people tackle issues!
If it does help anyone in the future though, I whipped up my variant of the idea as a foundation. I'm sure many future visitors would appreciate any alternate methods you might be employing spelled out for them if you feel like it, tosca.
http://animepapers.org/software/zenphoto/code-snippets/multiple-layouts-dynamic-modification.html
Probably far from perfect, but if anybody needs a reference it's there with a tiny bit of documentation.
I'll also post here...and see how it comes out:
`
<?php
$masal = $_zp_current_album->getParent();
if (strlen($masal) == 0)
{
$theDecider = $_zp_current_album->getTitle();
} else {
$theMiddleMan = reset($masal);
$theDecider = current($masal);
}
?>
<?php
if ($theDecider = 'album-name-1') {
$iw = 189;
$ih = NULL;
$cw = 909;
$ch = 67;
} elseif($theDecider = 'album-name-2') {
$iw = NULL;
$ih = 989;
$ch = 149;
$cw = 79;
} elseif($theDecider = 'album-name-3') {
$iw = NULL;
$ih = 389;
$ch = 89;
$cw = 67;
} else {
$iw = NULL;
$ih = 85;
$ch = 99;
$cw = 99;
}
?>
echo '<li class="album-thumb"><em style="background-image:url(' . pathurlencode($_zp_current_image->getCustomImage(NULL, $iw, $ih, $cw, $ch, NULL, NULL, true)) . '); ">"'.getImageTitle().'"';
`