| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the review request notification. |
| 4 |
* |
| 5 |
* @package WPZinc\Shared |
| 6 |
* @author WP Zinc |
| 7 |
*/ |
| 8 |
|
| 9 |
// Exit if accessed directly. |
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
?> |
| 14 |
<div class="notice notice-info is-dismissible wpzinc-review-<?php echo esc_attr( $this->plugin->name ); ?>"> |
| 15 |
<?php |
| 16 |
if ( isset( $this->plugin->review_notice ) ) { |
| 17 |
?> |
| 18 |
<p> |
| 19 |
<?php echo esc_html( $this->plugin->review_notice ); ?> |
| 20 |
</p> |
| 21 |
<?php |
| 22 |
} |
| 23 |
?> |
| 24 |
<p> |
| 25 |
<?php |
| 26 |
printf( |
| 27 |
/* translators: Plugin Name */ |
| 28 |
esc_html__( 'We\'d be super grateful if you could spread the word about %s and give it a 5 star rating on WordPress?', 'wp-to-buffer' ), |
| 29 |
esc_html( $this->plugin->displayName ) |
| 30 |
); |
| 31 |
?> |
| 32 |
</p> |
| 33 |
<p> |
| 34 |
<a href="<?php echo esc_url( $this->get_review_url() ); ?>" class="button button-primary" target="_blank"> |
| 35 |
<?php esc_html_e( 'Yes, Leave Review', 'wp-to-buffer' ); ?> |
| 36 |
</a> |
| 37 |
<a href="<?php echo esc_url( $this->plugin->support_url ); ?>" class="button" rel="noopener" target="_blank"> |
| 38 |
<?php |
| 39 |
printf( |
| 40 |
/* translators: Plugin Name */ |
| 41 |
esc_html__( 'No, I\'m having issues with %s', 'wp-to-buffer' ), |
| 42 |
esc_html( $this->plugin->displayName ) |
| 43 |
); |
| 44 |
?> |
| 45 |
</a> |
| 46 |
</p> |
| 47 |
</div> |
| 48 |
|
| 49 |
|