← All changes
|
admin/partials/settings/survey-maker-settings-actions.php
+4
-0
5.2.2.0
→
5.2.4.1
View file →
| @@ -57,8 +57,11 @@ | ||
| 57 | 57 | |
| 58 | 58 | // Disable Submissions menu item notification |
| 59 | 59 | $survey_disable_submission_menu_notification = ( isset( $_REQUEST[ $name_prefix . 'survey_disable_submission_menu_notification'] ) && $_REQUEST[$name_prefix . 'survey_disable_submission_menu_notification'] ) == 'on' ? 'on' : 'off'; |
| 60 | 60 | |
| 61 | + $survey_menu_badge_styles = array( 'classic', 'wp_default' ); | |
| 62 | + $survey_menu_badge_style = ( isset( $_REQUEST[$name_prefix . 'survey_menu_badge_style'] ) && in_array( sanitize_key( $_REQUEST[$name_prefix . 'survey_menu_badge_style'] ), $survey_menu_badge_styles, true ) ) ? sanitize_key( $_REQUEST[$name_prefix . 'survey_menu_badge_style'] ) : 'classic'; | |
| 63 | + | |
| 61 | 64 | // Default texts | Start |
| 62 | 65 | $wrong_shortcode_text = (isset($_REQUEST[$name_prefix . 'survey_wrong_shortcode_text']) && $_REQUEST[$name_prefix . 'survey_wrong_shortcode_text'] != '') ? stripslashes( sanitize_text_field( $_REQUEST[$name_prefix . 'survey_wrong_shortcode_text'] )) : 'Wrong shortcode initialized'; |
| 63 | 66 | $email_validation_error_text = (isset($_REQUEST[$name_prefix . 'survey_email_validation_error_text']) && $_REQUEST[$name_prefix . 'survey_email_validation_error_text'] != '') ? stripslashes( sanitize_text_field( $_REQUEST[$name_prefix . 'survey_email_validation_error_text'] )) : 'Must be a valid email address'; |
| 64 | 67 | $redirecting_after_text = (isset($_REQUEST[$name_prefix . 'survey_redirecting_after_text']) && $_REQUEST[$name_prefix . 'survey_redirecting_after_text'] != '') ? stripslashes( sanitize_text_field( $_REQUEST[$name_prefix . 'survey_redirecting_after_text'] )) : 'Redirecting after'; |
| @@ -111,8 +114,9 @@ | ||
| 111 | 114 | "survey_animation_top" => $survey_animation_top, |
| 112 | 115 | "survey_enable_animation_top" => $survey_enable_animation_top, |
| 113 | 116 | "survey_disable_survey_menu_notification" => $survey_disable_survey_menu_notification, |
| 114 | 117 | "survey_disable_submission_menu_notification" => $survey_disable_submission_menu_notification, |
| 118 | + "survey_menu_badge_style" => $survey_menu_badge_style, | |
| 115 | 119 | ); |
| 116 | 120 | |
| 117 | 121 | $fields['user_roles'] = $roles; |
| 118 | 122 | $fields['options'] = $options; |