← All changes
|
admin/partials/settings/poll-maker-settings-actions.php
+8
-0
6.3.4
→
6.5.1
View file →
| @@ -33,8 +33,11 @@ | ||
| 33 | 33 | ); |
| 34 | 34 | |
| 35 | 35 | $disable_ip_storing = (isset($data['ays_disable_ip_storing']) && $data['ays_disable_ip_storing'] == 'on') ? "on" : 'off'; |
| 36 | 36 | |
| 37 | + $show_cat_title = isset($data['ays_poll_show_cat_title']) && $data['ays_poll_show_cat_title'] == 'on' ? $data['ays_poll_show_cat_title'] : 'off'; | |
| 38 | + | |
| 39 | + | |
| 37 | 40 | $answer_default_count = isset($data['ays_answer_default_count']) && !empty($data['ays_answer_default_count']) ? absint( sanitize_text_field($data['ays_answer_default_count']) ) : 2; |
| 38 | 41 | |
| 39 | 42 | $answers_sound = isset($data['ays_poll_answers_sound']) ? sanitize_text_field($data['ays_poll_answers_sound']) : ''; |
| 40 | 43 | |
| @@ -65,8 +68,11 @@ | ||
| 65 | 68 | |
| 66 | 69 | // General CSS File |
| 67 | 70 | $poll_exclude_general_css = (isset( $data['ays_poll_exclude_general_css'] ) && sanitize_text_field( $data['ays_poll_exclude_general_css'] ) == 'on') ? 'on' : 'off'; |
| 68 | 71 | |
| 72 | + // Menu notifications | |
| 73 | + $poll_disable_poll_menu_notification = (isset( $data['ays_poll_disable_poll_menu_notification'] ) && sanitize_text_field( $data['ays_poll_disable_poll_menu_notification'] ) == 'on') ? 'on' : 'off'; | |
| 74 | + | |
| 69 | 75 | // WP Editor height |
| 70 | 76 | $poll_wp_editor_height = (isset($data['ays_poll_wp_editor_height']) && $data['ays_poll_wp_editor_height'] != '' && $data['ays_poll_wp_editor_height'] != 0) ? absint( sanitize_text_field($data['ays_poll_wp_editor_height']) ) : 50; |
| 71 | 77 | |
| 72 | 78 | $options = array( |
| @@ -71,8 +77,9 @@ | ||
| 71 | 77 | |
| 72 | 78 | $options = array( |
| 73 | 79 | "disable_ip_storing" => $disable_ip_storing, |
| 74 | 80 | "answer_default_count" => $answer_default_count, |
| 81 | + "show_cat_title" => $show_cat_title, | |
| 75 | 82 | "answers_sound" => $answers_sound, |
| 76 | 83 | "poll_title_length" => $poll_title_length, |
| 77 | 84 | "poll_category_title_length"=> $poll_category_title_length, |
| 78 | 85 | "poll_results_title_length" => $poll_results_title_length, |
| @@ -82,8 +89,9 @@ | ||
| 82 | 89 | "show_result_view" => $poll_show_result_view, |
| 83 | 90 | "poll_animation_top" => $poll_animation_top, |
| 84 | 91 | "poll_enable_animation_top" => $poll_enable_animation_top, |
| 85 | 92 | "poll_exclude_general_css" => $poll_exclude_general_css, |
| 93 | + "poll_disable_poll_menu_notification" => $poll_disable_poll_menu_notification, | |
| 86 | 94 | "poll_wp_editor_height" => $poll_wp_editor_height, |
| 87 | 95 | ); |
| 88 | 96 | |
| 89 | 97 | $poll_fields_placeholder_name = (isset($data['ays_poll_fields_placeholder_name']) && $data['ays_poll_fields_placeholder_name'] != '') ? stripslashes(sanitize_text_field( $data['ays_poll_fields_placeholder_name'] )) : 'Name' ; |