Add new image for open at 1
authorSteve Sutton <steve@gaslightmedia.com>
Sat, 21 May 2016 10:29:46 +0000 (06:29 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Sat, 21 May 2016 10:29:46 +0000 (06:29 -0400)
assets/time-ribbon_1-8.png [new file with mode: 0644]
parts/slide-show.php
style.css

diff --git a/assets/time-ribbon_1-8.png b/assets/time-ribbon_1-8.png
new file mode 100644 (file)
index 0000000..59793ca
Binary files /dev/null and b/assets/time-ribbon_1-8.png differ
index e678c0d..778f380 100644 (file)
@@ -10,7 +10,6 @@
     <div style="text-align: center">
 <?php
 $today     = time();
-
 $start9to8 = mktime( 0, 0, 0, 5, 21, date('Y'));
 $end9to8   = mktime( 0, 0, 0, 10, 3, date('Y'));
 
@@ -20,7 +19,9 @@ $end9to7   = mktime( 0, 0, 0, 11, 1, date('Y'));
 // 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 ) {
+if (date('m/d/Y') == date('m/d/Y', $start9to8)) {
+    $ribbon = 'time-ribbon_1-8.png';
+} else if ( $today >= $start9to8 && $today <= $end9to8 ) {
     $ribbon = 'open-today.png';
 } else if ( $today >= $start9to7 && $today <= $end9to7 ) {
     $ribbon = 'time-ribbon_9-7.png';
index 6ef4004..03f2d50 100644 (file)
--- 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.24
+Version: 1.5.25
 */