Re: [PHP Template] dynamic blocks

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
On Wed, 16 Feb 2000, Monte Ohrt wrote:
> This works too, its a new tag for the designer to
> learn, but usable. again, maybe name attributes like so:
> 
> {section: name=link}
>    <a href="{link}"><font face="{fontface}" size="{fontsize}"
>    color="{fontcolor}">{linktext}</font></a>
> {/section: name=link}
> 
> {if: {title} != "foo"}
> 	<b>{title}</b>
> {else:}
> 	<b>none</b>
> {/if}

I don't see why you'd need to put {..} around vars in {if: } construct.

-Andrei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.