Hi Peter,
You template should work if you add a space between the "if" and the "[".
Ther is another way to do the same wich is a bit smarter.
Template you merge the calendar html source , and at the end, you check the condition to keep or delete the table. But you can perfore the check before and then merge the calendare if the table is still ther.
PHP:
if ($calendar==0) {
$cal_src = '' ;
} else {
$cal_src = '<table>...</table>' ;
}
|
HTML:
<table width="100%" border="0" cellspacing="1">
<tr>
<TD height="22" bgcolor="#000000">
<div class=bereich>date:</div>
</TD>
</tr>
<tr>
<td bgcolor="#FFFFFF">[var.cal_src;friend=table;htmlconv=no]</td>
</tr>
</table>
|
Enjoy,