| @@ -29,20 +29,8 @@ | ||
| 29 | 29 | public function get_keywords() { |
| 30 | 30 | return [ 'star', 'rating', 'review', 'score', 'scale' ]; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - protected function is_dynamic_content(): bool { | |
| 34 | - return false; | |
| 35 | - } | |
| 36 | - | |
| 37 | - public function get_style_depends(): array { | |
| 38 | - return [ 'widget-rating' ]; | |
| 39 | - } | |
| 40 | - | |
| 41 | - public function has_widget_inner_wrapper(): bool { | |
| 42 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 43 | - } | |
| 44 | - | |
| 45 | 33 | /** |
| 46 | 34 | * @return void |
| 47 | 35 | */ |
| 48 | 36 | private function add_style_tab() { |
| @@ -304,11 +292,9 @@ | ||
| 304 | 292 | 'class' => 'e-rating-wrapper', |
| 305 | 293 | 'itemprop' => 'ratingValue', |
| 306 | 294 | 'content' => $this->get_rating_value(), |
| 307 | 295 | 'role' => 'img', |
| 308 | - 'aria-label' => sprintf( | |
| 309 | - /* translators: 1: Rating value, 2: Rating scale. */ | |
| 310 | - esc_html__( 'Rated %1$s out of %2$s', 'elementor' ), | |
| 296 | + 'aria-label' => sprintf( esc_html__( 'Rated %1$s out of %2$s', 'elementor' ), | |
| 311 | 297 | $this->get_rating_value(), |
| 312 | 298 | $this->get_rating_scale() |
| 313 | 299 | ), |
| 314 | 300 | ] ); |
| @@ -320,16 +306,6 @@ | ||
| 320 | 306 | <?php echo $this->get_icon_markup(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 321 | 307 | </div> |
| 322 | 308 | </div> |
| 323 | 309 | <?php |
| 324 | - } | |
| 325 | - | |
| 326 | - public function render_markdown(): string { | |
| 327 | - $settings = $this->get_settings_for_display(); | |
| 328 | - $value = $settings['rating_value'] ?? ''; | |
| 329 | - $scale = $settings['rating_scale']['size'] ?? ( $settings['rating_scale'] ?? '5' ); | |
| 330 | - if ( empty( $value ) ) { | |
| 331 | - return ''; | |
| 332 | - } | |
| 333 | - return $value . '/' . $scale; | |
| 334 | 310 | } |
| 335 | 311 | } |