{* * $Revision: 15342 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *} {if isset($ImageFrameData.data[$frame])} {assign var="data" value=$ImageFrameData.data[$frame]} {/if} {counter name="ImageFrame_counter" assign="IF_count"} {assign var="objectId" value="IFid`$IF_count`"} {if isset($maxSize) && isset($width) && isset($height)} {g->shrinkDimensions widthVar="width" heightVar="height" maxSize=$maxSize} {/if} {if !isset($data) || $data.type=='style'} {$content|replace:"%ID%":$objectId|replace:"%CLASS%":"ImageFrame_`$frame`"} {elseif $data.type=='image'} {if isset($data.square) && $data.square && isset($width) && isset($height)} {assign var="isSquare" value=true} {if $width > $height}{assign var="height" value=$width} {else}{assign var="width" value=$height}{/if} {/if} {if !empty($data.imageTT) || !empty($data.imageTL) || !empty($data.imageTR) || !empty($data.imageTTL) || !empty($data.imageTTR)} {if $data.wHL}{/if} {if $data.wHR}{/if} {/if} {capture name="LL"} {/capture} {capture name="RR"} {/capture} {if $data.hVT}{else}{$smarty.capture.LL}{/if} {if $data.hVT}{else}{$smarty.capture.RR}{/if} {if $data.hVT} {$smarty.capture.LL} {$smarty.capture.RR} {/if} {if $data.hVB} {/if} {if !empty($data.imageBB) || !empty($data.imageBL) || !empty($data.imageBR) || !empty($data.imageBBL) || !empty($data.imageBBR)} {if $data.wHL}{/if} {if $data.wHR}{/if} {/if}
 
 
{$content|replace:"%ID%":$objectId|replace:"%CLASS%":"ImageFrame_image"}
{/if}