From 20541a4c8cc556c1f12d3c164d30852074dabcb3 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 7 Apr 2016 10:23:31 -0400 Subject: [PATCH] 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() --- parts/slide-show.php | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) 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'; +} +?> +
-- 2.17.1