From: Steve Sutton Date: Thu, 7 Apr 2016 14:23:31 +0000 (-0400) Subject: Update the slideshow page to check for dates and show time ribbon X-Git-Tag: v1.5.19^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=20541a4c8cc556c1f12d3c164d30852074dabcb3;p=WP-Themes%2Fmcgulpinpoint.git Update the slideshow page to check for dates and show time ribbon Time ribbon is is the slideshow partial. Checking for current time use time() --- diff --git a/parts/slide-show.php b/parts/slide-show.php index c2a18e7..af5b750 100644 --- a/parts/slide-show.php +++ b/parts/slide-show.php @@ -3,13 +3,32 @@
- - += $start9to8 && $today <= $end9to8 ) { + $ribbon = 'open-today.png'; +} else if ( $today >= $start9to7 && $today <= $end9to7 ) { + $ribbon = 'time-ribbon_9-7.png'; +} else { + $ribbon = 'time-ribbon_closed.png'; +} +?> +