<?php
/**
 * Sidebar review request box.
 * Variable: $boxes (SidebarBoxes instance)
 *
 * @package Relatedly
 * @since   2.0.0
 * @since   2.3.0 Rebuilt with the current admin sidebar layout.
 */

defined( 'ABSPATH' ) || exit;

if ( ! $boxes->show_review_box() ) {
	return;
}
?>
<div class="relatedly-admin-sidebar-box relatedly-sidebar-box relatedly-review-box" id="relatedly-review-box">
	<h3><?php esc_html_e( 'Enjoying Relatedly?', 'relatedly' ); ?></h3>
	<p><?php esc_html_e( 'If the plugin is helping your site, a quick review on WordPress.org means a lot.', 'relatedly' ); ?></p>
	<p>
		<a href="https://wordpress.org/support/plugin/relatedly/reviews/#new-post" target="_blank" rel="noopener noreferrer" class="button button-primary">
			<?php esc_html_e( 'Leave a Review', 'relatedly' ); ?>
		</a>
		&nbsp;
		<a href="#" class="relatedly-dismiss-box button button-secondary" data-box="review" data-type="permanent">
			<?php esc_html_e( 'Already did', 'relatedly' ); ?>
		</a>
	</p>
</div>
