Templates korrigiert
This commit is contained in:
		| @@ -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(); ?> | ||||||
|   | |||||||
| @@ -1,16 +1,55 @@ | |||||||
| <?php $this->extend('mod_article_rateit'); ?> | <?php $this->extend('mod_article'); ?> | ||||||
|  |  | ||||||
| <?php $this->block('rating'); ?> | <?php $this->block('content'); ?> | ||||||
| <!-- indexer::stop --> |   <?php if ($this->rateit_rating_before): ?> | ||||||
| <div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata"> |     <!-- 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->parent(); ?> |   <?php $this->parent(); ?> | ||||||
|   <span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span> |   <?php if ($this->rateit_rating_after): ?> | ||||||
|   <span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating"> |     <!-- indexer::stop --> | ||||||
|      <span itemprop="ratingValue"><?php echo $this->actRating; ?></span> |     <div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata"> | ||||||
|      <span itemprop="worstRating">0</span> |       <div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>"> | ||||||
|      <span itemprop="bestRating"><?php echo $this->maxRating; ?></span> |           <?php if ($this->showBefore) : ?> | ||||||
|      <span itemprop="ratingCount"><?php echo $this->votes; ?></span> |           <div id="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div> | ||||||
|   </span> |           <?php endif; ?> | ||||||
| </div> |           <div class="wrapper"> | ||||||
| <!-- indexer::continue --> |               <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(); ?> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user