added templates
This commit is contained in:
parent
f16141a390
commit
f4a1ff3c73
41
src/Resources/contao/templates/article_rateit_default.html5
Normal file
41
src/Resources/contao/templates/article_rateit_default.html5
Normal file
@ -0,0 +1,41 @@
|
||||
<?php $this->extend('mod_article'); ?>
|
||||
|
||||
<?php $this->block('content'); ?>
|
||||
<?php if ($this->rateit_rating_before): ?>
|
||||
<!-- indexer::stop -->
|
||||
<?php $this->block('rating'); ?>
|
||||
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
|
||||
<?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>
|
||||
<?php $this->endblock(); ?>
|
||||
<!-- indexer::continue -->
|
||||
<?php endif; ?>
|
||||
<?php $this->parent(); ?>
|
||||
<?php if ($this->rateit_rating_after): ?>
|
||||
<!-- indexer::stop -->
|
||||
<?php $this->block('rating'); ?>
|
||||
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
|
||||
<?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>
|
||||
<?php $this->endblock(); ?>
|
||||
<!-- indexer::continue -->
|
||||
<?php endif; ?>
|
||||
<?php $this->endblock(); ?>
|
@ -0,0 +1,16 @@
|
||||
<?php $this->extend('article_rateit_default'); ?>
|
||||
|
||||
<?php $this->block('rating'); ?>
|
||||
<!-- indexer::stop -->
|
||||
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
|
||||
<?php $this->parent(); ?>
|
||||
<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 -->
|
||||
<?php $this->endblock(); ?>
|
Loading…
Reference in New Issue
Block a user