From: Steve Sutton Date: Thu, 7 Apr 2016 14:29:31 +0000 (-0400) Subject: Update the dates X-Git-Tag: v1.5.20^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=cde2106bd27bd50d475dea67210de9e824109c02;p=WP-Themes%2Fmcgulpinpoint.git Update the dates Should be from Oct 4 to Now 1 is the 9 to 7 the rest open times are 9 to 8 --- diff --git a/parts/slide-show.php b/parts/slide-show.php index af5b750..7578945 100644 --- a/parts/slide-show.php +++ b/parts/slide-show.php @@ -12,13 +12,15 @@ $today = time(); // for testing the dates to test use mktime() for the current time use time() $today = mktime(0, 0, 0, 11, 2, 2016); + $start9to8 = mktime( 0, 0, 0, 5, 21, date('Y')); -$end9to8 = mktime( 0, 0, 0, 9, 30, date('Y')); -$start9to7 = mktime( 0, 0, 0, 10, 1, date('Y')); +$end9to8 = mktime( 0, 0, 0, 10, 3, date('Y')); + +$start9to7 = mktime( 0, 0, 0, 10, 4, date('Y')); $end9to7 = mktime( 0, 0, 0, 11, 1, date('Y')); // check the date -// if time is between May 21st and September 30 then hours should be 9am to 8pm -// if time is between Oct 1st and Nov 1 then hours should be 9am to 7pm +// if time is between May 21st and Oct 3rd then hours should be 9am to 8pm +// if time is between Oct 4th and Nov 1 then hours should be 9am to 7pm // else show the closed ribbon if ( $today >= $start9to8 && $today <= $end9to8 ) { $ribbon = 'open-today.png'; diff --git a/style.css b/style.css index 4ac771d..aad72bf 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: McGulpinPoint Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for McGulpinPoint -Version: 1.5.19 +Version: 1.5.20 */