Switching content between summer and winter

Probably the easiest thing to use is the date() function with the “daylight savings argument and add a custom <body> class:

<?php
/** Plugin Name: (#179112) Daylight savings body class */
add_filter( 'body_class', 'daylightsavings_classes' );
function daylightsavings_classes( Array $classes )
{
    $classes[] = 0 === date('I') ? 'winter' : 'summer';
    return $classes;
}

This plugin appends either winter or summer to your classes. Therefore it allows you to use different rules in your stylesheet and style your elements accordingly.

tech