<?php
defined( 'ABSPATH' ) || exit;

$this->print_template(
	'notice-header',
	[
		'classes' => [ 'updated' ],
	]
);
?>
<p>
	<?php
	printf(
		/* translators: 1 is a "bold" tag start, 2 is the "bold" tag end, 3 is a formatted number (don't use %3$d). */
		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' ),
		'<strong>',
		'</strong>',
		esc_html( number_format_i18n( $data ) )
	);
	?>
</p>
<p class="imagify-rate-us">
	<?php
	printf(
		/* 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. */
		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' ),
		'<strong>',
		'</strong><br />',
		'<a target="_blank" href="' . esc_url( imagify_get_external_url( 'rate' ) ) . '">',
		'</a>'
	);
	?>
	<br>
	<a class="stars" target="_blank" href="<?php echo esc_url( imagify_get_external_url( 'rate' ) ); ?>">☆☆☆☆☆</a>
</p>
<?php
$this->print_template(
	'notice-footer',
	[
		'dismissible' => 'rating',
	]
);
