Hello,
I häve a problem. My if-construction works but it make errors....
{if $postrow[topic].statusicon}
{foreach from=$postrow[topic].statusicon item=statusicon}
{then}
<img src="{$config.BASE_URL}/images/{$style_array.general}/{$statusicon.img}" alt="{$statusicon.alt}" title="{$statusicon.alt}" />
{/foreach}
{/then}
{else}
<img alt="" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[topic].icon}" />
{/else}
{/if}
Can you help me this fix?
Thank you!
P.S.: Sorry for the bad english. I hope you understand what I mean.
Here in German:
Hallo,
ich möchte gerne die postlist.tpl ändern. So, dass die, wenn ein Thread geschlossen wurde/angepinnt/..., das Statusicon statt des Posticons angezeigt wird.
Die If-Abfrage selbst funktioniert, aber im Forum werden mir über den Themen Syntaxfehler wegen der {else} und {then} Anweisungen angezeigt.
Wie bekomme ich das in Ordnung?
Vielen Dank.