summaryrefslogtreecommitdiff
path: root/views/mods/mod_reviews/rating.phtml
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-04 16:37:30 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-04 16:37:30 +0200
commitb31882d8cd5643012cbb45975b06315027addcb6 (patch)
tree4f335d136931aa8dc91ae964b1641c91a6d52276 /views/mods/mod_reviews/rating.phtml
parent5fda6570f719eedbd00916988ae53d773db60f27 (diff)
Produktbewertungen: leere Sterne als Umriss
Leere Sterne hatten zu wenig Kontrast zum Grund und unterschieden sich nur in der Farbe von vollen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/mods/mod_reviews/rating.phtml')
-rw-r--r--views/mods/mod_reviews/rating.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/mods/mod_reviews/rating.phtml b/views/mods/mod_reviews/rating.phtml
index 5aa665b..63379ff 100644
--- a/views/mods/mod_reviews/rating.phtml
+++ b/views/mods/mod_reviews/rating.phtml
@@ -2,7 +2,7 @@
/**
* Sterne mit Schnitt und Anzahl (Modul Produktbewertungen)
*
- * Die Sternzeichen sind aria-hidden, den Wert sagt der Text. Modus full: Text sichtbar; compact: sichtbar „4,5 (12)“,
+ * Die Sternzeichen sind aria-hidden, den Wert sagt der Text. Leere Sterne sind Umrisse, volle Sterne liegen darüber. Modus full: Text sichtbar; compact: sichtbar „4,5 (12)“,
* der ganze Text für Screenreader; single: nur Sterne, der Text für Screenreader.
* @version 4.6.1
*/
@@ -10,4 +10,4 @@
$r = $this->view['wpsg_mod_reviews']['rating'];
?>
-<p class="wpsg-rating<?php if ($r['class'] !== '') echo ' '.esc_attr($r['class']); ?>"><span class="wpsg-rating__stars" aria-hidden="true"><span class="wpsg-rating__empty">★★★★★</span><span class="wpsg-rating__fill" style="width:<?php echo intval($r['percent']); ?>%">★★★★★</span></span><?php if ($r['mode'] === 'full') { ?> <span class="wpsg-rating__text"><?php echo esc_html($r['text']); ?></span><?php } else if ($r['mode'] === 'compact') { ?> <span class="wpsg-rating__text" aria-hidden="true"><?php echo esc_html($r['short']); ?></span><span class="screen-reader-text"><?php echo esc_html($r['text']); ?></span><?php } else { ?><span class="screen-reader-text"><?php echo esc_html($r['text']); ?></span><?php } ?></p>
+<p class="wpsg-rating<?php if ($r['class'] !== '') echo ' '.esc_attr($r['class']); ?>"><span class="wpsg-rating__stars" aria-hidden="true"><span class="wpsg-rating__empty">☆☆☆☆☆</span><span class="wpsg-rating__fill" style="width:<?php echo intval($r['percent']); ?>%">★★★★★</span></span><?php if ($r['mode'] === 'full') { ?> <span class="wpsg-rating__text"><?php echo esc_html($r['text']); ?></span><?php } else if ($r['mode'] === 'compact') { ?> <span class="wpsg-rating__text" aria-hidden="true"><?php echo esc_html($r['short']); ?></span><span class="screen-reader-text"><?php echo esc_html($r['text']); ?></span><?php } else { ?><span class="screen-reader-text"><?php echo esc_html($r['text']); ?></span><?php } ?></p>