After some initial successes, I've hit a wall. A solid granite wall.
I want to have conditional clauses like IF in there and ended up using the HTML-comment tag as a delimiter "<!--" and "-->" (I tried curly brackets with exclamation mark but nothing worked).
Code: Select all
<!--IF relatedNews relatedNews="<TR>
<TD class='red'><IMG src='../graphix/blank.gif' width='5' height='1' alt='' border='0'>
</TD>
<TD class='relatedNews' bgcolor='#FFFFFF' valign='top' nowrap><STRONG>In the News</STRONG>
</TD>
</TR>"-->Code: Select all
<?php preg_match_all("/\<!--IF.?([\w])(="[.*])?"--\>/",$temp,$matches, PREG_PATTERN_ORDER);
?>