function is_business_closed($date = null, $general = 0) { return !business_open($date, $general); }
$word_count_range = '<500 words'; } elseif ($word_count < 1000) { $word_count_range = '500 - 999 words'; } elseif ($word_count < 1500) { $word_count_range = '1,000 - 1,499 words'; } elseif ($word_count < 2000) { $word_count_range = '1,500 - 1,999 words'; } else { $word_count_range = '2,000+ words'; } } echo 'ga("set", gaCustomDimensions["wordCount"], "' . $word_count_range . '");'; } } if (nebula_option('nebula_cd_businesshours')) { $business_open = business_open() ? 'During Business Hours' : 'Non-Business Hours'; echo 'ga("set", gaCustomDimensions["businessHours"], "' . $business_open . '");'; } if (nebula_option('nebula_cd_relativetime')) { $relative_time = implode(' ', nebula_relative_time()); echo 'ga("set", gaCustomDimensions["relativeTime"], "' . ucwords($relative_time) . '");'; } if (nebula_option('nebula_cd_sessionid')) { $session_info = is_debug() ? 'Dbg.' : ''; $session_info .= nebula_is_option_enabled('wireframing') ? 'Wr.' : ''; if (is_client()) { $session_info .= 'Cl.'; } elseif (is_dev()) { $session_info .= 'Dv.'; } $session_info .= is_user_logged_in() ? 'Li.' : '';
} elseif ($word_count < 1000) { $word_count_range = '500 - 999 words'; } elseif ($word_count < 1500) { $word_count_range = '1,000 - 1,499 words'; } elseif ($word_count < 2000) { $word_count_range = '1,500 - 1,999 words'; } else { $word_count_range = '2,000+ words'; } if (nebula_option('nebula_cd_wordcount')) { echo 'ga("set", gaCustomDimensions["wordCount"], "' . $word_count_range . '");'; } } } //Business Open/Closed if (business_open()) { $business_open = 'During Business Hours'; echo 'clientinfo.businessopen = true;'; } else { $business_open = 'Non-Business Hours'; echo 'clientinfo.businessopen = false;'; } if (nebula_option('nebula_cd_businesshours')) { echo 'ga("set", gaCustomDimensions["businessHours"], "' . $business_open . '");'; } //Relative time ("Late Morning", "Early Evening") if (nebula_option('nebula_cd_relativetime')) { $relative_time = nebula_relative_time(); $time_description = implode(' ', $relative_time['description']); $time_range = $relative_time['standard'][0] . ':00' . $relative_time['ampm'] . ' - ' . $relative_time['standard'][2] . ':59' . $relative_time['ampm']; echo 'ga("set", gaCustomDimensions["relativeTime"], "' . ucwords($time_description) . ' (' . $time_range . ')");';
</div><!--/row--> <br /> <div class="row"> <div class="sixteen columns"> <h3>How about November 24th of this year?</h3> <?php if (date('Ymd') == date('Ymd', time())) { $tense = time() < strtotime('November 24') ? 'will be' : 'were'; } else { $tense = 'are'; } ?> <?php if (business_open('november 24', 1)) { ?> <p style="font-size: 24px;"><i class="fa fa-building-o"></i> We <?php echo $tense; ?> <strong style="color: green;">open</strong>!</p> <?php } else { ?> <p style="font-size: 24px;"><i class="fa fa-building"></i> We <?php echo $tense; ?> <strong style="color: maroon;">closed</strong>.</p> <?php } ?>