rate-it/src/Resources/contao/templates/rateit_microdata.html5

24 lines
1.2 KiB
Plaintext

<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?= $this->id ?>" class="<?= $this->class ?> <?= $this->rateit_class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->