Я собираюсь расширить свои шаблоны атрибутами schema.org и задать следующий вопрос. С помощью какого свойства я могу указать часы работы для типа EducationalOrganization? К сожалению, свойство openingHours здесь недоступно. Кроме того, не существует типа, аналогичного типу EducationalOrganization.
Вот текущее состояние моего кода:
<div itemscope itemtype="http://schema.org/EducationalOrganization" class="ce_text address block">
<div class="text_container">
<p>
<span>
<strong itemprop="name"><?php echo $this->field('company')->value(); ?></strong><br>
</span>
<p itemscope itemtype="http://schema.org/PostalAddress" itemprop="address">
<span itemprop="streetAddress">
<?php echo $this->field('street')->value(); ?><br>
</span>
<span itemprop="postalCode">
<?php echo $this->field('zipcode')->value(); ?>
</span>
<span itemprop="addressLocality">
<?php echo $this->field('place')->value(); ?>
</span>
</p>
<p>
Aus dem Ausland: <span itemprop="telephone"><?php echo $this->field('phone_foreign')->value(); ?></span><br>
Fax: <span itemprop="telephone"><?php echo $this->field('fax')->value(); ?></span>
</p>
<p itemscope itemtype="??????"> <!-- What type can I use here? -->
<strong>Öffnungszeiten:</strong><br>
Montag bis Donnerstag: <meta itemprop="openingHours" content="Mo-Th 08:00-18:00"><?php echo $this->field('mothu')->value(); ?><br>
Freitag: <meta itemprop="openingHours" content="Fr 08:00-15:00"><?php echo $this->field('fri')->value(); ?>
</p> <!-- Öffnungszeiten Ende -->
</div>
</div>
Какой тип я могу использовать в этом случае для использования свойства itemrop="openingHours" или есть другой обходной путь, если это невозможно?
ОБНОВЛЕНИЕ:
Я выбрал это решение в то же время. Он четко считывается Google и имеет больше смысла в случае с нашей компанией.
<div itemscope itemtype="http://schema.org/Service">
<strong>Öffnungszeiten:</strong><br>
Montag bis Donnerstag: <?php echo $this->field('mothu')->value(); ?><br>
Freitag: <?php echo $this->field('fri')->value(); ?>
<div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://schema.org/Monday" />
<time itemprop="opens" content="08:00:00"></time>
<time itemprop="closes" content="18:00:00"></time>
</div>
<div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://schema.org/Tuesday" />
<time itemprop="opens" content="08:00:00"></time>
<time itemprop="closes" content="18:00:00"></time>
</div>
<div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://schema.org/Wednesday" />
<time itemprop="opens" content="08:00:00"></time>
<time itemprop="closes" content="18:00:00"></time>
</div>
<div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://schema.org/Thursday" />
<time itemprop="opens" content="08:00:00"></time>
<time itemprop="closes" content="18:00:00"></time>
</div>
<div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<link itemprop="dayOfWeek" href="http://schema.org/Friday" />
<time itemprop="opens" content="08:00:00"></time>
<time itemprop="closes" content="15:00:00"></time>
</div>
</div>