[SOLVED]Use {current_date} to show picture
Posted: Tue Oct 25, 2011 7:32 pm
Hi,
I am trying to use {current_date} to change picture on website. I want to show different picture on every week. I have tried to use this:
but obviously I can't write smarty, so this doesnt work
Why it's not working?
-R
I am trying to use {current_date} to change picture on website. I want to show different picture on every week. I have tried to use this:
Code: Select all
{$week = current_date format="%W"}
{if $week eq 43}
Some picture <img tag>
{elseif $week eq 44}
Some picture <img tag>
{elseif $week eq 45}
Some picture <img tag>
{/if}

-R