Thursday 19 June 2003 12:54:08 am
This is the "original" template wich show images in the demo version :
{let image_variation="false"
align="center" href=''}
{section show=is_set($attribute_parameters.size)}
{set image_variation=$object.data_map.image.content[$attribute_parameters.size]}
{section-else}
{set image_variation=$object.data_map.image.content["medium"]} {/section}
{section show=is_set($attribute_parameters.align)}
{set align=$attribute_parameters.align}
{section-else}
{set align="center"} {/section}
{section show=is_set($attribute_parameters.href)}
{set href=$attribute_parameters.href}
{section-else}
{set href=""} {/section}
{switch match=$align}
{case match="left"}
<div class="imageleft">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} /> {section show=$href}</a>{/section}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case}
{case match="right"}
<div class="imageright">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} /> {section show=$href}</a>{/section}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case}
{case}
<div class="imagecenter">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} /> {section show=$href}</a>{/section}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case} {/switch} {/let}
I would like to show images in original size without the line for the caption. I think it's this one :
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text} </div> So I tryied this way (this few lines just before the last {/let} of the previous code):
{switch match=$image_variation}
{case match="original"}
<img src={$image_variation.full_path|ezroot} />
{/case} {/switch} But it don't work. Someone can help me ?
|