Tuesday 06 September 2005 4:32:02 am
Does anyone know why? Placement to the right is working when heading is set to the left. This is the default ez code with some modifications in file /override/templates/content/view/embed_class_5.tpl:
{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[ezini( 'ImageSettings', 'DefaultEmbedAlias', 'content.ini' )]}
{/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="right"}
<div class="imageright">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}" />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa rightbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}
{case match="left"}
<div class="imageleft">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}" />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa leftbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}
{case}
<div class="imagecenter">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}" />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa centerbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}
{/switch}
{/let}
|