TalkVirginia
10-13-2009, 10:43 PM
I have the following php code that I'm trying to convert into a template conditional. Can this be done?
if ($firstGameTime !== $cutoffDateTime && !$firstGameExpired)
{
//show something
}
I tried to convert it like this but the style manager thinks it's missing the beginning <if>
<if condition == "$firstGameTime != $cutoffDateTime && !firstGameExpired">
<div id="firstGame" class="countdown"></div>
</if>
if ($firstGameTime !== $cutoffDateTime && !$firstGameExpired)
{
//show something
}
I tried to convert it like this but the style manager thinks it's missing the beginning <if>
<if condition == "$firstGameTime != $cutoffDateTime && !firstGameExpired">
<div id="firstGame" class="countdown"></div>
</if>