PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.1.3
Adminify – White Label, Admin Menu Editor, Login Customizer v4.1.3
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Classes / Notifications / Ask_For_Rating.php

Ask_For_Rating.php in Adminify – White Label, Admin Menu Editor, Login Customizer 4.1.3, at Inc/Classes/Notifications/Ask_For_Rating.php

65 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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