By siteogra on
The site has 2 designs: for the day and night. I want the day included (for example) with 10-00 and 20-00 in night included a design.
Weácan module, if any.
The site has 2 designs: for the day and night. I want the day included (for example) with 10-00 and 20-00 in night included a design.
Weácan module, if any.
Comments
Possible Solution
This would seem to be the easiest way without setting up a module(not sure what Weacan module means)
You could create two pages, one to change to the day theme, and one to change to the night theme. Then set up a cron job to access each page at a particular point in the day.
The input format would have to be php (rather than Full HTML or Filtered HTML).
The page to switch to the night template would look like this:
You would set up a cron job to navigate to this page at the time you wish to switch to the night theme.
The page to switch to the day template would look like this:
The cron job for this one would be set up some time in the morning.
I have not tested this code. If you get errors, let me know.
Remember, you're setting up the cron job to navigate to these pages, not to Drupal's cron.php.