3
3
* If you want to customize this file, do not edit it directly since future upgrades
4
4
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
5
5
* version. Gallery will look for that file first and use it if it exists.
10
10
{counter name="ImageFrame_counter" assign="IF_count"}
11
11
{assign var="objectId" value="IFid`$IF_count`"}
12
{if isset($maxSize) && isset($width) && isset($height)}
13
{g->shrinkDimensions widthVar="width" heightVar="height" maxSize=$maxSize}
12
15
{if !isset($data) || $data.type=='style'}
13
16
{$content|replace:"%ID%":$objectId|replace:"%CLASS%":"ImageFrame_`$frame`"}
14
17
{elseif $data.type=='image'}
19
22
<td class="TL"></td>
20
23
{if $data.wHL}<td class="TTL"></td>{/if}
21
24
<td class="TT"{if $data.wHL or $data.wHR}
22
style="width:expression((document.getElementById('{$objectId}').width-{$data.wHL+$data.wHR})+'px')"
25
style="width:{if isset($width)}{$width-$data.wHL-$data.wHR}px{else}expression((document.getElementById('{$objectId}').width-{$data.wHL+$data.wHR})+'px'){/if}"
23
26
{/if}><div class="H"></div></td>
24
27
{if $data.wHR}<td class="TTR"></td>{/if}
25
28
<td class="TR"></td>
29
{if $data.hVT}<td class="LLT"></td>{else}<td class="LL"{if $data.hVT or $data.hVB}
30
style="height:expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px')"
31
{/if}><div class="V"> </div></td>{/if}
32
<td rowspan="{$data.rowspan}" colspan="{$data.colspan}" class="IMG"
33
>{$content|replace:"%ID%":$objectId|replace:"%CLASS%":"ImageFrame_image"}</td>
34
{if $data.hVT}<td class="RRT"></td>{else}<td class="RR"{if $data.hVT or $data.hVB}
35
style="height:expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px')"
36
{/if}><div class="V"> </div></td>{/if}
33
<td class="LL"{if $data.hVT or $data.hVB}
34
style="height:{if isset($height)}{$height-$data.hVT-$data.hVB}px{else}expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px'){/if}"
35
{/if}><div class="V"> </div></td>
38
<td class="RR"{if $data.hVT or $data.hVB}
39
style="height:{if isset($height)}{$height-$data.hVT-$data.hVB}px{else}expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px'){/if}"
40
{/if}><div class="V"> </div></td>
42
{if $data.hVT}<td class="LLT"></td>{else}{$smarty.capture.LL}{/if}
43
<td rowspan="{$data.rowspan}" colspan="{$data.colspan}" class="IMG">
44
{$content|replace:"%ID%":$objectId|replace:"%CLASS%":"ImageFrame_image"}</td>
45
{if $data.hVT}<td class="RRT"></td>{else}{$smarty.capture.RR}{/if}
40
<td class="LL"{if $data.hVT or $data.hVB}
41
style="height:expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px')"
42
{/if}><div class="V"> </div></td>
43
<td class="RR"{if $data.hVT or $data.hVB}
44
style="height:expression((document.getElementById('{$objectId}').height-{$data.hVT+$data.hVB})+'px')"
45
{/if}><div class="V"> </div></td>
57
62
<td class="BL"></td>
58
63
{if $data.wHL}<td class="BBL"></td>{/if}
59
64
<td class="BB"{if $data.wHL or $data.wHR}
60
style="width:expression((document.getElementById('{$objectId}').width-{$data.wHL+$data.wHR})+'px')"
65
style="width:{if isset($width)}{$width-$data.wHL-$data.wHR}px{else}expression((document.getElementById('{$objectId}').width-{$data.wHL+$data.wHR})+'px'){/if}"
61
66
{/if}><div class="H"></div></td>
62
67
{if $data.wHR}<td class="BBR"></td>{/if}
63
68
<td class="BR"></td>