What do I put of code in the PHP-field to get a different css-file activated by night?
Something like this:
$hour = (int)date('G'); // After 7pm or before 4am. if ($hour > 18 OR $hour < 4) { return TRUE; } else { return FALSE; }
Edited 06/19/2010 to correct syntax errors.
Hmm, can't get this to work...is it confirmed working? Thanks!
It does when there aren't any syntax errors. :-/
Comments
Comment #1
mrtoner commentedSomething like this:
Edited 06/19/2010 to correct syntax errors.
Comment #2
jjjames commentedHmm, can't get this to work...is it confirmed working?
Thanks!
Comment #3
mrtoner commentedIt does when there aren't any syntax errors. :-/