![]() |
Change background according to season
Just a simple little mod to change the background according to the season :)
Create your background images - winter.png / spring.png / summer.png / autumn.png Upload your images to skin/common_files/images/seasons ( v4.3.x and below, upload to skin1/images/seasons ) Then add this code to the end of skin/common_files/service_head.tpl ( v4.3.x and below, add to skin1/customer/home.tpl before </head> ) Code:
{php} Or, here's a pure Smarty version... Code:
{assign var=day value=$smarty.now|date_format:"%j"} |
Re: Change background according to season
Very funny. Thanks my friend. Christmas is coming!
|
Re: Change background according to season
exactly what i've been looking for... thanks!
|
Re: Change background according to season
Please note starting with Smarty v3, {php}{/php} tag is deprecated. Those who use Smarty 3 patch supplied by qualiteam should know this is not working at all. You should make modification in php file then call the variable in template file.
|
Re: Change background according to season
Yes, but I'm guessing 99% of people haven't made the leap yet, due to it interfering with many mods.
|
Re: Change background according to season
Nice!
Seems you could avoid {php} and use something like this: PHP Code:
|
Re: Change background according to season
Pure Smarty version added :)
|
All times are GMT -8. The time now is 12:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.