escapeHtmlAttr(uniqid()); $labelAttrs = !empty($this->labelAttrs) ? (' ' . implode(' ', $this->labelAttrs)) : ''; $inputAttrs = !empty($this->inputAttrs) ? (' ' . implode(' ', $this->inputAttrs)) : ''; $rating = $ratingData['count'] ? ($ratingData['rating'] ?? 0) : null; // Unique name for the fields of read-only ratings so that displaying multiple ratings on a page works: $fieldName = $this->readonly ? "rating_{$id}" : 'rating'; ?>
> icon($level % 20 === 10 ? 'rating-half' : 'rating-full', 'rating__icon rating__icon--star'); ?> = $rangeLow && $rating < $rangeHigh ? ' checked' : ''?>readonly ? ' disabled' : ''?>>
allowClear)): ?> transEsc('Clear')?>