| @@ -1,19 +1,22 @@ | ||
| 1 | 1 | <?php |
| 2 | -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); | |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 3 | 3 | |
| 4 | -$this->print_template( 'notice-header', array( | |
| 5 | - 'classes' => array( 'updated' ), | |
| 6 | -) ); | |
| 4 | +$this->print_template( | |
| 5 | + 'notice-header', | |
| 6 | + [ | |
| 7 | + 'classes' => [ 'updated', 'imagify-notice-rating' ], | |
| 8 | + ] | |
| 9 | +); | |
| 7 | 10 | ?> |
| 8 | 11 | <p> |
| 9 | 12 | <?php |
| 10 | 13 | printf( |
| 11 | 14 | /* translators: 1 is a "bold" tag start, 2 is the "bold" tag end, 3 is a formatted number (don't use %3$d). */ |
| 12 | - __( '%1$sCongratulations%2$s, you have optimized %1$s%3$s images%2$s and improved your website\'s speed by reducing your images size.', 'imagify' ), | |
| 15 | + esc_html__( '%1$sCongratulations%2$s, you have optimized %1$s%3$s images%2$s and improved your website\'s speed by reducing your images size.', 'imagify' ), | |
| 13 | 16 | '<strong>', |
| 14 | 17 | '</strong>', |
| 15 | - number_format_i18n( $data ) | |
| 18 | + esc_html( number_format_i18n( $data ) ) | |
| 16 | 19 | ); |
| 17 | 20 | ?> |
| 18 | 21 | </p> |
| 19 | 22 | <p class="imagify-rate-us"> |
| @@ -19,9 +22,9 @@ | ||
| 19 | 22 | <p class="imagify-rate-us"> |
| 20 | 23 | <?php |
| 21 | 24 | printf( |
| 22 | 25 | /* translators: 1 is a "bold" tag start, 2 is the "bold" tag end + a line break tag, 3 is a link tag start, 4 is the link tag end. */ |
| 23 | - __( '%1$sDo you like this plugin?%2$s Please take a few seconds to %3$srate it on WordPress.org%4$s!', 'imagify' ), | |
| 26 | + esc_html__( '%1$sDo you like this plugin?%2$s Please take a few seconds to %3$srate it on WordPress.org%4$s!', 'imagify' ), | |
| 24 | 27 | '<strong>', |
| 25 | 28 | '</strong><br />', |
| 26 | 29 | '<a target="_blank" href="' . esc_url( imagify_get_external_url( 'rate' ) ) . '">', |
| 27 | 30 | '</a>' |
| @@ -27,10 +30,13 @@ | ||
| 27 | 30 | '</a>' |
| 28 | 31 | ); |
| 29 | 32 | ?> |
| 30 | 33 | <br> |
| 31 | - <a class="stars" target="_blank" href="<?php echo esc_url( imagify_get_external_url( 'rate' ) ); ?>">☆☆☆☆☆</a> | |
| 34 | + <a class="stars" aria-hidden="true" target="_blank" href="<?php echo esc_url( imagify_get_external_url( 'rate' ) ); ?>"><?php echo str_repeat( '<span class="dashicons dashicons-star-filled"></span>', 5 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></a> | |
| 32 | 35 | </p> |
| 33 | 36 | <?php |
| 34 | -$this->print_template( 'notice-footer', array( | |
| 35 | - 'dismissible' => 'rating', | |
| 36 | -) ); | |
| 37 | +$this->print_template( | |
| 38 | + 'notice-footer', | |
| 39 | + [ | |
| 40 | + 'dismissible' => 'rating', | |
| 41 | + ] | |
| 42 | +); | |