Just incase the response is not fast enough for the style sheet.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 7 Jan 2016 21:52:50 +0000 (16:52 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 7 Jan 2016 21:52:50 +0000 (16:52 -0500)
functions.php

index 91e4e23..fce0108 100644 (file)
@@ -91,6 +91,20 @@ function keweenaw_get_season()
 
     // close curl resource to free up system resources
     curl_close($ch);
+    if ( $output == '' ) {
+        // based on the year
+        $current_month = date( 'm' );
+        if ( $current_month >= "03" && $current_month == "05" ) {
+            $season = 'spring';
+        } else if ( $current_month >= "06" && $current_month == "08" ) {
+            $season = 'summer';
+        } else if ( $current_month >= "09" && $current_month == "11" ) {
+            $season = 'fall';
+        } else {
+            $season = 'winter';
+        }
+        return $season . '.css';
+    }
     return $output;
 }