ManuTdi
Active member
Try this.
find:
Code:<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
replace with:
Code:<xen:if is="{xen:time $serverTime, 'G'} >= 8 AND {xen:time $serverTime, 'G'} < 20"> <xen:set var="$tdiBodyClass">tdiBodyDay</xen:set> <xen:else /> <xen:set var="$tdiBodyClass">tdiBodyNight</xen:set> </xen:if> <body{xen:if {$bodyClasses}, ' class="{$bodyClasses} {$tdiBodyClass}"', ' class="{$tdiBodyClass}"'}>
And then add this to your EXTRA.css or where ever you add your css.
Code:.tdiBodyDay { background: url('path/to/background.png') no-repeat top center #c0c0c0; } .tdiBodyNight { background: url('path/to/background_night.png') no-repeat top center #000000; }
Thanks!
