| @@ -9,10 +9,8 @@ | ||
| 9 | 9 | class FrmInboxController { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @since 4.05 |
| 13 | - * | |
| 14 | - * @return void | |
| 15 | 13 | */ |
| 16 | 14 | public static function menu() { |
| 17 | 15 | $unread = self::get_notice_count(); |
| 18 | 16 | add_submenu_page( 'formidable', 'Formidable | ' . __( 'Inbox', 'formidable' ), __( 'Inbox', 'formidable' ) . $unread, 'frm_change_settings', 'formidable-inbox', 'FrmInboxController::inbox' ); |
| @@ -29,10 +27,8 @@ | ||
| 29 | 27 | } |
| 30 | 28 | |
| 31 | 29 | /** |
| 32 | 30 | * @since 4.06 |
| 33 | - * | |
| 34 | - * @return void | |
| 35 | 31 | */ |
| 36 | 32 | public static function dismiss_all_button( $atts ) { |
| 37 | 33 | if ( empty( $atts['messages'] ) ) { |
| 38 | 34 | return; |
| @@ -37,9 +33,9 @@ | ||
| 37 | 33 | if ( empty( $atts['messages'] ) ) { |
| 38 | 34 | return; |
| 39 | 35 | } |
| 40 | 36 | |
| 41 | - echo '<button class="frm-button-secondary" id="frm-dismiss-inbox" type="button">' . | |
| 37 | + echo '<button class="button-secondary frm-button-secondary" id="frm-dismiss-inbox" type="button">' . | |
| 42 | 38 | esc_html__( 'Dismiss All', 'formidable' ) . |
| 43 | 39 | '</button>'; |
| 44 | 40 | } |
| 45 | 41 | |
| @@ -44,10 +40,8 @@ | ||
| 44 | 40 | } |
| 45 | 41 | |
| 46 | 42 | /** |
| 47 | 43 | * @since 4.05 |
| 48 | - * | |
| 49 | - * @return void | |
| 50 | 44 | */ |
| 51 | 45 | public static function inbox() { |
| 52 | 46 | FrmAppHelper::include_svg(); |
| 53 | 47 | self::add_tracking_request(); |
| @@ -64,10 +58,8 @@ | ||
| 64 | 58 | } |
| 65 | 59 | |
| 66 | 60 | /** |
| 67 | 61 | * @since 4.05 |
| 68 | - * | |
| 69 | - * @return void | |
| 70 | 62 | */ |
| 71 | 63 | public static function dismiss_message() { |
| 72 | 64 | check_ajax_referer( 'frm_ajax', 'nonce' ); |
| 73 | 65 | FrmAppHelper::permission_check( 'frm_change_settings' ); |
| @@ -86,10 +78,8 @@ | ||
| 86 | 78 | } |
| 87 | 79 | |
| 88 | 80 | /** |
| 89 | 81 | * @since 4.05 |
| 90 | - * | |
| 91 | - * @return void | |
| 92 | 82 | */ |
| 93 | 83 | private static function add_tracking_request() { |
| 94 | 84 | $settings = FrmAppHelper::get_settings(); |
| 95 | 85 | if ( $settings->tracking ) { |
| @@ -103,9 +93,9 @@ | ||
| 103 | 93 | array( |
| 104 | 94 | 'key' => 'usage', |
| 105 | 95 | 'message' => 'Gathering usage data allows us to improve Formidable. Your forms will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. You can always visit the <a href="' . esc_url( $link ) . '">Global Settings</a> and choose to stop sharing data. <a href="https://formidableforms.com/knowledgebase/global-settings-overview/#kb-usage-tracking" target="_blank" rel="noopener noreferrer">Read more about what data we collect</a>.', |
| 106 | 96 | 'subject' => __( 'Help Formidable improve with usage tracking', 'formidable' ), |
| 107 | - 'cta' => '<a href="#" class="frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary frm_inbox_dismiss">Activate usage tracking</a>', | |
| 97 | + 'cta' => '<a href="#" class="button-secondary frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary frm_inbox_dismiss">Activate usage tracking</a>', | |
| 108 | 98 | 'type' => 'feedback', |
| 109 | 99 | ) |
| 110 | 100 | ); |
| 111 | 101 | } |
| @@ -113,10 +103,8 @@ | ||
| 113 | 103 | /** |
| 114 | 104 | * Adds free template design. |
| 115 | 105 | * |
| 116 | 106 | * @since 4.10.03 |
| 117 | - * | |
| 118 | - * @return void | |
| 119 | 107 | */ |
| 120 | 108 | private static function add_free_template_message() { |
| 121 | 109 | if ( FrmAppHelper::pro_is_installed() ) { |
| 122 | 110 | return; |
| @@ -134,9 +122,9 @@ | ||
| 134 | 122 | array( |
| 135 | 123 | 'key' => 'free_templates', |
| 136 | 124 | 'message' => 'Add your email address to get a code for 10+ free form templates.', |
| 137 | 125 | 'subject' => 'Get 10+ Free Form Templates', |
| 138 | - 'cta' => '<a href="#" class="frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary">Get Now</a>', | |
| 126 | + 'cta' => '<a href="#" class="button-secondary frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary">Get Now</a>', | |
| 139 | 127 | 'type' => 'feedback', |
| 140 | 128 | ) |
| 141 | 129 | ); |
| 142 | 130 | } |