Templates korrigiert

This commit is contained in:
Carsten Götzinger 2018-02-15 12:44:10 +01:00
parent 129146a92c
commit 03dda889a9
2 changed files with 52 additions and 17 deletions

View File

@ -3,7 +3,6 @@
<?php $this->block('content'); ?> <?php $this->block('content'); ?>
<?php if ($this->rateit_rating_before): ?> <?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop --> <!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>"> <div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?> <?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div> <div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
@ -16,13 +15,11 @@
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div> <div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php $this->endblock(); ?>
<!-- indexer::continue --> <!-- indexer::continue -->
<?php endif; ?> <?php endif; ?>
<?php $this->parent(); ?> <?php $this->parent(); ?>
<?php if ($this->rateit_rating_after): ?> <?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop --> <!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>"> <div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?> <?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div> <div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
@ -35,7 +32,6 @@
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div> <div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php $this->endblock(); ?>
<!-- indexer::continue --> <!-- indexer::continue -->
<?php endif; ?> <?php endif; ?>
<?php $this->endblock(); ?> <?php $this->endblock(); ?>

View File

@ -1,9 +1,21 @@
<?php $this->extend('mod_article_rateit'); ?> <?php $this->extend('mod_article'); ?>
<?php $this->block('rating'); ?> <?php $this->block('content'); ?>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop --> <!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata"> <div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?> <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>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span> <span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating"> <span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span> <span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
@ -13,4 +25,31 @@
</span> </span>
</div> </div>
<!-- indexer::continue --> <!-- indexer::continue -->
<?php endif; ?>
<?php $this->parent(); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<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>
<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 endif; ?>
<?php $this->endblock(); ?> <?php $this->endblock(); ?>