~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/imageframe/templates/containers/ImageFrame.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{*
2
 
 * $Revision: 1.4 $
 
2
 * $Revision: 1.7 $
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.
9
9
{/if}
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}
 
14
{/if}
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>
26
29
    </tr>
27
30
  {/if}
28
31
  <tr>
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">&nbsp;</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">&nbsp;</div></td>{/if}
 
32
  {capture name="LL"}
 
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">&nbsp;</div></td>
 
36
  {/capture}
 
37
  {capture name="RR"}
 
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">&nbsp;</div></td>
 
41
  {/capture}
 
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}
37
46
  </tr>
38
47
  {if $data.hVT}
39
48
    <tr>
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">&nbsp;</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">&nbsp;</div></td>
 
49
      {$smarty.capture.LL}
 
50
      {$smarty.capture.RR}
46
51
    </tr>
47
52
  {/if}
48
53
  {if $data.hVB}
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>