Alex,
Is this new template parser designed to replace the new-graphics mod?
<img src=/new14.gif>
<%endif%>
<%if DaysOld < '8'%>
<%if DaysOld > '3'%>
<img src=/new7.gif>
<%endif%>
<%endif%>
<%if DaysOld < '4'%>
<%if DaysOld > '1'%>
<img src=/new2.gif>
<%endif%>
<%endif%>
<%if DaysOld = '1'%>
<img src ="/new1.gif>
<%endif%>
This could be simplified to be:
<img src ="/new<%DaysOld%>.gif>
<%endif%>
Right?
And with a few extra images in the images directory, the amount of template processing is significantly reduced....
Is this new template parser designed to replace the new-graphics mod?
Code:
<%if DaysOld > '7'%> <img src=/new14.gif>
<%endif%>
<%if DaysOld < '8'%>
<%if DaysOld > '3'%>
<img src=/new7.gif>
<%endif%>
<%endif%>
<%if DaysOld < '4'%>
<%if DaysOld > '1'%>
<img src=/new2.gif>
<%endif%>
<%endif%>
<%if DaysOld = '1'%>
<img src ="/new1.gif>
<%endif%>
This could be simplified to be:
Code:
<%if DaysOld < '15'%> <img src ="/new<%DaysOld%>.gif>
<%endif%>
Right?
And with a few extra images in the images directory, the amount of template processing is significantly reduced....