Change the hours ribbon for 2 upcoming dates
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Oct 2015 19:56:03 +0000 (15:56 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Oct 2015 19:56:03 +0000 (15:56 -0400)
On Oct 4th show the 9 to 7 one
On Nov 1st show the closed for season one

assets/time-ribbon_9-7.png [new file with mode: 0644]
assets/time-ribbon_closed.png [new file with mode: 0644]
parts/slide-show.php

diff --git a/assets/time-ribbon_9-7.png b/assets/time-ribbon_9-7.png
new file mode 100644 (file)
index 0000000..f2f505b
Binary files /dev/null and b/assets/time-ribbon_9-7.png differ
diff --git a/assets/time-ribbon_closed.png b/assets/time-ribbon_closed.png
new file mode 100644 (file)
index 0000000..2e78a82
Binary files /dev/null and b/assets/time-ribbon_closed.png differ
index afc728f..b539918 100644 (file)
@@ -1,14 +1,21 @@
-<div id="slideshow"> 
+<div id="slideshow">
     <a id="logo" href="<?php bloginfo('url');?>" class="small-centered medium-uncentered"><img src="<?php echo get_template_directory_uri(); ?>/assets/logo.png"></a>
     <?php get_template_part('parts/top-bar');?>
     <div id="slide-shadow">
-    <?php 
+    <?php
         echo do_shortcode("[metaslider id=13]");
         echo do_shortcode("[metaslider id=19]");
     ?>
     </div>
     <div style="text-align: center">
+    <?php $today = mktime(); ?>
+    <?php if( date('Y', $today) >= '2015' && date('m', $today) >= 10 && date('d', $today) >= 4 ) : ?>
+        <img id="open" class="small-centered medium-uncentered" src="<?php echo get_template_directory_uri(); ?>/assets/time-ribbon_9-7.png">
+    <?php elseif( date('Y', $today) >= 2015 && date('m', $today) >= 11 && date('d', $today) >= 1 ) : ?>
+        <img id="open" class="small-centered medium-uncentered" src="<?php echo get_template_directory_uri(); ?>/assets/time-ribbon_closed.png">
+    <?php else : ?>
         <img id="open" class="small-centered medium-uncentered" src="<?php echo get_template_directory_uri(); ?>/assets/open-today.png">
+    <?php endif; ?>
     </div>
-    
+
 </div>