?>
</div>
<div style="text-align: center">
-<?php
-$today = time();
-$start9to8 = mktime( 0, 0, 0, 5, 20, date('Y'));
-$end9to8 = mktime( 0, 0, 0, 9, 5, date('Y'));
-
-$start9to7 = mktime( 0, 0, 0, 9, 6, date('Y'));
-$end9to7 = mktime( 0, 0, 0, 11, 1, date('Y'));
-// check the date
-// 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 (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';
-} else {
- $ribbon = 'time-ribbon_closed.png';
-}
-?>
- <img id="open" class="small-centered medium-uncentered" src="<?php echo get_template_directory_uri(); ?>/assets/<?php echo $ribbon;?>">
</div>
</div>