Skip to content

Commit

Permalink
Update rating.php
Browse files Browse the repository at this point in the history
  • Loading branch information
conseilgouz committed Mar 1, 2024
1 parent f71dd9a commit f7b294f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/content/vote/tmpl/rating.php
Expand Up @@ -80,6 +80,7 @@
<div class="content_rating" role="img" aria-label="<?php echo Text::sprintf('PLG_VOTE_STAR_RATING', $rating); ?>">
<?php if ($rcount) : ?>
<div class="visually-hidden" itemscope="itemscope" itemtype="https://schema.org/Product">
<span itemprop="name"><?php echo $row->title;?></span>
<p class="visually-hidden" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<?php echo Text::sprintf('PLG_VOTE_USER_RATING', '<span itemprop="ratingValue">' . $rating . '</span>', '<span itemprop="bestRating">5</span>'); ?>
<meta itemprop="ratingCount" content="<?php echo $rcount; ?>">
Expand Down

0 comments on commit f7b294f

Please sign in to comment.