| 1 |
<?php |
| 2 |
namespace WPAdminify\Inc\Classes\Notifications; |
| 3 |
|
| 4 |
use WPAdminify\Inc\Classes\Notifications\Model\Notice; |
| 5 |
|
| 6 |
if ( ! class_exists( 'Ask_For_Rating' ) ) { |
| 7 |
/** |
| 8 |
* Ask For Rating Class |
| 9 |
* |
| 10 |
* Jewel Theme <support@jeweltheme.com> |
| 11 |
*/ |
| 12 |
class Ask_For_Rating extends Notice { |
| 13 |
|
| 14 |
/** |
| 15 |
* Notice Content |
| 16 |
* |
| 17 |
* @author Jewel Theme <support@jeweltheme.com> |
| 18 |
*/ |
| 19 |
public function notice_content() { |
| 20 |
printf( |
| 21 |
'<h2 style="margin:0">Enjoying %1$s?</h2><p>%2$s</p>', |
| 22 |
esc_html__( 'WP Adminify', 'adminify' ), |
| 23 |
__( 'A positive rating will keep us motivated to continue supporting and improving this free plugin, and will help spread its popularity.<br> Your help is greatly appreciated!', 'adminify' ) |
| 24 |
); |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Rate Plugin URL |
| 29 |
* |
| 30 |
* @author Jewel Theme <support@jeweltheme.com> |
| 31 |
*/ |
| 32 |
public function plugin_rate_url() { |
| 33 |
return 'https://wordpress.org/support/plugin/adminify/reviews/?filter=5' ; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Footer content |
| 38 |
* |
| 39 |
* @author Jewel Theme <support@jeweltheme.com> |
| 40 |
*/ |
| 41 |
public function footer_content() { |
| 42 |
?> |
| 43 |
<a class="button button-primary rate-plugin-button" href="<?php echo esc_url( $this->plugin_rate_url() ); ?>" rel="nofollow" target="_blank"> |
| 44 |
<?php echo esc_html__( 'Rate Now', 'adminify' ); ?> |
| 45 |
</a> |
| 46 |
<a class="button button-secondary notice-review-btn review-later wp-adminify-notice-dismiss" href="#" rel="nofollow"> |
| 47 |
<?php echo esc_html__( 'Later', 'adminify' ); ?> |
| 48 |
</a> |
| 49 |
<a class="button button-secondary notice-review-btn review-done wp-adminify-notice-disable" href="#" rel="nofollow"> |
| 50 |
<?php echo esc_html__( 'I already did', 'adminify' ); ?> |
| 51 |
</a> |
| 52 |
<?php |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* Intervals |
| 57 |
* |
| 58 |
* @author Jewel Theme <support@jeweltheme.com> |
| 59 |
*/ |
| 60 |
public function intervals() { |
| 61 |
return array( 7, 11, 15, 15, 10, 20, 25, 30 ); |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
|