phpbb template comment conditional

Posted by john on Stack Overflow See other posts from Stack Overflow or by john
Published on 2010-03-19T01:53:07Z Indexed on 2010/03/19 2:51 UTC
Read the original article Hit count: 383

Filed under:
|

I see in PHPBB they use conditional statements inside their html, or xhtml, if you dont know what I mean here is a snippet:

<!-- IF MODERATORS -->
<p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE 

-->{L_MODERATORS}<!-- ENDIF -->: {MODERATORS}</p>
<!-- ENDIF -->
<!-- IF U_MCP -->
    <p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
<!-- ENDIF -->

Is there an explanation on how to implement this in my own site, as it would be very useful and clean up a lot of code.

© Stack Overflow or respective owner

Related posts about html

Related posts about conditional