Does this make use of proper openingHours Schema?

Permalink Browser Info Environment
http://www.i17tbirdstorage.com/

If you look in the footer of this site you'll see how I have been handling hours using stacks and placing the following PHP in the footer template. Will this block output the proper markup for openingHours?

<?
$today = date("l");
  if($today == "Sunday")
  {
   $a = Stack::getByName('Sunday');
   $a->display();
  }
  elseif($today == "Monday")
  {
     $a = Stack::getByName('Monday');
     $a->display();
  }
  elseif($today == "Tuesday")
  {
     $a = Stack::getByName('Tuesday');


This is how it looks in-page:
<div itemscope="" itemtype="http://schema.org/SelfStorage" class="office_hours" itemid="facility">
<h5>Office Hours Today:</h5>
<table style="width: 100%; border:none;">
<tbody>
<tr style="background-color: #454545;">
   <td style="text-align: left;" class="day"><span style="color: #ffffff;">Monday:</span>
   </td>
   <td style="text-align: right;" class="time"><span style="color: #ffffff;"><data itemprop="openingHours" value="Mo 09:00-18:00">9am - 6pm</data></span>
   </td>
   <td style="text-align: right;" class="today"><span style="color: #ffffff;">today</span>
   </td>
</tr>
<tr>
   <td style="text-align: left;" class="day">Tuesday:
   </td>

Type: Pre-Sale
Status: Resolved
barkingtuna
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

It can do this, yes. Look at the "Opening Times" on the left for the generated code:

http://www.devoda.nl/en/contact...

I've defined a "LocalBusiness" as itemtype, but you are free to enter your own (SelfStorage is what you use, seeing your example).

Kind regards,

Ramon

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.9
Version Installed - 5.7.5.9
Database Version - 20160615000000

# concrete5 Packages
Call to Action (1.0.0), Easy Image Gallery (1.3.1), Easy Rate (1.2.1), HonestWebsites Simple testimonials (1.0.0), Icons for Redactor (0.9), Mortar (1.0.0), Responsive Embed (1.0.1), Studio Testimonials Pro (1.0.2), SVG Social Media Icons (0.9.9), Sweet Google Reviews Package (0.9.4), Thumb Gallery (1.0.3), Tweet Feed Block Components (0.9.13).

# concrete5 Overrides
blocks/html/templates/NoHTMLBloc/view.php, blocks/html/templates/NoHTMLBloc, blocks/html/templates, blocks/html, blocks/easy_rate/templates/EasyRate_Fixed_Labels/view.php, blocks/easy_rate/templates/EasyRate_Fixed_Labels, blocks/easy_rate/templates, blocks/easy_rate/view.php, blocks/easy_rate, blocks/autonav/view.php, blocks/autonav, blocks/testimonial/view.css, blocks/testimonial/view.php, blocks/testimonial, blocks/feature/view.php, blocks/feature, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, blocks/html/templates/NoHTMLBloc/view.php, blocks/html/templates/NoHTMLBloc, blocks/html/templates, blocks/html, blocks/easy_rate/templates/EasyRate_Fixed_Labels/view.php, blocks/easy_rate/templates/EasyRate_Fixed_Labels, blocks/easy_rate/templates, blocks/easy_rate/view.php, blocks/easy_rate, blocks/autonav/view.php, blocks/autonav, blocks/testimonial/view.css, blocks/testimonial/view.php, blocks/testimonial, blocks/feature/view.php, blocks/feature, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.43

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, http, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, magickwand, mailparse, mbstring, mcrypt, mhash, mysql, mysqli, OAuth, oci8, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
http.persistent.handles.limit - -1
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.