โค้ด: เลือกทั้งหมด
<?php if($params->get('show_vote')==1) : ?>
<div itemscope itemtype="https://schema.org/Review">
<span itemprop="author"><?php echo $this->item->author; ?></span>,
<span itemprop="itemReviewed" itemscope itemtype="http://schema.org/SoftwareApplication">
<span itemprop="name"><?php echo $this->item->title;?></span> - by
<span itemprop="applicationCategory"><?php echo $this->item->category_title; ?></span>,
<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<?php if($this->item->rating) : ?>
<span itemprop="ratingValue"><?php echo $this->item->rating; ?></span>
<span itemprop="ratingCount"><?php echo $this->item->rating_count; ?></span>
<span itemprop="worstRating">1</span>
<?php else : ?>
<span itemprop="ratingValue"><?php echo 0; ?></span>
<span itemprop="ratingCount"><?php echo 1; ?></span>
<span itemprop="worstRating">0</span>
<?php endif;?>
<span itemprop="bestRating">5</span>
</div>
</span>
</div>
<?php endif; ?>