PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | admin/partials/poll-maker-ays-polls-actions.php +1850 -1285 5.6.0 → 6.5.1 View file →
@@ -3,12 +3,36 @@
3 3 $action = (isset($_GET['action'])) ? sanitize_text_field($_GET['action']) : '';
4 4 $active_tab = (!empty($_GET['active-tab'])) ? sanitize_text_field($_GET['active-tab']) : 'General';
5 5 $heading = '';
6 6 $loader_iamge = '';
7 -$image_text = __('Add Image', "poll-maker");
8 -$image_text_bg = __('Add Image', "poll-maker");
9 -$image_text_logo = __('Add Image', "poll-maker");
7 +$image_text =esc_html__('Add Image', "poll-maker");
8 +$image_text_bg =esc_html__('Add Image', "poll-maker");
9 +$image_text_logo =esc_html__('Add Image', "poll-maker");
10 10
11 +$acordion_svg_html_allow = array(
12 + 'div' => array(
13 + 'class' => array()
14 + ),
15 + 'svg' => array(
16 + 'class' => array(),
17 + 'version' => array(),
18 + 'xmlns' => array(),
19 + 'xmlns:xlink' => array(),
20 + 'overflow' => array(),
21 + 'preserveAspectRatio' => array(),
22 + 'viewBox' => array(),
23 + 'width' => array(),
24 + 'height' => array()
25 + ),
26 + 'g' => array(),
27 + 'path' => array(
28 + 'xmlns:default' => array(),
29 + 'd' => array(),
30 + 'fill' => array(),
31 + 'vector-effect' => array()
32 + )
33 +);
34 +
11 35 $poll_acordion_svg_html = '
12 36 <div class="ays-poll-accordion-arrow-box">
13 37 <svg class="ays-poll-accordion-arrow ays-poll-accordion-arrow-active" version="1.2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="32" height="32">
14 38 <g>
@@ -41,27 +65,55 @@
41 65 'hide_empty' => false
42 66 )
43 67 );
44 68
69 +$poll_category_page_url = admin_url( 'admin.php?page=poll-maker-ays-cats' );
70 +
45 71 $poll_message_vars = array(
46 - '%%user_name%%' => __("User Name", "poll-maker"),
47 - '%%user_email%%' => __("User Email", "poll-maker"),
48 - '%%user_phone%%' => __("User Phone", "poll-maker"),
49 - '%%poll_title%%' => __("Poll title", "poll-maker"),
50 - '%%users_first_name%%' => __("User's First Name", "poll-maker"),
51 - '%%users_last_name%%' => __("User's Last Name", "poll-maker"),
52 - '%%creation_date%%' => __("Creation date of the poll", "poll-maker"),
53 - '%%current_date%%' => __("The date of the submission poll", "poll-maker"),
54 - '%%current_poll_author%%' => __("Author of the current poll", "poll-maker"),
55 - '%%user_wordpress_roles%%' => __("User's Wordpress Roles", "poll-maker"),
56 - "%%user_wordpress_email%%" => __("User's WordPress profile email", "poll-maker"),
57 - '%%user_wordpress_website%%' => __("User's Wordpress Website", "poll-maker"),
58 - '%%user_display_name%%' => __("User's Display Name", "poll-maker"),
59 - '%%user_nickname%%' => __("User's Nick Name", "poll-maker"),
60 - '%%user_ip_address%%' => __("User's IP address", "poll-maker"),
61 - '%%poll_pass_count%%' => __("Polls pass count", "poll-maker"),
62 - '%%passed_poll_count_per_user%%' => __("Passed polls count per user", "poll-maker"),
63 - '%%current_poll_page_link%%' => __("Current polls posted link", "poll-maker"),
72 + '%%user_name%%' =>esc_html__("User Name", "poll-maker"),
73 + '%%user_email%%' =>esc_html__("User Email", "poll-maker"),
74 + '%%user_phone%%' =>esc_html__("User Phone", "poll-maker"),
75 + '%%poll_title%%' =>esc_html__("Poll title", "poll-maker"),
76 + '%%poll_category_title%%' =>esc_html__("Poll category title", "poll-maker"),
77 + '%%poll_id%%' =>esc_html__("Poll ID", "poll-maker"),
78 + '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
79 + '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
80 + '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
81 + '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
82 + '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
83 + '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
84 + '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
85 + '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
86 + '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
87 + '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
88 + '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
89 + '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
90 + '%%current_poll_author_registered%%' =>esc_html__("Author's Registered Date of the current poll", "poll-maker"),
91 + '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
92 + '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
93 + "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
94 + '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
95 + '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
96 + '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
97 + '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
98 + '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
99 + '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
100 + '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
101 + '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
102 + '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
103 + '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
104 + '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
105 + '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
106 + '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
107 + '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
108 + '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
109 + '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
110 + '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
111 + '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
112 + '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
113 + '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
114 + '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
115 + '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
64 116 );
65 117
66 118 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
67 119
@@ -86,8 +138,9 @@
86 138 "icon_color" => "#0C6291",
87 139 "box_shadow_color" => "#000000",
88 140 "bg_color" => "#FBFEF9",
89 141 "answer_bg_color" => "#FBFEF9",
142 + "answer_hover_color" => "#0C6291",
90 143 "title_bg_color" => "",
91 144 "border_color" => "#0C6291",
92 145 );
93 146 $default_options = array(
@@ -94,10 +147,10 @@
94 147 'randomize_answers' => 'off',
95 148 "icon_size" => 24,
96 149 "width" => 600,
97 150 "width_for_mobile" => '',
98 - "btn_text" => __('Vote', "poll-maker"),
99 - "see_res_btn_text" => __('See Results', "poll-maker"),
151 + "btn_text" =>esc_html__('Vote', "poll-maker"),
152 + "see_res_btn_text" =>esc_html__('See Results', "poll-maker"),
100 153 "border_style" => "ridge",
101 154 "border_radius" => 0,
102 155 "border_width" => 2,
103 156 "enable_box_shadow" => "",
@@ -102,9 +155,9 @@
102 155 "border_width" => 2,
103 156 "enable_box_shadow" => "",
104 157 "bg_image" => "",
105 158 "hide_results" => 0,
106 - "hide_results_text" => "<p style='text-align: center'>" . __("Thanks for your answer!", "poll-maker") . "</p>",
159 + "hide_results_text" => "<p style='text-align: center'>" .esc_html__("Thanks for your answer!", "poll-maker") . "</p>",
107 160 "allow_not_vote" => 0,
108 161 "show_social" => 0,
109 162 "poll_show_social_ln" => "on",
110 163 "poll_show_social_fb" => "on",
@@ -112,16 +165,16 @@
112 165 "poll_show_social_vk" => "off",
113 166 "load_effect" => "load_gif",
114 167 "load_gif" => "plg_default",
115 168 'limit_users' => 0,
116 - "limitation_message" => "<p style='text-align: center'>" . __("You have already voted", "poll-maker") . "</p>",
169 + "limitation_message" => "<p style='text-align: center'>" .esc_html__("You have already voted", "poll-maker") . "</p>",
117 170 'redirect_url' => '',
118 171 'redirection_delay' => '',
119 172 'users_role' => '',
120 173 'enable_restriction_pass' => 0,
121 - 'restriction_pass_message' => "<p style='text-align: center'>" . __("You don't have permissions for passing the poll", "poll-maker") . "</p>",
174 + 'restriction_pass_message' => "<p style='text-align: center'>" .esc_html__("You don't have permissions for passing the poll", "poll-maker") . "</p>",
122 175 'enable_logged_users' => 0,
123 - 'enable_logged_users_message' => "<p style='text-align: center'>" . __('You must sign in for passing the poll', "poll-maker") . "</p>",
176 + 'enable_logged_users_message' => "<p style='text-align: center'>" .esc_html__('You must sign in for passing the poll', "poll-maker") . "</p>",
124 177 'notify_email_on' => 0,
125 178 'notify_email' => '',
126 179 'result_sort_type' => 'none',
127 180 'redirect_after_submit' => 0,
@@ -140,10 +193,10 @@
140 193 'poll_gradient_direction' => 'vertical',
141 194 'activeIntervalSec' => '',
142 195 'deactiveIntervalSec' => '',
143 196 'active_date_check' => '',
144 - 'active_date_message_soon' => "<p style='text-align: center'>" . __("The poll will be available soon!", "poll-maker") . "</p>",
145 - 'active_date_message' => "<p style='text-align: center'>" . __("The poll has expired!", "poll-maker") . "</p>",
197 + 'active_date_message_soon' => "<p style='text-align: center'>" .esc_html__("The poll will be available soon!", "poll-maker") . "</p>",
198 + 'active_date_message' => "<p style='text-align: center'>" .esc_html__("The poll has expired!", "poll-maker") . "</p>",
146 199 'enable_restart_button' => 0,
147 200 'enable_vote_btn' => 1,
148 201 'show_votes_count' => 1,
149 202 'show_res_percent' => 1,
@@ -150,9 +203,9 @@
150 203 'poll_direction' => 'ltr',
151 204 'info_form' => 0,
152 205 'fields' => 'apm_name,apm_email,apm_phone',
153 206 'required_fields' => 'apm_email',
154 - 'info_form_title' => "<h5>" . __("Please fill out the form:", "poll-maker") . "</h5>",
207 + 'info_form_title' => "<h5>" .esc_html__("Please fill out the form:", "poll-maker") . "</h5>",
155 208 'disable_answer_hover' => 0,
156 209 'enable_asnwers_sound' => 'off',
157 210 'poll_bg_image_position' => 'center center',
158 211 'poll_bg_img_in_finish_page' => 'off',
@@ -163,8 +216,10 @@
163 216 'poll_answer_font_size_mobile' => '16',
164 217 'show_passed_users' => 'off',
165 218 'logo_image' => '',
166 219 'dont_show_poll_cont' => 'off',
220 + 'show_votes_before_voting' => 'off',
221 + 'show_votes_before_voting_by' => 'by_count',
167 222 'see_result_button' => 'on',
168 223 'see_result_radio' => 'ays_see_result_button',
169 224 'loader_font_size' => '64',
170 225 'show_answers_numbering' => 'none',
@@ -175,10 +230,13 @@
175 230 'poll_question_size_mobile' => 16,
176 231 'poll_question_image_object_fit' => "cover",
177 232 'poll_title_font_size' => 20,
178 233 'poll_title_font_size_mobile' => 20,
234 + 'poll_title_font_weight' => "normal",
235 + 'poll_title_font_weight_mobile' => "normal",
179 236 'poll_title_alignment' => "center",
180 237 'poll_title_alignment_mobile' => "center",
238 + 'poll_title_text_transform' => "none",
181 239 'poll_text_type_length_enable' => "off",
182 240 'poll_text_type_limit_type' => "characters",
183 241 'poll_text_type_limit_length' => "",
184 242 'poll_text_type_limit_message' => "off",
@@ -214,14 +272,22 @@
214 272 $settings_options = json_decode($settings_options, true);
215 273 }else{
216 274 $settings_options = array();
217 275 }
218 -
276 +$loader_iamge_allow = array(
277 + 'span' => array(
278 + 'class' => array()
279 + ),
280 + 'img' => array(
281 + 'src' => array(),
282 + 'class' => array()
283 + )
284 +);
219 285 switch ( $action ) {
220 286 case 'add':
221 - $heading = __('Add new poll', "poll-maker");
287 + $heading =esc_html__('Add new poll', "poll-maker");
222 288 $options = array_merge($default_options, $default_colors);
223 - $loader_iamge = "<span class='display_none'><img src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
289 + $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
224 290 // Default category
225 291 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
226 292
227 293 $poll['categories'] = $poll_default_cat;
@@ -232,10 +298,10 @@
232 298
233 299 $ays_check_post = '';
234 300 break;
235 301 case 'edit':
236 - $heading = __('Edit poll', "poll-maker");
237 - $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
302 + $heading =esc_html__('Edit poll', "poll-maker");
303 + $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
238 304 $poll = $this->polls_obj->get_poll_by_id($id);
239 305 $post_id = !empty($poll) ? $poll['post_id'] : '';
240 306 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
241 307 $ays_poll_view_post_url = get_permalink($post_id);
@@ -245,9 +311,9 @@
245 311 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
246 312 wp_safe_redirect($url);
247 313 }
248 314
249 - $options = array_merge($default_options, $poll['styles']);
315 + $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
250 316 break;
251 317 default:
252 318 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
253 319 wp_safe_redirect($url);
@@ -279,19 +345,19 @@
279 345 $style_logo_check = false;
280 346 if (isset($poll['image']) && !empty($poll['image'])) {
281 347
282 348 $style = "display: block;";
283 - $image_text = __('Edit Image', "poll-maker");
349 + $image_text =esc_html__('Edit Image', "poll-maker");
284 350 }
285 351 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
286 352 $style_bg = "display: flex;";
287 353 $style_bg_options = "display: block;";
288 - $image_text_bg = __('Edit Image', "poll-maker");
354 + $image_text_bg =esc_html__('Edit Image', "poll-maker");
289 355 }
290 356 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
291 357 $style_logo = "display: block;";
292 358 $style_logo_check = true;
293 - $image_text_logo = __('Edit Image', "poll-maker");
359 + $image_text_logo =esc_html__('Edit Image', "poll-maker");
294 360 }
295 361
296 362 $published = $options['published'];
297 363
@@ -315,17 +381,17 @@
315 381 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
316 382
317 383 $all_fields = array(
318 384 array(
319 - "name" => __("Name", "poll-maker"),
385 + "name" =>esc_html__("Name", "poll-maker"),
320 386 "slug" => "apm_name",
321 387 ),
322 388 array(
323 - "name" => __("Email", "poll-maker"),
389 + "name" =>esc_html__("Email", "poll-maker"),
324 390 "slug" => "apm_email",
325 391 ),
326 392 array(
327 - "name" => __("Phone", "poll-maker"),
393 + "name" =>esc_html__("Phone", "poll-maker"),
328 394 "slug" => "apm_phone",
329 395 ),
330 396 );
331 397
@@ -362,9 +428,9 @@
362 428 'listName' => $list['name']
363 429 );
364 430 }
365 431 } else {
366 - $mailchimp_select = __("There are no lists", "poll-maker");
432 + $mailchimp_select =esc_html__("There are no lists", "poll-maker");
367 433 }
368 434
369 435 // MailChimp
370 436 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
@@ -597,8 +663,11 @@
597 663
598 664 // Buttons Width
599 665 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
600 666
667 +// Buttons mobile width
668 +$poll_buttons_mobile_width = (isset($options['poll_buttons_mobile_width']) && $options['poll_buttons_mobile_width'] != "") ? esc_attr($options['poll_buttons_mobile_width']) : $poll_buttons_width;
669 +
601 670 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
602 671 // ==== BUTTON STYLES END ====
603 672
604 673 // ==== Allow Answer options ====
@@ -620,9 +689,9 @@
620 689
621 690 // Poll answer image border radius
622 691 $poll_answer_image_border_radius = (isset($options['poll_answer_image_border_radius']) && $options['poll_answer_image_border_radius'] != "") ? esc_attr($options['poll_answer_image_border_radius']) : 0;
623 692
624 -// Poll answer image height
693 +// Poll question image object fit
625 694 $poll_question_image_object_fit = (isset($options['poll_question_image_object_fit']) && $options['poll_question_image_object_fit'] != "") ? esc_attr($options['poll_question_image_object_fit']) : "cover";
626 695
627 696 // Poll answer image object fit
628 697 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
@@ -642,8 +711,14 @@
642 711
643 712 // Poll title font size for mobile
644 713 $poll_title_font_size_mobile = (isset($options['poll_title_font_size_mobile']) && $options['poll_title_font_size_mobile'] != "") ? absint(intval(esc_attr($options['poll_title_font_size_mobile']))) : "20";
645 714
715 +// Poll title font weight
716 +$poll_title_font_weight = (isset($options['poll_title_font_weight']) && $options['poll_title_font_weight'] != "") ? esc_attr($options['poll_title_font_weight']) : "normal";
717 +
718 +// Poll title font weight mobile
719 +$poll_title_font_weight_mobile = (isset($options['poll_title_font_weight_mobile']) && $options['poll_title_font_weight_mobile'] != "") ? esc_attr($options['poll_title_font_weight_mobile']) : $poll_title_font_weight;
720 +
646 721 // Poll title alignment
647 722 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
648 723
649 724 // Poll title alignment mobile
@@ -648,11 +723,21 @@
648 723
649 724 // Poll title alignment mobile
650 725 $poll_title_alignment_mobile = ( isset($options['poll_title_alignment_mobile']) && $options['poll_title_alignment_mobile'] != "" ) ? esc_attr($options['poll_title_alignment_mobile']) : $poll_title_alignment;
651 726
727 +// Poll title text transform
728 +$poll_title_text_transform = ( isset($options['poll_title_text_transform']) && $options['poll_title_text_transform'] != "" ) ? esc_attr($options['poll_title_text_transform']) : "none";
729 +
652 730 // Poll view type
653 731 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
654 732
733 +
734 +$options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
735 +$show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
736 +$show_votes_before_voting_by = (isset($options['show_votes_before_voting_by']) && $options['show_votes_before_voting_by'] != '') ? $options['show_votes_before_voting_by'] : 'by_count';
737 +
738 +
739 +
655 740 // ===== Poll text type options start =====
656 741 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
657 742 $poll_text_type_limit_type = ( isset($options['poll_text_type_limit_type']) && $options['poll_text_type_limit_type'] != "" ) ? esc_attr($options['poll_text_type_limit_type']) : "characters";
658 743 $poll_text_type_limit_length = ( isset($options['poll_text_type_limit_length']) && $options['poll_text_type_limit_length'] != "" ) ? esc_attr($options['poll_text_type_limit_length']) : "";
@@ -673,9 +758,12 @@
673 758 // Poll answer box shadow enable
674 759 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
675 760 // Poll answer box shadow color
676 761 $poll_answer_box_shadow_color = (isset($options['poll_answer_box_shadow_color']) && $options['poll_answer_box_shadow_color'] != "") ? esc_attr($options['poll_answer_box_shadow_color']) : "#000000";
677 -
762 +// answer hover color
763 +$answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
764 +// answer bg color
765 +$answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
678 766 // Poll answer box shadow parameters
679 767 $poll_answer_box_shadow_x_offset = (isset($options['poll_answer_box_shadow_x_offset']) && $options['poll_answer_box_shadow_x_offset'] != "") ? intval($options['poll_answer_box_shadow_x_offset']) : 0;
680 768
681 769 $poll_answer_box_shadow_y_offset = (isset($options['poll_answer_box_shadow_y_offset']) && $options['poll_answer_box_shadow_y_offset'] != "") ? intval($options['poll_answer_box_shadow_y_offset']) : 0;
@@ -737,8 +825,9 @@
737 825 'twitter_link' => '',
738 826 'vkontakte_link' => '',
739 827 'instagram_link' => '',
740 828 'youtube_link' => '',
829 + 'tiktok_link' => '',
741 830 );
742 831 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
743 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
744 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
@@ -743,8 +832,10 @@
743 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
744 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
745 834 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
746 835 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
836 +$tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
837 +$instagram_link = isset($social_links['instagram_link']) && $social_links['instagram_link'] != '' ? $social_links['instagram_link'] : '';
747 838 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
748 839
749 840 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
750 841 $show_chart_type_google_height = (isset($options['show_chart_type_google_height']) && $options['show_chart_type_google_height'] != "") ? $options['show_chart_type_google_height'] : 400;
@@ -775,35 +866,42 @@
775 866 <style>
776 867 /*save changing properties of poll in the css-variables*/
777 868 :root {
778 869 /*colors*/
779 - --theme-main-color: <?=$options['main_color']?>;
780 - --theme-bg-color: <?=$options['bg_color']?>;
781 - --theme-answer-bg-color: <?= isset($options['answer_bg_color']) && !empty($options['answer_bg_color']) ? $options['answer_bg_color'] : $options['bg_color'] ?>;
782 - --theme-title-bg-color: <?= isset($options['title_bg_color']) && !empty($options['title_bg_color']) ? $options['title_bg_color'] : $options['bg_color'] ?>;
783 - --theme-text-color: <?=$options['text_color']?>;
784 - --theme-button-text-color: <?=$options['bg_color']?>;
785 - --theme-icon-color: <?=$options['icon_color']?>;
870 + --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
871 + --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
872 + --theme-answer-bg-color: <?php echo (isset($options['answer_bg_color']) && !empty($options['answer_bg_color'])) ? esc_attr($options['answer_bg_color']) : esc_attr($options['bg_color']); ?>;
873 + --theme-answer-hover-color: <?php echo (isset($options['answer_hover_color']) && !empty($options['answer_hover_color'])) ? esc_attr($options['answer_hover_color']) : esc_attr($options['text_color']); ?>;
874 + --theme-title-bg-color: <?php echo (isset($options['title_bg_color']) && !empty($options['title_bg_color'])) ? esc_attr($options['title_bg_color']) : esc_attr($options['bg_color']); ?>;
875 + --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
876 + --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
877 + --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
786 878 /*options*/
787 - --poll-width: <?= (int) $options['width'] > 0 ? (int) $options['width'] . "px" : "100%" ?>;
788 - --poll-border-style: <?=$options['border_style']?>;
789 - --poll-border-radius: <?= absint($options['border_radius'])?>px;
790 - --poll-border-width: <?= absint($options['border_width'])?>px;
791 - --poll-box-shadow: <?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] . ' 0px 0px 10px 0px' : '' ?>;
792 - --poll-bagckround-image: <?= !empty($options['bg_image']) ? "url({$options['bg_image']})" : "unset" ?>;
793 - --poll-icons-size: <?= absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24 ?>px;
794 - --poll-display-title: <?= $poll['show_title'] ? "block" : "none"?>;
795 - --poll-display-image-box: <?= !empty($poll['image']) ? "block" : "none" ?>;
879 + --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
880 + --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
881 + --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
882 + --poll-border-width: <?php echo absint($options['border_width']); ?>px;
883 + --poll-box-shadow: <?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) . ' 0px 0px 10px 0px' : ''; ?>;
884 + --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
885 + --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
886 + --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
887 + --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
796 888
797 889 }
798 890
799 891
800 892 input[type='button'].ays-poll-btn{
801 - font-size: <?php echo $poll_buttons_font_size; ?>px;
802 - padding: <?php echo $poll_buttons_top_bottom_padding."px ".$poll_buttons_left_right_padding."px"; ?>;
803 - border-radius: <?php echo $poll_buttons_border_radius; ?>px;
804 - width: <?php echo $poll_buttons_width; ?>px;
893 + font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
894 + padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
895 + border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
896 + width: <?php echo esc_attr($poll_buttons_width); ?>px;
805 897 }
898 +
899 + @media (max-width: 768px) {
900 + input[type='button'].ays-poll-btn{
901 + width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
902 + }
903 + }
806 904 </style>
807 905 <!--LIVE PREVIEW STYLES END-->
808 906 <div class="wrap">
809 907 <div class="ays-poll-heading-box">
@@ -809,30 +907,30 @@
809 907 <div class="ays-poll-heading-box">
810 908 <div class="ays-poll-wordpress-user-manual-box">
811 909 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
812 910 <i class="ays_poll_fas ays_fa_file_text"></i>
813 - <span style="margin-left: 3px;text-decoration: underline;"><?php echo __("View Documentation", "poll-maker"); ?></span>
911 + <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
814 912 </a>
815 913 </div>
816 914 </div>
817 915 <div class="container-fluid">
818 916 <form class="ays-poll-form" id="ays-poll-form" method="post">
819 - <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo htmlentities($active_tab); ?>"/>
917 + <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
820 918 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
821 - <input type="hidden" name="ays_poll_author" value="<?php echo htmlentities(json_encode($poll_author)); ?>">
822 - <input type="hidden" id="poll_choose_type_first" value="<?php echo $poll['type']; ?>" >
919 + <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
920 + <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
823 921 <h1 class="wp-heading-inline">
824 922 <?php
825 - echo "$heading";
923 + echo esc_html($heading);
826 924 ?>
827 925 </h1>
828 926 <div>
829 927 <div class="ays-poll-subtitle-main-box">
830 - <p class="ays-subtitle">
831 - <?php if(isset($id) && count($get_all_polls) > 1):?>
832 - <i class="ays_poll_fas ays_fa_arrow_down ays-poll-open-polls-list" style="font-size: 15px;"></i>
928 + <p class="ays-subtitle ays-poll-open-list">
929 + <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
930 + <?php if(isset($id) && count($get_all_polls) > 1):?>
931 + <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
833 932 <?php endif; ?>
834 - <strong class="ays_poll_title_in_top"><?php echo $poll['title']; ?></strong>
835 933 </p>
836 934 <?php if(isset($id) && count($get_all_polls) > 1):?>
837 935 <div class="ays-poll-polls-data">
838 936 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
@@ -837,12 +935,12 @@
837 935 <div class="ays-poll-polls-data">
838 936 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
839 937 <?php ?>
840 938 <label class="ays-poll-message-vars-each-data-label">
841 - <input type="radio" class="ays-poll-polls-each-data-checker" hidden id="ays_poll_message_var_count_<?php echo $var_counter?>" name="ays_poll_message_var_count">
939 + <input type="radio" class="ays-poll-polls-each-data-checker" hidden id="ays_poll_message_var_count_<?php echo esc_attr($var_counter); ?>" name="ays_poll_message_var_count">
842 940 <div class="ays-poll-polls-each-data">
843 - <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo $var; ?>">
844 - <a href="?page=poll-maker-ays&action=edit&poll=<?php echo $var_name['id']?>" target="_blank" class="ays-poll-go-to-polls"><span><?php echo stripslashes(esc_attr($var_name['title'])); ?></span></a>
941 + <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
942 + <a href="?page=poll-maker-ays&action=edit&poll=<?php echo esc_attr($var_name['id']); ?>" target="_blank" class="ays-poll-go-to-polls"><span><?php echo esc_attr(stripslashes($var_name['title'])); ?></span></a>
845 943 </div>
846 944 </label>
847 945 <?php endforeach ?>
848 946 </div>
@@ -850,15 +948,15 @@
850 948 </div>
851 949 <?php if($id !== null): ?>
852 950 <div class="row">
853 951 <div class="col-sm-3">
854 - <label> <?php echo __( "Shortcode text for editor", "poll-maker" ); ?> </label>
952 + <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
855 953 </div>
856 954 <div class="col-sm-9">
857 955 <p style="font-size:14px; font-style:italic;">
858 - <?php echo __("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
859 - <strong class="ays-poll-shortcode-box" data-toggle="tooltip" title="<?php echo __('Click for copy.',"poll-maker");?>" onClick="selectElementContents(this)" style="font-size:16px; font-style:normal;"><?php echo "[ays_poll id=".$id."]"; ?></strong>
860 - <?php echo " " . __( "and paste it at the desired place in the editor.", "poll-maker"); ?>
956 + <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
957 + <strong class="ays-poll-shortcode-box" data-toggle="tooltip" title="<?php echo esc_html__('Click for copy.',"poll-maker");?>" onClick="selectElementContents(this)" style="font-size:16px; font-style:normal;"><?php echo "[ays_poll id=". esc_attr($id) ."]"; ?></strong>
958 + <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
861 959 </p>
862 960 </div>
863 961 </div>
864 962 <?php endif;?>
@@ -870,43 +968,43 @@
870 968 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
871 969 <div class="ays-top-menu">
872 970 <div class="nav-tab-wrapper ays-top-tab-wrapper">
873 971 <a href="#tab1" data-title="General"
874 - class="nav-tab <?= $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
875 - <?= __('General', "poll-maker"); ?>
972 + class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
973 + <?php echo esc_html__('General', "poll-maker"); ?>
876 974 </a>
877 975 <a href="#tab2" data-title="Styles"
878 - class="nav-tab <?= $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
879 - <?= __('Styles', "poll-maker"); ?>
976 + class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
977 + <?php echo esc_html__('Styles', "poll-maker"); ?>
880 978 </a>
881 979 <a href="#tab3" data-title="Settings"
882 - class="nav-tab <?= $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
883 - <?= __('Settings', "poll-maker"); ?>
980 + class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
981 + <?php echo esc_html__('Settings', "poll-maker"); ?>
884 982 </a>
885 983 <a href="#tab8" data-title="Results Settings"
886 - class="nav-tab <?= $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
887 - <?= __('Results Settings', "poll-maker"); ?>
984 + class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
985 + <?php echo esc_html__('Results Settings', "poll-maker"); ?>
888 986 </a>
889 987 <a href="#tab4" data-title="Limitations"
890 - class="nav-tab <?= $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
891 - <?= __("Limitations", "poll-maker"); ?>
988 + class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
989 + <?php echo esc_html__("Limitations", "poll-maker"); ?>
892 990 </a>
893 991 <a href="#tab5" data-title="Userdata"
894 - class="nav-tab <?= $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
895 - <?= __('User Data', "poll-maker"); ?>
992 + class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
993 + <?php echo esc_html__('User Data', "poll-maker"); ?>
896 994 </a>
897 995 <a href="#tab6" data-title="Email"
898 - class="nav-tab <?= $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
899 - <?= __('Email', "poll-maker"); ?>
996 + class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
997 + <?php echo esc_html__('Email', "poll-maker"); ?>
900 998 </a>
901 999 <a href="#tab7" data-title="Integrations"
902 - class="nav-tab <?= $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
903 - <?= __('Integrations', "poll-maker"); ?>
1000 + class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
1001 + <?php echo esc_html__('Integrations', "poll-maker"); ?>
904 1002 </a>
905 1003 </div>
906 1004 <div class='top-menu-buttons-container'>
907 1005 <?php
908 - echo $loader_iamge;
1006 + echo wp_kses($loader_iamge, $loader_iamge_allow);
909 1007 $save_attributes = array(
910 1008 'id' => 'ays-button-top-apply',
911 1009 'title' => 'Ctrl + s',
912 1010 'data-toggle' => 'tooltip',
@@ -911,27 +1009,27 @@
911 1009 'title' => 'Ctrl + s',
912 1010 'data-toggle' => 'tooltip',
913 1011 'data-delay'=> '{"show":"1000"}'
914 1012 );
915 - submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
1013 + submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
916 1014 $save_close_attributes = array('id' => 'ays-button-top');
917 - submit_button(__('Save and close', "poll-maker"), 'primary ays-top-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit_top', false, $save_close_attributes);
918 - submit_button(__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
1015 + submit_button( esc_html__('Save and close', "poll-maker"), 'primary ays-top-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit_top', false, $save_close_attributes);
1016 + submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
919 1017 ?>
920 1018 </div>
921 1019 </div>
922 1020 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
923 1021 </div>
924 - <div id="tab1" class="ays-poll-tab-content <?= $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
1022 + <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
925 1023 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
926 1024 <p class="ays-subtitle" style="margin-bottom:0;">
927 - <?= __('General options', "poll-maker"); ?>
1025 + <?php echo esc_html__('General options', "poll-maker"); ?>
928 1026 </p>
929 1027 <?php if ($poll_main_url != ''): ?>
930 1028 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
931 1029 <a data-toggle="tooltip" title="<?php echo esc_attr__("After clicking on the View button you will be redirected to the particular poll link.", "poll-maker");?>" href="<?php echo $poll_main_url != '' ? esc_url($poll_main_url) : 'javascript:void(0)'; ?>" target="<?php echo $poll_main_url != '' ? '_blank' : ''; ?>" type="button" class="button button-primary" style="margin-right: 12px;">
932 1030 <i class="fa fa-eye" aria-hidden="true"></i>
933 - <span style="margin-left: 5px;"><?php echo __( 'View', "easy-form" ); ?></span>
1031 + <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
934 1032 </a>
935 1033 </div>
936 1034 <?php endif; ?>
937 1035 </div>
@@ -938,12 +1036,12 @@
938 1036 <hr>
939 1037 <div class="form-group row">
940 1038 <div class="col-sm-3">
941 1039 <label for='ays-poll-title'>
942 - <?= __('Title', "poll-maker"); ?>
1040 + <?php echo esc_html__('Title', "poll-maker"); ?>
943 1041 <a class="ays_help" data-toggle="tooltip"
944 1042 data-placement="top"
945 - title="<?= __("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1043 + title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
946 1044 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
947 1045 </a>
948 1046 </label>
949 1047 </div>
@@ -948,9 +1046,9 @@
948 1046 </label>
949 1047 </div>
950 1048 <div class="col-sm-9 ays_divider_left">
951 1049 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
952 - data-required="false" value="<?= $poll_title ?>"/>
1050 + data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
953 1051 </div>
954 1052 </div>
955 1053 <hr>
956 1054 <div class="form-group row" style="display: flex;">
@@ -955,20 +1053,20 @@
955 1053 <hr>
956 1054 <div class="form-group row" style="display: flex;">
957 1055 <div class="col-sm-3">
958 1056 <label for='ays-poll-question'>
959 - <?= __('Question', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Write the main content/question, which will be shown inside the poll.", "poll-maker"); ?>">
1057 + <?php echo esc_html__('Question', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Write the main content/question, which will be shown inside the poll.", "poll-maker"); ?>">
960 1058 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
961 1059 </a>
962 1060 <a href="javascript:void(0)" class="add-question-image button">
963 - <?= $image_text; ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Add an image to the question.", "poll-maker"); ?>">
1061 + <?php echo esc_html($image_text); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Add an image to the question.", "poll-maker"); ?>">
964 1062 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
965 1063 </a></a>
966 1064 </label>
967 - <div class="ays-poll-question-image-container" style="<?= $style; ?>">
1065 + <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
968 1066 <span class="ays-remove-question-img"></span>
969 - <img src="<?= $poll['image']; ?>" id="ays-poll-img"/>
970 - <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?= $poll['image']; ?>"/>
1067 + <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1068 + <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
971 1069 </div>
972 1070 </div>
973 1071 <div class="col-sm-9">
974 1072 <?php
@@ -996,9 +1094,9 @@
996 1094 <?php if ($poll['type'] == 'choosing') : ?>
997 1095 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
998 1096 <div class="col-sm-3">
999 1097 <label for="ays-poll-answer" >
1000 - <?php echo __('Options', "poll-maker")?>
1098 + <?php echo esc_html__('Options', "poll-maker"); ?>
1001 1099 </label>
1002 1100 </div>
1003 1101 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1004 1102 <div>
@@ -1003,20 +1101,20 @@
1003 1101 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1004 1102 <div>
1005 1103 <div class='add-option-top-container'>
1006 1104 <a class="ays-add-answer ays-click-once" id='add-answer'>
1007 - <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1008 - <span>Add Option</span>
1105 + <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1106 + <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1009 1107 </a>
1010 1108 </div>
1011 1109 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1012 1110 <thead>
1013 1111 <tr class="ui-state-default">
1014 - <th class="th-150"><?php echo __('Ordering', "poll-maker"); ?></th>
1015 - <th style="width: 100vw;"><?php echo __('Option', "poll-maker"); ?></th>
1016 - <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo __('Redirect URL', "poll-maker"); ?></th>
1017 - <th class="th-150 only_pro"><?php echo __('Image', "poll-maker"); ?></th>
1018 - <th class="th-150"><?php echo __('Delete', "poll-maker"); ?></th>
1112 + <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1113 + <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1114 + <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo esc_html__('Redirect URL', "poll-maker"); ?></th>
1115 + <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1116 + <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1019 1117 </tr>
1020 1118 </thead>
1021 1119 <tbody class="">
1022 1120 <?php
@@ -1025,8 +1123,17 @@
1025 1123 $loop_iteration = 0;
1026 1124 $rows_count = count($answers);
1027 1125 $ays_key_enter = "";
1028 1126 $user_add_html = '';
1127 + $user_add_html_allow = array(
1128 + 'input' => array(
1129 + 'type' => array(),
1130 + 'class' => array(),
1131 + 'style' => array(),
1132 + 'title' => array(),
1133 + 'checked' => array()
1134 + )
1135 + );
1029 1136 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1030 1137 foreach ($answers as $index => $answer) {
1031 1138 $user_add_html = '';
1032 1139 $class = (($index + 1) % 2 == 0) ? "even" : "";
@@ -1065,27 +1172,27 @@
1065 1172 $ays_key_enter = "ays_poll_enter_key";
1066 1173 }
1067 1174 $loop_iteration++;
1068 1175 ?>
1069 - <tr class="ays-answer-row ui-state-default <?php echo $class; ?>">
1176 + <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1070 1177 <td class="ays-sort">
1071 1178 <div class='ays_poll_move_arrows'></div>
1072 1179 <td>
1073 1180 <div class="ays_poll_display_flex">
1074 - <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?= $check_show_user_added ?>" />
1075 - <input type="text" class="ays-text-input ays-answer-value <?php echo $ays_key_enter;?>" name="ays-poll-answers[]" data-id="<?php echo $index;?>" value="<?php echo esc_html($answer_val); ?>">
1076 - <?php echo $user_add_html; ?>
1077 - <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $index;?>" value="<?php echo $answer_id; ?>">
1181 + <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?php echo esc_attr($check_show_user_added) ?>" />
1182 + <input type="text" class="ays-text-input ays-answer-value <?php echo esc_attr($ays_key_enter);?>" name="ays-poll-answers[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_html($answer_val); ?>">
1183 + <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1184 + <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1078 1185 </div>
1079 1186 </td>
1080 1187 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1081 - <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo $answer_id; ?>" name="ays_submit_redirect_url[]" value="<?php echo "$answer_redirect"; ?>"/>
1188 + <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo esc_attr($answer_id); ?>" name="ays_submit_redirect_url[]" value="<?php echo esc_url($answer_redirect); ?>"/>
1082 1189 </td>
1083 1190 <td>
1084 1191 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1085 1192 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1086 1193 </label>
1087 - <div class="ays-poll-answer-image-container" style="<?php echo $answer_img_class; ?>">
1194 + <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1088 1195 <span class="ays-poll-remove-answer-img"></span>
1089 1196 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1090 1197 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1091 1198 </div>
@@ -1090,9 +1197,9 @@
1090 1197 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1091 1198 </div>
1092 1199 </td>
1093 1200 <td>
1094 - <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $index;?>" data-lid="<?php echo $index;?>">
1201 + <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1095 1202 </a>
1096 1203 </td>
1097 1204 </tr>
1098 1205 <?php
@@ -1106,21 +1213,21 @@
1106 1213 }
1107 1214 $loop_iteration++;
1108 1215 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1109 1216 ?>
1110 - <tr class="ays-answer-row ui-state-default <?php echo $ays_even_or_not; ?>">
1217 + <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1111 1218 <td class="ays-sort">
1112 1219 <div class='ays_poll_move_arrows'></div>
1113 1220 </td>
1114 1221 <td class="ays-choosing-answer-container">
1115 1222 <div class="ays_poll_display_flex">
1116 - <input type="text" class="ays-text-input ays-answer-value <?php echo $ays_key_enter;?>" name="ays-poll-answers[]" data-id="<?php echo $dac_i;?>" value="<?= __("Option", "poll-maker") . " " . ($dac_i+1); ?>">
1117 - <?php echo $user_add_html; ?>
1118 - <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $dac_i;?>" value="0">
1223 + <input type="text" class="ays-text-input ays-answer-value <?php echo esc_attr($ays_key_enter);?>" name="ays-poll-answers[]" data-id="<?php echo esc_attr($dac_i);?>" value="<?php echo esc_html__("Option", "poll-maker") . " " . (esc_attr($dac_i+1)); ?>">
1224 + <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1225 + <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1119 1226 </div>
1120 1227 </td>
1121 1228 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1122 - <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo $dac_i; ?>" name="ays_submit_redirect_url[]" value=""/>
1229 + <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo esc_attr($dac_i); ?>" name="ays_submit_redirect_url[]" value=""/>
1123 1230 </td>
1124 1231 <td>
1125 1232 <label class='ays-label' for='ays-answer'>
1126 1233 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
@@ -1132,9 +1239,9 @@
1132 1239 </div>
1133 1240 </td>
1134 1241
1135 1242 <td>
1136 - <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $dac_i;?>" data-lid="<?php echo $dac_i;?>">
1243 + <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($dac_i);?>" data-lid="<?php echo esc_attr($dac_i);?>">
1137 1244 </a>
1138 1245 </td>
1139 1246 </tr>
1140 1247 <?php
@@ -1144,14 +1251,14 @@
1144 1251 </tbody>
1145 1252 </table>
1146 1253 <div class='add-option-top-container'>
1147 1254 <a class="ays-add-answer" id='add-answer'>
1148 - <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1149 - <span>Add Option</span>
1255 + <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1256 + <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1150 1257 </a>
1151 1258 </div>
1152 - <input type="hidden" id="ays_poll_answers_count" value="<?php echo $answers_count ?>">
1153 - <input type="hidden" id="ays_answer_checker" value="<?php echo $checking_answer_hover_live ?>">
1259 + <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1260 + <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1154 1261 </div>
1155 1262
1156 1263 </div>
1157 1264 </div>
@@ -1159,9 +1266,9 @@
1159 1266 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1160 1267 <div class="form-group row" style="display: flex;">
1161 1268 <div class="col-sm-3">
1162 1269 <label for="ays-poll-answer" >
1163 - <?php echo __('Option Settings', "poll-maker")?>
1270 + <?php echo esc_html__('Option Settings', "poll-maker")?>
1164 1271 </label>
1165 1272 </div>
1166 1273 <div class="col-sm-9">
1167 1274 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
@@ -1171,10 +1278,10 @@
1171 1278 <input type="checkbox" class="ays-enable-timer1" id="ays_redirect_after_submit" name="ays_redirect_after_submit" value="on" <?php echo $redirect_after_submit ? 'checked' : '' ?>/>
1172 1279 </div>
1173 1280 <div class="col-4 unset-padding-left">
1174 1281 <label for="ays_redirect_after_submit" >
1175 - <?php echo __('Answer Redirection', "poll-maker")?>
1176 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable redirection to the custom URL(s) after the user votes the poll. Assign different URLs to each answer separately.', "poll-maker")?>">
1282 + <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1283 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable redirection to the custom URL(s) after the user votes the poll. Assign different URLs to each answer separately.', "poll-maker")?>">
1177 1284 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1178 1285 </a>
1179 1286 </label>
1180 1287 </div>
@@ -1186,33 +1293,33 @@
1186 1293 <div class="col-sm-12">
1187 1294 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1188 1295 <div class="col-1">
1189 1296 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1190 - value="on" <?= $poll_allow_answer ?>>
1297 + value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1191 1298 </div>
1192 1299 <div class="col-4 unset-padding-left">
1193 1300 <label for="ays_poll_allow_add_answers">
1194 - <?= __('Allow custom answer', "poll-maker"); ?>
1301 + <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1195 1302 <a class="ays_help" data-toggle="tooltip"
1196 1303 data-placement="top"
1197 - title="<?= __("Allow users to add their custom answer.", "poll-maker"); ?>">
1304 + title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1198 1305 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1199 1306 </a>
1200 1307 </label>
1201 1308 </div>
1202 1309 <div class="col-7 allow_add_answers_not_show_up_container">
1203 - <div class="ays_toggle_target" <?= $poll_allow_answer ? '' : 'style="display:none;"'; ?>>
1310 + <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1204 1311 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1205 1312 <div class="col-2 ays_divider_left">
1206 1313 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1207 - value="on" <?= $poll_allow_answer_require ?> />
1314 + value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1208 1315 </div>
1209 1316 <div class="col-10">
1210 1317 <label for="ays_poll_allow_answer_require">
1211 - <?= __('Require admin approval', "poll-maker"); ?>
1318 + <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1212 1319 <a class="ays_help" data-toggle="tooltip"
1213 1320 data-placement="top"
1214 - title="<?= __("If the option is enabled, the answers added by users will require admin approval to be shown up inside the poll (public).", "poll-maker"); ?>">
1321 + title="<?php echo esc_html__("If the option is enabled, the answers added by users will require admin approval to be shown up inside the poll (public).", "poll-maker"); ?>">
1215 1322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1216 1323 </a>
1217 1324 </label>
1218 1325 </div>
@@ -1225,18 +1332,18 @@
1225 1332 }
1226 1333 }
1227 1334 if($is_user_added_exist > 0):
1228 1335 ?>
1229 - <div class="col-12 row ays_toggle_target" <?= ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1336 + <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1230 1337 <div class="col-2 ays_divider_left" style="align-items: center;">
1231 1338 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1232 1339 </div>
1233 1340 <div class="col-10">
1234 1341 <label for="ays_poll_require_approve_select_all">
1235 - <?= __('Select all', "poll-maker"); ?>
1342 + <?php echo esc_html__('Select all', "poll-maker"); ?>
1236 1343 <a class="ays_help" data-toggle="tooltip"
1237 1344 data-placement="top"
1238 - title="<?= __("If the option is enabled, all the custom answers will be ticked in bulk and will be displayed for the poll on the front end.", "poll-maker"); ?>">
1345 + title="<?php echo esc_html__("If the option is enabled, all the custom answers will be ticked in bulk and will be displayed for the poll on the front end.", "poll-maker"); ?>">
1239 1346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1240 1347 </a>
1241 1348 </label>
1242 1349 </div>
@@ -1253,19 +1360,19 @@
1253 1360 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1254 1361 <div class="if-voting poll-type-block form-group row">
1255 1362 <div class="col-sm-3">
1256 1363 <label for="ays-poll-vote-type">
1257 - <?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance of the poll.", "poll-maker"); ?>">
1364 + <?php echo esc_html__('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select the appearance of the poll.", "poll-maker"); ?>">
1258 1365 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1259 1366 </a></label>
1260 1367 </div>
1261 1368 <div class="col-sm-9 answers-col">
1262 1369 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1263 - <option value='hand' <?= $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1264 - <?= __('Hand', "poll-maker"); ?>
1370 + <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1371 + <?php echo esc_html__('Hand', "poll-maker"); ?>
1265 1372 </option>
1266 - <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1267 - <?= __('Emoji', "poll-maker"); ?>
1373 + <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1374 + <?php echo esc_html__('Emoji', "poll-maker"); ?>
1268 1375 </option>
1269 1376 </select>
1270 1377 <?php
1271 1378 switch ($poll['view_type']) {
@@ -1289,33 +1396,33 @@
1289 1396 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1290 1397 break;
1291 1398 }
1292 1399 ?>
1293 - <i id="vote-res" class="<?php echo $vote_res; ?>"></i>
1400 + <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1294 1401 </div>
1295 1402 </div>
1296 1403 <div class="if-rating poll-type-block form-group row">
1297 1404 <div class="col-sm-3">
1298 1405 <label for="ays-poll-rate-type">
1299 - <?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance and the scale of assessment of the poll.", "poll-maker"); ?>">
1406 + <?php echo esc_html__('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select the appearance and the scale of assessment of the poll.", "poll-maker"); ?>">
1300 1407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1301 1408 </a></label>
1302 1409 </div>
1303 1410 <div class="col-sm-9 answers-col">
1304 1411 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1305 - <option value='star' <?= $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1306 - <?= __('Stars', "poll-maker"); ?>
1412 + <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1413 + <?php echo esc_html__('Stars', "poll-maker"); ?>
1307 1414 </option>
1308 - <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1309 - <?= __('Emoji', "poll-maker"); ?>
1415 + <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1416 + <?php echo esc_html__('Emoji', "poll-maker"); ?>
1310 1417 </option>
1311 1418 </select>
1312 1419 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1313 - <option value="<?= count($poll['answers']); ?>" selected>
1314 - <?= count($poll['answers']); ?>
1420 + <option value="<?php echo count($poll['answers']); ?>" selected>
1421 + <?php echo count($poll['answers']); ?>
1315 1422 </option>
1316 1423 </select>
1317 - <i id="rate-res" class="<?php echo $rate_res; ?>"></i>
1424 + <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1318 1425 </div>
1319 1426 </div>
1320 1427 <hr class="if-voting if-rating">
1321 1428 <div class="form-group row">
@@ -1322,17 +1429,17 @@
1322 1429 <div class="col-sm-12 only_pro" style="padding:15px;">
1323 1430 <div class="pro_features pro_features_popup">
1324 1431 <div class="pro-features-popup-conteiner">
1325 1432 <div class="pro-features-popup-title">
1326 - <?php echo __("Add Fake Votes", "poll-maker"); ?>
1433 + <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1327 1434 </div>
1328 1435 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1329 1436 <p>
1330 - <?php echo __("Have you just created your poll and want it to look trustworthy and popular? You can add this \"Add Fake Votes\" feature to your polls and increase the number of votes for your polls by making them look more credible. Add as many fake votes as you want to every poll option, then remove them easily.", "poll-maker"); ?>
1437 + <?php echo esc_html__("Have you just created your poll and want it to look trustworthy and popular? You can add this \"Add Fake Votes\" feature to your polls and increase the number of votes for your polls by making them look more credible. Add as many fake votes as you want to every poll option, then remove them easily.", "poll-maker"); ?>
1331 1438 </p>
1332 1439 </div>
1333 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-add-fake-votes">
1334 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
1440 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-add-fake-votes-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
1441 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
1335 1442 </div>
1336 1443 </div>
1337 1444 </div>
1338 1445 <div class="pro_features" style="justify-content:flex-end;">
@@ -1343,10 +1450,10 @@
1343 1450 value="on">
1344 1451 </div>
1345 1452 <div class="col-11 unset-padding-left">
1346 1453 <label for="ays_add_f_votes">
1347 - <?= __('Add fake votes', "poll-maker"); ?>
1348 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to add their fake votes to each option.", "poll-maker"); ?>">
1454 + <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1455 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Allow users to add their fake votes to each option.", "poll-maker"); ?>">
1349 1456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1350 1457 </a>
1351 1458 </label>
1352 1459 </div>
@@ -1353,20 +1460,20 @@
1353 1460 </div>
1354 1461 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1355 1462 <div class="ays-poll-new-upgrade-button-box">
1356 1463 <div>
1357 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1358 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1464 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1465 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1359 1466 </div>
1360 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1467 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1361 1468 </div>
1362 1469 </a>
1363 1470 <div class="ays-poll-new-watch-video-button-box">
1364 1471 <div>
1365 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
1366 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
1472 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1473 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
1367 1474 </div>
1368 - <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
1475 + <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1369 1476 </div>
1370 1477 </div>
1371 1478 </div>
1372 1479 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
@@ -1372,13 +1479,13 @@
1372 1479 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1373 1480 <div class="if-text poll-type-block form-group row">
1374 1481 <div class="col-sm-3">
1375 1482 <label for="">
1376 - <?= __('Choose text type', "poll-maker"); ?>
1483 + <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1377 1484 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1378 - <?php echo __( 'Choose the type of the question:' , "poll-maker" ); ?>
1379 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Short text', "poll-maker" ); ?></strong><?php echo __( ' - a question that requires to be answered by writing short text.' , "poll-maker" ); ?></p>
1380 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Paragraph', "poll-maker" ); ?></strong><?php echo __( ' - a question that requires to be answered by writing text.', "poll-maker" ); ?></p>">
1485 + <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1486 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Short text', "poll-maker" ); ?></strong><?php echo esc_html__( ' - a question that requires to be answered by writing short text.' , "poll-maker" ); ?></p>
1487 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Paragraph', "poll-maker" ); ?></strong><?php echo esc_html__( ' - a question that requires to be answered by writing text.', "poll-maker" ); ?></p>">
1381 1488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1382 1489 </a>
1383 1490 </label>
1384 1491 </div>
@@ -1385,14 +1492,14 @@
1385 1492 <div class="col-sm-9 answers-col row">
1386 1493 <div class="d-flex" style="padding: 0 15px;">
1387 1494 <div class="form-check-inline">
1388 1495 <input type="radio" id="ays_poll_text_type_short" name="ays_poll_text_type" value="short_text" class="ays-poll-text-types-type" <?php echo ($poll_view_type_for_text == "short_text") ? "checked" : ""; ?>>
1389 - <label for="ays_poll_text_type_short"><?php echo __("Short text", "poll-maker");?>
1496 + <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1390 1497 </label>
1391 1498 </div>
1392 1499 <div class="form-check-inline">
1393 1500 <input type="radio" id="ays_poll_text_type_paragraph" name="ays_poll_text_type" value="paragraph" class="ays-poll-text-types-type" <?php echo ($poll_view_type_for_text == "paragraph") ? "checked" : ""; ?>>
1394 - <label for="ays_poll_text_type_paragraph"><?php echo __("Paragraph", "poll-maker");?>
1501 + <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1395 1502 </label>
1396 1503 </div>
1397 1504 </div>
1398 1505 </div>
@@ -1400,17 +1507,17 @@
1400 1507 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1401 1508 <div class="if-text poll-type-block form-group row">
1402 1509 <div class="col-sm-3">
1403 1510 <label for='ays_poll_text_type_placeholder'>
1404 - <?= __("Placeholder", "poll-maker"); ?>
1511 + <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1405 1512 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1406 - title="<?= __("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1513 + title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1407 1514 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1408 1515 </a>
1409 1516 </label>
1410 1517 </div>
1411 1518 <div class="col-sm-3 ays_divider_left">
1412 - <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo $poll_text_type_placeholder?>">
1519 + <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1413 1520 </div>
1414 1521 </div>
1415 1522 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1416 1523 <div class="if-text poll-type-block form-group row">
@@ -1415,17 +1522,17 @@
1415 1522 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1416 1523 <div class="if-text poll-type-block form-group row">
1417 1524 <div class="col-sm-3">
1418 1525 <label for='ays_poll_text_type_width'>
1419 - <?= __("Width", "poll-maker"); ?>
1526 + <?php echo esc_html__("Width", "poll-maker"); ?>
1420 1527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1421 - title="<?= __("Specify the width of the text field.", "poll-maker"); ?>">
1528 + title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1422 1529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1423 1530 </a>
1424 1531 </label>
1425 1532 </div>
1426 1533 <div class="col-sm-3 ays_divider_left">
1427 - <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo $poll_text_type_width; ?>">
1534 + <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1428 1535 </div>
1429 1536 <div class="col-sm-6">
1430 1537 <select class="ays-text-input ays-text-input-short ays_enable_answer_field ays_poll_select_short" name="ays_poll_text_type_width_type" id="ays_poll_text_type_width_type">
1431 1538 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
@@ -1436,10 +1543,10 @@
1436 1543 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1437 1544 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1438 1545 <div class="col-sm-3">
1439 1546 <label for="ays_poll_enable_question_length">
1440 - <?= __('Maximum length of a text field', "poll-maker"); ?>
1441 - <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php echo __( 'Restrict the number of characters/words to be inserted in the text field by the user.' , "poll-maker" ); ?>">
1547 + <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1548 + <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php echo esc_html__( 'Restrict the number of characters/words to be inserted in the text field by the user.' , "poll-maker" ); ?>">
1442 1549 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1443 1550 </a>
1444 1551 </label>
1445 1552 </div>
@@ -1449,10 +1556,10 @@
1449 1556 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1450 1557 <div class="form-group row">
1451 1558 <div class="col-sm-4">
1452 1559 <label for="ays_poll_question_limit_text_type">
1453 - <?php echo __('Limit by', "poll-maker"); ?>
1454 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred type of limitation.', "poll-maker"); ?>">
1560 + <?php echo esc_html__('Limit by', "poll-maker"); ?>
1561 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1455 1562 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1456 1563 </a>
1457 1564 </label>
1458 1565 </div>
@@ -1457,10 +1564,10 @@
1457 1564 </label>
1458 1565 </div>
1459 1566 <div class="col-sm-8">
1460 1567 <select class="ays-text-input ays-text-input-select" id="ays_poll_question_limit_text_type" name="ays_poll_question_limit_text_type" style="max-width: 100%;">
1461 - <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo __( 'Characters' , "poll-maker" ); ?></option>
1462 - <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo __( 'Words' , "poll-maker" ); ?></option>
1568 + <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1569 + <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1463 1570 </select>
1464 1571 </div>
1465 1572 </div>
1466 1573 <hr>
@@ -1466,10 +1573,10 @@
1466 1573 <hr>
1467 1574 <div class="form-group row">
1468 1575 <div class="col-sm-4">
1469 1576 <label for="ays_poll_question_text_max_length">
1470 - <?php echo __('Length', "poll-maker"); ?>
1471 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Indicate the length of the characters/words.', "poll-maker"); ?>">
1577 + <?php echo esc_html__('Length', "poll-maker"); ?>
1578 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1472 1579 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1473 1580 </a>
1474 1581 </label>
1475 1582 </div>
@@ -1480,10 +1587,10 @@
1480 1587 <hr>
1481 1588 <div class="form-group row">
1482 1589 <div class="col-sm-4">
1483 1590 <label for="ays_poll_question_enable_text_message">
1484 - <?php echo __('Show word/character counter', "poll-maker"); ?>
1485 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Tick the checkbox and the live box will appear under the text field. It will indicate the current state of word/character usage.', "poll-maker"); ?>">
1591 + <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1592 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tick the checkbox and the live box will appear under the text field. It will indicate the current state of word/character usage.', "poll-maker"); ?>">
1486 1593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1487 1594 </a>
1488 1595 </label>
1489 1596 </div>
@@ -1497,19 +1604,19 @@
1497 1604 </div>
1498 1605 </div>
1499 1606 </div>
1500 1607 </div>
1501 - <div id="tab2" class="ays-poll-tab-content <?= $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1608 + <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1502 1609 <p class="ays-subtitle">
1503 - <?= __('Styling options', "poll-maker"); ?>
1610 + <?php echo esc_html__('Styling options', "poll-maker"); ?>
1504 1611 </p>
1505 1612 <hr>
1506 1613 <div class="form-group row ays-poll-all-themes-container">
1507 1614 <div class="col-sm-1">
1508 1615 <label for='ays-poll-theme' class="ays_label_flex">
1509 - <?= __('Theme', "poll-maker"); ?>
1616 + <?php echo esc_html__('Theme', "poll-maker"); ?>
1510 1617 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1511 - title="<?= __("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1618 + title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1512 1619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1513 1620 </a>
1514 1621 </label>
1515 1622 </div>
@@ -1515,32 +1622,32 @@
1515 1622 </div>
1516 1623 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1517 1624 <div class="ays_poll_theme_image_div col">
1518 1625 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1519 - <p><?= __('Minimal', "poll-maker") ?></p>
1520 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/minimal.png' ?>"
1521 - alt="<?= __('Minimal', "poll-maker") ?>">
1626 + <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1627 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1628 + alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1522 1629 </label>
1523 1630 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1524 - value="3" <?= ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1631 + value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1525 1632 </div>
1526 1633 <div class="ays_poll_theme_image_div col">
1527 1634 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1528 - <p><?= __('Classic Light', "poll-maker") ?></p>
1529 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicLight.png' ?>"
1530 - alt="<?= __('Classic Light', "poll-maker") ?>">
1635 + <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1636 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1637 + alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1531 1638 </label>
1532 1639 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1533 - value="1" <?= ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1640 + value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1534 1641 </div>
1535 1642 <div class="ays_poll_theme_image_div col">
1536 1643 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1537 - <p><?= __('Classic Dark', "poll-maker") ?></p>
1538 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicDark.png' ?>"
1539 - alt="<?= __('Classic Dark', "poll-maker") ?>">
1644 + <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1645 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1646 + alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1540 1647 </label>
1541 1648 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1542 - value="2" <?= ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1649 + value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1543 1650 </div>
1544 1651 <div class="col">
1545 1652 <div class="form-group row" style="margin: 0px;">
1546 1653 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
@@ -1549,35 +1656,35 @@
1549 1656 <div class="ays_poll_theme_image_div_pro">
1550 1657 <div class="ays_poll_theme_image_div col apm-pro-feature">
1551 1658 <label class="ays-poll-theme-item">
1552 1659 <p>Light Shape</p>
1553 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/LightShape.png' ?>"
1660 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1554 1661 alt="Light Shape"
1555 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1662 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1556 1663 </label>
1557 1664 </div>
1558 1665 <div class="ays_poll_theme_image_div col apm-pro-feature">
1559 1666 <label class="ays-poll-theme-item">
1560 1667 <p>Dark Shape</p>
1561 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/DarkShape.png' ?>"
1668 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1562 1669 alt="Light Shape"
1563 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1670 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1564 1671 </label>
1565 1672 </div>
1566 1673 <div class="ays_poll_theme_image_div col apm-pro-feature">
1567 1674 <label class="ays-poll-theme-item">
1568 1675 <p>Coffee Fluid</p>
1569 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/CoffeeFluid.png' ?>"
1676 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1570 1677 alt="Coffee Fluid"
1571 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1678 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1572 1679 </label>
1573 1680 </div>
1574 1681 <div class="ays_poll_theme_image_div col apm-pro-feature">
1575 1682 <label class="ays-poll-theme-item">
1576 - <p><?= __("Aquamarine", "poll-maker") ?></p>
1577 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/Aquamarine.png' ?>"
1683 + <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1684 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1578 1685 alt="Aquamarine"
1579 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1686 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1580 1687 </label>
1581 1688 </div>
1582 1689 </div>
1583 1690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -1582,12 +1689,12 @@
1582 1689 </div>
1583 1690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1584 1691 <div class="ays-poll-new-upgrade-button-box">
1585 1692 <div>
1586 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1587 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1693 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1694 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1588 1695 </div>
1589 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1696 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1590 1697 </div>
1591 1698 </a>
1592 1699 </div>
1593 1700 </div>
@@ -1599,10 +1706,10 @@
1599 1706 <div class="row">
1600 1707 <div class="col-lg-6 col-sm-12">
1601 1708 <div class="ays-poll-accordion-options-main-container">
1602 1709 <div class="ays-poll-accordion-header">
1603 - <?php echo $poll_acordion_svg_html; ?>
1604 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Poll styles', "poll-maker"); ?></p>
1710 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1711 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1605 1712 </div>
1606 1713 <hr class="ays-poll-bolder-hr"/>
1607 1714 <div class="ays-poll-accordion-body">
1608 1715 <div class="form-group row">
@@ -1607,13 +1714,13 @@
1607 1714 <div class="ays-poll-accordion-body">
1608 1715 <div class="form-group row">
1609 1716 <div class="col-sm-4">
1610 1717 <label for='ays-poll-main-color'>
1611 - <?= __('Main Color', "poll-maker"); ?>
1718 + <?php echo esc_html__('Main Color', "poll-maker"); ?>
1612 1719 <a class="ays_help"
1613 1720 data-toggle="tooltip"
1614 1721 data-placement="top"
1615 - title="<?= __("Specify the color of the poll's main attributes. It includes border color, the color of the rate percentage and the background color of the vote button.", "poll-maker"); ?>">
1722 + title="<?php echo esc_html__("Specify the color of the poll's main attributes. It includes border color, the color of the rate percentage and the background color of the vote button.", "poll-maker"); ?>">
1616 1723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1617 1724 </a>
1618 1725 </label>
1619 1726 </div>
@@ -1619,9 +1726,9 @@
1619 1726 </div>
1620 1727 <div class="col-sm-8 ays_divider_left">
1621 1728 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1622 1729 name='ays_poll_main_color'
1623 - value="<?= !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1730 + value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1624 1731 </div>
1625 1732 </div>
1626 1733 <hr>
1627 1734 <div class="form-group row">
@@ -1626,13 +1733,13 @@
1626 1733 <hr>
1627 1734 <div class="form-group row">
1628 1735 <div class="col-sm-4">
1629 1736 <label for='ays-poll-text-color'>
1630 - <?= __('Text Color', "poll-maker"); ?>
1737 + <?php echo esc_html__('Text Color', "poll-maker"); ?>
1631 1738 <a class="ays_help"
1632 1739 data-toggle="tooltip"
1633 1740 data-placement="top"
1634 - title="<?= __("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1741 + title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1635 1742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1636 1743 </a>
1637 1744 </label>
1638 1745 </div>
@@ -1638,9 +1745,9 @@
1638 1745 </div>
1639 1746 <div class="col-sm-8 ays_divider_left">
1640 1747 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1641 1748 name='ays_poll_text_color'
1642 - value="<?= !empty($options['text_color']) ? $options['text_color'] : $default_colors['text_color']; ?>"/>
1749 + value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1643 1750 </div>
1644 1751 </div>
1645 1752 <hr>
1646 1753 <div class="form-group row">
@@ -1645,13 +1752,13 @@
1645 1752 <hr>
1646 1753 <div class="form-group row">
1647 1754 <div class="col-sm-4">
1648 1755 <label for='ays-poll-icon-color'>
1649 - <?= __('Icons Color', "poll-maker"); ?>
1756 + <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1650 1757 <a class="ays_help"
1651 1758 data-toggle="tooltip"
1652 1759 data-placement="top"
1653 - title="<?= __("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1760 + title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1654 1761 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1655 1762 </a>
1656 1763 </label>
1657 1764 </div>
@@ -1657,9 +1764,9 @@
1657 1764 </div>
1658 1765 <div class="col-sm-8 ays_divider_left">
1659 1766 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1660 1767 name='ays_poll_icon_color'
1661 - value="<?= !empty($options['icon_color']) ? $options['icon_color'] : $default_colors['icon_color']; ?>"/>
1768 + value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1662 1769 </div>
1663 1770 </div>
1664 1771 <hr>
1665 1772 <div class="form-group row">
@@ -1664,10 +1771,10 @@
1664 1771 <hr>
1665 1772 <div class="form-group row">
1666 1773 <div class="col-sm-4">
1667 1774 <label for='ays-poll-bg-color'>
1668 - <?= __('Background Color', "poll-maker"); ?>
1669 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Specify the background color of the poll.", "poll-maker"); ?>">
1775 + <?php echo esc_html__('Background Color', "poll-maker"); ?>
1776 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1670 1777 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1671 1778 </a>
1672 1779 </label>
1673 1780 </div>
@@ -1673,9 +1780,9 @@
1673 1780 </div>
1674 1781 <div class="col-sm-8 ays_divider_left">
1675 1782 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1676 1783 name='ays_poll_bg_color'
1677 - value="<?= !empty($options['bg_color']) ? $options['bg_color'] : $default_colors['bg_color']; ?>"/>
1784 + value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1678 1785 </div>
1679 1786 </div>
1680 1787 <hr>
1681 1788 <div class="form-group row">
@@ -1680,11 +1787,11 @@
1680 1787 <hr>
1681 1788 <div class="form-group row">
1682 1789 <div class="col-sm-4">
1683 1790 <label for='ays-poll-bg-image'>
1684 - <?= __('Background Image', "poll-maker"); ?>
1791 + <?php echo esc_html__('Background Image', "poll-maker"); ?>
1685 1792 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1686 - title="<?= __("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>">
1793 + title="<?php echo esc_html__("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>">
1687 1794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1688 1795 </a>
1689 1796 </label>
1690 1797 </div>
@@ -1689,41 +1796,41 @@
1689 1796 </label>
1690 1797 </div>
1691 1798 <div class="col-sm-8 ays_divider_left">
1692 1799 <a href="javascript:void(0)" class="add-bg-image button">
1693 - <?= $image_text_bg; ?>
1800 + <?php echo esc_html($image_text_bg); ?>
1694 1801 </a>
1695 - <div class="form-group row" style="<?= $style_bg; ?>">
1802 + <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1696 1803 <div class="ays-poll-bg-image-container">
1697 1804 <span class="ays-remove-bg-img"></span>
1698 - <img src="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"
1805 + <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1699 1806 id="ays-poll-bg-img"/>
1700 1807 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1701 - value="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"/>
1808 + value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1702 1809 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1703 - value="<?= isset($options['poll_bg_image_position']) ? $options['poll_bg_image_position'] : ""; ?>"/>
1810 + value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1704 1811 </div>
1705 1812 </div>
1706 - <div style="<?= $style_bg_options; ?>" id="ays-poll-background-image-options">
1813 + <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1707 1814 <hr>
1708 1815 <div class="form-group row">
1709 1816 <div class="col-sm-12">
1710 1817 <label for="ays_poll_bg_image_position">
1711 - <?php echo __( "Background image position", "poll-maker" ); ?>
1712 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The position of background image of the polls',"poll-maker")?>">
1818 + <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1819 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1713 1820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1714 1821 </a>
1715 1822 </label>
1716 1823 <select id="ays_poll_bg_image_position" name="ays_poll_bg_image_position" class="ays-text-input ays-select-short ays-text-input-short ays_poll_aysDropdown" style="display:inline-block;">
1717 - <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo __( "Left Top", "poll-maker" ); ?></option>
1718 - <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo __( "Left Center", "poll-maker" ); ?></option>
1719 - <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo __( "Left Bottom", "poll-maker" ); ?></option>
1720 - <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo __( "Center Top", "poll-maker" ); ?></option>
1721 - <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo __( "Center Center", "poll-maker" ); ?></option>
1722 - <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo __( "Center Bottom", "poll-maker" ); ?></option>
1723 - <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo __( "Right Top", "poll-maker" ); ?></option>
1724 - <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo __( "Right Center", "poll-maker" ); ?></option>
1725 - <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo __( "Right Bottom", "poll-maker" ); ?></option>
1824 + <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1825 + <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1826 + <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1827 + <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1828 + <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1829 + <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1830 + <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1831 + <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1832 + <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1726 1833 </select>
1727 1834 </div>
1728 1835 </div>
1729 1836 <hr>
@@ -1729,10 +1836,10 @@
1729 1836 <hr>
1730 1837 <div class="form-group row">
1731 1838 <div class="col-sm-8">
1732 1839 <label for="ays_poll_bg_img_in_finish_page">
1733 - <?php echo __( "Hide background image on result page", "poll-maker" ); ?>
1734 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('If this option is enabled background image of poll will disappear on the result page.',"poll-maker")?>">
1840 + <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1841 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('If this option is enabled background image of poll will disappear on the result page.',"poll-maker")?>">
1735 1842 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1736 1843 </a>
1737 1844 </label>
1738 1845 </div>
@@ -1749,11 +1856,11 @@
1749 1856 </div>
1750 1857 <hr>
1751 1858 <div class="form-group row">
1752 1859 <div class="col-sm-4">
1753 - <label for='ays_poll_enable_box_shadow'><?= __('Box shadow', "poll-maker"); ?>
1860 + <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1754 1861 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1755 - title="<?= __("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1862 + title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1756 1863 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1757 1864 </a>
1758 1865 </label>
1759 1866 </div>
@@ -1759,38 +1866,38 @@
1759 1866 </div>
1760 1867 <div class="col-sm-8 ays_divider_left">
1761 1868 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1762 1869 id="ays_poll_enable_box_shadow"
1763 - name="ays_poll_enable_box_shadow" <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1870 + name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1764 1871 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1765 1872 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1766 - style="margin-top: 10px; padding-top: 10px; <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1873 + style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1767 1874 <label for="ays-poll-box-shadow-color">
1768 - <?= __('Box shadow color', "poll-maker") ?>
1875 + <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1769 1876 <a class="ays_help" data-toggle="tooltip"
1770 - title="--><?= __('The shadow color of Poll container', "poll-maker") ?>">
1877 + title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1771 1878 <i class="ays_fa ays_fa_info_circle"></i>
1772 1879 </a>
1773 1880 </label>
1774 1881 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1775 1882 name='ays_poll_box_shadow_color'
1776 - value="<?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] : '#000000'; ?>"/>
1883 + value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1777 1884 </div>
1778 1885 <!---->
1779 - <hr class="ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1780 - <div class="form-group row ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1886 + <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1887 + <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1781 1888 <div class="col-sm-12">
1782 1889 <div class="col-sm-3" style="display: inline-block;">
1783 - <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_x_offset' name='ays_poll_box_shadow_x_offset' value="<?php echo $poll_box_shadow_x_offset; ?>" />
1784 - <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
1890 + <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_x_offset' name='ays_poll_box_shadow_x_offset' value="<?php echo esc_attr($poll_box_shadow_x_offset); ?>" />
1891 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1785 1892 </div>
1786 1893 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1787 - <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_y_offset' name='ays_poll_box_shadow_y_offset' value="<?php echo $poll_box_shadow_y_offset; ?>" />
1788 - <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
1894 + <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_y_offset' name='ays_poll_box_shadow_y_offset' value="<?php echo esc_attr($poll_box_shadow_y_offset); ?>" />
1895 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1789 1896 </div>
1790 1897 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1791 - <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_z_offset' name='ays_poll_box_shadow_z_offset' value="<?php echo $poll_box_shadow_z_offset; ?>" />
1792 - <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
1898 + <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_z_offset' name='ays_poll_box_shadow_z_offset' value="<?php echo esc_attr($poll_box_shadow_z_offset); ?>" />
1899 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1793 1900 </div>
1794 1901 </div>
1795 1902 </div>
1796 1903 <!---->
@@ -1800,10 +1907,10 @@
1800 1907 <!-- ---------Aro start gradient -->
1801 1908 <div class="form-group row">
1802 1909 <div class="col-sm-4">
1803 1910 <label for="ays-enable-background-gradient">
1804 - <?php echo __('Background Gradient', "poll-maker")?>
1805 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add a color gradient background in the poll. Moreover, you can choose Color 1, Color 2 and the direction of the gradient.', "poll-maker")?>">
1911 + <?php echo esc_html__('Background Gradient', "poll-maker")?>
1912 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add a color gradient background in the poll. Moreover, you can choose Color 1, Color 2 and the direction of the gradient.', "poll-maker")?>">
1806 1913 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1807 1914 </a>
1808 1915 </label>
1809 1916 </div>
@@ -1815,27 +1922,27 @@
1815 1922 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1816 1923 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1817 1924 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1818 1925 <label for='ays-background-gradient-color-1'>
1819 - <?php echo __('Color 1', "poll-maker"); ?>
1926 + <?php echo esc_html__('Color 1', "poll-maker"); ?>
1820 1927 </label>
1821 - <input type="text" class="ays-text-input" id='ays-background-gradient-color-1' name='ays_background_gradient_color_1' data-alpha="true" value="<?php echo $background_gradient_color_1; ?>"/>
1928 + <input type="text" class="ays-text-input" id='ays-background-gradient-color-1' name='ays_background_gradient_color_1' data-alpha="true" value="<?php echo esc_attr($background_gradient_color_1); ?>"/>
1822 1929 </div>
1823 1930 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1824 1931 <label for='ays-background-gradient-color-2'>
1825 - <?php echo __('Color 2', "poll-maker"); ?>
1932 + <?php echo esc_html__('Color 2', "poll-maker"); ?>
1826 1933 </label>
1827 - <input type="text" class="ays-text-input" id='ays-background-gradient-color-2' name='ays_background_gradient_color_2' data-alpha="true" value="<?php echo $background_gradient_color_2; ?>"/>
1934 + <input type="text" class="ays-text-input" id='ays-background-gradient-color-2' name='ays_background_gradient_color_2' data-alpha="true" value="<?php echo esc_attr($background_gradient_color_2); ?>"/>
1828 1935 </div>
1829 1936 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1830 1937 <label for="ays_poll_gradient_direction">
1831 - <?php echo __('Gradient direction',"poll-maker")?>
1938 + <?php echo esc_html__('Gradient direction',"poll-maker")?>
1832 1939 </label>
1833 1940 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1834 - <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo __( 'Vertical', "poll-maker"); ?></option>
1835 - <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo __( 'Horizontal', "poll-maker"); ?></option>
1836 - <option <?php echo ($poll_gradient_direction == 'diagonal_left_to_right') ? 'selected' : ''; ?> value="diagonal_left_to_right"><?php echo __( 'Diagonal left to right', "poll-maker"); ?></option>
1837 - <option <?php echo ($poll_gradient_direction == 'diagonal_right_to_left') ? 'selected' : ''; ?> value="diagonal_right_to_left"><?php echo __( 'Diagonal right to left', "poll-maker"); ?></option>
1941 + <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1942 + <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1943 + <option <?php echo ($poll_gradient_direction == 'diagonal_left_to_right') ? 'selected' : ''; ?> value="diagonal_left_to_right"><?php echo esc_html__( 'Diagonal left to right', "poll-maker"); ?></option>
1944 + <option <?php echo ($poll_gradient_direction == 'diagonal_right_to_left') ? 'selected' : ''; ?> value="diagonal_right_to_left"><?php echo esc_html__( 'Diagonal right to left', "poll-maker"); ?></option>
1838 1945 </select>
1839 1946 </div>
1840 1947 </div>
1841 1948 </div>
@@ -1843,12 +1950,12 @@
1843 1950 <hr>
1844 1951 <div class="form-group row ays_toggle_parent">
1845 1952 <div class="col-sm-4">
1846 1953 <label for="ays_poll_image_text_logo">
1847 - <?= __('Poll Logo', "poll-maker"); ?>
1954 + <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1848 1955 <a class="ays_help" data-toggle="tooltip"
1849 1956 data-placement="top"
1850 - title="<?= __("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1957 + title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1851 1958 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1852 1959 </a>
1853 1960 </label>
1854 1961 </div>
@@ -1854,20 +1961,20 @@
1854 1961 </div>
1855 1962 <div class="col-sm-8 ays_logo_container ays_divider_left">
1856 1963 <div class="form-group row">
1857 1964 <div class="col-sm-4">
1858 - <a href="javascript:void(0)" class="add-logo-image button"><?= $image_text_logo; ?></a>
1965 + <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1859 1966 </div>
1860 - <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?= $style_logo; ?>">
1967 + <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1861 1968 <div class="ays-poll-logo-image-container">
1862 1969 <div class="col-sm-3" style="padding:0;">
1863 - <img src="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"
1970 + <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1864 1971 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1865 1972 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1866 - value="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1973 + value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1867 1974 </div>
1868 1975 <div class="col-sm-9">
1869 - <a href="javascript:void(0)" class="add-logo-remove-image button"><?= __("Remove", "poll-maker"); ?></a>
1976 + <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1870 1977 </div>
1871 1978 </div>
1872 1979 </div>
1873 1980 </div>
@@ -1874,12 +1981,12 @@
1874 1981 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1875 1982 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1876 1983 <div class="col-sm-4 ">
1877 1984 <label for="ays_disable_answer_hover">
1878 - <?= __('Logo URL', "poll-maker"); ?>
1985 + <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1879 1986 <a class="ays_help" data-toggle="tooltip"
1880 1987 data-placement="top"
1881 - title="<?= __("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1988 + title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1882 1989 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1883 1990 </a>
1884 1991 </label>
1885 1992 </div>
@@ -1899,12 +2006,12 @@
1899 2006 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1900 2007 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1901 2008 <div class="col-sm-6">
1902 2009 <label for="ays_poll_logo_enable_image_url_new_tab">
1903 - <?= __('Open in a new tab', "poll-maker"); ?>
2010 + <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
1904 2011 <a class="ays_help" data-toggle="tooltip"
1905 2012 data-placement="top"
1906 - title="<?= __("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
2013 + title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
1907 2014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1908 2015 </a>
1909 2016 </label>
1910 2017 </div>
@@ -1911,9 +2018,9 @@
1911 2018 <div class="col-sm-6">
1912 2019 <input type="checkbox"
1913 2020 name="ays_poll_logo_enable_image_url_new_tab"
1914 2021 id="ays_poll_logo_enable_image_url_new_tab"
1915 - value="on" class="ays_toggle ays_toggle_slide " <?php echo $poll_logo_image_url_check_new_tab; ?>>
2022 + value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
1916 2023 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
1917 2024 </div>
1918 2025 </div>
1919 2026 </div>
@@ -1921,12 +2028,12 @@
1921 2028 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1922 2029 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1923 2030 <div class="col-sm-4">
1924 2031 <label for="ays_poll_logo_title">
1925 - <?= __('Logo title', "poll-maker"); ?>
2032 + <?php echo esc_html__('Logo title', "poll-maker"); ?>
1926 2033 <a class="ays_help" data-toggle="tooltip"
1927 2034 data-placement="top"
1928 - title="<?php echo __("Specify the title of the Logo image.", "poll-maker"); ?>">
2035 + title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
1929 2036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1930 2037 </a>
1931 2038 </label>
1932 2039 </div>
@@ -1940,13 +2047,13 @@
1940 2047 <hr>
1941 2048 <div class="form-group row">
1942 2049 <div class="col-sm-4">
1943 2050 <label for='ays-poll-title-bg-color'>
1944 - <?= __('Title Background Color', "poll-maker"); ?>
2051 + <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
1945 2052 <a class="ays_help"
1946 2053 data-toggle="tooltip"
1947 2054 data-placement="top"
1948 - title="<?= __("Specify the background color of the title.", "poll-maker"); ?>">
2055 + title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
1949 2056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1950 2057 </a>
1951 2058 </label>
1952 2059 </div>
@@ -1953,9 +2060,9 @@
1953 2060 <div class="col-sm-8 ays_divider_left">
1954 2061 <input type="text" class="ays-text-input" data-alpha="true"
1955 2062 id='ays-poll-title-bg-color'
1956 2063 name='ays_poll_title_bg_color'
1957 - value="<?= !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2064 + value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
1958 2065 </div>
1959 2066 </div>
1960 2067 <hr>
1961 2068 <div class="form-group row">
@@ -1960,13 +2067,13 @@
1960 2067 <hr>
1961 2068 <div class="form-group row">
1962 2069 <div class="col-sm-4">
1963 2070 <label for='ays_poll_title_font_size'>
1964 - <?= __('Title font size', "poll-maker"); ?>
2071 + <?php echo esc_html__('Title font size', "poll-maker"); ?>
1965 2072 <a class="ays_help"
1966 2073 data-toggle="tooltip"
1967 2074 data-placement="top"
1968 - title="<?= __("Specify the font size of the title.", "poll-maker"); ?>">
2075 + title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
1969 2076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1970 2077 </a>
1971 2078 </label>
1972 2079 </div>
@@ -1973,16 +2080,16 @@
1973 2080 <div class="col-sm-8 ays_divider_left">
1974 2081 <div>
1975 2082 <div>
1976 2083 <label for='ays_poll_title_font_size'>
1977 - <?php echo __('On desktop', "poll-maker"); ?>
1978 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>">
2084 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2085 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
1979 2086 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1980 2087 </a>
1981 2088 </label>
1982 2089 </div>
1983 2090 <div>
1984 - <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?= $poll_title_font_size ?>"/>
2091 + <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?php echo esc_attr($poll_title_font_size); ?>"/>
1985 2092 </div>
1986 2093 </div>
1987 2094 <hr>
1988 2095 <div>
@@ -1987,16 +2094,16 @@
1987 2094 <hr>
1988 2095 <div>
1989 2096 <div>
1990 2097 <label for='ays_poll_title_font_size_mobile'>
1991 - <?php echo __('On mobile', "poll-maker"); ?>
1992 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
2098 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2099 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
1993 2100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1994 2101 </a>
1995 2102 </label>
1996 2103 </div>
1997 2104 <div>
1998 - <input type="number" class="ays-text-input ays-text-input-short" name="ays_poll_title_font_size_mobile" id="ays_poll_title_font_size_mobile" value="<?php echo $poll_title_font_size_mobile;?>">
2105 + <input type="number" class="ays-text-input ays-text-input-short" name="ays_poll_title_font_size_mobile" id="ays_poll_title_font_size_mobile" value="<?php echo esc_attr($poll_title_font_size_mobile);?>">
1999 2106 </div>
2000 2107 </div>
2001 2108 </div>
2002 2109 </div>
@@ -2002,14 +2109,83 @@
2002 2109 </div>
2003 2110 <hr>
2004 2111 <div class="form-group row">
2005 2112 <div class="col-sm-4">
2113 + <label for='ays_poll_title_font_weight'>
2114 + <?php echo esc_html__('Title font weight', "poll-maker"); ?>
2115 + <a class="ays_help"
2116 + data-toggle="tooltip"
2117 + data-placement="top"
2118 + title="<?php echo esc_html__("Specify the font weight of the title.", "poll-maker"); ?>">
2119 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2120 + </a>
2121 + </label>
2122 + </div>
2123 + <div class="col-sm-8 ays_divider_left">
2124 + <div>
2125 + <div>
2126 + <label for='ays_poll_title_font_weight'>
2127 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2128 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for PC devices.', "poll-maker")?>">
2129 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2130 + </a>
2131 + </label>
2132 + </div>
2133 + <div>
2134 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight" name="ays_poll_title_font_weight">
2135 + <option value="normal" <?php echo ($poll_title_font_weight == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2136 + <option value="bold" <?php echo ($poll_title_font_weight == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2137 + <option value="bolder" <?php echo ($poll_title_font_weight == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2138 + <option value="100" <?php echo ($poll_title_font_weight == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2139 + <option value="200" <?php echo ($poll_title_font_weight == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2140 + <option value="300" <?php echo ($poll_title_font_weight == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2141 + <option value="400" <?php echo ($poll_title_font_weight == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2142 + <option value="500" <?php echo ($poll_title_font_weight == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2143 + <option value="600" <?php echo ($poll_title_font_weight == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2144 + <option value="700" <?php echo ($poll_title_font_weight == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2145 + <option value="800" <?php echo ($poll_title_font_weight == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2146 + <option value="900" <?php echo ($poll_title_font_weight == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2147 + </select>
2148 + </div>
2149 + </div>
2150 + <hr>
2151 + <div>
2152 + <div>
2153 + <label for='ays_poll_title_font_weight_mobile'>
2154 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2155 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for mobile devices.', "poll-maker")?>">
2156 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2157 + </a>
2158 + </label>
2159 + </div>
2160 + <div>
2161 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight_mobile" name="ays_poll_title_font_weight_mobile">
2162 + <option value="normal" <?php echo ($poll_title_font_weight_mobile == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2163 + <option value="bold" <?php echo ($poll_title_font_weight_mobile == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2164 + <option value="bolder" <?php echo ($poll_title_font_weight_mobile == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2165 + <option value="100" <?php echo ($poll_title_font_weight_mobile == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2166 + <option value="200" <?php echo ($poll_title_font_weight_mobile == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2167 + <option value="300" <?php echo ($poll_title_font_weight_mobile == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2168 + <option value="400" <?php echo ($poll_title_font_weight_mobile == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2169 + <option value="500" <?php echo ($poll_title_font_weight_mobile == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2170 + <option value="600" <?php echo ($poll_title_font_weight_mobile == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2171 + <option value="700" <?php echo ($poll_title_font_weight_mobile == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2172 + <option value="800" <?php echo ($poll_title_font_weight_mobile == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2173 + <option value="900" <?php echo ($poll_title_font_weight_mobile == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2174 + </select>
2175 + </div>
2176 + </div>
2177 + </div>
2178 + </div>
2179 + <hr>
2180 + <div class="form-group row">
2181 + <div class="col-sm-4">
2006 2182 <label for='ays_poll_title_alignment'>
2007 - <?= __('Title alignment', "poll-maker"); ?>
2183 + <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2008 2184 <a class="ays_help"
2009 2185 data-toggle="tooltip"
2010 2186 data-placement="top"
2011 - title="<?= __("Specify the alignment of the title.", "poll-maker"); ?>">
2187 + title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2012 2188 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2013 2189 </a>
2014 2190 </label>
2015 2191 </div>
@@ -2016,10 +2192,10 @@
2016 2192 <div class="col-sm-8 ays_divider_left">
2017 2193 <div>
2018 2194 <div>
2019 2195 <label for='ays_poll_title_alignment'>
2020 - <?php echo __('On desktop', "poll-maker"); ?>
2021 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2196 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2197 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2022 2198 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2023 2199 </a>
2024 2200 </label>
2025 2201 </div>
@@ -2024,11 +2200,11 @@
2024 2200 </label>
2025 2201 </div>
2026 2202 <div>
2027 2203 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2028 - <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2029 - <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2030 - <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2204 + <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2205 + <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2206 + <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2031 2207 </select>
2032 2208 </div>
2033 2209 </div>
2034 2210 <hr>
@@ -2034,10 +2210,10 @@
2034 2210 <hr>
2035 2211 <div>
2036 2212 <div>
2037 2213 <label for='ays_poll_title_alignment_mobile'>
2038 - <?php echo __('On mobile', "poll-maker"); ?>
2039 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2214 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2215 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2040 2216 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2041 2217 </a>
2042 2218 </label>
2043 2219 </div>
@@ -2042,11 +2218,11 @@
2042 2218 </label>
2043 2219 </div>
2044 2220 <div>
2045 2221 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2046 - <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2047 - <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2048 - <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2222 + <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2223 + <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2224 + <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2049 2225 </select>
2050 2226 </div>
2051 2227 </div>
2052 2228 </div>
@@ -2051,14 +2227,36 @@
2051 2227 </div>
2052 2228 </div>
2053 2229 </div>
2054 2230 <hr>
2231 + <div class="form-group row">
2232 + <div class="col-sm-4">
2233 + <label for='ays_poll_title_text_transform'>
2234 + <?php echo esc_html__('Title text transform', "poll-maker"); ?>
2235 + <a class="ays_help"
2236 + data-toggle="tooltip"
2237 + data-placement="top"
2238 + title="<?php echo esc_html__("Specify the text transformation of the title.", "poll-maker"); ?>">
2239 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2240 + </a>
2241 + </label>
2242 + </div>
2243 + <div class="col-sm-8 ays_divider_left">
2244 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_text_transform" name="ays_poll_title_text_transform">
2245 + <option value="none" <?php echo ($poll_title_text_transform == "none") ? "selected" : "";?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2246 + <option value="capitalize" <?php echo ($poll_title_text_transform == "capitalize") ? "selected" : "";?>><?php echo esc_html__("Capitalize", "poll-maker"); ?></option>
2247 + <option value="uppercase" <?php echo ($poll_title_text_transform == "uppercase") ? "selected" : "";?>><?php echo esc_html__("Uppercase", "poll-maker"); ?></option>
2248 + <option value="lowercase" <?php echo ($poll_title_text_transform == "lowercase") ? "selected" : "";?>><?php echo esc_html__("Lowercase", "poll-maker"); ?></option>
2249 + </select>
2250 + </div>
2251 + </div>
2252 + <hr>
2055 2253 <!-- title text shadow start -->
2056 2254 <div class="form-group row">
2057 2255 <div class="col-sm-4">
2058 2256 <label for="ays_poll_enable_title_text_shadow">
2059 - <?php echo __('Title text shadow', "poll-maker")?>
2060 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add text shadow for the poll title.', "poll-maker")?>">
2257 + <?php echo esc_html__('Title text shadow', "poll-maker")?>
2258 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2061 2259 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2062 2260 </a>
2063 2261 </label>
2064 2262 </div>
@@ -2066,30 +2264,30 @@
2066 2264 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_enable_title_text_shadow" name="ays_poll_enable_title_text_shadow" <?php echo ($enable_poll_title_text_shadow) ? 'checked' : ''; ?>/>
2067 2265 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2068 2266 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px; <?php echo ($enable_poll_title_text_shadow) ? '' : 'display: none;' ?>">
2069 2267 <label for='ays_poll_title_text_shadow_color'>
2070 - <?php echo __('Color', "poll-maker"); ?>
2071 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify text shadow color.', "poll-maker")?>">
2268 + <?php echo esc_html__('Color', "poll-maker"); ?>
2269 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2072 2270 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2073 2271 </a>
2074 2272 </label>
2075 - <input type="text" class="ays-text-input" id='ays_poll_title_text_shadow_color' data-alpha="true" name='ays_poll_title_text_shadow_color' value="<?php echo $poll_title_text_shadow; ?>"/>
2273 + <input type="text" class="ays-text-input" id='ays_poll_title_text_shadow_color' data-alpha="true" name='ays_poll_title_text_shadow_color' value="<?php echo esc_attr($poll_title_text_shadow); ?>"/>
2076 2274 </div>
2077 2275 <!---->
2078 - <hr class="ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2079 - <div class="form-group row ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2276 + <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2277 + <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2080 2278 <div class="col-sm-12">
2081 2279 <div class="col-sm-3" style="display: inline-block;">
2082 2280 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_x_offset' name='ays_poll_title_text_shadow_x_offset' value="<?php echo $poll_title_text_shadow_x_offset; ?>" />
2083 - <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2281 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2084 2282 </div>
2085 2283 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2086 2284 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_y_offset' name='ays_poll_title_text_shadow_y_offset' value="<?php echo $poll_title_text_shadow_y_offset; ?>" />
2087 - <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2285 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2088 2286 </div>
2089 2287 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2090 2288 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_z_offset' name='ays_poll_title_text_shadow_z_offset' value="<?php echo $poll_title_text_shadow_z_offset; ?>" />
2091 - <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2289 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2092 2290 </div>
2093 2291 </div>
2094 2292 </div>
2095 2293 <!---->
@@ -2100,13 +2298,13 @@
2100 2298 <hr>
2101 2299 <div class="form-group row">
2102 2300 <div class="col-sm-4">
2103 2301 <label for='ays-poll-icon-size'>
2104 - <?= __('Icon size (px)', "poll-maker"); ?>
2302 + <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2105 2303 <a class="ays_help"
2106 2304 data-toggle="tooltip"
2107 2305 data-placement="top"
2108 - title="<?= __("Specify the size of the icons in rating and voting types of the poll in pixels. It should be 10 and more.", "poll-maker"); ?>">
2306 + title="<?php echo esc_html__("Specify the size of the icons in rating and voting types of the poll in pixels. It should be 10 and more.", "poll-maker"); ?>">
2109 2307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2110 2308 </a>
2111 2309 </label>
2112 2310 </div>
@@ -2112,9 +2310,9 @@
2112 2310 </div>
2113 2311 <div class="col-sm-8 ays_divider_left">
2114 2312 <input type="number" class="ays-text-input ays-text-input-short"
2115 2313 id='ays-poll-icon-size' name='ays_poll_icon_size'
2116 - value="<?= (isset($options['icon_size'])) ? $options['icon_size'] : '24'; ?>"/>
2314 + value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2117 2315 </div>
2118 2316 </div>
2119 2317 </div>
2120 2318 <hr>
@@ -2120,13 +2318,13 @@
2120 2318 <hr>
2121 2319 <div class="form-group row">
2122 2320 <div class="col-sm-4">
2123 2321 <label for='ays-poll-width'>
2124 - <?= __('Width (px)', "poll-maker"); ?>
2322 + <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2125 2323 <a class="ays_help"
2126 2324 data-toggle="tooltip"
2127 2325 data-placement="top"
2128 - title="<?= __("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2326 + title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2129 2327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2130 2328 </a>
2131 2329 </label>
2132 2330 </div>
@@ -2133,16 +2331,16 @@
2133 2331 <div class="col-sm-8 ays_divider_left">
2134 2332 <div>
2135 2333 <div>
2136 2334 <label for='ays-poll-width'>
2137 - <?php echo __('On desktop', "poll-maker"); ?>
2138 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for PC devices.', "poll-maker")?>">
2335 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2336 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2139 2337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2140 2338 </a>
2141 2339 </label>
2142 2340 </div>
2143 2341 <div>
2144 - <input type="number" step="1" min="0" class="ays-text-input ays-text-input-short" id='ays-poll-width' name='ays_poll_width' value="<?= $options['width'] ?>"/>
2342 + <input type="number" step="1" min="0" class="ays-text-input ays-text-input-short" id='ays-poll-width' name='ays_poll_width' value="<?php echo $options['width'] ?>"/>
2145 2343 </div>
2146 2344 </div>
2147 2345 <hr>
2148 2346 <div>
@@ -2147,18 +2345,18 @@
2147 2345 <hr>
2148 2346 <div>
2149 2347 <div>
2150 2348 <label for='ays_poll_width_for_mobile'>
2151 - <?php echo __('On mobile', "poll-maker"); ?>
2152 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for mobile devices.', "poll-maker")?>">
2349 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2350 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2153 2351 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2154 2352 </a>
2155 2353 </label>
2156 2354 </div>
2157 2355 <div>
2158 - <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_width_for_mobile' name='ays_poll_width_for_mobile' value="<?= $width_for_mobile ?>"/>
2356 + <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_width_for_mobile' name='ays_poll_width_for_mobile' value="<?php echo $width_for_mobile ?>"/>
2159 2357 <p class="ays_poll_small_hint_text_for_message_variables">
2160 - <span><?php echo __( "For 100% leave blank" , "poll-maker" ); ?></span>
2358 + <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2161 2359 </p>
2162 2360 </div>
2163 2361 </div>
2164 2362 </div>
@@ -2166,16 +2364,16 @@
2166 2364 <hr/>
2167 2365 <div class="form-group row">
2168 2366 <div class="col-sm-4">
2169 2367 <label for='ays_poll_min_height'>
2170 - <?php echo __('Min-height', "poll-maker"); ?>
2171 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2368 + <?php echo esc_html__('Min-height', "poll-maker"); ?>
2369 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2172 2370 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2173 2371 </a>
2174 2372 </label>
2175 2373 </div>
2176 2374 <div class="col-sm-8 ays_divider_left">
2177 - <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_min_height' name='ays_poll_min_height' value="<?php echo $poll_min_height; ?>"/>
2375 + <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_min_height' name='ays_poll_min_height' value="<?php echo esc_attr($poll_min_height); ?>"/>
2178 2376 </div>
2179 2377 </div>
2180 2378 <hr>
2181 2379 <div class="form-group row">
@@ -2180,10 +2378,10 @@
2180 2378 <hr>
2181 2379 <div class="form-group row">
2182 2380 <div class="col-sm-4">
2183 2381 <label for='ays_poll_mobile_max_width'>
2184 - <?php echo __('Poll max-width for mobile', "poll-maker"); ?>
2185 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo __('Poll container max-width for mobile in percentage. This option will work for the screens with less than 640 pixels width.', "poll-maker")?>">
2382 + <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2383 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__('Poll container max-width for mobile in percentage. This option will work for the screens with less than 640 pixels width.', "poll-maker")?>">
2186 2384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2187 2385 </a>
2188 2386 </label>
2189 2387 </div>
@@ -2189,10 +2387,10 @@
2189 2387 </div>
2190 2388 <div class="col-sm-8 ays_divider_left">
2191 2389 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2192 2390 name='ays_poll_mobile_max_width' style="display: inline-block;"
2193 - value="<?php echo $poll_mobile_max_width; ?>"/> %
2194 - <span class="ays_poll_small_hint_text"><?php echo __("For 100% leave blank", "poll-maker");?></span>
2391 + value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2392 + <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2195 2393 </div>
2196 2394 </div> <!-- Poll max-width for mobile -->
2197 2395 <hr>
2198 2396 </div>
@@ -2198,10 +2396,10 @@
2198 2396 </div>
2199 2397 </div>
2200 2398 <div class="ays-poll-accordion-options-main-container">
2201 2399 <div class="ays-poll-accordion-header">
2202 - <?php echo $poll_acordion_svg_html; ?>
2203 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Question styles', "poll-maker"); ?></p>
2400 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2401 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2204 2402 </div>
2205 2403 <hr class="ays-poll-bolder-hr"/>
2206 2404 <div class="ays-poll-accordion-body">
2207 2405 <div class="form-group row">
@@ -2206,10 +2404,10 @@
2206 2404 <div class="ays-poll-accordion-body">
2207 2405 <div class="form-group row">
2208 2406 <div class="col-sm-4">
2209 2407 <label for='ays_questions_font_size'>
2210 - <?php echo __('Question font size', "poll-maker"); ?> (px)
2211 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the font size of the questions( only for <p> tag ). It accepts only numerical values.', "poll-maker")?>">
2408 + <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2409 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the font size of the questions( only for <p> tag ). It accepts only numerical values.', "poll-maker")?>">
2212 2410 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2213 2411 </a>
2214 2412 </label>
2215 2413 </div>
@@ -2216,10 +2414,10 @@
2216 2414 <div class="col-sm-8 ays_divider_left">
2217 2415 <div>
2218 2416 <div>
2219 2417 <label for='ays_questions_font_size'>
2220 - <?php echo __('On desktop', "poll-maker"); ?>
2221 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>">
2418 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2419 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2222 2420 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2223 2421 </a>
2224 2422 </label>
2225 2423 </div>
@@ -2230,10 +2428,10 @@
2230 2428 <hr>
2231 2429 <div>
2232 2430 <div>
2233 2431 <label for='ays_poll_answers_font_size_mobile'>
2234 - <?php echo __('On mobile', "poll-maker"); ?>
2235 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
2432 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2433 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2236 2434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2237 2435 </a>
2238 2436 </label>
2239 2437 </div>
@@ -2245,11 +2443,11 @@
2245 2443 </div><!-- Question font size -->
2246 2444 <hr>
2247 2445 <div class="form-group row">
2248 2446 <div class="col-sm-4">
2249 - <label for='ays_poll_question_image_height'><?= __('Question image height', "poll-maker"); ?>
2447 + <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2250 2448 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2251 - title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2449 + title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2252 2450 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2253 2451 </a>
2254 2452 </label>
2255 2453 </div>
@@ -2256,17 +2454,17 @@
2256 2454 <div class="col-sm-8 ays_divider_left">
2257 2455 <input type="number"
2258 2456 class="ays-text-input ays-text-input-short"
2259 2457 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2260 - value="<?php echo $poll_question_image_height; ?>"/>
2458 + value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2261 2459 </div>
2262 2460 </div><!-- Question image height -->
2263 2461 <hr>
2264 2462 <div class="form-group row">
2265 2463 <div class="col-sm-4">
2266 - <label for='ays_poll_question_image_object_fit'><?= __('Question object fit', "poll-maker"); ?>
2464 + <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2267 2465 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2268 - title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2466 + title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2269 2467 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2270 2468 </a>
2271 2469 </label>
2272 2470 </div>
@@ -2271,13 +2469,13 @@
2271 2469 </label>
2272 2470 </div>
2273 2471 <div class="col-sm-8 ays_divider_left">
2274 2472 <select class="ays-text-input ays-text-input-short ays_poll_aysDropdown ays-poll-dropdown-select-width-250" id="ays_poll_question_image_object_fit" name="ays_poll_question_image_object_fit">
2275 - <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo __("Cover", "poll-maker"); ?></option>
2276 - <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo __("Fill", "poll-maker"); ?></option>
2277 - <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo __("Contain", "poll-maker"); ?></option>
2278 - <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo __("Scale-down", "poll-maker"); ?></option>
2279 - <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo __("None", "poll-maker"); ?></option>
2473 + <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2474 + <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2475 + <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2476 + <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2477 + <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2280 2478 </select>
2281 2479 </div>
2282 2480 </div><!-- Question image object fit -->
2283 2481 <hr>
@@ -2284,18 +2482,18 @@
2284 2482 </div>
2285 2483 </div>
2286 2484 <div class="ays-poll-accordion-options-main-container">
2287 2485 <div class="ays-poll-accordion-header">
2288 - <?php echo $poll_acordion_svg_html; ?>
2289 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Answer Styles', "poll-maker"); ?></p>
2486 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2487 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2290 2488 </div>
2291 2489 <hr class="ays-poll-bolder-hr"/>
2292 2490 <div class="ays-poll-accordion-body">
2293 2491 <div class="form-group row">
2294 2492 <div class="col-sm-4">
2295 - <label for='ays-poll-box-shadow-color'><?= __('Enable answer styles', "poll-maker"); ?>
2493 + <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2296 2494 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2297 - title="<?= __("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2495 + title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2298 2496 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2299 2497 </a>
2300 2498 </label>
2301 2499 </div>
@@ -2301,16 +2499,16 @@
2301 2499 </div>
2302 2500 <div class="col-sm-8 ays_divider_left">
2303 2501 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2304 2502 id="ays_poll_enable_answer_style"
2305 - name="ays_poll_enable_answer_style" <?= ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2503 + name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2306 2504 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2307 2505 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2308 - style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2506 + style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2309 2507 <label for="ays-poll-box-shadow-color">
2310 - <?= __('Answers Background Color', "poll-maker") ?>
2508 + <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2311 2509 <a class="ays_help" data-toggle="tooltip"
2312 - title="<?= __("Specify the background color of the answers' boxes.", "poll-maker") ?>">
2510 + title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2313 2511 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2314 2512 </a>
2315 2513 </label>
2316 2514 <input type="text" class="ays-text-input" data-alpha="true"
@@ -2315,18 +2513,32 @@
2315 2513 </label>
2316 2514 <input type="text" class="ays-text-input" data-alpha="true"
2317 2515 id='ays-poll-answer-bg-color'
2318 2516 name='ays_poll_answer_bg_color'
2319 - value="<?= isset($options['answer_bg_color']) && !empty($options['answer_bg_color']) ? $options['answer_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2517 + value="<?php echo esc_attr($answer_bg_color); ?>"/>
2320 2518 </div>
2321 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2519 + <div class="ays_toggle_target ays_divider_top ays_answer_style"
2520 + style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2521 + <label for="ays-poll-answer-hover-color">
2522 + <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2523 + <a class="ays_help" data-toggle="tooltip"
2524 + title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2525 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2526 + </a>
2527 + </label>
2528 + <input type="text" class="ays-text-input" data-alpha="true"
2529 + id='ays-poll-answer-hover-color'
2530 + name='ays_poll_answer_hover_color'
2531 + value="<?php echo esc_attr($answer_hover_color); ?>"/>
2532 + </div>
2533 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2322 2534 <div>
2323 2535 <label for='ays-poll-border-side'>
2324 - <?= __('Border side', "poll-maker"); ?>
2536 + <?php echo esc_html__('Border side', "poll-maker"); ?>
2325 2537 <a class="ays_help"
2326 2538 data-toggle="tooltip"
2327 2539 data-placement="top"
2328 - title="<?= __("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2540 + title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2329 2541 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2330 2542 </a>
2331 2543 </label>
2332 2544 </div>
@@ -2332,37 +2544,37 @@
2332 2544 </div>
2333 2545 <div id="ays-poll-border-side-box">
2334 2546 <select name="ays_poll_border_side" id="ays-poll-border-side"
2335 2547 class="ays-select ays-select-short ays_poll_aysDropdown">
2336 - <option value="all_sides" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2337 - <?= __("All sides", "poll-maker"); ?>
2548 + <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2549 + <?php echo esc_html__("All sides", "poll-maker"); ?>
2338 2550 </option>
2339 - <option value="none" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2340 - <?= __("None", "poll-maker"); ?>
2551 + <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2552 + <?php echo esc_html__("None", "poll-maker"); ?>
2341 2553 </option>
2342 - <option value="top" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2343 - <?= __("Top", "poll-maker"); ?>
2554 + <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2555 + <?php echo esc_html__("Top", "poll-maker"); ?>
2344 2556 </option>
2345 - <option value="bottom" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2346 - <?= __("Bottom", "poll-maker"); ?>
2557 + <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2558 + <?php echo esc_html__("Bottom", "poll-maker"); ?>
2347 2559 </option>
2348 - <option value="left" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2349 - <?= __("Left", "poll-maker"); ?>
2560 + <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2561 + <?php echo esc_html__("Left", "poll-maker"); ?>
2350 2562 </option>
2351 - <option value="right" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2352 - <?= __("Right", "poll-maker"); ?>
2563 + <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2564 + <?php echo esc_html__("Right", "poll-maker"); ?>
2353 2565 </option>
2354 2566 </select>
2355 2567 </div>
2356 2568 </div>
2357 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2569 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2358 2570 <div>
2359 2571 <label for='ays_answer_font_size'>
2360 - <?= __('Answer font size', "poll-maker"); ?>
2572 + <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2361 2573 <a class="ays_help"
2362 2574 data-toggle="tooltip"
2363 2575 data-placement="top"
2364 - title="<?= __("Choose your preferred size for the font of the answers. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2576 + title="<?php echo esc_html__("Choose your preferred size for the font of the answers. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2365 2577 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2366 2578 </a>
2367 2579 </label>
2368 2580 </div>
@@ -2369,16 +2581,16 @@
2369 2581 <div class="ays_answer_font_size_box">
2370 2582 <input type="number" class="ays-text-input ays-text-input-short ays-poll-answer-font-size-all" name="ays_answer_font_size" id="ays_answer_font_size" value="<?php echo $poll_answer_font_size;?>">
2371 2583 </div>
2372 2584 </div>
2373 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2585 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2374 2586 <div>
2375 2587 <label for='ays_poll_answer_font_size_mobile'>
2376 - <?= __('Answer font size for mobile', "poll-maker"); ?>
2588 + <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2377 2589 <a class="ays_help"
2378 2590 data-toggle="tooltip"
2379 2591 data-placement="top"
2380 - title="<?= __("Choose your preferred size for the font of the answers on mobile devies. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2592 + title="<?php echo esc_html__("Choose your preferred size for the font of the answers on mobile devies. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2381 2593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2382 2594 </a>
2383 2595 </label>
2384 2596 </div>
@@ -2385,13 +2597,13 @@
2385 2597 <div class="ays_answer_font_size_box">
2386 2598 <input type="number" class="ays-text-input ays-text-input-short ays-poll-answer-font-size-all" name="ays_poll_answer_font_size_mobile" id="ays_poll_answer_font_size_mobile" data-device="mobile" value="<?php echo $poll_answer_font_size_mobile;?>">
2387 2599 </div>
2388 2600 </div>
2389 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2601 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2390 2602 <div>
2391 2603 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2392 - <?php echo __('Answer image height (px)', "poll-maker")?>
2393 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2604 + <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2605 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2394 2606 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2395 2607 </a>
2396 2608 </label>
2397 2609 </div>
@@ -2398,13 +2610,13 @@
2398 2610 <div>
2399 2611 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_img_height' name='ays_poll_answer_img_height' value="<?php echo $poll_answer_image_height; ?>" />
2400 2612 </div>
2401 2613 </div> <!-- Answers image height -->
2402 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2614 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2403 2615 <div>
2404 2616 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2405 - <?php echo __('Answer image height for mobile (px)', "poll-maker")?>
2406 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images on the mobile devices.', "poll-maker")?>">
2617 + <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2618 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2407 2619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2408 2620 </a>
2409 2621 </label>
2410 2622 </div>
@@ -2411,13 +2623,13 @@
2411 2623 <div>
2412 2624 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_image_height_for_mobile' name='ays_poll_answer_image_height_for_mobile' value="<?php echo $poll_answer_image_height_for_mobile; ?>" />
2413 2625 </div>
2414 2626 </div> <!-- Answers image height for mobile-->
2415 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2627 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2416 2628 <div>
2417 2629 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2418 - <?php echo __('Answer image border radius (px)', "poll-maker")?>
2419 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Border radius of answers images.', "poll-maker")?>">
2630 + <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2631 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2420 2632 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2421 2633 </a>
2422 2634 </label>
2423 2635 </div>
@@ -2424,13 +2636,13 @@
2424 2636 <div>
2425 2637 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_image_border_radius' name='ays_poll_answer_image_border_radius' value="<?php echo $poll_answer_image_border_radius; ?>" />
2426 2638 </div>
2427 2639 </div> <!-- Answers image border radius -->
2428 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2640 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2429 2641 <div >
2430 - <label for="ays_poll_background_size">
2431 - <?php echo __('Answer image object fit', "poll-maker"); ?>
2432 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>">
2642 + <label for="ays_poll_image_background_size">
2643 + <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2644 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>">
2433 2645 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2434 2646 </a>
2435 2647 </label>
2436 2648 </div>
@@ -2436,43 +2648,43 @@
2436 2648 </div>
2437 2649 <div id="ays_poll_image_background_size_box">
2438 2650 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2439 2651 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2440 - <?php echo __('Cover', "poll-maker")?>
2652 + <?php echo esc_html__('Cover', "poll-maker")?>
2441 2653 </option>
2442 2654 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2443 - <?php echo __('Fill', "poll-maker")?>
2655 + <?php echo esc_html__('Fill', "poll-maker")?>
2444 2656 </option>
2445 2657 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2446 - <?php echo __('Contain', "poll-maker")?>
2658 + <?php echo esc_html__('Contain', "poll-maker")?>
2447 2659 </option>
2448 2660 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2449 - <?php echo __('Scale-down', "poll-maker")?>
2661 + <?php echo esc_html__('Scale-down', "poll-maker")?>
2450 2662 </option>
2451 2663 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2452 - <?php echo __('None', "poll-maker")?>
2664 + <?php echo esc_html__('None', "poll-maker")?>
2453 2665 </option>
2454 2666 </select>
2455 2667 </div>
2456 2668 </div> <!-- Answer image object fit -->
2457 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2669 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2458 2670 <div>
2459 2671 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2460 - <?php echo __('Answer padding (px)', "poll-maker")?>
2461 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Padding of answers.', "poll-maker")?>">
2672 + <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2673 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2462 2674 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2463 2675 </a>
2464 2676 </label>
2465 2677 </div>
2466 2678 <div>
2467 - <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answers_padding' name='ays_poll_answers_padding' value="<?php echo $poll_answer_padding; ?>"/>
2679 + <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answers_padding' name='ays_poll_answers_padding' value="<?php echo esc_attr($poll_answer_padding); ?>"/>
2468 2680 </div>
2469 2681 </div> <!-- Answers padding -->
2470 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2682 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2471 2683 <div >
2472 2684 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2473 - <?php echo __('Answer gap (px)', "poll-maker")?>
2474 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Gap between answers.', "poll-maker")?>">
2685 + <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2686 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2475 2687 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2476 2688 </a>
2477 2689 </label>
2478 2690 </div>
@@ -2479,19 +2691,19 @@
2479 2691 <div>
2480 2692 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answers_margin' name='ays_poll_answers_margin' value="<?php echo $poll_answer_margin; ?>" />
2481 2693 </div>
2482 2694 </div> <!-- Answers gap -->
2483 - <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2695 + <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2484 2696 <div>
2485 2697 <label for="ays_poll_answer_border_radius">
2486 - <?php echo __('Answer border radius', "poll-maker")?>
2487 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the radius of the answers container.', "poll-maker")?>">
2698 + <?php echo esc_html__('Answer border radius', "poll-maker")?>
2699 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2488 2700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2489 2701 </a>
2490 2702 </label>
2491 2703 </div>
2492 2704 <div>
2493 - <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" name="ays_poll_answer_border_radius" id="ays_poll_answer_border_radius" value="<?php echo $poll_answer_border_radius; ?>"/>
2705 + <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" name="ays_poll_answer_border_radius" id="ays_poll_answer_border_radius" value="<?php echo esc_attr($poll_answer_border_radius); ?>"/>
2494 2706 </div>
2495 2707 </div> <!-- Answers border radius -->
2496 2708 </div>
2497 2709 </div>
@@ -2498,10 +2710,10 @@
2498 2710 <hr>
2499 2711 <div class="form-group row">
2500 2712 <div class="col-sm-4">
2501 2713 <label for="ays_poll_show_answers_icon">
2502 - <?php echo __('Answer icon', "poll-maker"); ?>
2503 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2714 + <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2715 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2504 2716 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2505 2717 </a>
2506 2718 </label>
2507 2719 </div>
@@ -2510,14 +2722,14 @@
2510 2722 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2511 2723 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2512 2724 <div class="form-check form-check-inline">
2513 2725 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2514 - <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_radio" name="ays_poll_answer_icon" value="radio" <?= ($poll_answer_icon == 'radio') ? 'checked' : ''; ?> />
2726 + <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_radio" name="ays_poll_answer_icon" value="radio" <?php echo ($poll_answer_icon == 'radio') ? 'checked' : ''; ?> />
2515 2727 </label>
2516 2728 </div>
2517 2729 <div class="form-check form-check-inline">
2518 2730 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2519 - <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_checkbox" name="ays_poll_answer_icon" value="checkbox" <?= ($poll_answer_icon == 'checkbox') ? 'checked' : ''; ?> />
2731 + <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_checkbox" name="ays_poll_answer_icon" value="checkbox" <?php echo ($poll_answer_icon == 'checkbox') ? 'checked' : ''; ?> />
2520 2732 </label>
2521 2733 </div>
2522 2734 </div>
2523 2735 </div>
@@ -2525,10 +2737,10 @@
2525 2737 <hr>
2526 2738 <div class="form-group row">
2527 2739 <div class="col-sm-4">
2528 2740 <label for="ays_answers_view" class="ays_enable_answer_style">
2529 - <?php echo __('Answer view', "poll-maker")?>
2530 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the view of the answers: List or Grid. Select the column number if you have chosen Grid view.', "poll-maker")?>">
2741 + <?php echo esc_html__('Answer view', "poll-maker")?>
2742 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the view of the answers: List or Grid. Select the column number if you have chosen Grid view.', "poll-maker")?>">
2531 2743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2532 2744 </a>
2533 2745 </label>
2534 2746 </div>
@@ -2536,12 +2748,12 @@
2536 2748 <div class="form-group row">
2537 2749 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2538 2750 <select class="ays-text-input ays-text-input-short ays-select-short ays_enable_answer_field ays_poll_aysDropdown" id="ays_answers_view" name="ays_poll_choose_answer_type">
2539 2751 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2540 - <?php echo __('List', "poll-maker")?>
2752 + <?php echo esc_html__('List', "poll-maker")?>
2541 2753 </option>
2542 2754 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2543 - <?php echo __('Grid', "poll-maker")?>
2755 + <?php echo esc_html__('Grid', "poll-maker")?>
2544 2756 </option>
2545 2757 </select>
2546 2758 </div>
2547 2759 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
@@ -2559,11 +2771,11 @@
2559 2771 </div>
2560 2772 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2561 2773 <div class="col-sm-8" style="display:flex;align-items:center;">
2562 2774 <label for="ays_answers_grid_column_mobile">
2563 - <?php echo __('Mobile Single Column View',"poll-maker")?>
2775 + <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2564 2776 </label>
2565 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable this toggle to display poll answers in a single column on mobile devices for the Grid View.',"poll-maker")?>">
2777 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable this toggle to display poll answers in a single column on mobile devices for the Grid View.',"poll-maker")?>">
2566 2778 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2567 2779 </a>
2568 2780 </div>
2569 2781 <div class="col-sm-1 ays_divider_left">
@@ -2577,10 +2789,10 @@
2577 2789 <hr>
2578 2790 <div class="form-group row">
2579 2791 <div class="col-sm-4">
2580 2792 <label for="ays_poll_answers_box_shadow_enable">
2581 - <?php echo __('Answer box shadow', "poll-maker")?>
2582 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Allow answer container box shadow', "poll-maker")?>">
2793 + <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2794 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2583 2795 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2584 2796 </a>
2585 2797 </label>
2586 2798 </div>
@@ -2588,10 +2800,10 @@
2588 2800 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_answers_box_shadow_enable" name="ays_poll_answers_box_shadow_enable" value="on" <?php echo ($poll_answer_enable_box_shadow) ? "checked" : ""; ?>>
2589 2801 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2590 2802 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px; <?php echo ($poll_answer_enable_box_shadow) ? "" : "display: none;"; ?>">
2591 2803 <label for="ays_poll_answers_box_shadow_color">
2592 - <?php echo __('Answer shadow color', "poll-maker")?>
2593 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The shadow color of answers container', "poll-maker")?>">
2804 + <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2805 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2594 2806 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2595 2807 </a>
2596 2808 </label>
2597 2809 <input type="text" class="ays-text-input" data-alpha="true" data-default-color="#000000" value="<?php echo $poll_answer_box_shadow_color; ?>" id="ays_poll_answers_box_shadow_color" name="ays_poll_answers_box_shadow_color">
@@ -2596,22 +2808,22 @@
2596 2808 </label>
2597 2809 <input type="text" class="ays-text-input" data-alpha="true" data-default-color="#000000" value="<?php echo $poll_answer_box_shadow_color; ?>" id="ays_poll_answers_box_shadow_color" name="ays_poll_answers_box_shadow_color">
2598 2810 </div>
2599 2811 <!---->
2600 - <hr class="ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none'; ?>">
2601 - <div class="form-group row ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none' ?>">
2812 + <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2813 + <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2602 2814 <div class="col-sm-12">
2603 2815 <div class="col-sm-3" style="display: inline-block;">
2604 2816 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_x_offset' name='ays_poll_answer_box_shadow_x_offset' value="<?php echo $poll_answer_box_shadow_x_offset; ?>" />
2605 - <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2817 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2606 2818 </div>
2607 2819 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2608 2820 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_y_offset' name='ays_poll_answer_box_shadow_y_offset' value="<?php echo $poll_answer_box_shadow_y_offset; ?>" />
2609 - <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2821 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2610 2822 </div>
2611 2823 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2612 2824 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_z_offset' name='ays_poll_answer_box_shadow_z_offset' value="<?php echo $poll_answer_box_shadow_z_offset; ?>" />
2613 - <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2825 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2614 2826 </div>
2615 2827 </div>
2616 2828 </div>
2617 2829 <!---->
@@ -2620,12 +2832,12 @@
2620 2832 <hr>
2621 2833 <div class="form-group row">
2622 2834 <div class="col-sm-4">
2623 2835 <label for="ays_disable_answer_hover">
2624 - <?= __('Disable answers hover', "poll-maker"); ?>
2836 + <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2625 2837 <a class="ays_help" data-toggle="tooltip"
2626 2838 data-placement="top"
2627 - title="<?= __("Disable the hover effect for answers.", "poll-maker"); ?>">
2839 + title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2628 2840 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2629 2841 </a>
2630 2842 </label>
2631 2843 </div>
@@ -2647,10 +2859,10 @@
2647 2859 <div class="" style="width: 100%;">
2648 2860 <div class="form-group row">
2649 2861 <div class="col-sm-5">
2650 2862 <label for="ays_answers_border">
2651 - <?php echo __('Answer border', "poll-maker")?>
2652 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Allow answer border', "poll-maker")?>">
2863 + <?php echo esc_html__('Answer border', "poll-maker")?>
2864 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2653 2865 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2654 2866 </a>
2655 2867 </label>
2656 2868 </div>
@@ -2659,31 +2871,31 @@
2659 2871 checked/>
2660 2872 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2661 2873 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2662 2874 <label for="ays_answers_border_width">
2663 - <?php echo __('Border width', "poll-maker")?> (px)
2664 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The width of answers border', "poll-maker")?>">
2875 + <?php echo esc_html__('Border width', "poll-maker")?> (px)
2876 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The width of answers border', "poll-maker")?>">
2665 2877 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2666 2878 </a>
2667 2879 </label>
2668 - <input type="number" class="ays-text-input" id='ays_answers_border_width' name='ays_answers_border_width'
2880 + <input type="number" class="ays-text-input"
2669 2881 value="" min="0"/>
2670 2882 </div>
2671 2883 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2672 2884 <label for="ays_answers_border_style">
2673 - <?php echo __('Border style', "poll-maker")?>
2674 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The style of answers border', "poll-maker")?>">
2885 + <?php echo esc_html__('Border style', "poll-maker")?>
2886 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The style of answers border', "poll-maker")?>">
2675 2887 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2676 2888 </a>
2677 2889 </label>
2678 - <select id="ays_answers_border_style" name="ays_answers_border_style" class="ays-text-input ays-select-short">
2890 + <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2679 2891 <option>Solid</option>
2680 2892 </select>
2681 2893 </div>
2682 2894 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2683 2895 <label for="ays_answers_border_color">
2684 - <?php echo __('Border color', "poll-maker")?>
2685 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The color of the answers border', "poll-maker")?>">
2896 + <?php echo esc_html__('Border color', "poll-maker")?>
2897 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The color of the answers border', "poll-maker")?>">
2686 2898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2687 2899 </a>
2688 2900 </label>
2689 2901 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
@@ -2693,10 +2905,10 @@
2693 2905 <hr/>
2694 2906 <div class="form-group row ays_grid_show">
2695 2907 <div class="col-sm-5">
2696 2908 <label for="ays_poll_show_answers_caption">
2697 - <?php echo __('Show answers caption', "poll-maker")?>
2698 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Show answers caption near the answer image. This option will be work only when answer has image.', "poll-maker"); ?>">
2909 + <?php echo esc_html__('Show answers caption', "poll-maker")?>
2910 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Show answers caption near the answer image. This option will be work only when answer has image.', "poll-maker"); ?>">
2699 2911 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2700 2912 </a>
2701 2913 </label>
2702 2914 </div>
@@ -2708,10 +2920,10 @@
2708 2920 <hr/>
2709 2921 <div class="form-group row">
2710 2922 <div class="col-sm-5">
2711 2923 <label for="ays_ans_img_caption_style">
2712 - <?php echo __('Answers image caption style', "poll-maker")?>
2713 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2924 + <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2925 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2714 2926 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2715 2927 </a>
2716 2928 </label>
2717 2929 </div>
@@ -2716,9 +2928,9 @@
2716 2928 </label>
2717 2929 </div>
2718 2930 <div class="col-sm-7 ays_divider_left">
2719 2931 <select class="ays-text-input ays-text-input-short">
2720 - <option><?php echo __('Outside', "poll-maker"); ?></option>
2932 + <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2721 2933 </select>
2722 2934 </div>
2723 2935 </div> <!-- Answers image caption style -->
2724 2936 <hr/>
@@ -2724,10 +2936,10 @@
2724 2936 <hr/>
2725 2937 <div class="form-group row">
2726 2938 <div class="col-sm-5">
2727 2939 <label for="ays_ans_img_caption_position">
2728 - <?php echo __('Answers image caption position', "poll-maker")?>
2729 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2940 + <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2941 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2730 2942 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2731 2943 </a>
2732 2944 </label>
2733 2945 </div>
@@ -2732,9 +2944,9 @@
2732 2944 </label>
2733 2945 </div>
2734 2946 <div class="col-sm-7 ays_divider_left">
2735 2947 <select class="ays-text-input ays-text-input-short">
2736 - <option value="top"><?php echo __('Top', "poll-maker"); ?></option>
2948 + <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2737 2949 </select>
2738 2950 </div>
2739 2951 </div> <!-- Answers image caption position -->
2740 2952 <hr>
@@ -2742,12 +2954,12 @@
2742 2954 </div>
2743 2955 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2744 2956 <div class="ays-poll-new-upgrade-button-box">
2745 2957 <div>
2746 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2747 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2958 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2959 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2748 2960 </div>
2749 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
2961 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2750 2962 </div>
2751 2963 </a>
2752 2964 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2753 2965 <div class="ays-poll-center-big-main-button-box">
@@ -2752,11 +2964,11 @@
2752 2964 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2753 2965 <div class="ays-poll-center-big-main-button-box">
2754 2966 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2755 2967 <div class="ays-poll-center-new-big-upgrade-button">
2756 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2757 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2758 - <?php echo __("Upgrade", "poll-maker"); ?>
2968 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2969 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2970 + <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2759 2971 </div>
2760 2972 </a>
2761 2973 </div>
2762 2974 </div>
@@ -2766,10 +2978,10 @@
2766 2978 </div>
2767 2979 </div>
2768 2980 <div class="ays-poll-accordion-options-main-container">
2769 2981 <div class="ays-poll-accordion-header">
2770 - <?php echo $poll_acordion_svg_html; ?>
2771 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Border styles', "poll-maker"); ?></p>
2982 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2983 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2772 2984 </div>
2773 2985 <hr class="ays-poll-bolder-hr"/>
2774 2986 <div class="ays-poll-accordion-body">
2775 2987 <div class="form-group row">
@@ -2774,13 +2986,13 @@
2774 2986 <div class="ays-poll-accordion-body">
2775 2987 <div class="form-group row">
2776 2988 <div class="col-sm-4">
2777 2989 <label for='ays-poll-border-style'>
2778 - <?= __('Border style', "poll-maker"); ?>
2990 + <?php echo esc_html__('Border style', "poll-maker"); ?>
2779 2991 <a class="ays_help"
2780 2992 data-toggle="tooltip"
2781 2993 data-placement="top"
2782 - title="<?= __("Choose your preferred style of the border.", "poll-maker"); ?>">
2994 + title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2783 2995 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2784 2996 </a>
2785 2997 </label>
2786 2998 </div>
@@ -2786,34 +2998,34 @@
2786 2998 </div>
2787 2999 <div class="col-sm-8 ays_divider_left">
2788 3000 <select name="ays_poll_border_style" id="ays-poll-border-style"
2789 3001 class="ays-select ays-select-short ays_poll_aysDropdown">
2790 - <option value="solid" <?= $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2791 - <?= __("Solid", "poll-maker"); ?>
3002 + <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
3003 + <?php echo esc_html__("Solid", "poll-maker"); ?>
2792 3004 </option>
2793 - <option value="dashed" <?= $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2794 - <?= __("Dashed", "poll-maker"); ?>
3005 + <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
3006 + <?php echo esc_html__("Dashed", "poll-maker"); ?>
2795 3007 </option>
2796 - <option value="dotted" <?= $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2797 - <?= __("Dotted", "poll-maker"); ?>
3008 + <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
3009 + <?php echo esc_html__("Dotted", "poll-maker"); ?>
2798 3010 </option>
2799 - <option value="double" <?= $options['border_style'] == "double" ? 'selected' : ''; ?>>
2800 - <?= __("Double", "poll-maker"); ?>
3011 + <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
3012 + <?php echo esc_html__("Double", "poll-maker"); ?>
2801 3013 </option>
2802 - <option value="groove" <?= $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2803 - <?= __("Groove", "poll-maker"); ?>
3014 + <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
3015 + <?php echo esc_html__("Groove", "poll-maker"); ?>
2804 3016 </option>
2805 - <option value="ridge" <?= $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2806 - <?= __("Ridge", "poll-maker"); ?>
3017 + <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
3018 + <?php echo esc_html__("Ridge", "poll-maker"); ?>
2807 3019 </option>
2808 - <option value="inset" <?= $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2809 - <?= __("Inset", "poll-maker"); ?>
3020 + <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
3021 + <?php echo esc_html__("Inset", "poll-maker"); ?>
2810 3022 </option>
2811 - <option value="outset" <?= $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2812 - <?= __("Outset", "poll-maker"); ?>
3023 + <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
3024 + <?php echo esc_html__("Outset", "poll-maker"); ?>
2813 3025 </option>
2814 - <option value="none" <?= $options['border_style'] == "none" ? 'selected' : ''; ?>>
2815 - <?= __("None", "poll-maker"); ?>
3026 + <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
3027 + <?php echo esc_html__("None", "poll-maker"); ?>
2816 3028 </option>
2817 3029 </select>
2818 3030 </div>
2819 3031 </div>
@@ -2819,11 +3031,11 @@
2819 3031 </div>
2820 3032 <hr>
2821 3033 <div class="form-group row">
2822 3034 <div class="col-sm-4">
2823 - <label for='ays-poll-border-radius'><?= __('Border radius', "poll-maker"); ?>
3035 + <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
2824 3036 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2825 - title="<?= __("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
3037 + title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2826 3038 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2827 3039 </a>
2828 3040 </label>
2829 3041 </div>
@@ -2830,17 +3042,17 @@
2830 3042 <div class="col-sm-8 ays_divider_left">
2831 3043 <input type="number" min="0"
2832 3044 class="ays-text-input ays-text-input-short"
2833 3045 id='ays-poll-border-radius' name='ays_poll_border_radius'
2834 - value="<?= (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
3046 + value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2835 3047 </div>
2836 3048 </div>
2837 3049 <hr>
2838 3050 <div class="form-group row">
2839 3051 <div class="col-sm-4">
2840 - <label for='ays-poll-border-width'><?= __('Border width', "poll-maker"); ?>
3052 + <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
2841 3053 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2842 - title="<?= __("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
3054 + title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2843 3055 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2844 3056 </a>
2845 3057 </label>
2846 3058 </div>
@@ -2847,17 +3059,17 @@
2847 3059 <div class="col-sm-8 ays_divider_left">
2848 3060 <input type="number" min="0"
2849 3061 class="ays-text-input ays-text-input-short"
2850 3062 id='ays-poll-border-width' name='ays_poll_border_width'
2851 - value="<?= isset($options['border_width']) && $options['border_width'] != '' ? $options['border_width'] : 2; ?>"/>
3063 + value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
2852 3064 </div>
2853 3065 </div>
2854 3066 <hr>
2855 3067 <div class="form-group row">
2856 3068 <div class="col-sm-4">
2857 - <label for='ays-poll-border-color'><?= __('Border color', "poll-maker"); ?>
3069 + <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
2858 3070 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2859 - title="<?= __("Specify the color of the border.", "poll-maker"); ?>">
3071 + title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
2860 3072 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2861 3073 </a>
2862 3074 </label>
2863 3075 </div>
@@ -2866,9 +3078,9 @@
2866 3078 class="ays-text-input"
2867 3079 data-alpha="true"
2868 3080 id='ays-poll-border-color'
2869 3081 name='ays_poll_border_color'
2870 - value="<?= $default_border ?>"/>
3082 + value="<?php echo esc_attr($default_border); ?>"/>
2871 3083 </div>
2872 3084 </div>
2873 3085 <hr>
2874 3086 <!-- Buttons Styles Start -->
@@ -2875,10 +3087,10 @@
2875 3087 </div>
2876 3088 </div>
2877 3089 <div class="ays-poll-accordion-options-main-container">
2878 3090 <div class="ays-poll-accordion-header">
2879 - <?php echo $poll_acordion_svg_html; ?>
2880 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Button Styles', "poll-maker"); ?></p>
3091 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3092 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
2881 3093 </div>
2882 3094 <hr class="ays-poll-bolder-hr"/>
2883 3095 <div class="ays-poll-accordion-body">
2884 3096 <div class="form-group row">
@@ -2883,10 +3095,10 @@
2883 3095 <div class="ays-poll-accordion-body">
2884 3096 <div class="form-group row">
2885 3097 <div class="col-sm-4">
2886 3098 <label for="ays_poll_buttons_size">
2887 - <?php echo __('Buttons Size', "poll-maker"); ?>
2888 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
3099 + <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
3100 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2889 3101 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2890 3102 </a>
2891 3103 </label>
2892 3104 </div>
@@ -2891,11 +3103,11 @@
2891 3103 </label>
2892 3104 </div>
2893 3105 <div class="col-sm-8 ays_divider_left">
2894 3106 <select class="ays-text-input ays-text-input-short ays_poll_aysDropdown ays-poll-dropdown-select-width-250" id="ays_poll_buttons_size" name="ays_poll_buttons_size">
2895 - <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo __('Small', "poll-maker"); ?></option>
2896 - <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo __('Medium', "poll-maker"); ?></option>
2897 - <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo __('Large', "poll-maker"); ?></option>
3107 + <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
3108 + <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
3109 + <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
2898 3110 </select>
2899 3111 </div>
2900 3112 </div> <!-- Buttons Size -->
2901 3113 <hr>
@@ -2901,13 +3113,13 @@
2901 3113 <hr>
2902 3114 <div class="form-group row">
2903 3115 <div class="col-sm-4">
2904 3116 <label for='ays-poll-button-text-color'>
2905 - <?= __('Buttons Text Color', "poll-maker"); ?>
3117 + <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
2906 3118 <a class="ays_help"
2907 3119 data-toggle="tooltip"
2908 3120 data-placement="top"
2909 - title="<?= __("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3121 + title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
2910 3122 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2911 3123 </a>
2912 3124 </label>
2913 3125 </div>
@@ -2913,9 +3125,9 @@
2913 3125 </div>
2914 3126 <div class="col-sm-8 ays_divider_left">
2915 3127 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
2916 3128 name='ays_poll_button_text_color'
2917 - value="<?php echo $poll_button_text_color; ?>"/>
3129 + value="<?php echo esc_attr($poll_button_text_color); ?>"/>
2918 3130 </div>
2919 3131 </div><!-- Buttons text color -->
2920 3132 <hr>
2921 3133 <div class="form-group row">
@@ -2920,13 +3132,13 @@
2920 3132 <hr>
2921 3133 <div class="form-group row">
2922 3134 <div class="col-sm-4">
2923 3135 <label for='ays-poll-button-bg-color'>
2924 - <?= __('Buttons Background Color', "poll-maker"); ?>
3136 + <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
2925 3137 <a class="ays_help"
2926 3138 data-toggle="tooltip"
2927 3139 data-placement="top"
2928 - title="<?= __("Specify the background color of the poll button.", "poll-maker"); ?>">
3140 + title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
2929 3141 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2930 3142 </a>
2931 3143 </label>
2932 3144 </div>
@@ -2932,9 +3144,9 @@
2932 3144 </div>
2933 3145 <div class="col-sm-8 ays_divider_left">
2934 3146 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
2935 3147 name='ays_poll_button_bg_color'
2936 - value="<?php echo $poll_button_bg_color; ?>"/>
3148 + value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
2937 3149 </div>
2938 3150 </div><!-- Buttons background color -->
2939 3151 <hr>
2940 3152 <div class="form-group row">
@@ -2939,10 +3151,10 @@
2939 3151 <hr>
2940 3152 <div class="form-group row">
2941 3153 <div class="col-sm-4">
2942 3154 <label for='ays_poll_buttons_font_size'>
2943 - <?php echo __('Buttons font size', "poll-maker"); ?> (px)
2944 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll in pixels.', "poll-maker"); ?>">
3155 + <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3156 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the size of the button(s) inside the poll in pixels.', "poll-maker"); ?>">
2945 3157 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2946 3158 </a>
2947 3159 </label>
2948 3160 </div>
@@ -2953,10 +3165,10 @@
2953 3165 <hr>
2954 3166 <div class="form-group row">
2955 3167 <div class="col-sm-4">
2956 3168 <label for='ays_poll_buttons_mobile_font_size'>
2957 - <?php echo __('Buttons mobile font size', "poll-maker"); ?> (px)
2958 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll in pixels for mobile devices.', "poll-maker"); ?>">
3169 + <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3170 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the size of the button(s) inside the poll in pixels for mobile devices.', "poll-maker"); ?>">
2959 3171 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2960 3172 </a>
2961 3173 </label>
2962 3174 </div>
@@ -2967,10 +3179,10 @@
2967 3179 <hr>
2968 3180 <div class="form-group row">
2969 3181 <div class="col-sm-4">
2970 3182 <label for="ays_poll_buttons_left_right_padding">
2971 - <?php echo __('Buttons padding (px)', "poll-maker"); ?>
2972 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the distance between the text and the border of the button in pixels․', "poll-maker"); ?>">
3183 + <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3184 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the distance between the text and the border of the button in pixels․', "poll-maker"); ?>">
2973 3185 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2974 3186 </a>
2975 3187 </label>
2976 3188 </div>
@@ -2976,13 +3188,13 @@
2976 3188 </div>
2977 3189 <div class="col-sm-8 ays_divider_left">
2978 3190 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
2979 3191 <input type="number" class="ays-text-input ays_buttons_padding" id='ays_poll_buttons_left_right_padding' name='ays_poll_buttons_left_right_padding' value="<?php echo $poll_buttons_left_right_padding; ?>" style="width: 100px;" />
2980 - <span class="ays_poll_small_hint_text"><?php echo __('Left / Right', "poll-maker"); ?></span>
3192 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
2981 3193 </div>
2982 3194 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
2983 3195 <input type="number" class="ays-text-input ays_buttons_padding" id='ays_poll_buttons_top_bottom_padding' name='ays_poll_buttons_top_bottom_padding' value="<?php echo $poll_buttons_top_bottom_padding; ?>" style="width: 100px;" />
2984 - <span class="ays_poll_small_hint_text"><?php echo __('Top / Bottom', "poll-maker"); ?></span>
3196 + <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
2985 3197 </div>
2986 3198 </div>
2987 3199 </div> <!-- Buttons padding -->
2988 3200 <hr>
@@ -2988,10 +3200,10 @@
2988 3200 <hr>
2989 3201 <div class="form-group row">
2990 3202 <div class="col-sm-4">
2991 3203 <label for="ays_poll_buttons_border_radius">
2992 - <?php echo __('Buttons border radius', "poll-maker"); ?> (px)
2993 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the radius of the corners of the button. Allows adding rounded corners to the button.', "poll-maker"); ?>">
3204 + <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3205 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the radius of the corners of the button. Allows adding rounded corners to the button.', "poll-maker"); ?>">
2994 3206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2995 3207 </a>
2996 3208 </label>
2997 3209 </div>
@@ -3002,25 +3214,52 @@
3002 3214 <hr>
3003 3215 <div class="form-group row">
3004 3216 <div class="col-sm-4">
3005 3217 <label for='ays_poll_buttons_width'>
3006 - <?php echo __('Buttons width', "poll-maker"); ?> (px)
3007 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the button width in pixels. For an initial width, leave the field blank.', "poll-maker"); ?>">
3218 + <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3219 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the button width in pixels. For an initial width, leave the field blank.', "poll-maker"); ?>">
3008 3220 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3009 3221 </a>
3010 3222 </label>
3011 3223 </div>
3012 3224 <div class="col-sm-8 ays_divider_left">
3013 - <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_buttons_width'name='ays_poll_buttons_width' value="<?php echo $poll_buttons_width; ?>"/>
3014 - <span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3015 - </div><!-- Buttons width -->
3016 - </div> <!-- Buttons Styles End -->
3225 + <div>
3226 + <div>
3227 + <label for="ays_poll_buttons_width">
3228 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
3229 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3230 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3231 + </a>
3232 + </label>
3233 + </div>
3234 + <div>
3235 + <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_width" name="ays_poll_buttons_width" value="<?php echo $poll_buttons_width; ?>"/>
3236 + <span style="display:block;" class="ays_poll_small_hint_text"><?php echo esc_html__('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3237 + </div>
3238 + </div>
3239 + <hr>
3240 + <div>
3241 + <div>
3242 + <label for="ays_poll_buttons_mobile_width">
3243 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
3244 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3245 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3246 + </a>
3247 + </label>
3248 + </div>
3249 + <div>
3250 + <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_mobile_width" name="ays_poll_buttons_mobile_width" value="<?php echo $poll_buttons_mobile_width; ?>"/>
3251 + <span style="display:block;" class="ays_poll_small_hint_text"><?php echo esc_html__('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3252 + </div>
3253 + </div>
3254 + </div>
3255 + </div>
3017 3256 <hr/>
3018 3257 <div class="form-group row">
3019 3258 <div class="col-sm-4">
3020 3259 <label for="ays_poll_custom_class">
3021 - <?php echo __('Custom class for poll container', "poll-maker")?>
3022 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Use your custom HTML class for adding your custom styles to the poll container.', "poll-maker")?>">
3260 + <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3261 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Use your custom HTML class for adding your custom styles to the poll container.', "poll-maker")?>">
3023 3262 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3024 3263 </a>
3025 3264 </label>
3026 3265 </div>
@@ -3030,12 +3269,9 @@
3030 3269 </div>
3031 3270 </div>
3032 3271 </div>
3033 3272 </div>
3034 - <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3035 - <!-- <style id='apm-custom-css'>
3036 - <?=$poll['custom_css']?>
3037 - </style> -->
3273 + <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3038 3274 <?php
3039 3275
3040 3276 $content = "
3041 3277 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
@@ -3167,9 +3403,9 @@
3167 3403 $content .= "</div>";
3168 3404
3169 3405 $content .='</div>
3170 3406 </div>';
3171 - print $content;
3407 + print wp_kses_post($content);
3172 3408 ?>
3173 3409 </div>
3174 3410 </div>
3175 3411 <hr/>
@@ -3175,17 +3411,17 @@
3175 3411 <hr/>
3176 3412 <div class="form-group row">
3177 3413 <div class="col-sm-2">
3178 3414 <label for="ays_custom_css">
3179 - <?= __("Custom CSS", "poll-maker"); ?>
3415 + <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3180 3416 </label>
3181 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("In this field, you can write your own CSS code. For example: p{color:red !important}", "poll-maker"); ?>">
3417 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("In this field, you can write your own CSS code. For example: p{color:red !important}", "poll-maker"); ?>">
3182 3418 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3183 3419 </a>
3184 3420 <br>
3185 3421 </div>
3186 3422 <div class="col-sm-10 ays_divider_left">
3187 - <textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?= (isset($poll['custom_css'])) ? $poll['custom_css'] : ''; ?></textarea>
3423 + <textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?php echo (isset($poll['custom_css'])) ? wp_kses_post($poll['custom_css']) : ''; ?></textarea>
3188 3424 </div>
3189 3425 </div>
3190 3426 <hr/>
3191 3427 <div class="form-group row">
@@ -3190,11 +3426,11 @@
3190 3426 <hr/>
3191 3427 <div class="form-group row">
3192 3428 <div class="col-sm-2">
3193 3429 <label for="ays_poll_reset_to_default">
3194 - <?php echo __('Reset styles', "poll-maker") ?>
3430 + <?php echo esc_html__('Reset styles', "poll-maker") ?>
3195 3431 <a class="ays_help" data-toggle="tooltip"
3196 - title="<?php echo __('Reset styles to default values', "poll-maker") ?>">
3432 + title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3197 3433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3198 3434 </a>
3199 3435 </label>
3200 3436 </div>
@@ -3199,20 +3435,50 @@
3199 3435 </label>
3200 3436 </div>
3201 3437 <div class="col-sm-10 ays_divider_left">
3202 3438 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3203 - id="ays_poll_reset_to_default"><?= __("Reset", "poll-maker") ?>
3439 + id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3204 3440 </button>
3205 3441 </div>
3206 3442 </div>
3207 3443 </div>
3208 3444 <hr>
3445 + <div class="only_pro" style="position: relative; display: inline-block">
3446 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3447 + <div class="pro-features-popup-conteiner">
3448 + <div class="pro-features-popup-title">
3449 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3450 + </div>
3451 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3452 + <p>
3453 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
3454 + </p>
3455 + <p>
3456 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
3457 + </p>
3458 + </div>
3459 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
3460 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
3461 + </div>
3462 + </div>
3463 + </div>
3464 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3465 + <span class="ays_save_as_default_content_for_mobile">
3466 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3467 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3468 + </a>
3469 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
3470 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3471 + </a>
3472 + </span>
3473 + </div>
3474 + </div>
3209 3475 </div>
3210 - <div id="tab3" class="ays-poll-tab-content <?= $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3476 + <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3211 3477 <div class="ays-poll-accordion-options-main-container">
3212 3478 <div class="ays-poll-accordion-header">
3213 - <?php echo $poll_acordion_svg_html; ?>
3214 - <p class="ays-subtitle"><?= __('Feature options', "poll-maker"); ?> </p>
3479 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3480 + <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3215 3481 </div>
3216 3482 <hr class="ays-poll-bolder-hr"/>
3217 3483 <div class="ays-poll-accordion-body">
3218 3484 <div class="form-group row">
@@ -3217,11 +3483,11 @@
3217 3483 <div class="ays-poll-accordion-body">
3218 3484 <div class="form-group row">
3219 3485 <div class="col-sm-3">
3220 3486 <label>
3221 - <?= __('Status', "poll-maker"); ?>
3487 + <?php echo esc_html__('Status', "poll-maker"); ?>
3222 3488 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3223 - title="<?= __('Choose whether the poll is active or not. If you choose an unpublished option, the poll won’t be shown anywhere on your website. (You do not need to remove shortcodes).', "poll-maker") ?>">
3489 + title="<?php echo esc_html__('Choose whether the poll is active or not. If you choose an unpublished option, the poll won’t be shown anywhere on your website. (You do not need to remove shortcodes).', "poll-maker") ?>">
3224 3490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3225 3491 </a>
3226 3492 </label>
3227 3493 </div>
@@ -3228,17 +3494,17 @@
3228 3494 <div class="col-sm-9">
3229 3495 <div class="d-flex">
3230 3496 <div class="form-check form-check-inline">
3231 3497 <input type="radio" id="ays-publish" name="ays_publish"
3232 - value="1" <?= ($published == 1) ? 'checked' : ''; ?> />
3498 + value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3233 3499 <label class="form-check-label"
3234 - for="ays-publish"> <?= __('Published', "poll-maker"); ?> </label>
3500 + for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3235 3501 </div>
3236 3502 <div class="form-check form-check-inline">
3237 3503 <input type="radio" id="ays-unpublish" name="ays_publish"
3238 - value="0" <?= ($published == 0) ? 'checked' : ''; ?> />
3504 + value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3239 3505 <label class="form-check-label"
3240 - for="ays-unpublish"> <?= __('Unpublished', "poll-maker"); ?> </label>
3506 + for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3241 3507 </div>
3242 3508 </div>
3243 3509 </div>
3244 3510 </div>
@@ -3245,12 +3511,12 @@
3245 3511 <hr>
3246 3512 <div class='form-group row'>
3247 3513 <div class="col-sm-3">
3248 3514 <label for='ays-poll-category'>
3249 - <?= __('Categories', "poll-maker"); ?>
3515 + <?php echo esc_html__('Categories', "poll-maker"); ?>
3250 3516 <a class="ays_help" data-toggle="tooltip"
3251 3517 data-placement="top"
3252 - title="<?= __("Choose the category your poll belongs to. For creating a category, go to the `Categories` page (find it on the Poll Maker left navbar).", "poll-maker"); ?>">
3518 + title="<?php echo esc_html__("Choose the category your poll belongs to. For creating a category, go to the `Categories` page (find it on the Poll Maker left navbar).", "poll-maker"); ?>">
3253 3519 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3254 3520 </a>
3255 3521 </label>
3256 3522 </div>
@@ -3256,20 +3522,32 @@
3256 3522 </div>
3257 3523 <div class="col-sm-9">
3258 3524 <?php if (!empty($categories)): ?>
3259 3525 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3260 - data-placeholder='<?= __("Select category", "poll-maker") ?>'>
3526 + data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3261 3527 <?php
3262 3528 foreach ( $categories as $cat ) {
3263 3529 ?>
3264 - <option value="<?= $cat['id']; ?>" <?= in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3265 - <?= $cat['title']; ?>
3530 + <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3531 + <?php echo esc_html($cat['title']); ?>
3266 3532 </option>
3267 3533 <?php }
3268 3534 ?>
3269 3535 </select>
3536 + <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3537 + <span>
3538 + <?php
3539 + echo (sprintf(
3540 + /* translators: %s: opening and closing <a> HTML code */
3541 + wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3542 + '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3543 + '</a>'
3544 + ));
3545 + ?>
3546 + </span>
3547 + </div>
3270 3548 <?php else: ?>
3271 - <a href="?page=poll-maker-ays-cats&action=add"><?= __("Create category", "poll-maker") ?></a>
3549 + <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3272 3550 <?php endif; ?>
3273 3551 </div>
3274 3552 </div>
3275 3553 <hr>
@@ -3276,10 +3554,10 @@
3276 3554 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3277 3555 <div class="form-group row ays_toggle_parent">
3278 3556 <div class="col-sm-3">
3279 3557 <label for="ays_add_post_for_poll">
3280 - <?php echo __('Create post for poll', "poll-maker")?>
3281 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('A new WordPress post will be created automatically and will include the shortcode of this poll. This function will be executed only once. You can find this post on Posts page, which will have the same title as the poll. The image of the poll will be the featured image of the post.', "poll-maker")?>">
3558 + <?php echo esc_html__('Create post for poll', "poll-maker")?>
3559 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('A new WordPress post will be created automatically and will include the shortcode of this poll. This function will be executed only once. You can find this post on Posts page, which will have the same title as the poll. The image of the poll will be the featured image of the post.', "poll-maker")?>">
3282 3560 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3283 3561 </a>
3284 3562 </label>
3285 3563 </div>
@@ -3289,10 +3567,10 @@
3289 3567 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3290 3568 <div class="form-group row">
3291 3569 <div class="col-sm-4">
3292 3570 <label for="ays_add_postcat_for_poll">
3293 - <?php echo __('Choose Post Categories', "poll-maker")?>
3294 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose the category of the new post. For creating a category, go to the Categories page of the Posts.', "poll-maker")?>">
3571 + <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3572 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose the category of the new post. For creating a category, go to the Categories page of the Posts.', "poll-maker")?>">
3295 3573 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3296 3574 </a>
3297 3575 </label>
3298 3576 </div>
@@ -3304,9 +3582,9 @@
3304 3582 multiple>
3305 3583 <?php
3306 3584
3307 3585 foreach ($cat_list as $cat) {
3308 - echo "<option value='" . $cat->cat_ID . "' >" . htmlentities($cat->name) . "</option>";
3586 + echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3309 3587 }
3310 3588 ?>
3311 3589 </select>
3312 3590 </div>
@@ -3318,10 +3596,10 @@
3318 3596 <?php else: ?>
3319 3597 <div class="form-group row">
3320 3598 <div class="col-sm-3">
3321 3599 <label for="ays_add_post_for_poll">
3322 - <?php echo __('WP Post', "poll-maker")?>
3323 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Via these two links you can see the connected post in front end and make changes in the dashboard.', "poll-maker")?>">
3600 + <?php echo esc_html__('WP Post', "poll-maker")?>
3601 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Via these two links you can see the connected post in front end and make changes in the dashboard.', "poll-maker")?>">
3324 3602 <i class="ays_fa ays_fa_info_circle"></i>
3325 3603 </a>
3326 3604 </label>
3327 3605 </div>
@@ -3327,16 +3605,16 @@
3327 3605 </div>
3328 3606 <div class="col-sm-8" style="margin-left: 15px;">
3329 3607 <div class="row">
3330 3608 <div style="margin-right: 10px;">
3331 - <a class="button" href="<?php echo $ays_poll_view_post_url; ?>" target="_blank"><?php echo __( "View Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3609 + <a class="button action" href="<?php echo esc_url($ays_poll_view_post_url); ?>" target="_blank"><?php echo esc_html__( "View Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3332 3610 </div>
3333 3611 <div>
3334 - <a class="button" href="<?php echo $ays_poll_edit_post_url; ?>" target="_blank"><?php echo __( "Edit Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3612 + <a class="button action" href="<?php echo esc_url($ays_poll_edit_post_url); ?>" target="_blank"><?php echo esc_html__( "Edit Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3335 3613 </div>
3336 3614 </div>
3337 3615 </div>
3338 - <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo $post_id; ?>">
3616 + <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3339 3617 </div>
3340 3618 <hr>
3341 3619 <?php endif; ?>
3342 3620 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
@@ -3345,25 +3623,25 @@
3345 3623 </div>
3346 3624 <div class="form-group row">
3347 3625 <div class="col-sm-3">
3348 3626 <label for="ays_poll_enable_copy_protection">
3349 - <?php echo __('Enable copy protection',"poll-maker"); ?>
3350 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>">
3627 + <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3628 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>">
3351 3629 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3352 3630 </a>
3353 3631 </label>
3354 3632 </div>
3355 3633 <div class="col-sm-9">
3356 - <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_copy_protection" />
3634 + <input type="checkbox" class="ays-enable-timer1" />
3357 3635 </div>
3358 3636 </div>
3359 3637 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3360 3638 <div class="ays-poll-new-upgrade-button-box">
3361 3639 <div>
3362 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3363 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3640 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3641 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3364 3642 </div>
3365 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3643 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3366 3644 </div>
3367 3645 </a>
3368 3646 </div>
3369 3647 </div>
@@ -3374,16 +3652,16 @@
3374 3652 </div>
3375 3653 <div class="form-group row">
3376 3654 <div class="col-sm-3">
3377 3655 <label for="ays_poll_question_text_to_speech">
3378 - <?php echo __('Enable text to speech',"poll-maker")?>
3379 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable this option to convert question text into spoken words, providing an audio representation of the question for improved accessibility and convenience.',"poll-maker")?>">
3656 + <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3657 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable this option to convert question text into spoken words, providing an audio representation of the question for improved accessibility and convenience.',"poll-maker")?>">
3380 3658 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3381 3659 </a>
3382 3660 </label>
3383 3661 </div>
3384 3662 <div class="col-sm-9">
3385 - <input type="checkbox" class="ays-enable-timer1" id="ays_poll_question_text_to_speech"
3663 + <input type="checkbox" class="ays-enable-timer1"
3386 3664 name="ays_poll_question_text_to_speech"
3387 3665 value="on"/>
3388 3666 </div>
3389 3667 </div>
@@ -3389,12 +3667,12 @@
3389 3667 </div>
3390 3668 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3391 3669 <div class="ays-poll-new-upgrade-button-box">
3392 3670 <div>
3393 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3394 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3671 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3672 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3395 3673 </div>
3396 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3674 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3397 3675 </div>
3398 3676 </a>
3399 3677 </div>
3400 3678 </div> <!-- Questions text to speech -->
@@ -3401,10 +3679,10 @@
3401 3679 <hr>
3402 3680 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3403 3681 <div class="col-sm-3">
3404 3682 <label for='ays_poll_allow_multivote'>
3405 - <?= __('Allow multivote', "poll-maker"); ?>
3406 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to choose more than one answer. It will work with choosing type.", "poll-maker"); ?>">
3683 + <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3684 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Allow users to choose more than one answer. It will work with choosing type.", "poll-maker"); ?>">
3407 3685 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3408 3686 </a>
3409 3687 </label>
3410 3688 </div>
@@ -3410,17 +3688,17 @@
3410 3688 </div>
3411 3689 <div class="col-sm-1">
3412 3690 <input type="checkbox" name="ays_poll_allow_multivote" id="ays_poll_allow_multivote" class="ays-enable-timer1 ays_toggle_checkbox" value="on" <?php echo $poll_allow_multivote; ?>>
3413 3691 </div>
3414 - <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_enable_multivote_answer ? '' : 'display: none'; ?>">
3692 + <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3415 3693 <div class="row">
3416 3694 <div class="col-sm-3">
3417 3695 <label for='ays_poll_multivote_min_count'>
3418 - <?= __('Min', "poll-maker"); ?>
3696 + <?php echo esc_html__('Min', "poll-maker"); ?>
3419 3697 <a class="ays_help"
3420 3698 data-toggle="tooltip"
3421 3699 data-placement="top"
3422 - title="<?= __("Indicate the minimum count of answers.", "poll-maker"); ?>">
3700 + title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3423 3701 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3424 3702 </a>
3425 3703 </label>
3426 3704 </div>
@@ -3431,13 +3709,13 @@
3431 3709 <hr>
3432 3710 <div class="row">
3433 3711 <div class="col-sm-3">
3434 3712 <label for='ays_poll_multivote_count'>
3435 - <?= __('Max', "poll-maker"); ?>
3713 + <?php echo esc_html__('Max', "poll-maker"); ?>
3436 3714 <a class="ays_help"
3437 3715 data-toggle="tooltip"
3438 3716 data-placement="top"
3439 - title="<?= __("Indicate the maximum count of answers.", "poll-maker"); ?>">
3717 + title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3440 3718 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3441 3719 </a>
3442 3720 </label>
3443 3721 </div>
@@ -3447,15 +3725,48 @@
3447 3725 </div>
3448 3726 </div>
3449 3727 </div>
3450 3728 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3729 + <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3730 + <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3731 + <div class="pro_features" style="justify-content:flex-end;">
3732 + </div>
3733 + <div class="form-group row">
3734 + <div class="col-sm-3">
3735 + <label for="ays-poll-allow-edit">
3736 + <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3737 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3738 + data-placement="top"
3739 + title="<?php echo esc_html__("By activating this option, the previous answers will be displayed and the user will be able to edit them. Note: This option will be available only for the logged-in users.", "poll-maker"); ?>">
3740 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3741 + </a>
3742 + </label>
3743 + </div>
3744 + <div class="col-sm-9">
3745 + <input type="checkbox" class="ays-enable-timer1"
3746 + name="ays_edit_previous_submission"
3747 + value="on"/>
3748 + </div>
3749 + </div>
3750 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3751 + <div class="ays-poll-new-upgrade-button-box">
3752 + <div>
3753 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3754 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3755 + </div>
3756 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3757 + </div>
3758 + </a>
3759 + </div>
3760 + </div>
3761 + <hr>
3451 3762 <div class="form-group row">
3452 3763 <div class="col-sm-3">
3453 3764 <label for='show-title'>
3454 - <?= __('Show Title', "poll-maker"); ?>
3765 + <?php echo esc_html__('Show Title', "poll-maker"); ?>
3455 3766 <a class="ays_help" data-toggle="tooltip"
3456 3767 data-placement="top"
3457 - title="<?= __("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3768 + title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3458 3769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3459 3770 </a>
3460 3771 </label>
3461 3772 </div>
@@ -3460,9 +3771,9 @@
3460 3771 </label>
3461 3772 </div>
3462 3773 <div class="col-sm-9">
3463 3774 <input type="checkbox" name="show_title" id="show-title"
3464 - value="show" <?= $poll['show_title'] ? 'checked' : ''; ?>>
3775 + value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3465 3776 </div>
3466 3777 </div>
3467 3778 <hr>
3468 3779 <div class="ays_poll_option_for_choosing_type ays_poll_option_for_text_type form-group row" style="display: <?php echo ($poll['type'] == 'choosing' || $poll['type'] == 'text') ? 'flex' : 'none' ?>" >
@@ -3467,11 +3778,11 @@
3467 3778 <hr>
3468 3779 <div class="ays_poll_option_for_choosing_type ays_poll_option_for_text_type form-group row" style="display: <?php echo ($poll['type'] == 'choosing' || $poll['type'] == 'text') ? 'flex' : 'none' ?>" >
3469 3780 <div class="col-sm-3">
3470 3781 <label>
3471 - <?= __('Alignment', "poll-maker"); ?>
3782 + <?php echo esc_html__('Alignment', "poll-maker"); ?>
3472 3783 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3473 - title="<?= __('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3784 + title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3474 3785 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3475 3786 </a>
3476 3787 </label>
3477 3788 </div>
@@ -3478,23 +3789,23 @@
3478 3789 <div class="col-sm-9">
3479 3790 <div class="d-flex">
3480 3791 <div class="form-check form-check-inline">
3481 3792 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3482 - value="ltr" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3793 + value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3483 3794 <label class="form-check-label"
3484 - for="apm-dir-ltr"> <?= __('Left', "poll-maker"); ?> </label>
3795 + for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3485 3796 </div>
3486 3797 <div class="form-check form-check-inline">
3487 3798 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3488 - value="center" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3799 + value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3489 3800 <label class="form-check-label"
3490 - for="apm-dir-center"> <?= __('Center', "poll-maker"); ?> </label>
3801 + for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3491 3802 </div>
3492 3803 <div class="form-check form-check-inline">
3493 3804 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3494 - value="rtl" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3805 + value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3495 3806 <label class="form-check-label"
3496 - for="apm-dir-rtl"> <?= __('Right', "poll-maker"); ?> </label>
3807 + for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3497 3808 </div>
3498 3809 </div>
3499 3810 </div>
3500 3811 </div>
@@ -3503,17 +3814,17 @@
3503 3814 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3504 3815 <div class="pro_features pro_features_popup">
3505 3816 <div class="pro-features-popup-conteiner">
3506 3817 <div class="pro-features-popup-title">
3507 - <?php echo __("Allow Anonymity", "poll-maker"); ?>
3818 + <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3508 3819 </div>
3509 3820 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3510 3821 <p>
3511 - <?php echo __("Increase the poll response rates by allowing anonymity in your polls. Let your respondents vote in your polls without revealing their identity. This will allow you to get more accurate poll results as the participants will be more confident to express their honest opinions.", "poll-maker"); ?>
3822 + <?php echo esc_html__("Increase the poll response rates by allowing anonymity in your polls. Let your respondents vote in your polls without revealing their identity. This will allow you to get more accurate poll results as the participants will be more confident to express their honest opinions.", "poll-maker"); ?>
3512 3823 </p>
3513 3824 </div>
3514 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-allow-anonymity">
3515 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
3825 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-allow-anonymity-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
3826 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
3516 3827 </div>
3517 3828 </div>
3518 3829 </div>
3519 3830 <div class="pro_features" style="justify-content:flex-end;">
@@ -3520,10 +3831,10 @@
3520 3831 </div>
3521 3832 <div class="form-group row">
3522 3833 <div class="col-sm-3">
3523 3834 <label for='ays-poll-allow-anonymity'>
3524 - <?= __('Allow anonymity', "poll-maker"); ?>
3525 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("It allows participants to respond to your polls without ever revealing their identities, even if they are registered on your website. After enabling the option, the WP User and User IP will not be stored in the database.", "poll-maker"); ?>">
3835 + <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3836 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("It allows participants to respond to your polls without ever revealing their identities, even if they are registered on your website. After enabling the option, the WP User and User IP will not be stored in the database.", "poll-maker"); ?>">
3526 3837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3527 3838 </a>
3528 3839 </label>
3529 3840 </div>
@@ -3534,20 +3845,20 @@
3534 3845 </div>
3535 3846 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3536 3847 <div class="ays-poll-new-upgrade-button-box">
3537 3848 <div>
3538 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3539 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3849 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3850 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3540 3851 </div>
3541 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3852 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3542 3853 </div>
3543 3854 </a>
3544 3855 <div class="ays-poll-new-watch-video-button-box">
3545 3856 <div>
3546 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
3547 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
3857 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3858 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
3548 3859 </div>
3549 - <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
3860 + <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3550 3861 </div>
3551 3862 </div>
3552 3863 </div>
3553 3864 <hr>
@@ -3553,12 +3864,12 @@
3553 3864 <hr>
3554 3865 <div class="form-group row">
3555 3866 <div class="col-sm-3">
3556 3867 <label for='ays_poll_change_creation_date'>
3557 - <?= __('Change current poll creation date', "poll-maker"); ?>
3868 + <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3558 3869 <a class="ays_help" data-toggle="tooltip"
3559 3870 data-placement="top"
3560 - title="<?= __("Choose your preferred creation date.", "poll-maker"); ?>">
3871 + title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3561 3872 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3562 3873 </a>
3563 3874 </label>
3564 3875 </div>
@@ -3575,10 +3886,10 @@
3575 3886 <hr>
3576 3887 <div class="form-group row">
3577 3888 <div class="col-sm-3">
3578 3889 <label for="ays_poll_create_author">
3579 - <?php echo __('Change the author of the current poll', "poll-maker"); ?>
3580 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('You can change the author who created the current poll to your preferred one. You need to write the User ID here. Please note, that in case you write an ID, by which there are no users found, the changes will not be applied and the previous author will remain the same.', "poll-maker"); ?>">
3890 + <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3891 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('You can change the author who created the current poll to your preferred one. You need to write the User ID here. Please note, that in case you write an ID, by which there are no users found, the changes will not be applied and the previous author will remain the same.', "poll-maker"); ?>">
3581 3892 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3582 3893 </a>
3583 3894 </label>
3584 3895 </div>
@@ -3583,16 +3894,16 @@
3583 3894 </label>
3584 3895 </div>
3585 3896 <div class="col-sm-9">
3586 3897 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3587 - <option value=""><?php echo __('Select User', "poll-maker")?></option>
3898 + <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3588 3899 <?php
3589 3900 $poll_user_id = ( isset($get_current_poll_author_data->ID) && $get_current_poll_author_data->ID != '' ) ? absint( sanitize_text_field($get_current_poll_author_data->ID) ) : 0;
3590 3901 $poll_user_display_name = ( isset($get_current_poll_author_data->display_name) && $get_current_poll_author_data->display_name != '' ) ? stripslashes( esc_html($get_current_poll_author_data->display_name) ) : '';
3591 3902 $selected = '';
3592 3903 ?>
3593 - <option value="<?php echo $poll_user_id;?>" selected>
3594 - <?php echo $poll_user_display_name; ?>
3904 + <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3905 + <?php echo esc_html($poll_user_display_name); ?>
3595 3906 </option>
3596 3907 </select>
3597 3908 </div>
3598 3909 </div> <!-- Change the author of the current poll -->
@@ -3600,10 +3911,10 @@
3600 3911 <!-- Poll Main URL Start -->
3601 3912 <div class="form-group row">
3602 3913 <div class="col-sm-3">
3603 3914 <label for="ays_poll_main_url">
3604 - <?php echo __('Poll main URL',$this->plugin_name)?>
3605 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write the URL link where your poll is located (in Front-end). To open your poll right from the polls page, please fill in this field and navigate to the general tab to see the \'View\' button', "poll-maker");
3915 + <?php echo esc_html__('Poll main URL', "poll-maker")?>
3916 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write the URL link where your poll is located (in Front-end). To open your poll right from the polls page, please fill in this field and navigate to the general tab to see the \'View\' button', "poll-maker");
3606 3917 ?>">
3607 3918 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3608 3919 </a>
3609 3920 </label>
@@ -3608,9 +3919,9 @@
3608 3919 </a>
3609 3920 </label>
3610 3921 </div>
3611 3922 <div class="col-sm-9">
3612 - <input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo $poll_main_url; ?>">
3923 + <input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo esc_url($poll_main_url); ?>">
3613 3924 </div>
3614 3925 </div>
3615 3926 <!-- Poll Main URL End -->
3616 3927 <hr>
@@ -3616,12 +3927,12 @@
3616 3927 <hr>
3617 3928 <div class="form-group row">
3618 3929 <div class="col-sm-3">
3619 3930 <label for='show-poll-create-dates'>
3620 - <?= __('Show creation date', "poll-maker"); ?>
3931 + <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3621 3932 <a class="ays_help" data-toggle="tooltip"
3622 3933 data-placement="top"
3623 - title="<?= __("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3934 + title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3624 3935 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3625 3936 </a>
3626 3937 </label>
3627 3938 </div>
@@ -3626,9 +3937,9 @@
3626 3937 </label>
3627 3938 </div>
3628 3939 <div class="col-sm-9">
3629 3940 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3630 - value="1" <?= $show_create_date ? 'checked' : '' ?> >
3941 + value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3631 3942 </div>
3632 3943 </div>
3633 3944 <hr>
3634 3945 <div class="form-group row">
@@ -3633,12 +3944,12 @@
3633 3944 <hr>
3634 3945 <div class="form-group row">
3635 3946 <div class="col-sm-3">
3636 3947 <label for='show-poll-author'>
3637 - <?= __('Show author', "poll-maker"); ?>
3948 + <?php echo esc_html__('Show author', "poll-maker"); ?>
3638 3949 <a class="ays_help" data-toggle="tooltip"
3639 3950 data-placement="top"
3640 - title="<?= __("Enable to show the author inside the poll.", "poll-maker"); ?>">
3951 + title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3641 3952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3642 3953 </a>
3643 3954 </label>
3644 3955 </div>
@@ -3643,9 +3954,9 @@
3643 3954 </label>
3644 3955 </div>
3645 3956 <div class="col-sm-9">
3646 3957 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3647 - value="1" <?= $show_author ? 'checked' : '' ?> >
3958 + value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3648 3959 </div>
3649 3960 </div>
3650 3961 <hr>
3651 3962 <div class="form-group row">
@@ -3650,11 +3961,11 @@
3650 3961 <hr>
3651 3962 <div class="form-group row">
3652 3963 <div class="col-sm-3">
3653 3964 <label for="schedule_the_poll">
3654 - <?= __('Schedule', "poll-maker"); ?>
3965 + <?php echo esc_html__('Schedule', "poll-maker"); ?>
3655 3966 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3656 - title="<?= __('Specify the period of time when the poll will be active. Choose the start and the end date and write the pre-start and expiration messages.', "poll-maker") ?>">
3967 + title="<?php echo esc_html__('Specify the period of time when the poll will be active. Choose the start and the end date and write the pre-start and expiration messages.', "poll-maker") ?>">
3657 3968 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3658 3969 </a>
3659 3970 </label>
3660 3971 </div>
@@ -3661,9 +3972,9 @@
3661 3972 <div class="col-sm-1">
3662 3973 <input type="checkbox"
3663 3974 id="schedule_the_poll"
3664 3975 class="active_date_check"
3665 - name="active_date_check" <?= (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3976 + name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3666 3977 </div>
3667 3978 <div class="col-sm-8">
3668 3979 <div class="row">
3669 3980 <div class="col-sm-12 active_date ays_divider_left"
@@ -3670,9 +3981,9 @@
3670 3981 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3671 3982 <!-- -1- -->
3672 3983 <div class="form-group row">
3673 3984 <div class="col-sm-3">
3674 - <label class="form-check-label" for="ays-active"> <?php echo __('Start date:', "poll-maker"); ?> </label>
3985 + <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3675 3986 </div>
3676 3987 <div class="col-sm-9">
3677 3988 <div class="input-group mb-3">
3678 3989 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
@@ -3687,9 +3998,9 @@
3687 3998 </div>
3688 3999 <!-- -2- -->
3689 4000 <div class="form-group row">
3690 4001 <div class="col-sm-3">
3691 - <label class="form-check-label" for="ays-deactive"> <?php echo __('End date:', "poll-maker"); ?> </label>
4002 + <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
3692 4003 </div>
3693 4004 <div class="col-sm-9">
3694 4005 <div class="input-group mb-3">
3695 4006 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
@@ -3706,12 +4017,12 @@
3706 4017 <hr>
3707 4018 <div class="form-group row">
3708 4019 <div class="col-sm-3">
3709 4020 <label for='ays_poll_show_timer'>
3710 - <?= __('Show timer', "poll-maker"); ?>
4021 + <?php echo esc_html__('Show timer', "poll-maker"); ?>
3711 4022 <a class="ays_help" data-toggle="tooltip"
3712 4023 data-placement="top"
3713 - title="<?= __("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
4024 + title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3714 4025 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3715 4026 </a>
3716 4027 </label>
3717 4028 </div>
@@ -3716,9 +4027,9 @@
3716 4027 </label>
3717 4028 </div>
3718 4029 <div class="col-sm-1">
3719 4030 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3720 - value="1" <?= $schedule_show_timer ? 'checked' : '' ?> >
4031 + value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
3721 4032 </div>
3722 4033 <div class="col-sm-8">
3723 4034 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3724 4035 <div class="d-flex">
@@ -3723,17 +4034,17 @@
3723 4034 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3724 4035 <div class="d-flex">
3725 4036 <div class="form-check form-check-inline">
3726 4037 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3727 - value="countdown" <?= $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
4038 + value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3728 4039 <label class="form-check-label"
3729 - for="show_time_countdown"> <?= __('Show countdown', "poll-maker"); ?> </label>
4040 + for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
3730 4041 </div>
3731 4042 <div class="form-check form-check-inline">
3732 4043 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3733 - value="enddate" <?= $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
4044 + value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3734 4045 <label class="form-check-label"
3735 - for="show_time_enddate"> <?= __('Show end date', "poll-maker"); ?> </label>
4046 + for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
3736 4047 </div>
3737 4048 </div>
3738 4049 <hr>
3739 4050 <div class='form-group row'>
@@ -3738,18 +4049,18 @@
3738 4049 <hr>
3739 4050 <div class='form-group row'>
3740 4051 <div class='col-sm-5'>
3741 4052 <label class="form-check-label" for="show_bottom_timer">
3742 - <?= __(' Show timer at the bottom', "poll-maker"); ?>
4053 + <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
3743 4054 <a class="ays_help" data-toggle="tooltip"
3744 4055 data-placement="top"
3745 - title="<?= __("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>">
4056 + title="<?php echo esc_html__("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>">
3746 4057 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3747 4058 </a>
3748 4059 </label>
3749 4060 </div>
3750 4061 <div class='col-sm-7'>
3751 - <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?= $show_bottom_timer == true ? 'checked' : ''; ?> >
4062 + <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
3752 4063 </div>
3753 4064 </div>
3754 4065 </div>
3755 4066 </div>
@@ -3757,9 +4068,9 @@
3757 4068 <hr>
3758 4069 <div class="form-group row">
3759 4070 <div class="col-sm-3">
3760 4071 <label class="form-check-label"
3761 - for="active_date_message"><?= __("Pre start message:", "poll-maker") ?></label>
4072 + for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
3762 4073 </div>
3763 4074 <div class="col-sm-9">
3764 4075 <div class="editor">
3765 4076 <?php
@@ -3780,9 +4091,9 @@
3780 4091 <!-- -3- -->
3781 4092 <div class="form-group row">
3782 4093 <div class="col-sm-3">
3783 4094 <label class="form-check-label"
3784 - for="active_date_message"><?= __("Expiration message:", "poll-maker") ?></label>
4095 + for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
3785 4096 </div>
3786 4097 <div class="col-sm-9">
3787 4098 <div class="editor">
3788 4099 <?php
@@ -3802,12 +4113,12 @@
3802 4113 <hr>
3803 4114 <div class="form-group row">
3804 4115 <div class="col-sm-3">
3805 4116 <label for='show_result_btn_schedule'>
3806 - <?= __('Show result button', "poll-maker"); ?>
4117 + <?php echo esc_html__('Show result button', "poll-maker"); ?>
3807 4118 <a class="ays_help" data-toggle="tooltip"
3808 4119 data-placement="top"
3809 - title="<?= __("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4120 + title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
3810 4121 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3811 4122 </a>
3812 4123 </label>
3813 4124 </div>
@@ -3812,9 +4123,9 @@
3812 4123 </label>
3813 4124 </div>
3814 4125 <div class="col-sm-1">
3815 4126 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
3816 - value="1" <?= $showresbtnschedule ? 'checked' : '' ?> >
4127 + value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
3817 4128 </div>
3818 4129 <div class="col-sm-8">
3819 4130 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
3820 4131 <div class="form-check form-check-inline">
@@ -3820,9 +4131,9 @@
3820 4131 <div class="form-check form-check-inline">
3821 4132 <label class="form-check-label">
3822 4133 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
3823 4134 <span>
3824 - <?= __('With See Results button', "poll-maker"); ?>
4135 + <?php echo esc_html__('With See Results button', "poll-maker"); ?>
3825 4136 </span>
3826 4137 </label>
3827 4138 </div>
3828 4139 <div class="form-check form-check-inline">
@@ -3828,9 +4139,9 @@
3828 4139 <div class="form-check form-check-inline">
3829 4140 <label class="form-check-label">
3830 4141 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
3831 4142 <span>
3832 - <?= __('Without See Results button', "poll-maker"); ?>
4143 + <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
3833 4144 </span>
3834 4145 </label>
3835 4146 </div>
3836 4147 </div>
@@ -3839,12 +4150,12 @@
3839 4150 <hr>
3840 4151 <div class="form-group row">
3841 4152 <div class="col-sm-3">
3842 4153 <label for='ays_show_poll_container'>
3843 - <?= __("Don't show poll", "poll-maker"); ?>
4154 + <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
3844 4155 <a class="ays_help" data-toggle="tooltip"
3845 4156 data-placement="top"
3846 - title="<?= __("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>">
4157 + title="<?php echo esc_html__("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>">
3847 4158 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3848 4159 </a>
3849 4160 </label>
3850 4161 </div>
@@ -3849,9 +4160,9 @@
3849 4160 </label>
3850 4161 </div>
3851 4162 <div class="col-sm-9">
3852 4163 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
3853 - value="on" <?php echo $poll_check_exp_cont; ?> >
4164 + value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
3854 4165 </div>
3855 4166 </div>
3856 4167 </div>
3857 4168 </div>
@@ -3860,34 +4171,34 @@
3860 4171 <hr>
3861 4172 <div class="form-group row ays_toggle_parent">
3862 4173 <div class="col-sm-3">
3863 4174 <label for='ays-poll-allow-not-vote'>
3864 - <?= __('Allow not to vote', "poll-maker"); ?>
4175 + <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
3865 4176 <a class="ays_help"
3866 4177 data-toggle="tooltip"
3867 4178 data-placement="top"
3868 - title="<?= __("Allow the user to directly see the results without participating in the vote. If the option is checked, it is impossible to hide the results.", "poll-maker"); ?>">
4179 + title="<?php echo esc_html__("Allow the user to directly see the results without participating in the vote. If the option is checked, it is impossible to hide the results.", "poll-maker"); ?>">
3869 4180 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3870 4181 </a></label>
3871 4182 </div>
3872 4183 <div class="col-sm-1">
3873 - <input type="checkbox" name="ays-poll-allow-not-vote" id="ays-poll-allow-not-vote" class="ays_toggle_checkbox" value="allow" <?= isset($options['allow_not_vote']) && $options['allow_not_vote'] ? 'checked' : ''; ?>>
4184 + <input type="checkbox" name="ays-poll-allow-not-vote" id="ays-poll-allow-not-vote" class="ays_toggle_checkbox" value="allow" <?php echo isset($options['allow_not_vote']) && $options['allow_not_vote'] ? 'checked' : ''; ?>>
3874 4185 </div>
3875 4186 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
3876 4187 <div class="row">
3877 4188 <div class="col-sm-3 ays_divider_left">
3878 4189 <label for="ays-poll-btn-text">
3879 - <?= __("Results button text", "poll-maker"); ?>
4190 + <?php echo esc_html__("Results button text", "poll-maker"); ?>
3880 4191 <a class="ays_help"
3881 4192 data-toggle="tooltip"
3882 4193 data-placement="top"
3883 - title="<?= __("Write the text of the button, which shows results.", "poll-maker"); ?>">
4194 + title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
3884 4195 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3885 4196 </a>
3886 4197 </label>
3887 4198 </div>
3888 4199 <div class="col-sm-9">
3889 - <input type="text" class="ays-text-input ays-text-input-short" id="ays-poll-btn-text" name="ays_poll_res_btn_text" value="<?= (isset($options['see_res_btn_text']) && '' != $options['see_res_btn_text']) ? stripslashes(esc_attr($options['see_res_btn_text'])) : __("See Results", "poll-maker"); ?>"/>
4200 + <input type="text" class="ays-text-input ays-text-input-short" id="ays-poll-btn-text" name="ays_poll_res_btn_text" value="<?php echo (isset($options['see_res_btn_text']) && '' != $options['see_res_btn_text']) ? (esc_attr(stripslashes($options['see_res_btn_text']) )) :esc_html__("See Results", "poll-maker"); ?>"/>
3890 4201 </div>
3891 4202 </div>
3892 4203 </div>
3893 4204 </div>
@@ -3894,11 +4205,11 @@
3894 4205 <hr>
3895 4206 <div class="form-group row">
3896 4207 <div class="col-sm-3" style="padding-right: 0px;">
3897 4208 <label for="ays_enable_pass_count">
3898 - <?= __('Show passed users count', "poll-maker") ?>
4209 + <?php echo esc_html__('Show passed users count', "poll-maker") ?>
3899 4210 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3900 - title="<?= __('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>">
4211 + title="<?php echo esc_html__('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>">
3901 4212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3902 4213 </a>
3903 4214 </label>
3904 4215 </div>
@@ -3903,9 +4214,9 @@
3903 4214 </label>
3904 4215 </div>
3905 4216 <div class="col-sm-9">
3906 4217 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
3907 - value="on" <?= ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4218 + value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
3908 4219 </div>
3909 4220 </div>
3910 4221 <hr>
3911 4222 <div class="form-group row ays_toggle_parent">
@@ -3910,11 +4221,11 @@
3910 4221 <hr>
3911 4222 <div class="form-group row ays_toggle_parent">
3912 4223 <div class="col-sm-3">
3913 4224 <label for="ays_redirect_after_vote">
3914 - <?= __('Redirect after voting', "poll-maker"); ?>
4225 + <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
3915 4226 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3916 - title="<?= __('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4227 + title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
3917 4228 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3918 4229 </a>
3919 4230 </label>
3920 4231 </div>
@@ -3926,16 +4237,16 @@
3926 4237 <div class="col-sm-12 ays_divider_left">
3927 4238 <div class="form-group row">
3928 4239 <div class="col-sm-3">
3929 4240 <label for="redirection_url">
3930 - <?= __('URL', "poll-maker"); ?>
3931 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __('Choose the Redirection URL for redirecting after the user takes the poll.', "poll-maker"); ?>">
4241 + <?php echo esc_html__('URL', "poll-maker"); ?>
4242 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__('Choose the Redirection URL for redirecting after the user takes the poll.', "poll-maker"); ?>">
3932 4243 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3933 4244 </a>
3934 4245 </label>
3935 4246 </div>
3936 4247 <div class="col-sm-9">
3937 - <input type="text" class="ays-text-input" name="redirection_url" placeholder="https://www.google.com" id="redirection_url" value="<?= isset($options['redirect_after_vote_url']) && !empty($options['redirect_after_vote_url']) ? $options['redirect_after_vote_url'] : ""; ?>" size="25">
4248 + <input type="text" class="ays-text-input" name="redirection_url" placeholder="https://www.google.com" id="redirection_url" value="<?php echo isset($options['redirect_after_vote_url']) && !empty($options['redirect_after_vote_url']) ? esc_url($options['redirect_after_vote_url']) : ""; ?>" size="25">
3938 4249 </div>
3939 4250 </div>
3940 4251 <hr>
3941 4252 <div class="form-group row">
@@ -3940,17 +4251,17 @@
3940 4251 <hr>
3941 4252 <div class="form-group row">
3942 4253 <div class="col-sm-3">
3943 4254 <label for="redirectio_delay">
3944 - <?= __('Delay', "poll-maker"); ?>
4255 + <?php echo esc_html__('Delay', "poll-maker"); ?>
3945 4256 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3946 - title="<?= __('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4257 + title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
3947 4258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3948 4259 </a>
3949 4260 </label>
3950 4261 </div>
3951 4262 <div class="col-sm-9">
3952 - <input type="text" class="ays-text-input" name="redirection_delay" id="redirectio_delay" value="<?= isset($options['redirect_after_vote_delay']) && !empty($options['redirect_after_vote_delay']) ? $options['redirect_after_vote_delay'] : ""; ?>" size="15">
4263 + <input type="text" class="ays-text-input" name="redirection_delay" id="redirectio_delay" value="<?php echo isset($options['redirect_after_vote_delay']) && !empty($options['redirect_after_vote_delay']) ? $options['redirect_after_vote_delay'] : ""; ?>" size="15">
3953 4264 </div>
3954 4265 </div>
3955 4266 </div>
3956 4267 </div>
@@ -3960,12 +4271,12 @@
3960 4271 <hr/>
3961 4272 <div class="form-group row">
3962 4273 <div class="col-sm-3">
3963 4274 <label for="randomize-answers">
3964 - <?= __('Randomize Answers', "poll-maker"); ?>
4275 + <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
3965 4276 <a class="ays_help" data-toggle="tooltip"
3966 4277 data-placement="top"
3967 - title="<?= __("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4278 + title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
3968 4279 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3969 4280 </a>
3970 4281 </label>
3971 4282 </div>
@@ -3981,10 +4292,10 @@
3981 4292 <hr/>
3982 4293 <div class="form-group row ays_toggle_parent">
3983 4294 <div class="col-sm-3" style="padding-right: 0px;">
3984 4295 <label for="ays_enable_asnwers_sound">
3985 - <?php echo __('Enable answers sound', "poll-maker")?>
3986 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable to play a sound when the user clicks on one of the answers. To select a sound, go to the Poll answers sound option in the General Settings page.', "poll-maker")?>">
4296 + <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4297 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to play a sound when the user clicks on one of the answers. To select a sound, go to the Poll answers sound option in the General Settings page.', "poll-maker")?>">
3987 4298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3988 4299 </a>
3989 4300 </label>
3990 4301 </div>
@@ -3992,13 +4303,13 @@
3992 4303 <input type="checkbox" id="ays_enable_asnwers_sound"
3993 4304 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
3994 4305 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
3995 4306 </div>
3996 - <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo $enable_asnwers_sound ? '' : 'display:none;' ?>">
4307 + <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
3997 4308 <?php if($answers_sound_status): ?>
3998 - <blockquote class=""><?php echo __('Sound are selected. For change sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo __('General options', "poll-maker"); ?></a> <?php echo __('page', "poll-maker"); ?></blockquote>
4309 + <blockquote class=""><?php echo esc_html__('Sound are selected. For change sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo esc_html__('General options', "poll-maker"); ?></a> <?php echo esc_html__('page', "poll-maker"); ?></blockquote>
3999 4310 <?php else: ?>
4000 - <blockquote class=""><?php echo __('Sound are not selected. For selecting sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo __('General options', "poll-maker"); ?></a> <?php echo __('page', "poll-maker"); ?></blockquote>
4311 + <blockquote class=""><?php echo esc_html__('Sound are not selected. For selecting sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo esc_html__('General options', "poll-maker"); ?></a> <?php echo esc_html__('page', "poll-maker"); ?></blockquote>
4001 4312 <?php endif; ?>
4002 4313 </div>
4003 4314 </div>
4004 4315 <hr/>
@@ -4004,17 +4315,17 @@
4004 4315 <hr/>
4005 4316 <div class="form-group row">
4006 4317 <div class="col-3">
4007 4318 <label for="ays-poll-reason">
4008 - <?= __('Vote Reason', "poll-maker"); ?>
4319 + <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4009 4320 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4010 - title="<?= __("Allow users to add their vote reason", "poll-maker"); ?>">
4321 + title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4011 4322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4012 4323 </a>
4013 4324 </label>
4014 4325 </div>
4015 4326 <div class="col-9">
4016 - <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo $poll_vote_reason; ?>>
4327 + <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4017 4328 </div>
4018 4329 </div>
4019 4330 <hr/>
4020 4331 <div class="form-group row ays_toggle_parent">
@@ -4019,11 +4330,11 @@
4019 4330 <hr/>
4020 4331 <div class="form-group row ays_toggle_parent">
4021 4332 <div class="col-sm-3">
4022 4333 <label for="ays_enable_vote_button">
4023 - <?= __('Enable Vote button', "poll-maker") ?>
4334 + <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4024 4335 <a class="ays_help" data-toggle="tooltip"
4025 - title="<?= __('Show the vote button during the vote. If this option is disabled, then the user needs to click on the answer to vote without a chance of changing it.', "poll-maker") ?>">
4336 + title="<?php echo esc_html__('Show the vote button during the vote. If this option is disabled, then the user needs to click on the answer to vote without a chance of changing it.', "poll-maker") ?>">
4026 4337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4027 4338 </a>
4028 4339 </label>
4029 4340 </div>
@@ -4028,19 +4339,19 @@
4028 4339 </label>
4029 4340 </div>
4030 4341 <div class="col-sm-1">
4031 4342 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4032 - value="1" <?= (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4343 + value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4033 4344 </div>
4034 4345 <div class="col-sm-8 if-enable-vote-button ays_toggle_target" style="<?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? 'display:none;' : '' ?>">
4035 4346 <div class="row">
4036 4347 <div class="col-sm-3 ays_divider_left">
4037 4348 <label for="ays-poll-btn-text_vote">
4038 - <?= __("Vote button text", "poll-maker"); ?>
4349 + <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4039 4350 <a class="ays_help"
4040 4351 data-toggle="tooltip"
4041 4352 data-placement="top"
4042 - title="<?= __("Write the text of the vote button.", "poll-maker"); ?>">
4353 + title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4043 4354 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4044 4355 </a>
4045 4356 </label>
4046 4357 </div>
@@ -4046,9 +4357,9 @@
4046 4357 </div>
4047 4358 <div class="col-sm-9">
4048 4359 <input type="text" class="ays-text-input ays-text-input-short"
4049 4360 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4050 - value="<?= stripslashes($options['btn_text']) ?>"/>
4361 + value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4051 4362 </div>
4052 4363 </div>
4053 4364 </div>
4054 4365 </div>
@@ -4055,11 +4366,11 @@
4055 4366 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4056 4367 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4057 4368 <div class="col-sm-3">
4058 4369 <label for="ays_enable_view_more_button">
4059 - <?= __('Enable View more button', "poll-maker") ?>
4370 + <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4060 4371 <a class="ays_help" data-toggle="tooltip"
4061 - title="<?php echo __('Show only part of the answers and show the rest of the answers only when the user clicks on this button. It works only with the choosing type of polls.', "poll-maker"); ?>">
4372 + title="<?php echo esc_html__('Show only part of the answers and show the rest of the answers only when the user clicks on this button. It works only with the choosing type of polls.', "poll-maker"); ?>">
4062 4373 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4063 4374 </a>
4064 4375 </label>
4065 4376 </div>
@@ -4070,10 +4381,10 @@
4070 4381 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4071 4382 <div class="form-group row">
4072 4383 <div class="col-sm-3">
4073 4384 <label for="ays_poll_view_more_button_count">
4074 - <?php echo __("Count", "poll-maker"); ?>
4075 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo __("Indicate the number of answers which will be shown in the first place.", "poll-maker"); ?>">
4385 + <?php echo esc_html__("Count", "poll-maker"); ?>
4386 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Indicate the number of answers which will be shown in the first place.", "poll-maker"); ?>">
4076 4387 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4077 4388 </a>
4078 4389 </label>
4079 4390 </div>
@@ -4086,18 +4397,18 @@
4086 4397 <hr>
4087 4398 <div class="form-group row">
4088 4399 <div class="col-sm-3">
4089 4400 <label for="ays_answers_sort_select">
4090 - <?php echo __('Answers sorting', "poll-maker") ?>
4401 + <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4091 4402 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4092 4403 title="<?php
4093 - echo __("Select the way of arrangement of the answers on the voting page of the poll. This works only with the Choosing type.", "poll-maker") .
4404 + echo esc_html__("Select the way of arrangement of the answers on the voting page of the poll. This works only with the Choosing type.", "poll-maker") .
4094 4405 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4095 - "<li>". __('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4096 - "<li>". __('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4097 - "<li>". __('Most voted – by most votes', "poll-maker") ."</li>".
4098 - "<li>". __('Less voted - by less votes', "poll-maker") ."</li>".
4099 - "<li>". __('Default - upon your preferences', "poll-maker") ."</li>".
4406 + "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4407 + "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4408 + "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4409 + "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4410 + "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4100 4411 "</ul>";
4101 4412 ?>">
4102 4413 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4103 4414 </a>
@@ -4104,13 +4415,13 @@
4104 4415 </label>
4105 4416 </div>
4106 4417 <div class="col-sm-9">
4107 4418 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4108 - <option value="default" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo __('Default', "poll-maker") ?></option>
4109 - <option value="ascending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo __('Ascending', "poll-maker") ?></option>
4110 - <option value="descending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo __('Descending', "poll-maker") ?></option>
4111 - <option value="votes_asc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo __('Most Voted', "poll-maker") ?></option>
4112 - <option value="votes_desc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo __('Less Voted', "poll-maker") ?></option>
4419 + <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4420 + <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4421 + <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4422 + <option value="votes_asc" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo esc_html__('Most Voted', "poll-maker") ?></option>
4423 + <option value="votes_desc" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo esc_html__('Less Voted', "poll-maker") ?></option>
4113 4424 </select>
4114 4425 </div>
4115 4426 </div>
4116 4427 <hr>
@@ -4115,81 +4426,98 @@
4115 4426 </div>
4116 4427 <hr>
4117 4428 <div class="form-group row">
4118 4429 <div class="col-sm-3">
4119 - <label>
4120 - <?php echo __('Answers numbering', "poll-maker"); ?>
4121 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Assign numbering to each answer in ascending sequential order. Choose your preferred type from the list.', "poll-maker"); ?>">
4430 + <label for="ays_poll_aysDropdown">
4431 + <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4432 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Assign numbering to each answer in ascending sequential order. Choose your preferred type from the list.', "poll-maker"); ?>">
4122 4433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4123 4434 </a>
4124 4435 </label>
4125 4436 </div>
4126 4437 <div class="col-sm-9">
4127 - <select class="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4128 - <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo __( "None", "poll-maker"); ?></option>
4129 - <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo __( "1.", "poll-maker"); ?></option>
4130 - <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo __( "1)", "poll-maker"); ?></option>
4131 - <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo __( "A.", "poll-maker"); ?></option>
4132 - <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo __( "A)", "poll-maker"); ?></option>
4133 - <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo __( "a.", "poll-maker"); ?></option>
4134 - <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo __( "a)", "poll-maker"); ?></option>
4438 + <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4439 + <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "poll-maker"); ?></option>
4440 + <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo esc_html__( "1.", "poll-maker"); ?></option>
4441 + <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo esc_html__( "1)", "poll-maker"); ?></option>
4442 + <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo esc_html__( "A.", "poll-maker"); ?></option>
4443 + <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo esc_html__( "A)", "poll-maker"); ?></option>
4444 + <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo esc_html__( "a.", "poll-maker"); ?></option>
4445 + <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo esc_html__( "a)", "poll-maker"); ?></option>
4446 + <option <?php echo $show_answers_numbering == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4135 4447 </select>
4136 4448 </div>
4137 4449 </div> <!-- Show answers numbering -->
4138 4450 <hr>
4139 - <div class="form-group row">
4140 - <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4141 - <div class="pro_features" style="justify-content:flex-end;">
4142 - </div>
4143 - <div class="form-group row ays_toggle_parent">
4144 - <div class="col-sm-3">
4145 - <label for="ays_show_votes_before_voting">
4146 - <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4147 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4148 - title="<?= __('Display the votes count per answer to the poll participants beforehand. It will show the last result. There are two ways to represent the votes count: by count and by percentage.', "poll-maker") ?>">
4149 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4150 - </a>
4151 - </label>
4152 - </div>
4153 - <div class="col-sm-1">
4154 - <input type="checkbox"/>
4155 - </div>
4156 - <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4157 - <div class="d-flex">
4158 - <div class="form-check-inline ays_poll_loader">
4159 - <label class="form-check-label">
4160 - <input type="radio" value="by_count" />
4161 - <span><?= __('By count', "poll-maker"); ?></span>
4162 - </label>
4163 - </div>
4164 - <div class="form-check-inline ays_poll_loader">
4165 - <label class="form-check-label">
4166 - <input type="radio" value="by_percentage"/>
4167 - <span><?= __('By percentage', "poll-maker"); ?></span>
4168 - </label>
4169 - </div>
4170 - </div>
4171 - </div>
4172 - </div> <!-- Status -->
4173 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4174 - <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4175 - <div>
4176 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4177 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4178 - </div>
4179 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4180 - </div>
4181 - </a>
4182 - </div>
4451 + <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="<?php echo ($id === null || (isset($poll['type']) && $poll['type'] != 'choosing')) ? 'display: none;' : ''; ?>">
4452 + <div class="col-sm-3">
4453 + <label for="ays_show_votes_before_voting">
4454 + <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4455 + <a class="ays_help" data-toggle="tooltip" data-placement="top"
4456 + title="<?= __('Display the votes count per answer to the poll participants beforehand. It will show the last result. There are two ways to represent the votes count: by count and by percentage.', "poll-maker") ?>">
4457 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4458 + </a>
4459 + </label>
4460 + </div>
4461 + <div class="col-sm-1">
4462 + <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4463 + value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4464 + </div>
4465 + <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4466 + <div class="d-flex">
4467 + <div class="form-check-inline ays_poll_loader">
4468 + <label class="form-check-label">
4469 + <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4470 + <span><?= __('By count', "poll-maker"); ?></span>
4471 + </label>
4472 + </div>
4473 + <div class="form-check-inline ays_poll_loader">
4474 + <label class="form-check-label">
4475 + <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4476 + <span><?= __('By percentage', "poll-maker"); ?></span>
4477 + </label>
4478 + </div>
4479 + </div>
4480 + </div>
4481 + </div>
4482 + </div>
4483 + </div>
4484 + <div class="only_pro" style="position: relative; display: inline-block">
4485 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4486 + <div class="pro-features-popup-conteiner">
4487 + <div class="pro-features-popup-title">
4488 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4489 + </div>
4490 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4491 + <p>
4492 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
4493 + </p>
4494 + <p>
4495 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
4496 + </p>
4497 + </div>
4498 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
4499 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
4500 + </div>
4183 4501 </div>
4184 4502 </div>
4503 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4504 + <span class="ays_save_as_default_content_for_mobile">
4505 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4506 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4507 + </a>
4508 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
4509 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4510 + </a>
4511 + </span>
4512 + </div>
4185 4513 </div>
4186 4514 </div>
4187 - <div id="tab4" class="ays-poll-tab-content <?= $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4515 + <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4188 4516 <div class="ays-poll-accordion-options-main-container">
4189 4517 <div class="ays-poll-accordion-header">
4190 - <?php echo $poll_acordion_svg_html; ?>
4191 - <p class="ays-subtitle"><?= __('Limitation of Users', "poll-maker"); ?></p>
4518 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4519 + <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4192 4520 </div>
4193 4521 <hr class="ays-poll-bolder-hr"/>
4194 4522 <div class="ays-poll-accordion-body">
4195 4523 <div class="form-group row ays_toggle_parent">
@@ -4194,11 +4522,11 @@
4194 4522 <div class="ays-poll-accordion-body">
4195 4523 <div class="form-group row ays_toggle_parent">
4196 4524 <div class="col-sm-3">
4197 4525 <label for="apm_limit_users">
4198 - <?= __('Maximum number of attempts per user', "poll-maker"); ?>
4526 + <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4199 4527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4200 - title="<?= __('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4528 + title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4201 4529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4202 4530 </a>
4203 4531 </label>
4204 4532 </div>
@@ -4203,22 +4531,22 @@
4203 4531 </label>
4204 4532 </div>
4205 4533 <div class="col-sm-1">
4206 4534 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4207 - value="on" <?= $options['limit_users'] ? 'checked' : ''; ?> />
4535 + value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4208 4536 </div>
4209 - <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?= $options['limit_users'] ? '' : 'display: none;'; ?>">
4537 + <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4210 4538 <div class="ays-limitation-options">
4211 4539 <!-- Limitation method -->
4212 4540 <div class="form-group row">
4213 4541 <div class="col-sm-3">
4214 4542 <label for="ays_redirect_method">
4215 - <?= __('Detects users by', "poll-maker"); ?>
4216 - <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'><?php echo __( 'Choose the method of detection of the user:' , "poll-maker" ); ?>
4217 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By IP', "poll-maker" ); ?></strong> <?php echo __( ' - Detect the users by their IP addresses and limit them. It will work both for guests and registered users. Note: in general, IP is not a static variable, it is constantly changing when the user changes his location/ WIFI/ Internet provider.' , "poll-maker" ); ?></p>
4218 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By User ID', "poll-maker" ); ?></strong><?php echo __( ' - Detect the users by their WP User IDs and limit them. It will work only for registered users. Recommended using this method to get more reliable results.', "poll-maker" ); ?></p>
4219 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By Cookie ', "poll-maker" ); ?></strong><?php echo __( ' - Detect the users by their browser cookies and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>
4220 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By Cookie and IP ', "poll-maker" ); ?></strong><?php echo __( ' - Detect the users both by their browser cookies and IP addresses and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>"
4543 + <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4544 + <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'><?php echo esc_html__( 'Choose the method of detection of the user:' , "poll-maker" ); ?>
4545 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By IP', "poll-maker" ); ?></strong> <?php echo esc_html__( ' - Detect the users by their IP addresses and limit them. It will work both for guests and registered users. Note: in general, IP is not a static variable, it is constantly changing when the user changes his location/ WIFI/ Internet provider.' , "poll-maker" ); ?></p>
4546 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By User ID', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users by their WP User IDs and limit them. It will work only for registered users. Recommended using this method to get more reliable results.', "poll-maker" ); ?></p>
4547 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By Cookie ', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users by their browser cookies and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>
4548 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By Cookie and IP ', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users both by their browser cookies and IP addresses and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>"
4221 4549 >
4222 4550 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4223 4551 </a>
4224 4552 </label>
@@ -4226,29 +4554,29 @@
4226 4554 <div class="col-sm-9">
4227 4555 <div class="ays-poll-sel-fields d-flex p-0">
4228 4556 <div class="ays-poll-check-box mr-2">
4229 4557 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4230 - value="ip" <?= (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4558 + value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4231 4559 <label class="form-check-label"
4232 - for="ays_limit_method_ip"><?= __('IP', "poll-maker"); ?> </label>
4560 + for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4233 4561 </div>
4234 4562 <div class="ays-poll-check-box mr-2">
4235 4563 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4236 - value="user" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4564 + value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4237 4565 <label class="form-check-label"
4238 - for="ays_limit_method_user"><?= __('User ID', "poll-maker"); ?> </label>
4566 + for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4239 4567 </div>
4240 4568 <div class="ays-poll-check-box mr-2">
4241 4569 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4242 - value="cookie" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4570 + value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4243 4571 <label class="form-check-label"
4244 - for="ays_limit_method_cookie"><?= __('Cookie', "poll-maker"); ?> </label>
4572 + for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4245 4573 </div>
4246 4574 <div class="ays-poll-check-box mr-2">
4247 4575 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4248 - value="cookie_ip" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4576 + value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4249 4577 <label class="form-check-label"
4250 - for="ays_limit_method_cookie_ip"><?= __('Cookie and IP', "poll-maker"); ?> </label>
4578 + for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4251 4579 </div>
4252 4580 </div>
4253 4581 </div>
4254 4582 </div>
@@ -4256,11 +4584,11 @@
4256 4584 <!-- Limitation message -->
4257 4585 <div class="form-group row">
4258 4586 <div class="col-sm-3">
4259 4587 <label for="ays_limitation_message">
4260 - <?= __('Message', "poll-maker"); ?>
4588 + <?php echo esc_html__('Message', "poll-maker"); ?>
4261 4589 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4262 - title="<?= __('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4590 + title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4263 4591 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4264 4592 </a>
4265 4593 </label>
4266 4594 </div>
@@ -4282,11 +4610,11 @@
4282 4610 <!-- Limitation redirect url -->
4283 4611 <div class="form-group row">
4284 4612 <div class="col-sm-3">
4285 4613 <label for="ays_redirect_url">
4286 - <?= __('Redirect URL', "poll-maker"); ?>
4614 + <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4287 4615 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4288 - title="<?= __('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4616 + title="<?php echo esc_html__('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4289 4617 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4290 4618 </a>
4291 4619 </label>
4292 4620 </div>
@@ -4292,9 +4620,9 @@
4292 4620 </div>
4293 4621 <div class="col-sm-9">
4294 4622 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4295 4623 class="ays-text-input"
4296 - value="<?= $options['redirect_url'] ?>"/>
4624 + value="<?php echo $options['redirect_url'] ?>"/>
4297 4625 </div>
4298 4626 </div>
4299 4627 <hr>
4300 4628 <!-- Limitation redirect delay -->
@@ -4300,11 +4628,11 @@
4300 4628 <!-- Limitation redirect delay -->
4301 4629 <div class="form-group row">
4302 4630 <div class="col-sm-3">
4303 4631 <label for="ays_redirection_delay">
4304 - <?= __('Redirect delay (sec)', "poll-maker"); ?>
4632 + <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4305 4633 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4306 - title="<?= __('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4634 + title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4307 4635 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4308 4636 </a>
4309 4637 </label>
4310 4638 </div>
@@ -4310,9 +4638,9 @@
4310 4638 </div>
4311 4639 <div class="col-sm-9">
4312 4640 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4313 4641 class="ays-text-input"
4314 - value="<?= $options['redirection_delay'] ?>"/>
4642 + value="<?php echo $options['redirection_delay'] ?>"/>
4315 4643 </div>
4316 4644 </div>
4317 4645 <hr>
4318 4646 <div class="form-group row">
@@ -4317,29 +4645,58 @@
4317 4645 <hr>
4318 4646 <div class="form-group row">
4319 4647 <div class="col-sm-3">
4320 4648 <label for="ays_see_result_show">
4321 - <?= __('See results', "poll-maker"); ?>
4649 + <?php echo esc_html__('See results', "poll-maker"); ?>
4322 4650 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4323 - title="<p style='margin-bottom:3px;'><?php echo __( 'Display the live results of the poll to those who have already passed the poll under the given conditions. There are two ways of displaying the results:' , "poll-maker" ); ?>
4324 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'After clicking on the button:', "poll-maker" ); ?></strong> <?php echo __( '- It will show the results after clicking on the See Results button.' , "poll-maker" ); ?></p>
4325 - <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Directly:', "poll-maker" ); ?></strong><?php echo __( ' - It will show the results immediately.', "poll-maker" ); ?></p>">
4651 + title="<p style='margin-bottom:3px;'><?php echo esc_html__( 'Display the live results of the poll to those who have already passed the poll under the given conditions. There are two ways of displaying the results:' , "poll-maker" ); ?>
4652 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'After clicking on the button:', "poll-maker" ); ?></strong> <?php echo esc_html__( '- It will show the results after clicking on the See Results button.' , "poll-maker" ); ?></p>
4653 + <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Directly:', "poll-maker" ); ?></strong><?php echo esc_html__( ' - It will show the results immediately.', "poll-maker" ); ?></p>">
4326 4654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4327 4655 </a>
4328 4656 </label>
4329 4657 </div>
4330 4658 <div class="col-sm-9">
4331 - <div style="margin-bottom: 10px;">
4332 - <input type="checkbox" id="ays_see_result_show" name="ays_see_result_show" class="ays_poll_show_hide_button" value="on" <?php echo $poll_see_result_button; ?>>
4333 - </div>
4334 - <div class="col-sm-9 ays-poll-sel-fields p-0 <?php echo $poll_see_result_button_cont; ?>" id="ays_poll_show_hide_button" >
4335 - <div class="ays-poll-check-box mr-2">
4336 - <input type="radio" id="ays_see_result_button_show" name="ays_poll_see_result_show" class="ays_poll_show_hide_button" value="ays_see_result_button" <?php echo $poll_see_result_botton_show?>>
4337 - <label for="ays_see_result_button_show" class="form-check-label"><?= __('After clicking on the button', "poll-maker"); ?></label>
4659 + <div class="row">
4660 + <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4661 + <input type="checkbox" id="ays_see_result_show"
4662 + name="ays_see_result_show"
4663 + class="ays_poll_show_hide_button"
4664 + value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4338 4665 </div>
4339 - <div class="ays-poll-check-box mr-2">
4340 - <input type="radio" id="ays_see_result_button_hide" name="ays_poll_see_result_show" class="ays_poll_show_hide_button" value="ays_see_result_immediately" <?php echo $poll_see_result_immediately?>>
4341 - <label for="ays_see_result_button_hide" class="form-check-label"><?= __('Directly', "poll-maker"); ?></label>
4666 +
4667 + <div class="col-sm-10" id="ays_poll_show_hide_button">
4668 + <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4669 + <div class="col-sm-6">
4670 + <div class="ays-poll-check-box d-flex align-items-center"
4671 + style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4672 + <input type="radio"
4673 + id="ays_see_result_button_show"
4674 + name="ays_poll_see_result_show"
4675 + class="ays_poll_show_hide_button mr-2"
4676 + value="ays_see_result_button"
4677 + <?php echo esc_attr($poll_see_result_botton_show) ?>>
4678 + <label for="ays_see_result_button_show" class="form-check-label">
4679 + <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4680 + </label>
4681 + </div>
4682 + </div>
4683 + <div class="col-sm-6">
4684 + <div class="ays-poll-check-box d-flex align-items-center"
4685 + style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4686 + <input type="radio"
4687 + id="ays_see_result_button_hide"
4688 + name="ays_poll_see_result_show"
4689 + class="ays_poll_show_hide_button mr-2"
4690 + value="ays_see_result_immediately"
4691 + <?php echo esc_attr($poll_see_result_immediately) ?>>
4692 + <label for="ays_see_result_button_hide" class="form-check-label">
4693 + <?php echo esc_html__('Directly', "poll-maker"); ?>
4694 + </label>
4695 + </div>
4696 + </div>
4697 +
4698 + </div>
4342 4699 </div>
4343 4700 </div>
4344 4701 </div>
4345 4702 </div>
@@ -4350,10 +4707,10 @@
4350 4707 </div>
4351 4708 <div class="form-group row d-flex">
4352 4709 <div class="col-sm-3">
4353 4710 <label for="ays_attempts_count">
4354 - <?php echo __('Attempts count', "poll-maker")?>
4355 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>">
4711 + <?php echo esc_html__('Attempts count', "poll-maker")?>
4712 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>">
4356 4713 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4357 4714 </a>
4358 4715 </label>
4359 4716 </div>
@@ -4363,12 +4720,12 @@
4363 4720 </div>
4364 4721 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4365 4722 <div class="ays-poll-new-upgrade-button-box">
4366 4723 <div>
4367 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4368 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4724 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4725 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4369 4726 </div>
4370 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4727 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4371 4728 </div>
4372 4729 </a>
4373 4730 </div>
4374 4731 </div>
@@ -4378,11 +4735,11 @@
4378 4735 <hr/>
4379 4736 <div class="form-group row ays_toggle_parent">
4380 4737 <div class="col-sm-3">
4381 4738 <label for="ays_enable_logged_users">
4382 - <?= __('Only for logged in users', "poll-maker"); ?>
4739 + <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4383 4740 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4384 - title="<?= __('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4741 + title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4385 4742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4386 4743 </a>
4387 4744 </label>
4388 4745 </div>
@@ -4387,17 +4744,17 @@
4387 4744 </label>
4388 4745 </div>
4389 4746 <div class="col-sm-1">
4390 4747 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4391 - value="on" <?= $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4748 + value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4392 4749 </div>
4393 - <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?= $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4750 + <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4394 4751 <div class="form-group row">
4395 4752 <div class="col-sm-3">
4396 4753 <label for="ays_logged_in_message">
4397 - <?= __('Message', "poll-maker"); ?>
4754 + <?php echo esc_html__('Message', "poll-maker"); ?>
4398 4755 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4399 - title="<?= __('Write the message for unauthorized users.', "poll-maker"); ?>">
4756 + title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4400 4757 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4401 4758 </a>
4402 4759 </label>
4403 4760 </div>
@@ -4418,10 +4775,10 @@
4418 4775 <hr/>
4419 4776 <div class="form-group row">
4420 4777 <div class="col-sm-3">
4421 4778 <label for="ays_show_login_form">
4422 - <?php echo __('Show Login form', "poll-maker")?>
4423 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable to show the login form.', "poll-maker")?>">
4779 + <?php echo esc_html__('Show Login form', "poll-maker")?>
4780 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4424 4781 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4425 4782 </a>
4426 4783 </label>
4427 4784 </div>
@@ -4434,11 +4791,11 @@
4434 4791 <hr/>
4435 4792 <div class="form-group row ays_toggle_parent">
4436 4793 <div class="col-sm-3">
4437 4794 <label for="ays_enable_restriction_pass">
4438 - <?= __('Only for selected user role', "poll-maker"); ?>
4795 + <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4439 4796 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4440 - title="<?= __('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>">
4797 + title="<?php echo esc_html__('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>">
4441 4798 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4442 4799 </a>
4443 4800 </label>
4444 4801 </div>
@@ -4443,16 +4800,16 @@
4443 4800 </label>
4444 4801 </div>
4445 4802 <div class="col-sm-1">
4446 4803 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4447 - value="on" <?= (isset($options['enable_restriction_pass']) &&
4804 + value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4448 4805 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4449 4806 </div>
4450 - <div class="if-users-roles col-sm-8 ays_divider_left ays_toggle_target" style="<?= (isset($options['enable_restriction_pass']) && $options['enable_restriction_pass'] == 1) ? '' : 'display: none;'; ?>">
4807 + <div class="if-users-roles col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo (isset($options['enable_restriction_pass']) && $options['enable_restriction_pass'] == 1) ? '' : 'display: none;'; ?>">
4451 4808 <div class="form-group row">
4452 4809 <div class="col-sm-3">
4453 4810 <label for="ays_users_roles">
4454 - <?= __('User role', "poll-maker"); ?></label>
4811 + <?php echo esc_html__('User role', "poll-maker"); ?></label>
4455 4812 </div>
4456 4813 <div class="col-sm-9">
4457 4814 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4458 4815 <?php
@@ -4470,9 +4827,9 @@
4470 4827 }else{
4471 4828 $selected_role = '';
4472 4829 }
4473 4830 }
4474 - echo "<option value='" . $user_role['name'] . "' " . $selected_role . ">" . $user_role['name'] . "</option>";
4831 + echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4475 4832 }
4476 4833 ?>
4477 4834 </select>
4478 4835 </div>
@@ -4480,11 +4837,11 @@
4480 4837 <hr>
4481 4838 <div class="form-group row">
4482 4839 <div class="col-sm-3">
4483 4840 <label for="restriction_pass_message">
4484 - <?= __('Message', "poll-maker"); ?>
4841 + <?php echo esc_html__('Message', "poll-maker"); ?>
4485 4842 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4486 - title="<?= __('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4843 + title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4487 4844 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4488 4845 </a>
4489 4846 </label>
4490 4847 </div>
@@ -4507,10 +4864,10 @@
4507 4864 <hr>
4508 4865 <div class="form-group row ays_toggle_parent">
4509 4866 <div class="col-sm-3">
4510 4867 <label for="ays_poll_enable_password">
4511 - <?php echo __('Password for passing Poll', "poll-maker")?>
4512 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose a password for users to pass the poll.' , "poll-maker")?>">
4868 + <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4869 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4513 4870 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4514 4871 </a>
4515 4872 </label>
4516 4873 </div>
@@ -4521,10 +4878,10 @@
4521 4878 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4522 4879 <div class="form-group row">
4523 4880 <div class="col-sm-3">
4524 4881 <label for="ays_poll_password">
4525 - <?php echo __('Password' , "poll-maker")?>
4526 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.' , "poll-maker")?>">
4882 + <?php echo esc_html__('Password' , "poll-maker")?>
4883 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4527 4884 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4528 4885 </a>
4529 4886 </label>
4530 4887 </div>
@@ -4535,10 +4892,10 @@
4535 4892 <hr>
4536 4893 <div class="form-group row">
4537 4894 <div class="col-sm-3">
4538 4895 <label for="ays_poll_enable_password_visibility">
4539 - <?php echo __('Enable toggle password visibility', "poll-maker"); ?>
4540 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Tick the option, and it will let you enable and disable password visibility in a password input field.', "poll-maker"); ?>">
4896 + <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4897 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tick the option, and it will let you enable and disable password visibility in a password input field.', "poll-maker"); ?>">
4541 4898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4542 4899 </a>
4543 4900 </label>
4544 4901 </div>
@@ -4549,10 +4906,10 @@
4549 4906 <hr>
4550 4907 <div class="form-group row">
4551 4908 <div class="col-sm-3">
4552 4909 <label for="ays_poll_password">
4553 - <?php echo __('Message', "poll-maker")?>
4554 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.', "poll-maker")?>">
4910 + <?php echo esc_html__('Message', "poll-maker")?>
4911 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4555 4912 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4556 4913 </a>
4557 4914 </label>
4558 4915 </div>
@@ -4575,10 +4932,10 @@
4575 4932 </div>
4576 4933 <div class="form-group row ays_toggle_parent">
4577 4934 <div class="col-sm-3">
4578 4935 <label for="ays_enable_tackers_count">
4579 - <?php echo __('Limitation count of takers', "poll-maker")?>
4580 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('You can choose how many users can pass the poll.', "poll-maker")?>">
4936 + <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4937 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('You can choose how many users can pass the poll.', "poll-maker")?>">
4581 4938 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4582 4939 </a>
4583 4940 </label>
4584 4941 </div>
@@ -4589,10 +4946,10 @@
4589 4946 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4590 4947 <div class="form-group row">
4591 4948 <div class="col-sm-3">
4592 4949 <label for="ays_tackers_count">
4593 - <?php echo __('Count', "poll-maker")?>
4594 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The number of users who can pass the poll.', "poll-maker")?>">
4950 + <?php echo esc_html__('Count', "poll-maker")?>
4951 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The number of users who can pass the poll.', "poll-maker")?>">
4595 4952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4596 4953 </a>
4597 4954 </label>
4598 4955 </div>
@@ -4605,12 +4962,12 @@
4605 4962 </div>
4606 4963 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4607 4964 <div class="ays-poll-new-upgrade-button-box">
4608 4965 <div>
4609 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4610 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4966 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4967 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4611 4968 </div>
4612 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4969 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4613 4970 </div>
4614 4971 </a>
4615 4972 </div>
4616 4973 </div><!-- Limitation count of takers Poll PRO Feautre-->
@@ -4621,10 +4978,10 @@
4621 4978 </div>
4622 4979 <div class="form-group row ays_toggle_parent">
4623 4980 <div class="col-sm-3">
4624 4981 <label for="ays_enable_vote_limitation">
4625 - <?php echo __('Allow to vote once per session', "poll-maker")?>
4626 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('If you enable this feature, you can select the frequency the users can have access to the poll after the first attempt. For example, if you give a 1-day value to the session period, the user will have access to the poll once in 1-day.', "poll-maker")?>">
4982 + <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4983 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('If you enable this feature, you can select the frequency the users can have access to the poll after the first attempt. For example, if you give a 1-day value to the session period, the user will have access to the poll once in 1-day.', "poll-maker")?>">
4627 4984 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4628 4985 </a>
4629 4986 </label>
4630 4987 </div>
@@ -4635,10 +4992,10 @@
4635 4992 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4636 4993 <div class="form-group row">
4637 4994 <div class="col-sm-3">
4638 4995 <label for="ays_vote_limitation">
4639 - <?php echo __('Session Period', "poll-maker")?>
4640 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Specify the time for one session.', "poll-maker")?>">
4996 + <?php echo esc_html__('Session Period', "poll-maker")?>
4997 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Specify the time for one session.', "poll-maker")?>">
4641 4998 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4642 4999 </a>
4643 5000 </label>
4644 5001 </div>
@@ -4655,11 +5012,11 @@
4655 5012 </div>
4656 5013 <div class="form-group row d-flex w-100">
4657 5014 <div class="col-sm-3">
4658 5015 <label for="">
4659 - <?= __('Message', "poll-maker"); ?>
5016 + <?php echo esc_html__('Message', "poll-maker"); ?>
4660 5017 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4661 - title="<?= __('Write the message, which will be shown during the restricted time, when the user has already passed his/her limit for the session.', "poll-maker"); ?>">
5018 + title="<?php echo esc_html__('Write the message, which will be shown during the restricted time, when the user has already passed his/her limit for the session.', "poll-maker"); ?>">
4662 5019 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4663 5020 </a>
4664 5021 </label>
4665 5022 </div>
@@ -4680,12 +5037,12 @@
4680 5037 </div>
4681 5038 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4682 5039 <div class="ays-poll-new-upgrade-button-box">
4683 5040 <div>
4684 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4685 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5041 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5042 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4686 5043 </div>
4687 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5044 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4688 5045 </div>
4689 5046 </a>
4690 5047 </div>
4691 5048 </div> <!-- Allow to vote once per session PRO Feautre-->
@@ -4696,10 +5053,10 @@
4696 5053 </div>
4697 5054 <div class="form-group row ays_toggle_parent">
4698 5055 <div class="col-sm-3">
4699 5056 <label for="enable_limit_by_country">
4700 - <?php echo __('Limit by country', "poll-maker")?>
4701 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __(' After enabling this option, the given poll will not be available in the selected country.', "poll-maker")?>">
5057 + <?php echo esc_html__('Limit by country', "poll-maker")?>
5058 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__(' After enabling this option, the given poll will not be available in the selected country.', "poll-maker")?>">
4702 5059 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4703 5060 </a>
4704 5061 </label>
4705 5062 </div>
@@ -4706,10 +5063,13 @@
4706 5063 <div class="col-sm-1">
4707 5064 <input type="checkbox" class="ays-enable-timer1"/>
4708 5065 </div>
4709 5066 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4710 - <select class="ays-text-input ays-text-input-short" style="width: 15vw;">
4711 - <option>Andorra</option>
5067 + <select id="ays-poll-countries" class="apm-cat-select2 select2-hidden-accessible" name="ays-poll-countries[]" multiple="" data-placeholder="Select countries" tabindex="-1" aria-hidden="true" disabled>
5068 + <option selected value="AD">Andorra</option>
5069 + <option selected value="US">United States</option>
5070 + <option selected value="GB">United Kingdom</option>
5071 + <option selected value="FR">France</option>
4712 5072 </select>
4713 5073 </div>
4714 5074 </div>
4715 5075 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -4714,12 +5074,12 @@
4714 5074 </div>
4715 5075 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4716 5076 <div class="ays-poll-new-upgrade-button-box">
4717 5077 <div>
4718 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4719 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5078 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5079 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4720 5080 </div>
4721 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5081 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4722 5082 </div>
4723 5083 </a>
4724 5084 </div>
4725 5085 </div> <!-- Limit by country PRO Feautre -->
@@ -4725,14 +5085,44 @@
4725 5085 </div> <!-- Limit by country PRO Feautre -->
4726 5086 <hr>
4727 5087 </div>
4728 5088 </div>
5089 + <div class="only_pro" style="position: relative; display: inline-block">
5090 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5091 + <div class="pro-features-popup-conteiner">
5092 + <div class="pro-features-popup-title">
5093 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5094 + </div>
5095 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5096 + <p>
5097 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5098 + </p>
5099 + <p>
5100 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5101 + </p>
5102 + </div>
5103 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5104 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
5105 + </div>
5106 + </div>
5107 + </div>
5108 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5109 + <span class="ays_save_as_default_content_for_mobile">
5110 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5111 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5112 + </a>
5113 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5114 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5115 + </a>
5116 + </span>
5117 + </div>
5118 + </div>
4729 5119 </div>
4730 - <div id="tab5" class="ays-poll-tab-content <?= $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5120 + <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
4731 5121 <div class="ays-poll-accordion-options-main-container">
4732 5122 <div class="ays-poll-accordion-header">
4733 - <?php echo $poll_acordion_svg_html; ?>
4734 - <p class="ays-subtitle"><?= __('User Data Settings', "poll-maker"); ?></p>
5123 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5124 + <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
4735 5125 </div>
4736 5126 <hr class="ays-poll-bolder-hr"/>
4737 5127 <div class="ays-poll-accordion-body">
4738 5128 <div class="form-group row">
@@ -4737,11 +5127,11 @@
4737 5127 <div class="ays-poll-accordion-body">
4738 5128 <div class="form-group row">
4739 5129 <div class="col-sm-3">
4740 5130 <label>
4741 - <?= __('Information form title', "poll-maker"); ?>
5131 + <?php echo esc_html__('Information form title', "poll-maker"); ?>
4742 5132 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4743 - title="<?= __("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>">
5133 + title="<?php echo esc_html__("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>">
4744 5134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4745 5135 </a>
4746 5136 </label>
4747 5137 </div>
@@ -4762,12 +5152,12 @@
4762 5152 <hr>
4763 5153 <div class="form-group row ays_toggle_parent">
4764 5154 <div class="col-sm-2">
4765 5155 <label for='ays_poll_info_form'>
4766 - <?= __('Enable Information Form', "poll-maker"); ?>
5156 + <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
4767 5157 <a class="ays_help" data-toggle="tooltip"
4768 5158 data-placement="top"
4769 - title="<?= __("After enabling this option, the user will have to fill out the information form (data form for the user’s personal information) after submitting the poll.", "poll-maker"); ?>">
5159 + title="<?php echo esc_html__("After enabling this option, the user will have to fill out the information form (data form for the user’s personal information) after submitting the poll.", "poll-maker"); ?>">
4770 5160 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4771 5161 </a>
4772 5162 </label>
4773 5163 </div>
@@ -4776,10 +5166,10 @@
4776 5166 </div>
4777 5167 <div class="col-sm-9 ays_divider_left ays_toggle_target_inverse" style="<?php echo (isset($options['info_form']) && $options['info_form'] == 1) ? 'display:none' : ''; ?>">
4778 5168 <div class="col-sm-7">
4779 5169 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
4780 - <?php echo __('Allow collecting information of logged in users', "poll-maker"); ?>
4781 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Allow collecting information from logged in users. Email and name of users will be stored in the database. Email options will be work for these users.', "poll-maker")?>">
5170 + <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5171 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow collecting information from logged in users. Email and name of users will be stored in the database. Email options will be work for these users.', "poll-maker")?>">
4782 5172 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4783 5173 </a>
4784 5174 </label>
4785 5175 <input type="checkbox" id="ays_allow_collecting_logged_in_users_data" value="on" name="ays_allow_collecting_logged_in_users_data" <?php echo $poll_allow_collecting_users_data; ?>>
@@ -4787,10 +5177,10 @@
4787 5177 </div>
4788 5178 <div class="ays_poll_info_form col-sm-9 ays_toggle_target" style="border-left: 1px solid #ccc; <?php echo $options['info_form'] == 1 ? "display: block;" : "display: none;"; ?>">
4789 5179 <div>
4790 5180 <label>
4791 - <?php echo __('Form Fields', "poll-maker"); ?>
4792 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select which fields the user should fill out.", "poll-maker"); ?>">
5181 + <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5182 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select which fields the user should fill out.", "poll-maker"); ?>">
4793 5183 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4794 5184 </a>
4795 5185 </label>
4796 5186 <hr>
@@ -4798,12 +5188,12 @@
4798 5188 <div>
4799 5189 <div class="ays-poll-sel-fields d-flex">
4800 5190 <?php foreach ( $all_fields as $field ): ?>
4801 5191 <div class="ays-poll-check-box mr-2">
4802 - <input type="checkbox" name="ays-poll-form-fields[]" value="<?= $field['slug']; ?>" id="ays-poll-form-field-<?= $field['slug']; ?>"
4803 - <?= (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
4804 - <label for="ays-poll-form-field-<?= $field['slug']; ?>">
4805 - <?= ucfirst($field['name']); ?></label>
5192 + <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5193 + <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5194 + <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5195 + <?php echo ucfirst($field['name']); ?></label>
4806 5196 </div>
4807 5197 <?php endforeach; ?>
4808 5198 </div>
4809 5199 <hr>
@@ -4809,11 +5199,11 @@
4809 5199 <hr>
4810 5200 </div>
4811 5201 <div>
4812 5202 <label>
4813 - <?= __('Required Fields', "poll-maker"); ?>
5203 + <?php echo esc_html__('Required Fields', "poll-maker"); ?>
4814 5204 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4815 - title="<?= __("Select which fields are required.", "poll-maker"); ?>">
5205 + title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
4816 5206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4817 5207 </a>
4818 5208 </label>
4819 5209 <hr>
@@ -4818,19 +5208,19 @@
4818 5208 </label>
4819 5209 <hr>
4820 5210 </div>
4821 5211 <div>
4822 - <div class="ays-poll-req-fields d-flex">
5212 + <div class="ays-poll-sel-fields d-flex">
4823 5213 <?php foreach ( $all_fields as $field ): ?>
4824 5214 <div class="ays-poll-check-box mr-2"
4825 - id="ays-poll-box-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
5215 + id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
4826 5216 $fields) === false) ? "style='display:none'" : ""; ?>>
4827 5217 <input type="checkbox" name="ays-poll-form-required-fields[]"
4828 - value="<?= $field['slug']; ?>"
4829 - id="ays-poll-form-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
5218 + value="<?php echo $field['slug']; ?>"
5219 + id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
4830 5220 $required_fields) !== false) ? "checked" : ""; ?>>
4831 - <label for="ays-poll-form-rfield-<?= $field['slug']; ?>">
4832 - <?= ucfirst($field['name']); ?></label>
5221 + <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5222 + <?php echo ucfirst($field['name']); ?></label>
4833 5223 </div>
4834 5224 <?php endforeach; ?>
4835 5225 </div>
4836 5226 </div>
@@ -4840,9 +5230,9 @@
4840 5230 <hr>
4841 5231 <div class="form-group row">
4842 5232 <div class="col-sm-3">
4843 5233 <label for="ays_poll_autofill_user_data">
4844 - <?php echo __('Autofill logged-in user data', "poll-maker"); ?>
5234 + <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
4845 5235 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr__('After enabling this option, logged in user\'s name and email will be autofilled in Information Form.', "poll-maker"); ?>">
4846 5236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4847 5237 </a>
4848 5238 </label>
@@ -4856,9 +5246,9 @@
4856 5246 <hr>
4857 5247 <div class="form-group row">
4858 5248 <div class="col-sm-3">
4859 5249 <label for="ays_poll_display_fields_labels">
4860 - <?php echo __('Display form fields with labels', "poll-maker"); ?>
5250 + <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
4861 5251 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr__('Show labels of form fields on the top of each field.Texts of labels will be taken from the "Fields placeholder" section on the General setting page.', "poll-maker"); ?>">
4862 5252 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4863 5253 </a>
4864 5254 </label>
@@ -4876,10 +5266,10 @@
4876 5266 </div>
4877 5267 <div class="form-group row">
4878 5268 <div class="col-sm-3">
4879 5269 <label>
4880 - <?= __('Add custom fields', "poll-maker"); ?>
4881 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("You can create custom fields with the following types: text, textarea, number, telephone, date, e-mail, URL, color, checkbox.", "poll-maker"); ?>">
5270 + <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5271 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("You can create custom fields with the following types: text, textarea, number, telephone, date, e-mail, URL, color, checkbox.", "poll-maker"); ?>">
4882 5272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4883 5273 </a>
4884 5274 </label>
4885 5275 </div>
@@ -4884,10 +5274,10 @@
4884 5274 </label>
4885 5275 </div>
4886 5276 <div class="col-sm-9">
4887 5277 <blockquote>
4888 - <?= __("For creating custom fields click ", "poll-maker"); ?>
4889 - <a href="?page=<?= $this->plugin_name; ?>-poll-attributes"><?= __("here", "poll-maker"); ?></a>
5278 + <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5279 + <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
4890 5280 </blockquote>
4891 5281 </div>
4892 5282 </div>
4893 5283 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -4892,12 +5282,12 @@
4892 5282 </div>
4893 5283 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4894 5284 <div class="ays-poll-new-upgrade-button-box">
4895 5285 <div>
4896 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4897 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5286 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5287 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4898 5288 </div>
4899 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5289 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4900 5290 </div>
4901 5291 </a>
4902 5292 </div>
4903 5293 </div>
@@ -4903,14 +5293,44 @@
4903 5293 </div>
4904 5294 <hr>
4905 5295 </div>
4906 5296 </div>
5297 + <div class="only_pro" style="position: relative; display: inline-block">
5298 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5299 + <div class="pro-features-popup-conteiner">
5300 + <div class="pro-features-popup-title">
5301 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5302 + </div>
5303 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5304 + <p>
5305 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5306 + </p>
5307 + <p>
5308 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5309 + </p>
5310 + </div>
5311 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5312 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
5313 + </div>
5314 + </div>
5315 + </div>
5316 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5317 + <span class="ays_save_as_default_content_for_mobile">
5318 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5319 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5320 + </a>
5321 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5322 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5323 + </a>
5324 + </span>
5325 + </div>
5326 + </div>
4907 5327 </div>
4908 - <div id="tab6" class="ays-poll-tab-content <?= $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5328 + <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
4909 5329 <div class="ays-poll-accordion-options-main-container">
4910 5330 <div class="ays-poll-accordion-header">
4911 - <?php echo $poll_acordion_svg_html; ?>
4912 - <p class="ays-subtitle"><?= __('Email settings', "poll-maker"); ?></p>
5331 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5332 + <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
4913 5333 </div>
4914 5334 <hr class="ays-poll-bolder-hr"/>
4915 5335 <div class="ays-poll-accordion-body">
4916 5336 <div class="form-group row ays_toggle_parent">
@@ -4915,11 +5335,11 @@
4915 5335 <div class="ays-poll-accordion-body">
4916 5336 <div class="form-group row ays_toggle_parent">
4917 5337 <div class="col-sm-3">
4918 5338 <label for="ays_notify_by_email_on">
4919 - <?= __('Results notification by email', "poll-maker"); ?>
5339 + <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
4920 5340 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4921 - title="<?= __('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>">
5341 + title="<?php echo esc_html__('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>">
4922 5342 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4923 5343 </a>
4924 5344 </label>
4925 5345 </div>
@@ -4929,17 +5349,17 @@
4929 5349 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
4930 5350 <div class="row ays_divider_left">
4931 5351 <div class="col-sm-3">
4932 5352 <label for="ays_notify_email">
4933 - <?php echo __('Email address', "poll-maker"); ?>
5353 + <?php echo esc_html__('Email address', "poll-maker"); ?>
4934 5354 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4935 - title="<?= __('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5355 + title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
4936 5356 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4937 5357 </a>
4938 5358 </label>
4939 5359 </div>
4940 5360 <div class="col-sm-9">
4941 - <input type="email" class="ays-text-input" name="ays_notify_email" id="ays_notify_email" value="<?= isset($options['notify_email']) && !empty($options['notify_email']) ? $options['notify_email'] : get_option('admin_email'); ?>" size="30">
5361 + <input type="email" class="ays-text-input" name="ays_notify_email" id="ays_notify_email" value="<?php echo isset($options['notify_email']) && !empty($options['notify_email']) ? $options['notify_email'] : get_option('admin_email'); ?>" size="30">
4942 5362 </div>
4943 5363 </div>
4944 5364 </div>
4945 5365 </div>
@@ -4948,20 +5368,20 @@
4948 5368 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4949 5369 <div class="pro_features pro_features_popup">
4950 5370 <div class="pro-features-popup-conteiner">
4951 5371 <div class="pro-features-popup-title">
4952 - <?php echo __("Send Mail to User", "poll-maker"); ?>
5372 + <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
4953 5373 </div>
4954 5374 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
4955 5375 <p>
4956 - <?php echo __("Send confirmation emails after the poll submission to the poll voters. This is the best way to connect to your website visitors and boost stronger relationships.", "poll-maker"); ?>
5376 + <?php echo esc_html__("Send confirmation emails after the poll submission to the poll voters. This is the best way to connect to your website visitors and boost stronger relationships.", "poll-maker"); ?>
4957 5377 </p>
4958 5378 <p>
4959 - <?php echo __("There are two ways to send email to the poll voters: Custom and SendGrid. Watch the video to learn more about the functionality.", "poll-maker"); ?>
5379 + <?php echo esc_html__("There are two ways to send email to the poll voters: Custom and SendGrid. Watch the video to learn more about the functionality.", "poll-maker"); ?>
4960 5380 </p>
4961 5381 </div>
4962 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-send-mail-to-user">
4963 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
5382 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-send-mail-to-user-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5383 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
4964 5384 </div>
4965 5385 </div>
4966 5386 </div>
4967 5387 <div class="pro_features" style="justify-content:flex-end;">
@@ -4968,11 +5388,11 @@
4968 5388 </div>
4969 5389 <div class="form-group row" >
4970 5390 <div class="col-sm-3">
4971 5391 <label for="ays_enable_mail_user">
4972 - <?= __('Send Mail to User', "poll-maker"); ?>
5392 + <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
4973 5393 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4974 - title="<?= __('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5394 + title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
4975 5395 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4976 5396 </a>
4977 5397 </label>
4978 5398 </div>
@@ -4985,20 +5405,20 @@
4985 5405 </div>
4986 5406 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4987 5407 <div class="ays-poll-new-upgrade-button-box">
4988 5408 <div>
4989 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4990 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5409 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5410 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4991 5411 </div>
4992 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5412 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4993 5413 </div>
4994 5414 </a>
4995 5415 <div class="ays-poll-new-watch-video-button-box">
4996 5416 <div>
4997 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
4998 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
5417 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5418 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
4999 5419 </div>
5000 - <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
5420 + <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5001 5421 </div>
5002 5422 </div>
5003 5423 </div>
5004 5424 <hr>
@@ -5008,10 +5428,10 @@
5008 5428 </div>
5009 5429 <div class="form-group row">
5010 5430 <div class="col-sm-4">
5011 5431 <label>
5012 - <?php echo __('Email configuration', "poll-maker")?>
5013 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Set up the attributes of the sending email.', "poll-maker"); ?>">
5432 + <?php echo esc_html__('Email configuration', "poll-maker")?>
5433 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Set up the attributes of the sending email.', "poll-maker"); ?>">
5014 5434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5015 5435 </a>
5016 5436 </label>
5017 5437 </div>
@@ -5018,12 +5438,12 @@
5018 5438 <div class="col-sm-8 ays_divider_left">
5019 5439 <div class="form-group row">
5020 5440 <div class="col-sm-3">
5021 5441 <label for="ays_poll_email_configuration_from_email">
5022 - <?php echo __('From email', "poll-maker")?>
5442 + <?php echo esc_html__('From email', "poll-maker")?>
5023 5443 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5024 5444 /* translators: 1: opening em tag, 2: closing em tag */
5025 - echo htmlspecialchars( sprintf( __("Specify the email address from which the results will be sent. If you leave the field blank, the sending email address will take the default value — %1\$spoll_maker@{your_site_url}%2\$s.", "poll-maker"),
5445 + echo htmlspecialchars( sprintf(esc_html__("Specify the email address from which the results will be sent. If you leave the field blank, the sending email address will take the default value — %1\$spoll_maker@{your_site_url}%2\$s.", "poll-maker"),
5026 5446 '<em>',
5027 5447 '</em>'
5028 5448 ) );
5029 5449 ?>">
@@ -5038,14 +5458,18 @@
5038 5458 <hr/>
5039 5459 <div class="form-group row">
5040 5460 <div class="col-sm-3">
5041 5461 <label for="ays_poll_email_configuration_from_name">
5042 - <?php echo __('From name', "poll-maker")?>
5462 + <?php echo esc_html__('From name', "poll-maker")?>
5043 5463 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5044 5464 /* translators: 1: opening em tag, 2: closing em tag */
5045 - echo htmlspecialchars( sprintf( __("Specify the name that will be displayed as the sender of the results. If you don't enter any name, it will be %1\$sPoll Maker%2\$s.", "poll-maker"),
5465 + echo wp_kses( sprintf(esc_html__("Specify the name that will be displayed as the sender of the results. If you don't enter any name, it will be %1\$sPoll Maker%2\$s.", "poll-maker"),
5466 + // translators: 1: opening em tag,
5046 5467 '<em>',
5468 + // translators: 2: closing em tag
5047 5469 '</em>'
5470 + ), array(
5471 + 'em' => array()
5048 5472 ) );
5049 5473 ?>">
5050 5474 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5051 5475 </a>
@@ -5058,10 +5482,10 @@
5058 5482 <hr/>
5059 5483 <div class="form-group row">
5060 5484 <div class="col-sm-3">
5061 5485 <label for="ays_poll_email_configuration_from_subject">
5062 - <?php echo __('Subject', "poll-maker")?>
5063 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("Fill in the subject field of the message. If you don't, it will take the poll title.", "poll-maker"); ?>">
5486 + <?php echo esc_html__('Subject', "poll-maker")?>
5487 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Fill in the subject field of the message. If you don't, it will take the poll title.", "poll-maker"); ?>">
5064 5488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5065 5489 </a>
5066 5490 </label>
5067 5491 </div>
@@ -5072,10 +5496,10 @@
5072 5496 <hr/>
5073 5497 <div class="form-group row">
5074 5498 <div class="col-sm-3">
5075 5499 <label for="ays_poll_email_configuration_replyto_email">
5076 - <?php echo __('Reply to email', "poll-maker")?>
5077 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("Specify to which email the poll taker can reply. If you leave the field blank, the email address won't be specified.", "poll-maker"); ?>">
5500 + <?php echo esc_html__('Reply to email', "poll-maker")?>
5501 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Specify to which email the poll taker can reply. If you leave the field blank, the email address won't be specified.", "poll-maker"); ?>">
5078 5502 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5079 5503 </a>
5080 5504 </label>
5081 5505 </div>
@@ -5086,10 +5510,10 @@
5086 5510 <hr/>
5087 5511 <div class="form-group row">
5088 5512 <div class="col-sm-3">
5089 5513 <label for="ays_poll_email_configuration_replyto_name">
5090 - <?php echo __('Reply to name', "poll-maker")?>
5091 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("Specify the name of the email address to which the poll taker can reply. If you leave the field blank, the name won't be specified.", "poll-maker"); ?>">
5514 + <?php echo esc_html__('Reply to name', "poll-maker")?>
5515 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Specify the name of the email address to which the poll taker can reply. If you leave the field blank, the name won't be specified.", "poll-maker"); ?>">
5092 5516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5093 5517 </a>
5094 5518 </label>
5095 5519 </div>
@@ -5101,12 +5525,12 @@
5101 5525 </div> <!-- Email Configuration -->
5102 5526 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5103 5527 <div class="ays-poll-new-upgrade-button-box">
5104 5528 <div>
5105 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5106 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5529 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5530 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5107 5531 </div>
5108 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5532 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5109 5533 </div>
5110 5534 </a>
5111 5535 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5112 5536 <div class="ays-poll-center-big-main-button-box">
@@ -5111,11 +5535,11 @@
5111 5535 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5112 5536 <div class="ays-poll-center-big-main-button-box">
5113 5537 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5114 5538 <div class="ays-poll-center-new-big-upgrade-button">
5115 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5116 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5117 - <?php echo __("Upgrade", "poll-maker"); ?>
5539 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5540 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5541 + <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5118 5542 </div>
5119 5543 </a>
5120 5544 </div>
5121 5545 </div>
@@ -5123,21 +5547,51 @@
5123 5547 </div>
5124 5548 <hr>
5125 5549 </div>
5126 5550 </div>
5551 + <div class="only_pro" style="position: relative; display: inline-block">
5552 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5553 + <div class="pro-features-popup-conteiner">
5554 + <div class="pro-features-popup-title">
5555 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5556 + </div>
5557 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5558 + <p>
5559 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5560 + </p>
5561 + <p>
5562 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5563 + </p>
5564 + </div>
5565 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5566 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
5567 + </div>
5568 + </div>
5569 + </div>
5570 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5571 + <span class="ays_save_as_default_content_for_mobile">
5572 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5573 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5574 + </a>
5575 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5576 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5577 + </a>
5578 + </span>
5579 + </div>
5580 + </div>
5127 5581 </div>
5128 - <div id="tab7" class="ays-poll-tab-content <?= $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5582 + <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5129 5583 <div class="ays-poll-accordion-options-main-container">
5130 5584 <div class="ays-poll-accordion-header">
5131 - <?php echo $poll_acordion_svg_html; ?>
5132 - <p class="ays-subtitle"><?= __('Integrations settings', "poll-maker"); ?></p>
5585 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5586 + <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5133 5587 </div>
5134 5588 <hr class="ays-poll-bolder-hr"/>
5135 5589 <div class="ays-poll-accordion-body">
5136 5590 <fieldset class="ays_poll_settings_integration_container">
5137 5591 <legend>
5138 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mailchimp_logo.png" alt="">
5139 - <h5><?php echo __('MailChimp Settings', "poll-maker")?></h5>
5592 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5593 + <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5140 5594 </legend>
5141 5595 <?php
5142 5596 if(count($mailchimp) > 0):
5143 5597 ?>
@@ -5147,10 +5601,10 @@
5147 5601 <blockquote class="error_message">
5148 5602 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5149 5603 <?php echo (
5150 5604 /* translators: anchor tag */
5151 - sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5152 - "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5605 + sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5606 + "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>".esc_html__("this", "poll-maker")."</a>"
5153 5607 )
5154 5608 );
5155 5609 ?>
5156 5610 </blockquote>
@@ -5159,9 +5613,9 @@
5159 5613 ?>
5160 5614 <div class="form-group row">
5161 5615 <div class="col-sm-4">
5162 5616 <label for="ays_enable_mailchimp">
5163 - <?php echo __('Enable MailChimp', "poll-maker")?>
5617 + <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5164 5618 </label>
5165 5619 </div>
5166 5620 <div class="col-sm-1">
5167 5621 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
@@ -5179,9 +5633,9 @@
5179 5633 <hr>
5180 5634 <div class="form-group row">
5181 5635 <div class="col-sm-4">
5182 5636 <label for="ays_mailchimp_list">
5183 - <?php echo __('MailChimp list', "poll-maker")?>
5637 + <?php echo esc_html__('MailChimp list', "poll-maker")?>
5184 5638 </label>
5185 5639 </div>
5186 5640 <div class="col-sm-8">
5187 5641 <?php if(is_array($mailchimp_select)): ?>
@@ -5197,9 +5651,9 @@
5197 5651 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5198 5652 <?php endforeach; ?>
5199 5653 </select>
5200 5654 <?php else: ?>
5201 - <span><?php echo $mailchimp_select; ?></span>
5655 + <span><?php echo esc_html($mailchimp_select); ?></span>
5202 5656 <?php endif; ?>
5203 5657 </div>
5204 5658 </div>
5205 5659 <?php
@@ -5210,10 +5664,10 @@
5210 5664 ?>
5211 5665 <blockquote class="error_message">
5212 5666 <?php echo (
5213 5667 /* translators: anchor tag */
5214 - sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5215 - "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5668 + sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5669 + "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>".esc_html__("this", "poll-maker")."</a>"
5216 5670 )
5217 5671 );
5218 5672 ?>
5219 5673 </blockquote>
@@ -5223,10 +5677,10 @@
5223 5677 </fieldset><!-- MailChimp Settings -->
5224 5678 <hr/>
5225 5679 <fieldset class="ays_poll_settings_integration_container">
5226 5680 <legend>
5227 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/campaignmonitor_logo.png" alt="">
5228 - <h5><?php echo __('Campaign Monitor Settings', "poll-maker") ?></h5>
5681 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5682 + <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5229 5683 </legend>
5230 5684 <div class="form-group row" style="margin: 0px;">
5231 5685 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5232 5686 <div class="pro_features" style="justify-content:flex-end;">
@@ -5233,9 +5687,9 @@
5233 5687 </div>
5234 5688 <div class="form-group row">
5235 5689 <div class="col-sm-4">
5236 5690 <label for="ays_enable_monitor">
5237 - <?php echo __('Enable Campaign Monitor', "poll-maker") ?>
5691 + <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5238 5692 </label>
5239 5693 </div>
5240 5694 <div class="col-sm-8">
5241 5695 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
@@ -5244,14 +5698,14 @@
5244 5698 <hr>
5245 5699 <div class="form-group row">
5246 5700 <div class="col-sm-4">
5247 5701 <label for="ays_monitor_list">
5248 - <?php echo __('Campaign Monitor list', "poll-maker") ?>
5702 + <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5249 5703 </label>
5250 5704 </div>
5251 5705 <div class="col-sm-8">
5252 5706 <select name="ays_monitor_list" id="ays_monitor_list">
5253 - <option value="" disabled selected><?= __("Select List", "poll-maker") ?></option>
5707 + <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5254 5708 </select>
5255 5709 </div>
5256 5710 </div>
5257 5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5256,12 +5710,12 @@
5256 5710 </div>
5257 5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5258 5712 <div class="ays-poll-new-upgrade-button-box">
5259 5713 <div>
5260 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5261 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5714 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5715 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5262 5716 </div>
5263 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5717 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5264 5718 </div>
5265 5719 </a>
5266 5720 </div>
5267 5721 </div>
@@ -5268,10 +5722,10 @@
5268 5722 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5269 5723 <hr/>
5270 5724 <fieldset class="ays_poll_settings_integration_container">
5271 5725 <legend>
5272 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/zapier_logo.png" alt="">
5273 - <h5><?php echo __('Zapier Integration Settings', "poll-maker") ?></h5>
5726 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5727 + <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5274 5728 </legend>
5275 5729 <div class="form-group row" style="margin: 0px;">
5276 5730 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5277 5731 <div class="pro_features" style="justify-content:flex-end;">
@@ -5278,9 +5732,9 @@
5278 5732 </div>
5279 5733 <div class="form-group row">
5280 5734 <div class="col-sm-4">
5281 5735 <label for="ays_enable_zapier">
5282 - <?php echo __('Enable Zapier Integration', "poll-maker") ?>
5736 + <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5283 5737 </label>
5284 5738 </div>
5285 5739 <div class="col-sm-1">
5286 5740 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
@@ -5288,12 +5742,12 @@
5288 5742 <div class="col-sm-3">
5289 5743 <button type="button"
5290 5744 id="testZapier"
5291 5745 class="btn btn-outline-secondary">
5292 - <?= __("Send test data", "poll-maker") ?>
5746 + <?php echo esc_html__("Send test data", "poll-maker") ?>
5293 5747 </button>
5294 5748 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5295 - title="<?= __('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>">
5749 + title="<?php echo esc_html__('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>">
5296 5750 <i class="ays_fa ays_fa_info_circle"></i>
5297 5751 </a>
5298 5752 </div>
5299 5753 </div>
@@ -5299,12 +5753,12 @@
5299 5753 </div>
5300 5754 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5301 5755 <div class="ays-poll-new-upgrade-button-box">
5302 5756 <div>
5303 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5304 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5757 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5758 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5305 5759 </div>
5306 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5760 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5307 5761 </div>
5308 5762 </a>
5309 5763 </div>
5310 5764 </div>
@@ -5311,10 +5765,10 @@
5311 5765 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5312 5766 <hr/>
5313 5767 <fieldset class="ays_poll_settings_integration_container">
5314 5768 <legend>
5315 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/activecampaign_logo.png" alt="">
5316 - <h5><?php echo __('Active Campaign Settings', "poll-maker") ?></h5>
5769 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5770 + <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5317 5771 </legend>
5318 5772 <div class="form-group row" style="margin: 0px;">
5319 5773 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5320 5774 <div class="pro_features" style="justify-content:flex-end;">
@@ -5321,9 +5775,9 @@
5321 5775 </div>
5322 5776 <div class="form-group row">
5323 5777 <div class="col-sm-4">
5324 5778 <label for="ays_enable_active_camp">
5325 - <?php echo __('Enable ActiveCampaign', "poll-maker") ?>
5779 + <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5326 5780 </label>
5327 5781 </div>
5328 5782 <div class="col-sm-1">
5329 5783 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
@@ -5332,16 +5786,16 @@
5332 5786 <hr>
5333 5787 <div class="form-group row">
5334 5788 <div class="col-sm-4">
5335 5789 <label>
5336 - <?php echo __('ActiveCampaign list', "poll-maker") ?>
5790 + <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5337 5791 </label>
5338 5792 </div>
5339 5793 <div class="col-sm-8">
5340 5794 <select name="ays_active_camp_list" id="ays_active_camp_list">
5341 5795 <option value="" disabled
5342 - selected><?= __("Select List", "poll-maker") ?></option>
5343 - <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5796 + selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5797 + <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5344 5798 </select>
5345 5799 </div>
5346 5800 </div>
5347 5801 <hr>
@@ -5347,16 +5801,16 @@
5347 5801 <hr>
5348 5802 <div class="form-group row">
5349 5803 <div class="col-sm-4">
5350 5804 <label>
5351 - <?php echo __('ActiveCampaign automation', "poll-maker") ?>
5805 + <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5352 5806 </label>
5353 5807 </div>
5354 5808 <div class="col-sm-8">
5355 5809 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5356 5810 <option value="" disabled
5357 - selected><?= __("Select List", "poll-maker") ?></option>
5358 - <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5811 + selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5812 + <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5359 5813 </select>
5360 5814 </div>
5361 5815 </div>
5362 5816 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5361,12 +5815,12 @@
5361 5815 </div>
5362 5816 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5363 5817 <div class="ays-poll-new-upgrade-button-box">
5364 5818 <div>
5365 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5366 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5819 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5820 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5367 5821 </div>
5368 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5822 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5369 5823 </div>
5370 5824 </a>
5371 5825 </div>
5372 5826 </div>
@@ -5373,10 +5827,10 @@
5373 5827 </fieldset><!-- Active Campaign Settings PRO Feature -->
5374 5828 <hr/>
5375 5829 <fieldset class="ays_poll_settings_integration_container">
5376 5830 <legend>
5377 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/slack_logo.png" alt="">
5378 - <h5><?php echo __('Slack Settings', "poll-maker") ?></h5>
5831 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5832 + <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5379 5833 </legend>
5380 5834 <div class="form-group row" style="margin: 0px;">
5381 5835 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5382 5836 <div class="pro_features" style="justify-content:flex-end;">
@@ -5383,9 +5837,9 @@
5383 5837 </div>
5384 5838 <div class="form-group row">
5385 5839 <div class="col-sm-4">
5386 5840 <label for="ays_enable_slack">
5387 - <?php echo __('Enable Slack integration', "poll-maker") ?>
5841 + <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5388 5842 </label>
5389 5843 </div>
5390 5844 <div class="col-sm-1">
5391 5845 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
@@ -5394,15 +5848,15 @@
5394 5848 <hr>
5395 5849 <div class="form-group row">
5396 5850 <div class="col-sm-4">
5397 5851 <label>
5398 - <?php echo __('Slack conversation', "poll-maker") ?>
5852 + <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5399 5853 </label>
5400 5854 </div>
5401 5855 <div class="col-sm-8">
5402 5856 <select id="ays_slack_conversation">
5403 5857 <option value="" disabled
5404 - selected><?= __("Select Channel", "poll-maker") ?></option>
5858 + selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5405 5859 </select>
5406 5860 </div>
5407 5861 </div>
5408 5862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5407,12 +5861,12 @@
5407 5861 </div>
5408 5862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5409 5863 <div class="ays-poll-new-upgrade-button-box">
5410 5864 <div>
5411 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5412 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5865 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5866 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5413 5867 </div>
5414 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5868 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5415 5869 </div>
5416 5870 </a>
5417 5871 </div>
5418 5872 </div>
@@ -5419,10 +5873,10 @@
5419 5873 </fieldset> <!-- Slack Settings PRO Feature -->
5420 5874 <hr>
5421 5875 <fieldset class="ays_poll_settings_integration_container">
5422 5876 <legend>
5423 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/sheets_logo.png" alt="">
5424 - <h5><?php echo __('Google Sheet Settings', "poll-maker") ?></h5>
5877 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5878 + <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5425 5879 </legend>
5426 5880 <div class="form-group row" style="margin: 0px;">
5427 5881 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5428 5882 <div class="pro_features" style="justify-content:flex-end;">
@@ -5429,9 +5883,9 @@
5429 5883 </div>
5430 5884 <div class="form-group row">
5431 5885 <div class="col-sm-4">
5432 5886 <label for="ays_poll_enable_google">
5433 - <?php echo __('Enable Google integration', "poll-maker") ?>
5887 + <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5434 5888 </label>
5435 5889 </div>
5436 5890 <div class="col-sm-1">
5437 5891 <input type="checkbox" class="ays-enable-timer1"
@@ -5440,12 +5894,12 @@
5440 5894 </div>
5441 5895 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5442 5896 <div class="ays-poll-new-upgrade-button-box">
5443 5897 <div>
5444 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5445 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5898 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5899 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5446 5900 </div>
5447 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5901 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5448 5902 </div>
5449 5903 </a>
5450 5904 </div>
5451 5905 </div>
@@ -5452,10 +5906,10 @@
5452 5906 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5453 5907 <hr>
5454 5908 <fieldset class="ays_poll_settings_integration_container">
5455 5909 <legend>
5456 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5457 - <h5><?php echo __('Mad Mimi', "poll-maker") ?></h5>
5910 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5911 + <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5458 5912 </legend>
5459 5913 <div class="form-group row" style="margin: 0px;">
5460 5914 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5461 5915 <div class="pro_features" style="justify-content:flex-end;">
@@ -5463,9 +5917,9 @@
5463 5917 <hr/>
5464 5918 <div class="form-group row">
5465 5919 <div class="col-sm-4">
5466 5920 <label for="ays_poll_enable_mad_mimi">
5467 - <?php echo __('Enable Mad Mimi', "poll-maker") ?>
5921 + <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5468 5922 </label>
5469 5923 </div>
5470 5924 <div class="col-sm-1">
5471 5925 <input type="checkbox" class="ays-enable-timer1">
@@ -5474,17 +5928,28 @@
5474 5928 <hr>
5475 5929 <div class="form-group row">
5476 5930 <div class="col-sm-4">
5477 5931 <label>
5478 - <?php echo __('Select List', "poll-maker") ?>
5932 + <?php echo esc_html__('Select List', "poll-maker") ?>
5479 5933 </label>
5480 5934 </div>
5481 5935 <div class="col-sm-8">
5482 5936 <?php
5937 + $allowed_tags = array(
5938 + 'select' => array(
5939 + 'id' => array(),
5940 + 'class' => array()
5941 + ),
5942 + 'option' => array(
5943 + 'value' => array(),
5944 + 'selected' => array()
5945 + )
5946 + );
5947 +
5483 5948 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5484 5949 $mad_mimi_select .= "<option value=''>Select list</option>";
5485 5950 $mad_mimi_select .= "</select>";
5486 - echo $mad_mimi_select;
5951 + echo wp_kses($mad_mimi_select, $allowed_tags);
5487 5952
5488 5953 ?>
5489 5954 </div>
5490 5955 </div>
@@ -5490,12 +5955,12 @@
5490 5955 </div>
5491 5956 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5492 5957 <div class="ays-poll-new-upgrade-button-box">
5493 5958 <div>
5494 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5495 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5959 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5960 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5496 5961 </div>
5497 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5962 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5498 5963 </div>
5499 5964 </a>
5500 5965 </div>
5501 5966 </div>
@@ -5502,10 +5967,10 @@
5502 5967 </fieldset> <!-- Mad Mimi -->
5503 5968 <hr>
5504 5969 <fieldset class="ays_poll_settings_integration_container">
5505 5970 <legend>
5506 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/get_response.png" alt="">
5507 - <h5><?php echo __('GetResponse Settings', "poll-maker") ?></h5>
5971 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5972 + <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5508 5973 </legend>
5509 5974 <div class="form-group row" style="margin: 0px;">
5510 5975 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5511 5976 <div class="pro_features" style="justify-content:flex-end;">
@@ -5512,9 +5977,9 @@
5512 5977 </div>
5513 5978 <div class="form-group row">
5514 5979 <div class="col-sm-4">
5515 5980 <label for="ays_poll_enable_getResponse">
5516 - <?php echo __('Enable GetResponse', "poll-maker") ?>
5981 + <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5517 5982 </label>
5518 5983 </div>
5519 5984 <div class="col-sm-8">
5520 5985 <input type="checkbox"
@@ -5524,17 +5989,29 @@
5524 5989 <hr>
5525 5990 <div class="form-group row">
5526 5991 <div class="col-sm-4">
5527 5992 <label>
5528 - <?php echo __('GetResponse List', "poll-maker") ?>
5993 + <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5529 5994 </label>
5530 5995 </div>
5531 5996 <div class="col-sm-8">
5532 5997 <?php
5998 + $allowed_tags = array(
5999 + 'select' => array(
6000 + 'id' => array(),
6001 + 'class' => array(),
6002 + 'name' => array()
6003 + ),
6004 + 'option' => array(
6005 + 'value' => array(),
6006 + 'selected' => array(),
6007 + 'disabled' => array()
6008 + )
6009 + );
5533 6010 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5534 6011 $mad_mimi_select .= "<option value=''>Select list</option>";
5535 6012 $mad_mimi_select .= "</select>";
5536 - echo $mad_mimi_select;
6013 + echo wp_kses($mad_mimi_select, $allowed_tags);
5537 6014
5538 6015 ?>
5539 6016 </div>
5540 6017 </div>
@@ -5540,12 +6017,12 @@
5540 6017 </div>
5541 6018 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5542 6019 <div class="ays-poll-new-upgrade-button-box">
5543 6020 <div>
5544 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5545 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6021 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6022 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5546 6023 </div>
5547 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6024 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5548 6025 </div>
5549 6026 </a>
5550 6027 </div>
5551 6028 </div>
@@ -5552,10 +6029,10 @@
5552 6029 </fieldset> <!-- GetResponse Settings -->
5553 6030 <hr>
5554 6031 <fieldset class="ays_poll_settings_integration_container">
5555 6032 <legend>
5556 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/convertkit_logo.png" alt="">
5557 - <h5><?php echo __('ConvertKit Settings', "poll-maker")?></h5>
6033 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
6034 + <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
5558 6035 </legend>
5559 6036 <div class="form-group row" style="margin: 0px;">
5560 6037 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5561 6038 <div class="pro_features" style="justify-content:flex-end;">
@@ -5562,9 +6039,9 @@
5562 6039 </div>
5563 6040 <div class="form-group row">
5564 6041 <div class="col-sm-4">
5565 6042 <label for="ays_poll_enable_convertkit">
5566 - <?php echo __('Enable ConvertKit', "poll-maker")?>
6043 + <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
5567 6044 </label>
5568 6045 </div>
5569 6046 <div class="col-sm-1">
5570 6047 <input type="checkbox" class="ays-enable-timer1"/>
@@ -5573,9 +6050,9 @@
5573 6050 <hr>
5574 6051 <div class="form-group row">
5575 6052 <div class="col-sm-4">
5576 6053 <label>
5577 - <?php echo __('ConvertKit list', "poll-maker")?>
6054 + <?php echo esc_html__('ConvertKit list', "poll-maker")?>
5578 6055 </label>
5579 6056 </div>
5580 6057 <div class="col-sm-8">
5581 6058 <select id="ays_poll_convertKit_list">
@@ -5585,12 +6062,12 @@
5585 6062 </div>
5586 6063 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5587 6064 <div class="ays-poll-new-upgrade-button-box">
5588 6065 <div>
5589 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5590 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6066 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6067 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5591 6068 </div>
5592 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6069 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5593 6070 </div>
5594 6071 </a>
5595 6072 </div>
5596 6073 </div>
@@ -5597,10 +6074,10 @@
5597 6074 </fieldset> <!-- ConvertKit Settings -->
5598 6075 <hr/>
5599 6076 <fieldset class="ays_poll_settings_integration_container">
5600 6077 <legend>
5601 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/klaviyo-logo.png" alt="">
5602 - <h5><?php echo __('Klaviyo', "poll-maker") ?></h5>
6078 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
6079 + <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
5603 6080 </legend>
5604 6081 <div class="form-group row" style="margin: 0px;">
5605 6082 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5606 6083 <div class="pro_features" style="justify-content:flex-end;">
@@ -5606,9 +6083,9 @@
5606 6083 <div class="pro_features" style="justify-content:flex-end;">
5607 6084 </div>
5608 6085 <div class="form-group row">
5609 6086 <div class="col-sm-4">
5610 - <label for="ays_poll_enable_klaviyo"><?php echo __('Enable Klaviyo', "poll-maker"); ?></label>
6087 + <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
5611 6088 </div>
5612 6089 <div class="col-sm-1">
5613 6090 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5614 6091 </div>
@@ -5615,13 +6092,13 @@
5615 6092 </div>
5616 6093 <hr>
5617 6094 <div class="form-group row">
5618 6095 <div class="col-sm-4">
5619 - <label for="ays_poll_klaviyo_list"><?php echo __('Klaviyo list',"poll-maker") ?></label>
6096 + <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
5620 6097 </div>
5621 6098 <div class="col-sm-8">
5622 6099 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5623 - <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
6100 + <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
5624 6101 </select>
5625 6102 </div>
5626 6103 </div>
5627 6104 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5626,12 +6103,12 @@
5626 6103 </div>
5627 6104 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5628 6105 <div class="ays-poll-new-upgrade-button-box">
5629 6106 <div>
5630 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5631 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6107 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6108 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5632 6109 </div>
5633 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6110 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5634 6111 </div>
5635 6112 </a>
5636 6113 </div>
5637 6114 </div>
@@ -5638,10 +6115,10 @@
5638 6115 </fieldset> <!-- Klaviyo -->
5639 6116 <hr>
5640 6117 <fieldset class="ays_poll_settings_integration_container">
5641 6118 <legend>
5642 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/aweber-logo.png" alt="">
5643 - <h5><?php echo __('Aweber', "poll-maker") ?></h5>
6119 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6120 + <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
5644 6121 </legend>
5645 6122 <div class="form-group row" style="margin: 0px;">
5646 6123 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5647 6124 <div class="pro_features" style="justify-content:flex-end;">
@@ -5647,9 +6124,9 @@
5647 6124 <div class="pro_features" style="justify-content:flex-end;">
5648 6125 </div>
5649 6126 <div class="form-group row">
5650 6127 <div class="col-sm-4">
5651 - <label for="ays_poll_enable_aweber"><?php echo __('Enable Aweber', "poll-maker") ?></label>
6128 + <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
5652 6129 </div>
5653 6130 <div class="col-sm-1">
5654 6131 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
5655 6132 </div>
@@ -5656,13 +6133,13 @@
5656 6133 </div>
5657 6134 <hr>
5658 6135 <div class="form-group row">
5659 6136 <div class="col-sm-4">
5660 - <label for="ays_poll_aweber_list_id"><?php echo __('Aweber Lists', "poll-maker") ?></label>
6137 + <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
5661 6138 </div>
5662 6139 <div class="col-sm-8">
5663 6140 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
5664 - <option value='' disabled selected><?php echo __( "Select list", "poll-maker" ) ?></option>
6141 + <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
5665 6142 </select>
5666 6143 </div>
5667 6144 </div>
5668 6145 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5667,12 +6144,12 @@
5667 6144 </div>
5668 6145 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5669 6146 <div class="ays-poll-new-upgrade-button-box">
5670 6147 <div>
5671 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5672 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6148 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6149 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5673 6150 </div>
5674 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6151 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5675 6152 </div>
5676 6153 </a>
5677 6154 </div>
5678 6155 </div>
@@ -5679,10 +6156,10 @@
5679 6156 </fieldset> <!-- Aweber -->
5680 6157 <hr>
5681 6158 <fieldset class="ays_poll_settings_integration_container">
5682 6159 <legend>
5683 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mail_poet.png" alt="">
5684 - <h5><?php echo __('MailPoet', "poll-maker") ?></h5>
6160 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6161 + <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
5685 6162 </legend>
5686 6163 <div class="form-group row" style="margin:0;">
5687 6164 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5688 6165 <div class="pro_features" style="justify-content:flex-end;">
@@ -5688,9 +6165,9 @@
5688 6165 <div class="pro_features" style="justify-content:flex-end;">
5689 6166 </div>
5690 6167 <div class="form-group row">
5691 6168 <div class="col-sm-4">
5692 - <label for="ays_poll_enable_mailpoet"><?php echo __('Enable MailPoet',"poll-maker"); ?></label>
6169 + <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
5693 6170 </div>
5694 6171 <div class="col-sm-1">
5695 6172 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
5696 6173 </div>
@@ -5697,13 +6174,13 @@
5697 6174 </div>
5698 6175 <hr>
5699 6176 <div class="form-group row">
5700 6177 <div class="col-sm-4">
5701 - <label for="ays_poll_mailpoet_list"><?php echo __('MailPoet list',"poll-maker") ?></label>
6178 + <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
5702 6179 </div>
5703 6180 <div class="col-sm-8">
5704 6181 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
5705 - <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
6182 + <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
5706 6183 </select>
5707 6184 </div>
5708 6185 </div>
5709 6186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5708,12 +6185,12 @@
5708 6185 </div>
5709 6186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5710 6187 <div class="ays-poll-new-upgrade-button-box">
5711 6188 <div>
5712 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5713 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6189 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6190 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5714 6191 </div>
5715 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6192 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5716 6193 </div>
5717 6194 </a>
5718 6195 </div>
5719 6196 </div>
@@ -5718,16 +6195,46 @@
5718 6195 </div>
5719 6196 </div>
5720 6197 </fieldset> <!-- Mailpoet -->
5721 6198 <hr>
6199 + <fieldset class="ays_poll_settings_integration_container">
6200 + <legend>
6201 + <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6202 + <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6203 + </legend>
6204 + <div class="form-group row" style="margin:0;">
6205 + <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6206 + <div class="pro_features" style="justify-content:flex-end;">
6207 + </div>
6208 + <div class="form-group row">
6209 + <div class="col-sm-4">
6210 + <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6211 + </div>
6212 + <div class="col-sm-1">
6213 + <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6214 + </div>
6215 + </div>
6216 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6217 + <div class="ays-poll-new-upgrade-button-box">
6218 + <div>
6219 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6220 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6221 + </div>
6222 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6223 + </div>
6224 + </a>
6225 + </div>
6226 + </div>
6227 + </fieldset> <!-- reCaptcha Settings -->
6228 + <hr>
5722 6229 </div>
5723 6230 </div>
5724 6231 </div>
5725 - <div id="tab8" class="ays-poll-tab-content <?= $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6232 + <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
5726 6233 <div class="ays-poll-accordion-options-main-container">
5727 6234 <div class="ays-poll-accordion-header">
5728 - <?php echo $poll_acordion_svg_html; ?>
5729 - <p class="ays-subtitle"><?= __('Results Settings', "poll-maker"); ?></p>
6235 + <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6236 + <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
5730 6237 </div>
5731 6238 <hr class="ays-poll-bolder-hr"/>
5732 6239 <div class="ays-poll-accordion-body">
5733 6240 <div class="form-group row">
@@ -5732,12 +6239,12 @@
5732 6239 <div class="ays-poll-accordion-body">
5733 6240 <div class="form-group row">
5734 6241 <div class="col-sm-3">
5735 6242 <label for='show-res-percent'>
5736 - <?= __('Show answer percent', "poll-maker"); ?>
6243 + <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
5737 6244 <a class="ays_help" data-toggle="tooltip"
5738 6245 data-placement="top"
5739 - title="<?= __("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>">
6246 + title="<?php echo esc_html__("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>">
5740 6247 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5741 6248 </a>
5742 6249 </label>
5743 6250 </div>
@@ -5742,9 +6249,9 @@
5742 6249 </label>
5743 6250 </div>
5744 6251 <div class="col-sm-9">
5745 6252 <input type="checkbox" name="show_res_percent" id="show-res-percent"
5746 - value="1" <?= $show_res_percent ? 'checked' : '' ?> >
6253 + value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
5747 6254 </div>
5748 6255 </div>
5749 6256 <hr>
5750 6257 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
@@ -5749,19 +6256,19 @@
5749 6256 <hr>
5750 6257 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
5751 6258 <div class="col-sm-3">
5752 6259 <label for='ays-poll-hide-results'>
5753 - <?= __('Hide results', "poll-maker"); ?>
6260 + <?php echo esc_html__('Hide results', "poll-maker"); ?>
5754 6261 <a class="ays_help"
5755 6262 data-toggle="tooltip"
5756 6263 data-placement="top"
5757 - title="<?= __("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6264 + title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
5758 6265 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5759 6266 </a>
5760 6267 </label>
5761 6268 <p class="ays_poll_small_hint_text_for_message_variables">
5762 - <span><?php echo __( "To see all Message Variables " , "poll-maker" ); ?></span>
5763 - <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here" , "poll-maker" ); ?></a>
6269 + <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6270 + <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
5764 6271 </p>
5765 6272 </div>
5766 6273 <div class="col-sm-9 ays_toggle_parent">
5767 6274 <div class="form-group row">
@@ -5768,9 +6275,9 @@
5768 6275
5769 6276 <!-- <div class="col-sm-1"> -->
5770 6277 <div class="col-sm-12">
5771 6278 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
5772 - value="hide" <?= isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6279 + value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
5773 6280 </div>
5774 6281 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
5775 6282 <div class="form-group row">
5776 6283 <div class="col-sm-12">
@@ -5775,13 +6282,13 @@
5775 6282 <div class="form-group row">
5776 6283 <div class="col-sm-12">
5777 6284 <div>
5778 6285 <label for='ays-poll-hide-results-text'>
5779 - <?= __('Message instead of results', "poll-maker"); ?>
6286 + <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
5780 6287 <a class="ays_help"
5781 6288 data-toggle="tooltip"
5782 6289 data-placement="top"
5783 - title="<?= __("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6290 + title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
5784 6291 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5785 6292 </a>
5786 6293 </label>
5787 6294 </div>
@@ -5806,16 +6313,16 @@
5806 6313 <hr>
5807 6314 <div class="form-group row ays-poll-desc-message-vars-parent">
5808 6315 <div class="col-sm-3">
5809 6316 <label for="ays_poll_result_message">
5810 - <?php echo __('Result Message', "poll-maker")?>
5811 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write the message, which will be shown on the result page of the poll.', "poll-maker")?>">
6317 + <?php echo esc_html__('Result Message', "poll-maker")?>
6318 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write the message, which will be shown on the result page of the poll.', "poll-maker")?>">
5812 6319 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5813 6320 </a>
5814 6321 </label>
5815 6322 <p class="ays_poll_small_hint_text_for_message_variables">
5816 - <span><?php echo __( "To see all Message Variables ", "poll-maker" ); ?></span>
5817 - <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here", "poll-maker" ); ?></a>
6323 + <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6324 + <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
5818 6325 </p>
5819 6326 </div>
5820 6327 <div class="col-sm-9 ays_toggle_parent">
5821 6328 <div class="form-group row">
@@ -5820,13 +6327,14 @@
5820 6327 <div class="col-sm-9 ays_toggle_parent">
5821 6328 <div class="form-group row">
5822 6329 <div class="col-sm-12">
5823 6330 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
5824 - value="hide" <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6331 + value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
5825 6332 </div>
5826 - <div class="col-sm-12 if_poll_hide_result_message ays_toggle_target" style="margin-top: 15px; <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? '' : 'display:none;'; ?>">
6333 + <div class="col-sm-12 if_poll_hide_result_message ays_toggle_target" style="margin-top: 15px; <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? '' : 'display:none;'; ?>">
5827 6334 <?php
5828 - $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'. __("Thank you!", "poll-maker") .'</p>' : '';
6335 + $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6336 +
5829 6337 echo $poll_message_vars_html;
5830 6338 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
5831 6339 $editor_id = 'ays_result_message';
5832 6340 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
@@ -5839,15 +6347,15 @@
5839 6347 <hr>
5840 6348 <div class="form-group row">
5841 6349 <div class="col-sm-3">
5842 6350 <label for='ays-poll-result-sort-type'>
5843 - <?php echo __('Results sorting', "poll-maker"); ?>
6351 + <?php echo esc_html__('Results sorting', "poll-maker"); ?>
5844 6352 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
5845 - echo __("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6353 + echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
5846 6354 "<ul style='list-style-type: circle;padding-left: 20px;'>".
5847 - "<li>". __('Ascending – the smallest to largest', "poll-maker") ."</li>".
5848 - "<li>". __('Descending – the largest to smallest', "poll-maker") ."</li>".
5849 - "<li>". __('None', "poll-maker") ."</li>".
6355 + "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6356 + "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6357 + "<li>".esc_html__('None', "poll-maker") ."</li>".
5850 6358 "</ul>";
5851 6359 ?>">
5852 6360 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5853 6361 </a></label>
@@ -5853,16 +6361,16 @@
5853 6361 </a></label>
5854 6362 </div>
5855 6363 <div class="col-sm-9">
5856 6364 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
5857 - <option value="none" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
5858 - <?= __("None", "poll-maker"); ?>
6365 + <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6366 + <?php echo esc_html__("None", "poll-maker"); ?>
5859 6367 </option>
5860 - <option value="ASC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
5861 - <?= __("Ascending", "poll-maker"); ?>
6368 + <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6369 + <?php echo esc_html__("Ascending", "poll-maker"); ?>
5862 6370 </option>
5863 - <option value="DESC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
5864 - <?= __("Descending", "poll-maker"); ?>
6371 + <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6372 + <?php echo esc_html__("Descending", "poll-maker"); ?>
5865 6373 </option>
5866 6374 </select>
5867 6375 </div>
5868 6376 </div>
@@ -5869,12 +6377,12 @@
5869 6377 <hr>
5870 6378 <div class="form-group row">
5871 6379 <div class="col-sm-3">
5872 6380 <label for='show-votes-count'>
5873 - <?= __('Show votes count', "poll-maker"); ?>
6381 + <?php echo esc_html__('Show votes count', "poll-maker"); ?>
5874 6382 <a class="ays_help" data-toggle="tooltip"
5875 6383 data-placement="top"
5876 - title="<?= __("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>">
6384 + title="<?php echo esc_html__("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>">
5877 6385 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5878 6386 </a>
5879 6387 </label>
5880 6388 </div>
@@ -5879,9 +6387,9 @@
5879 6387 </label>
5880 6388 </div>
5881 6389 <div class="col-sm-9">
5882 6390 <input type="checkbox" name="show_votes_count" id="show-votes-count"
5883 - value="1" <?= $showvotescount ? 'checked' : '' ?> >
6391 + value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
5884 6392 </div>
5885 6393 </div>
5886 6394 <hr>
5887 6395
@@ -5889,12 +6397,12 @@
5889 6397
5890 6398 <div class="form-group row">
5891 6399 <div class="col-sm-3">
5892 6400 <label for='ays-poll-load-effect'>
5893 - <?= __('Loading effect', "poll-maker"); ?>
6401 + <?php echo esc_html__('Loading effect', "poll-maker"); ?>
5894 6402 <a class="ays_help" data-toggle="tooltip"
5895 6403 data-placement="top"
5896 - title="<?= __("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6404 + title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
5897 6405 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5898 6406 </a>
5899 6407 </label>
5900 6408 </div>
@@ -5899,23 +6407,23 @@
5899 6407 </label>
5900 6408 </div>
5901 6409 <div class="col-sm-3">
5902 6410 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
5903 - <option value="load_gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
5904 - <?= __("Loading GIF", "poll-maker"); ?>
6411 + <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6412 + <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
5905 6413 </option>
5906 - <option value="opacity" <?= isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
5907 - <?= __("Opacity", "poll-maker"); ?>
6414 + <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6415 + <?php echo esc_html__("Opacity", "poll-maker"); ?>
5908 6416 </option>
5909 - <option value="blur" <?= isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
5910 - <?= __("Blur", "poll-maker"); ?>
6417 + <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6418 + <?php echo esc_html__("Blur", "poll-maker"); ?>
5911 6419 </option>
5912 - <option value="message" <?= isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
5913 - <?= __("Message", "poll-maker"); ?>
6420 + <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6421 + <?php echo esc_html__("Message", "poll-maker"); ?>
5914 6422 </option>
5915 6423 <option class="apm-pro-feature" disabled
5916 - title="<?= __("It is PRO version feature", "poll-maker"); ?>" value="pro">
5917 - <?= __("Custom GIF", "poll-maker"); ?>
6424 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6425 + <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
5918 6426 </option>
5919 6427 </select>
5920 6428 </div>
5921 6429 <div class="if-loading-gif col-sm-6 row">
@@ -5920,9 +6428,9 @@
5920 6428 </div>
5921 6429 <div class="if-loading-gif col-sm-6 row">
5922 6430 <div class="apm-loader d-flex justify-content-between align-items-center">
5923 6431 <input type="radio"
5924 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
6432 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
5925 6433 id="plg_default" value="plg_default">
5926 6434 <label for="plg_default" class="apm-loading-gif">
5927 6435 <div class="loader loader--style3">
5928 6436 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
@@ -5940,9 +6448,9 @@
5940 6448 </label>
5941 6449 </div>
5942 6450 <div class="apm-loader d-flex justify-content-between align-items-center">
5943 6451 <input type="radio"
5944 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?>
6452 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?>
5945 6453 id="plg_1" value="plg_1">
5946 6454 <label for="plg_1" class="apm-loading-gif">
5947 6455 <div class="loader loader--style5">
5948 6456 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
@@ -5969,9 +6477,9 @@
5969 6477 </label>
5970 6478 </div>
5971 6479 <div class="apm-loader d-flex justify-content-between align-items-center">
5972 6480 <input type="radio"
5973 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
6481 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
5974 6482 id="plg_2" value="plg_2">
5975 6483 <label for="plg_2" class="apm-loading-gif">
5976 6484 <div class="loader loader--style8">
5977 6485 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
@@ -6007,9 +6515,9 @@
6007 6515 </label>
6008 6516 </div>
6009 6517 <div class="apm-loader d-flex justify-content-between align-items-center">
6010 6518 <input type="radio"
6011 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?>
6519 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?>
6012 6520 id="plg_3" value="plg_3">
6013 6521 <label for="plg_3" class="apm-loading-gif">
6014 6522 <div class="loader loader--style5">
6015 6523 <svg width="100%" height="100%" viewBox="0 0 105 105"
@@ -6055,9 +6563,9 @@
6055 6563 </label>
6056 6564 </div>
6057 6565 <div class="apm-loader d-flex justify-content-between align-items-center">
6058 6566 <input type="radio"
6059 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?>
6567 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?>
6060 6568 id="plg_4" value="plg_4">
6061 6569 <label for="plg_4" class="apm-loading-gif">
6062 6570 <div class="loader loader--style4">
6063 6571 <svg width="100%" height="100%" viewBox="0 0 57 57"
@@ -6094,9 +6602,9 @@
6094 6602 </label>
6095 6603 </div>
6096 6604 <div class="apm-loader d-flex justify-content-between align-items-center">
6097 6605 <input type="radio"
6098 - name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?>
6606 + name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?>
6099 6607 id="plg_5" value="plg_5">
6100 6608 <label for="plg_5" class="apm-loading-gif">
6101 6609 <div class="loader loader--style4">
6102 6610 <svg width="100%" height="100%" viewBox="0 0 135 140"
@@ -6146,18 +6654,18 @@
6146 6654 </label>
6147 6655 </div>
6148 6656 </div>
6149 6657 <div class="if-loading-message col-sm-6 row">
6150 - <input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo $poll_effect_message; ?>">
6658 + <input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo esc_attr($poll_effect_message); ?>">
6151 6659 </div>
6152 6660 </div>
6153 - <hr class="<?php echo $poll_loader_size_line_enable; ?> ays_line_changeing">
6154 - <div class="form-group row <?php echo $poll_loader_size_enable; ?> ays_load_gif_cont">
6661 + <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6662 + <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6155 6663 <div class="col-sm-3">
6156 6664 <label for="ays_loader_font_size">
6157 - <?= __('Loading effect size', "poll-maker") ?>
6665 + <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6158 6666 <a class="ays_help" data-toggle="tooltip"
6159 - title="<?= __('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>">
6667 + title="<?php echo esc_html__('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>">
6160 6668 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6161 6669 </a>
6162 6670 </label>
6163 6671 </div>
@@ -6164,9 +6672,9 @@
6164 6672 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6165 6673 <div>
6166 6674 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6167 6675 name="ays_loader_font_size"
6168 - value="<?= $poll_loader_font_size; ?>"/>
6676 + value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6169 6677 </div>
6170 6678 <div class="ays_option_default_measurement_unit">
6171 6679 <input type="text" value="px" disabled>
6172 6680 </div>
@@ -6176,11 +6684,11 @@
6176 6684 <!-- Loading effect end -->
6177 6685 <div class="form-group row">
6178 6686 <div class="col-sm-3">
6179 6687 <label for="ays_enable_restart_button">
6180 - <?= __('Enable restart button', "poll-maker") ?>
6688 + <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6181 6689 <a class="ays_help" data-toggle="tooltip"
6182 - title="<?= __('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>">
6690 + title="<?php echo esc_html__('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>">
6183 6691 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6184 6692 </a>
6185 6693 </label>
6186 6694 </div>
@@ -6186,9 +6694,9 @@
6186 6694 </div>
6187 6695 <div class="col-sm-1">
6188 6696 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6189 6697 name="ays_enable_restart_button"
6190 - value="on" <?= (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6698 + value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6191 6699 </div>
6192 6700 </div>
6193 6701 <hr>
6194 6702 <div class="form-group row ays_toggle_parent">
@@ -6193,26 +6701,26 @@
6193 6701 <hr>
6194 6702 <div class="form-group row ays_toggle_parent">
6195 6703 <div class="col-sm-3">
6196 6704 <label for='ays-poll-show-social'>
6197 - <?= __('Social share buttons', "poll-maker"); ?>
6705 + <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6198 6706 <a class="ays_help"
6199 6707 data-toggle="tooltip"
6200 6708 data-placement="top"
6201 - title='<?= __("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'>
6709 + title='<?php echo esc_html__("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'>
6202 6710 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6203 6711 </a></label>
6204 6712 </div>
6205 6713 <div class="col-sm-1">
6206 6714 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6207 - value="show" <?= $poll_social_buttons ? 'checked' : ''; ?>>
6715 + value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6208 6716 </div>
6209 6717 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6210 6718 <div class="form-group row">
6211 6719 <div class="col-sm-4">
6212 6720 <label>
6213 - <?php echo __('Heading for share buttons', "poll-maker")?>
6214 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6721 + <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6722 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6215 6723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6216 6724 </a>
6217 6725 </label>
6218 6726 </div>
@@ -6229,10 +6737,10 @@
6229 6737 <div class="form-group row">
6230 6738 <div class="col-sm-4">
6231 6739 <label for="ays_poll_enable_linkedin_share_button">
6232 6740 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6233 - <?php echo __('LinkedIn button', "poll-maker")?>
6234 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display LinkedIn social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6741 + <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6742 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display LinkedIn social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6235 6743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6236 6744 </a>
6237 6745 </label>
6238 6746 </div>
@@ -6244,10 +6752,10 @@
6244 6752 <div class="form-group row">
6245 6753 <div class="col-sm-4">
6246 6754 <label for="ays_poll_enable_facebook_share_button">
6247 6755 <i class="ays_poll_fas ays_poll_facebook"></i>
6248 - <?php echo __('Facebook button', "poll-maker")?>
6249 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display Facebook social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6756 + <?php echo esc_html__('Facebook button', "poll-maker")?>
6757 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display Facebook social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6250 6758 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6251 6759 </a>
6252 6760 </label>
6253 6761 </div>
@@ -6259,10 +6767,10 @@
6259 6767 <div class="form-group row">
6260 6768 <div class="col-sm-4">
6261 6769 <label for="ays_poll_enable_twitter_share_button">
6262 6770 <i class="ays_fa ays_fa_twitter_square"></i>
6263 - <?php echo __('Twitter button', "poll-maker")?>
6264 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display Twitter social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6771 + <?php echo esc_html__('Twitter button', "poll-maker")?>
6772 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display Twitter social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6265 6773 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6266 6774 </a>
6267 6775 </label>
6268 6776 </div>
@@ -6274,10 +6782,10 @@
6274 6782 <div class="form-group row">
6275 6783 <div class="col-sm-4">
6276 6784 <label for="ays_poll_enable_vkontakte_share_button">
6277 6785 <i class="ays_fa ays_fa_vk"></i>
6278 - <?php echo __('VKontakte button', "poll-maker")?>
6279 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display VKontakte social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6786 + <?php echo esc_html__('VKontakte button', "poll-maker")?>
6787 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display VKontakte social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6280 6788 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6281 6789 </a>
6282 6790 </label>
6283 6791 </div>
@@ -6290,10 +6798,10 @@
6290 6798 <hr>
6291 6799 <div class="form-group row ays_toggle_parent">
6292 6800 <div class="col-sm-3">
6293 6801 <label for="ays_enable_social_links">
6294 - <?php echo __('Enable Social Media links', "poll-maker")?>
6295 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display social media links at the end of the poll to allow users to visit your pages in the Social media.', "poll-maker")?>">
6802 + <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6803 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display social media links at the end of the poll to allow users to visit your pages in the Social media.', "poll-maker")?>">
6296 6804 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6297 6805 </a>
6298 6806 </label>
6299 6807 </div>
@@ -6305,10 +6813,10 @@
6305 6813 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6306 6814 <div class="form-group row">
6307 6815 <div class="col-sm-4">
6308 6816 <label>
6309 - <?php echo __('Heading for social links', "poll-maker")?>
6310 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over social links.', "poll-maker"); ?>">
6817 + <?php echo esc_html__('Heading for social links', "poll-maker")?>
6818 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6311 6819 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6312 6820 </a>
6313 6821 </label>
6314 6822 </div>
@@ -6325,10 +6833,10 @@
6325 6833 <div class="form-group row">
6326 6834 <div class="col-sm-4">
6327 6835 <label for="ays_linkedin_link">
6328 6836 <i class="ays_fa ays_fa_linkedin_square"></i>
6329 - <?php echo __('LinkedIn link', "poll-maker")?>
6330 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6837 + <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6838 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6331 6839 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6332 6840 </a>
6333 6841 </label>
6334 6842 </div>
@@ -6341,10 +6849,10 @@
6341 6849 <div class="form-group row">
6342 6850 <div class="col-sm-4">
6343 6851 <label for="ays_facebook_link">
6344 6852 <i class="ays_fa ays_fa_facebook_square"></i>
6345 - <?php echo __('Facebook link', "poll-maker")?>
6346 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6853 + <?php echo esc_html__('Facebook link', "poll-maker")?>
6854 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6347 6855 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6348 6856 </a>
6349 6857 </label>
6350 6858 </div>
@@ -6356,11 +6864,14 @@
6356 6864 <hr/>
6357 6865 <div class="form-group row">
6358 6866 <div class="col-sm-4">
6359 6867 <label for="ays_twitter_link">
6360 - <i class="ays_fa ays_fa_twitter_square"></i>
6361 - <?php echo __('Twitter link', "poll-maker")?>
6362 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Twitter profile or page link for showing after poll finish.', "poll-maker")?>">
6868 + <!-- <i class="ays_fa ays_fa_twitter_square"></i> -->
6869 + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6870 + <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
6871 + </svg>
6872 + <?php echo esc_html__('X link', "poll-maker")?>
6873 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6363 6874 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6364 6875 </a>
6365 6876 </label>
6366 6877 </div>
@@ -6372,11 +6883,11 @@
6372 6883 <hr/>
6373 6884 <div class="form-group row">
6374 6885 <div class="col-sm-4">
6375 6886 <label for="ays_vkontakte_link">
6376 - <i class="ays_fa ays_fa_vk"></i>
6377 - <?php echo __('VKontakte link', "poll-maker")?>
6378 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6887 + <i class="ays_fa ays_fa_vk_square"></i>
6888 + <?php echo esc_html__('VKontakte link', "poll-maker")?>
6889 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6379 6890 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6380 6891 </a>
6381 6892 </label>
6382 6893 </div>
@@ -6388,11 +6899,11 @@
6388 6899 <hr>
6389 6900 <div class="form-group row">
6390 6901 <div class="col-sm-4">
6391 6902 <label for="ays_youtube_link">
6392 - <i class="ays_fa ays_fa_vk"></i>
6393 - <?php echo __('YouTube link', "poll-maker")?>
6394 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6903 + <i class="ays_fa ays_fa_youtube_square"></i>
6904 + <?php echo esc_html__('YouTube link', "poll-maker")?>
6905 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6395 6906 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6396 6907 </a>
6397 6908 </label>
6398 6909 </div>
@@ -6400,8 +6911,43 @@
6400 6911 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6401 6912 value="<?php echo $youtube_link; ?>" />
6402 6913 </div>
6403 6914 </div>
6915 + <hr>
6916 + <div class="form-group row">
6917 + <div class="col-sm-4">
6918 + <label for="ays_tiktok_link">
6919 + <!-- <i class="ays_fa ays_fa_tiktok_square"></i> -->
6920 + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6921 + <path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"></path>
6922 + </svg>
6923 + <?php echo esc_html__('TikTok link', "poll-maker")?>
6924 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6925 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6926 + </a>
6927 + </label>
6928 + </div>
6929 + <div class="col-sm-8">
6930 + <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6931 + value="<?php echo $tiktok_link; ?>" />
6932 + </div>
6933 + </div>
6934 + <hr>
6935 + <div class="form-group row">
6936 + <div class="col-sm-4">
6937 + <label for="ays_instagram_link">
6938 + <i class="ays_fa ays_fa_instagram_square"></i>
6939 + <?php echo esc_html__('Instagram link', "poll-maker")?>
6940 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Instagram profile or page link for showing after poll finish.', "poll-maker")?>">
6941 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6942 + </a>
6943 + </label>
6944 + </div>
6945 + <div class="col-sm-8">
6946 + <input type="text" class="ays-text-input" id="ays_instagram_link" name="ays_poll_social_links[ays_instagram_link]"
6947 + value="<?php echo $instagram_link; ?>" />
6948 + </div>
6949 + </div>
6404 6950 </div>
6405 6951 </div>
6406 6952 <hr>
6407 6953 <div class="form-group row">
@@ -6406,12 +6952,12 @@
6406 6952 <hr>
6407 6953 <div class="form-group row">
6408 6954 <div class="col-sm-3">
6409 6955 <label for='ays-poll-res-rgba'>
6410 - <?= __('Results bar in RGBA', "poll-maker"); ?>
6956 + <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6411 6957 <a class="ays_help" data-toggle="tooltip"
6412 6958 data-placement="top"
6413 - title="<?= __("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>">
6959 + title="<?php echo esc_html__("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>">
6414 6960 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6415 6961 </a>
6416 6962 </label>
6417 6963 </div>
@@ -6423,12 +6969,12 @@
6423 6969 <hr>
6424 6970 <div class="form-group row ays_toggle_parent">
6425 6971 <div class="col-sm-3">
6426 6972 <label for='ays_poll_show_users'>
6427 - <?= __('Show passed users avatars', "poll-maker"); ?>
6973 + <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6428 6974 <a class="ays_help" data-toggle="tooltip"
6429 6975 data-placement="top"
6430 - title="<?= __("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "poll-maker"); ?>">
6976 + title="<?php echo esc_html__("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "poll-maker"); ?>">
6431 6977 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6432 6978 </a>
6433 6979 </label>
6434 6980 </div>
@@ -6433,18 +6979,18 @@
6433 6979 </label>
6434 6980 </div>
6435 6981 <div class="col-sm-1">
6436 6982 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6437 - value="on" <?php echo $poll_show_passed_users_checked; ?>>
6983 + value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6438 6984 </div>
6439 6985 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6440 6986 <div class="row">
6441 6987 <div class="col-sm-3 ays_divider_left">
6442 6988 <label for='ays_poll_show_users_count'>
6443 - <?= __('Users count', "poll-maker"); ?>
6989 + <?php echo esc_html__('Users count', "poll-maker"); ?>
6444 6990 <a class="ays_help" data-toggle="tooltip"
6445 6991 data-placement="top"
6446 - title="<?= __("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6992 + title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6447 6993 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6448 6994 </a>
6449 6995 </label>
6450 6996 </div>
@@ -6452,9 +6998,9 @@
6452 6998 <input type="number"
6453 6999 name="ays_poll_show_users_count"
6454 7000 id="ays_poll_show_users_count"
6455 7001 class="ays-text-input ays-poll-answer-results-short-input"
6456 - value="<?php echo $poll_show_passed_users_count; ?>">
7002 + value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
6457 7003 </div>
6458 7004 </div>
6459 7005 </div>
6460 7006 </div>
@@ -6461,11 +7007,11 @@
6461 7007 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6462 7008 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6463 7009 <div class="col-sm-3">
6464 7010 <label for="ays_poll_enable_answer_redirect_delay">
6465 - <?= __('Option Redirect Delay', "poll-maker") ?>
7011 + <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
6466 7012 <a class="ays_help" data-toggle="tooltip"
6467 - title="<?= __('Choose the redirection delay in seconds after the user votes the poll. The option works if you have enabled the redirection of each answer individually from the General tab.', "poll-maker") ?>">
7013 + title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll. The option works if you have enabled the redirection of each answer individually from the General tab.', "poll-maker") ?>">
6468 7014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6469 7015 </a>
6470 7016 </label>
6471 7017 </div>
@@ -6476,10 +7022,10 @@
6476 7022 <input type="number"
6477 7023 class="ays-text-input ays-poll-answer-results-short-input"
6478 7024 id="ays_poll_answer_redirect_delay"
6479 7025 name="ays_poll_answer_redirect_delay"
6480 - value="<?= $poll_every_answer_redirect_delay; ?>"/>
6481 - <span class="ays_poll_small_hint_text">Seconds</span>
7026 + value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
7027 + <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
6482 7028 </div>
6483 7029 </div>
6484 7030 <hr>
6485 7031 <div class="form-group row">
@@ -6484,11 +7030,11 @@
6484 7030 <hr>
6485 7031 <div class="form-group row">
6486 7032 <div class="col-sm-3">
6487 7033 <label for="ays_poll_enable_answer_image_after_voting">
6488 - <?= __('Show answers image', "poll-maker") ?>
7034 + <?php echo esc_html__('Show answers image', "poll-maker") ?>
6489 7035 <a class="ays_help" data-toggle="tooltip"
6490 - title="<?= __('Tick this option to see the answers images after voting. Note it works only with the choosing type and you should have at least one answer with an image to use it.', "poll-maker") ?>">
7036 + title="<?php echo esc_html__('Tick this option to see the answers images after voting. Note it works only with the choosing type and you should have at least one answer with an image to use it.', "poll-maker") ?>">
6491 7037 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6492 7038 </a>
6493 7039 </label>
6494 7040 </div>
@@ -6500,11 +7046,11 @@
6500 7046 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6501 7047 <div class="form-group row">
6502 7048 <div class="col-sm-3">
6503 7049 <label for="apm_allow_add_answers">
6504 - <?= __('Show results by', "poll-maker"); ?>
7050 + <?php echo esc_html__('Show results by', "poll-maker"); ?>
6505 7051 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6506 - title="<?= __("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
7052 + title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6507 7053 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6508 7054 </a>
6509 7055 </label>
6510 7056 </div>
@@ -6514,15 +7060,15 @@
6514 7060 <div style="display: flex;">
6515 7061 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6516 7062 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6517 7063 <input type="radio" class="ays-poll-show-result-chart-google" name="ays_poll_show_result_chart" value="google_bar_chart" <?php echo ($show_chart_type == 'google_bar_chart') ? 'checked' : '' ?>/>
6518 - <span><?= __('Bar chart(Google)', "poll-maker"); ?></span>
7064 + <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
6519 7065 </label>
6520 7066 </div>
6521 7067 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6522 7068 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6523 7069 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6524 - <span><?= __('Bar chart', "poll-maker"); ?></span>
7070 + <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
6525 7071 </label>
6526 7072 </div>
6527 7073 </div>
6528 7074 </div>
@@ -6530,17 +7076,17 @@
6530 7076 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6531 7077 <div class="pro_features pro_features_popup">
6532 7078 <div class="pro-features-popup-conteiner">
6533 7079 <div class="pro-features-popup-title">
6534 - <?php echo __("Show Results by", "poll-maker"); ?>
7080 + <?php echo esc_html__("Show Results by", "poll-maker"); ?>
6535 7081 </div>
6536 7082 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
6537 7083 <p>
6538 - <?php echo __("Show the visual representation of your poll results in visualized charts. You are welcome to use any of the chart types that best suit your goals and missions. You can use the bar chart, pie chart, column chart, bar chart Google, or the \"not reloading\" option to show the poll results. Each of them has its unique uses and features; consider each of them to suit your needs the best.", "poll-maker"); ?>
7084 + <?php echo esc_html__("Show the visual representation of your poll results in visualized charts. You are welcome to use any of the chart types that best suit your goals and missions. You can use the bar chart, pie chart, column chart, bar chart Google, or the \"not reloading\" option to show the poll results. Each of them has its unique uses and features; consider each of them to suit your needs the best.", "poll-maker"); ?>
6539 7085 </p>
6540 7086 </div>
6541 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-results-by">
6542 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
7087 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-results-by-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7088 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
6543 7089 </div>
6544 7090 </div>
6545 7091 </div>
6546 7092 <div class="pro_features" style="justify-content:flex-end;">
@@ -6547,44 +7093,44 @@
6547 7093 </div>
6548 7094 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6549 7095 <input type="radio"/>
6550 7096 <label class="form-check-label ays_poll_check_label">
6551 - <?= __('Pie Chart', "poll-maker"); ?>
7097 + <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
6552 7098 </label>
6553 7099 </div>
6554 7100 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6555 7101 <input type="radio"/>
6556 7102 <label class="form-check-label ays_poll_check_label">
6557 - <?= __('Column Chart', "poll-maker"); ?>
7103 + <?php echo esc_html__('Column Chart', "poll-maker"); ?>
6558 7104 </label>
6559 7105 </div>
6560 7106 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
6561 7107 <input type="radio"/>
6562 7108 <label class="form-check-label ays_poll_check_label">
6563 - <?= __('Versus Chart', "poll-maker"); ?>
7109 + <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
6564 7110 </label>
6565 7111 </div>
6566 7112 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_rating_type" style="<?php echo $poll['view_type'] == 'star' ? '' : 'display: none'?>">
6567 7113 <input type="radio"/>
6568 7114 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
6569 - <?= __('Rating Chart', "poll-maker"); ?>
7115 + <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
6570 7116 </label>
6571 7117 </div>
6572 7118 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6573 7119 <div class="ays-poll-new-upgrade-button-box">
6574 7120 <div>
6575 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6576 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7121 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7122 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6577 7123 </div>
6578 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
7124 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6579 7125 </div>
6580 7126 </a>
6581 7127 <div class="ays-poll-new-watch-video-button-box">
6582 7128 <div>
6583 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6584 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7129 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7130 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6585 7131 </div>
6586 - <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
7132 + <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
6587 7133 </div>
6588 7134 </div>
6589 7135 </div>
6590 7136 </div>
@@ -6592,10 +7138,10 @@
6592 7138 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6593 7139 <div class="form-group row" style="align-items: center; margin-left: 0;">
6594 7140 <div class="col-sm-2">
6595 7141 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
6596 - <?= __('Chart height', "poll-maker") ?>
6597 - <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Set the Results Chart height. Note: The option works only for the Google Bar Chart.", "poll-maker"); ?>">
7142 + <?php echo esc_html__('Chart height', "poll-maker") ?>
7143 + <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Set the Results Chart height. Note: The option works only for the Google Bar Chart.", "poll-maker"); ?>">
6598 7144 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6599 7145 </a>
6600 7146 </label>
6601 7147 </div>
@@ -6600,9 +7146,9 @@
6600 7146 </label>
6601 7147 </div>
6602 7148 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6603 7149 <div>
6604 - <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_poll_show_result_chart_google_height" name="ays_poll_show_result_chart_google_height" value="<?= $show_chart_type_google_height; ?>"/>
7150 + <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_poll_show_result_chart_google_height" name="ays_poll_show_result_chart_google_height" value="<?php echo $show_chart_type_google_height; ?>"/>
6605 7151 </div>
6606 7152 <div class="ays_option_default_measurement_unit">
6607 7153 <input type="text" value="px" disabled>
6608 7154 </div>
@@ -6617,31 +7163,31 @@
6617 7163 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
6618 7164 <div class="pro_features pro_features_popup">
6619 7165 <div class="pro-features-popup-conteiner">
6620 7166 <div class="pro-features-popup-title">
6621 - <?php echo __("Results Message Based on the Answer", "poll-maker"); ?>
7167 + <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
6622 7168 </div>
6623 7169 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
6624 7170 <p>
6625 - <?php echo __("Show an individual approach to every poll respondent and add result messages based on their answers. Write result messages for every answer option and increase the user experience of your polls in seconds.", "poll-maker"); ?>
7171 + <?php echo esc_html__("Show an individual approach to every poll respondent and add result messages based on their answers. Write result messages for every answer option and increase the user experience of your polls in seconds.", "poll-maker"); ?>
6626 7172 </p>
6627 7173 </div>
6628 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-message-based-on-answer">
6629 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
7174 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-message-based-on-answer-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7175 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
6630 7176 </div>
6631 7177 </div>
6632 7178 </div>
6633 7179 <div class="pro_features" style="justify-content:flex-end;">
6634 7180 </div>
6635 - <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __("Result message based on the answer", "poll-maker"); ?></p>
7181 + <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
6636 7182 <hr>
6637 7183 <div class="form-group row">
6638 7184 <div class="col-sm-3">
6639 7185 <label for="ays_show_answer_message">
6640 - <?php echo __('Show Answer message', "poll-maker")?>
7186 + <?php echo esc_html__('Show Answer message', "poll-maker")?>
6641 7187 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
6642 7188 data-placement="top"
6643 - title="<?= __("Show different messages based on the answer.", "poll-maker"); ?>">
7189 + title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
6644 7190 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6645 7191 </a>
6646 7192 </label>
6647 7193 </div>
@@ -6656,27 +7202,70 @@
6656 7202 <div class='form-group row'>
6657 7203 <div class="ays_reset_answers_div">
6658 7204 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
6659 7205 </div>
6660 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("Refresh the below answers table after adding or removing answer(s) in the General tab.", "poll-maker"); ?>">
7206 + <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Refresh the below answers table after adding or removing answer(s) in the General tab.", "poll-maker"); ?>">
6661 7207 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6662 7208 </a>
6663 7209 </div>
6664 7210 <hr>
6665 7211 <?php
7212 + $allowed_tags = array(
7213 + 'div' => array(
7214 + 'class' => true
7215 + ),
7216 + 'table' => array(
7217 + 'class' => true
7218 + ),
7219 + 'thead' => array(),
7220 + 'tbody' => array(),
7221 + 'tr' => array(
7222 + 'class' => true
7223 + ),
7224 + 'th' => array(),
7225 + 'td' => array(
7226 + 'class' => true
7227 + ),
7228 + 'span' => array(),
7229 + 'input' => array(
7230 + 'type' => true,
7231 + 'name' => true,
7232 + 'class' => true,
7233 + 'value' => true,
7234 + 'hidden' => true
7235 + ),
7236 + 'textarea' => array(
7237 + 'type' => true,
7238 + 'name' => true,
7239 + 'class' => true
7240 + ),
7241 + 'label' => array(
7242 + 'class' => true,
7243 + 'for' => true
7244 + ),
7245 + 'a' => array(
7246 + 'href' => true,
7247 + 'class' => true
7248 + ),
7249 + 'img' => array(
7250 + 'src' => true,
7251 + 'class' => true
7252 + )
7253 + );
7254 +
6666 7255 $content = '<div class="ays-field-dashboard ays-table-wrap">
6667 7256 <table class="ays-answers-table ">
6668 7257 <thead>
6669 7258 <tr class="ui-state-default">
6670 - <th>'.__('Answers', "poll-maker").'</th>
6671 - <th>'.__('Text', "poll-maker").'</th>
6672 - <th>'.__('Image', "poll-maker").'</th>
7259 + <th>'. esc_html__('Answers', "poll-maker").'</th>
7260 + <th>'. esc_html__('Text', "poll-maker").'</th>
7261 + <th>'. esc_html__('Image', "poll-maker").'</th>
6673 7262 </tr>
6674 7263 </thead>
6675 7264 <tbody>';
6676 7265 $content .= '<tr class="ays-interval-row">
6677 7266 <td>
6678 - <span>'.__("Answer 1", "poll-maker").'</span>
7267 + <span>'. esc_html__("Answer 1", "poll-maker").'</span>
6679 7268 <input type="hidden" name="ays_answer_id[]">
6680 7269 </td>
6681 7270 <td>
6682 7271 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
@@ -6683,9 +7272,9 @@
6683 7272 </td>
6684 7273 <td class="ays-answer-image-td">
6685 7274 <label class="ays-label" for="ays-answer">
6686 7275 <a href="javascript:void(0)" class="add-answer-image" >
6687 - '.__("Add", "poll-maker").'
7276 + '. esc_html__("Add", "poll-maker").'
6688 7277 </a>
6689 7278 </label>
6690 7279 <div class="ays-answer-image-container ays-interval-image-container">
6691 7280 <span class="ays-remove-answer-img"></span>
@@ -6696,9 +7285,9 @@
6696 7285 </td>
6697 7286 </tr>
6698 7287 <tr class="ays-interval-row">
6699 7288 <td>
6700 - <span>'.__("Answer 2", "poll-maker").'</span>
7289 + <span>'. esc_html__("Answer 2", "poll-maker").'</span>
6701 7290 <input type="hidden" name="ays_answer_id[]">
6702 7291 </td>
6703 7292 <td>
6704 7293 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
@@ -6705,9 +7294,9 @@
6705 7294 </td>
6706 7295 <td class="ays-answer-image-td">
6707 7296 <label class="ays-label" for="ays-answer">
6708 7297 <a href="javascript:void(0)" class="add-answer-image" >
6709 - '.__("Add", "poll-maker").'
7298 + '. esc_html__("Add", "poll-maker").'
6710 7299 </a>
6711 7300 </label>
6712 7301 <div class="ays-answer-image-container ays-interval-image-container">
6713 7302 <span class="ays-remove-answer-img"></span>
@@ -6717,40 +7306,40 @@
6717 7306 </div>
6718 7307 </td>
6719 7308 </tr>';
6720 7309 $content .= '</tbody></table></div>';
6721 - echo $content;
7310 + echo wp_kses($content, $allowed_tags);
6722 7311 ?>
6723 7312 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6724 7313 <div class="ays-poll-new-upgrade-button-box">
6725 7314 <div>
6726 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6727 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7315 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7316 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6728 7317 </div>
6729 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
7318 + <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6730 7319 </div>
6731 7320 </a>
6732 7321 <div class="ays-poll-new-watch-video-button-box">
6733 7322 <div>
6734 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6735 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7323 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7324 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6736 7325 </div>
6737 - <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
7326 + <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
6738 7327 </div>
6739 7328 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
6740 7329 <div class="ays-poll-center-big-watch-video-button-box">
6741 7330 <div class="ays-poll-center-new-watch-video-demo-button">
6742 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6743 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6744 - <?php echo __("Watch Video", "poll-maker"); ?>
7331 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
7332 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7333 + <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
6745 7334 </div>
6746 7335 </div>
6747 7336 <div class="ays-poll-center-big-upgrade-button-box">
6748 7337 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6749 7338 <div class="ays-poll-center-new-big-upgrade-button">
6750 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6751 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6752 - <?php echo __("Upgrade", "poll-maker"); ?>
7339 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
7340 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7341 + <?php echo esc_html__("Upgrade", "poll-maker"); ?>
6753 7342 </div>
6754 7343 </a>
6755 7344 </div>
6756 7345 </div>
@@ -6758,67 +7347,44 @@
6758 7347 <hr/>
6759 7348 </div>
6760 7349 </div>
6761 7350 </div>
6762 - </div>
6763 - <div class="bottom-buttons-container">
6764 - <div class="ays_save_default_button_box">
6765 - <?php
6766 - if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
6767 -
6768 - $other_attributes = array(
6769 - 'id' => 'ays-polls-prev-button',
6770 - 'data-message' => __( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
6771 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
6772 - );
6773 - submit_button(__('Prev Poll', "poll-maker"), 'button button-primary ays-button ays-poll-prev-poll-button ays-poll-next-prev-button-class', 'ays_poll_prev_button', false, $other_attributes);
6774 - }
6775 -
6776 - if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
6777 -
6778 - $other_attributes = array(
6779 - 'id' => 'ays-polls-next-button',
6780 - 'data-message' => __( 'Are you sure you want to go to the next poll page?', "poll-maker"),
6781 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
6782 - );
6783 - submit_button(__('Next Poll', "poll-maker"), 'button button-primary ays-button ays_poll_next_poll_button ays-poll-next-prev-button-class', 'ays_poll_next_button', false, $other_attributes);
6784 - }
6785 - ?>
6786 - <div class="only_pro" style="position: relative; display: inline-block">
6787 - <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
6788 - <div class="pro-features-popup-conteiner">
6789 - <div class="pro-features-popup-title">
6790 - <?php echo __("Save as Default feature of Poll", "poll-maker"); ?>
6791 - </div>
6792 - <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
6793 - <p>
6794 - <?php echo __("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
6795 - </p>
6796 - <p>
6797 - <?php echo __("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
6798 - </p>
6799 - </div>
6800 - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default">
6801 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6802 - </div>
7351 + <div class="only_pro" style="position: relative; display: inline-block">
7352 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7353 + <div class="pro-features-popup-conteiner">
7354 + <div class="pro-features-popup-title">
7355 + <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
6803 7356 </div>
7357 + <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7358 + <p>
7359 + <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
7360 + </p>
7361 + <p>
7362 + <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
7363 + </p>
7364 + </div>
7365 + <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7366 + <?php echo esc_html__("Pricing", "poll-maker"); ?>
7367 + </div>
6804 7368 </div>
6805 - <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
6806 - <span class="ays_save_as_default_content_for_mobile">
6807 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
6808 - <input type="button" class="button ays_default_btn ays-loader-banner" value="Save as default">
6809 - </a>
6810 - <a class="ays_help" data-toggle="tooltip" title="<?php echo __( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
6811 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6812 - </a>
6813 - </span>
6814 - </div>
6815 7369 </div>
7370 + <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7371 + <span class="ays_save_as_default_content_for_mobile">
7372 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7373 + <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7374 + </a>
7375 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
7376 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7377 + </a>
7378 + </span>
7379 + </div>
6816 7380 </div>
7381 + </div>
7382 + <div class="bottom-buttons-container">
6817 7383 <div class='bottom-save-buttons-container'>
6818 7384 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
6819 7385 <?php
6820 - echo $loader_iamge;
7386 + echo wp_kses($loader_iamge, $loader_iamge_allow);
6821 7387 wp_nonce_field('poll_action', 'poll_action');
6822 7388 $save_bottom_attributes = array(
6823 7389 'id' => 'ays-button-apply',
6824 7390 'title' => 'Ctrl + s',
@@ -6824,12 +7390,12 @@
6824 7390 'title' => 'Ctrl + s',
6825 7391 'data-toggle' => 'tooltip',
6826 7392 'data-delay'=> '{"show":"1000"}'
6827 7393 );
6828 - submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7394 + submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
6829 7395 $save_close_bottom_attributes = array('id' => 'ays-button');
6830 - submit_button(__('Save and close', "poll-maker"), 'primary ays-button ays-loader-banner ays-bottom-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit', false, $save_close_bottom_attributes);
6831 - submit_button(__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7396 + submit_button( esc_html__('Save and close', "poll-maker"), 'primary ays-button ays-loader-banner ays-bottom-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit', false, $save_close_bottom_attributes);
7397 + submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
6832 7398 ?>
6833 7399 </div>
6834 7400 </div>
6835 7401 </div>
@@ -6838,22 +7404,22 @@
6838 7404 <hr>
6839 7405 <!-- <div class="form-group row ays-poll-general-bundle-container">
6840 7406 <div class="col-sm-12 ays-poll-general-bundle-box">
6841 7407 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
6842 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank"><img src="<?php //echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/black_friday_banner_logo.png"></a>
7408 + <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank"><img src="<?php //echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/black_friday_banner_logo.png"></a>
6843 7409 </div>
6844 7410 <div class="ays-poll-general-bundle-row">
6845 7411 <div class="ays-poll-general-bundle-text">
6846 - <?php //echo __( "Do not miss", $this->plugin_name ); ?>
6847 - <span><?php //echo __( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
6848 - <?php //echo __( "on Poll Maker plugin!", $this->plugin_name ); ?>
7412 + <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7413 + <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7414 + <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
6849 7415 <span class="ays-poll-general-bundle-color">
6850 - <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo __( "Poll Maker", $this->plugin_name ); ?></a>
6851 - </span> <?php //echo __( "plugin!", $this->plugin_name ); ?>
7416 + <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo esc_html__( "Poll Maker", $this->plugin_name ); ?></a>
7417 + </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
6852 7418 </div>
6853 - <p><?php //echo __( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7419 + <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
6854 7420 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
6855 - <div><a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo __( "Discount 20% OFF", $this->plugin_name ); ?></a></div>
7421 + <div><a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo esc_html__( "Discount 20% OFF", $this->plugin_name ); ?></a></div>
6856 7422 </div>
6857 7423 </div>
6858 7424 <div class="ays-poll-general-bundle-row">
6859 7425 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
@@ -6862,33 +7428,33 @@
6862 7428 </div> -->
6863 7429 <?php if($id === null): ?>
6864 7430 <div class="ays_poll_layer_container">
6865 7431 <div class="ays_poll_layer_content">
6866 - <div class="ays-poll-close-type">
6867 - <a href="?page=poll-maker-ays">
6868 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/icons/cross.png">
6869 - </a>
6870 - </div>
6871 7432 <div class="ays_poll_layer_box">
6872 7433 <div class="ays-poll-close-layer">
6873 7434 <div class="ays-poll-choose-type">
6874 - <p style="margin: 0;">Choose Your Poll Type</p>
7435 + <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
6875 7436 </div>
7437 + <div class="ays-poll-close-type">
7438 + <a href="?page=poll-maker-ays">
7439 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7440 + </a>
7441 + </div>
6876 7442 </div>
6877 7443 <div class="ays_poll_layer_box_blocks">
6878 7444 <label class='ays-poll-dblclick-layer'>
6879 - <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7445 + <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
6880 7446 <div class="ays_poll_layer_item" >
6881 7447 <div class="ays_poll_layer_item_logo" >
6882 7448 <div class="ays_poll_layer_item_logo_overlay
6883 7449 ays_poll_layer_item_logo_overlay_choosing" >
6884 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/choosing.png' ?>"
6885 - alt="<?= __('Choosing', "poll-maker") ?>">
7450 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7451 + alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
6886 7452 </div>
6887 7453 </div>
6888 7454 <div class="ays_poll_layer_item_title">
6889 - <p style="margin:0px;"><?php echo __('Choosing', "poll-maker") ?><p>
6890 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank">View demo</a>
7455 + <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7456 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
6891 7457 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6892 7458 </div>
6893 7459 <div class="ays_poll_layer_item_description"></div>
6894 7460 </div>
@@ -6893,20 +7459,20 @@
6893 7459 <div class="ays_poll_layer_item_description"></div>
6894 7460 </div>
6895 7461 </label>
6896 7462 <label class='ays-poll-dblclick-layer'>
6897 - <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7463 + <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
6898 7464 <div class="ays_poll_layer_item">
6899 7465 <div class="ays_poll_layer_item_logo">
6900 7466 <div class="ays_poll_layer_item_logo_overlay
6901 7467 ays_poll_layer_item_logo_overlay_rating">
6902 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/rating.png' ?>"
6903 - alt="<?= __('Rating', "poll-maker") ?>">
7468 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7469 + alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
6904 7470 </div>
6905 7471 </div>
6906 7472 <div class="ays_poll_layer_item_title">
6907 - <p style="margin:0px;"><?php echo __('Rating', "poll-maker") ?><p>
6908 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/rating-polls-rating-type/" style="font-size:14px;" target="_blank">View demo</a>
7473 + <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7474 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/rating-polls-rating-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
6909 7475 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6910 7476 </div>
6911 7477 <div class="ays_poll_layer_item_description"></div>
6912 7478 </div>
@@ -6911,21 +7477,20 @@
6911 7477 <div class="ays_poll_layer_item_description"></div>
6912 7478 </div>
6913 7479 </label>
6914 7480 <label class='ays-poll-dblclick-layer'>
6915 - <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'text') ? 'checked' : '' ?> >
7481 + <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
6916 7482 <div class="ays_poll_layer_item">
6917 7483 <div class="ays_poll_layer_item_logo">
6918 7484 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
6919 7485
6920 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Text.png' ?>"
6921 - alt="<?= __('Text', "poll-maker") ?>">
7486 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7487 + alt="<?php echo esc_html__('Text', "poll-maker") ?>">
6922 7488 </div>
6923 7489 </div>
6924 7490 <div class="ays_poll_layer_item_title">
6925 - <p style="margin:0px;"><?php echo __('Text', "poll-maker") ?><p>
6926 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6927 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/open-ended-question-polls-text-type/" style="font-size:14px;" target="_blank">View demo</a>
7491 + <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7492 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/open-ended-question-polls-text-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
6928 7493 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6929 7494 </div>
6930 7495 <div class="ays_poll_layer_item_description"></div>
6931 7496 </div>
@@ -6930,18 +7495,18 @@
6930 7495 <div class="ays_poll_layer_item_description"></div>
6931 7496 </div>
6932 7497 </label>
6933 7498 <label class='ays-poll-dblclick-layer'>
6934 - <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7499 + <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
6935 7500 <div class="ays_poll_layer_item">
6936 7501 <div class="ays_poll_layer_item_logo">
6937 7502 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
6938 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/voting.png' ?>" alt="<?= __('Voting', "poll-maker") ?>">
7503 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
6939 7504 </div>
6940 7505 </div>
6941 7506 <div class="ays_poll_layer_item_title">
6942 - <p style="margin:0px;"><?php echo __('Voting', "poll-maker") ?><p>
6943 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/voting-polls-voting-type/" style="font-size:14px;" target="_blank">View demo</a>
7507 + <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7508 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/voting-polls-voting-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
6944 7509 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6945 7510 </div>
6946 7511 <div class="ays_poll_layer_item_description"></div>
6947 7512 </div>
@@ -6956,20 +7521,19 @@
6956 7521 </span>
6957 7522 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
6958 7523 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
6959 7524
6960 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Dropdown.png' ?>"
6961 - alt="<?= __('Dropdown', "poll-maker") ?>">
7525 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7526 + alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
6962 7527 </div>
6963 7528 </div>
6964 7529 <div class="ays_poll_layer_item_title">
6965 7530 <p style="margin:0px;">
6966 7531 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6967 - <?php echo __('Dropdown', "poll-maker") ?>
7532 + <?php echo esc_html__('Dropdown', "poll-maker") ?>
6968 7533 </a>
6969 7534 <p>
6970 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6971 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/anonymous-polls-dropdown-type/" style="font-size:14px;" target="_blank">View demo</a>
7535 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/anonymous-polls-dropdown-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
6972 7536 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6973 7537 </div>
6974 7538 <div class="ays_poll_layer_item_description"></div>
6975 7539 </div>
@@ -6984,20 +7548,19 @@
6984 7548 </span>
6985 7549 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
6986 7550 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
6987 7551
6988 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/range.png' ?>"
6989 - alt="<?= __('Range', "poll-maker") ?>">
7552 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7553 + alt="<?php echo esc_html__('Range', "poll-maker") ?>">
6990 7554 </div>
6991 7555 </div>
6992 7556 <div class="ays_poll_layer_item_title">
6993 7557 <p style="margin:0px;">
6994 7558 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6995 - <?php echo __('Range', "poll-maker") ?>
7559 + <?php echo esc_html__('Range', "poll-maker") ?>
6996 7560 </a>
6997 7561 <p>
6998 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6999 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/slider-rating-polls-slider-type/" style="font-size:14px;" target="_blank">View demo</a>
7562 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/slider-rating-polls-slider-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7000 7563 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7001 7564 </div>
7002 7565 <div class="ays_poll_layer_item_description"></div>
7003 7566 </div>
@@ -7018,13 +7581,12 @@
7018 7581 </div>
7019 7582 <div class="ays_poll_layer_item_title">
7020 7583 <p style="margin:0px;">
7021 7584 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7022 - <?php echo __('Versus', "poll-maker") ?>
7585 + <?php echo esc_html__('Versus', "poll-maker") ?>
7023 7586 </a>
7024 7587 <p>
7025 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7026 - <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/versus-poll-versus-type/" style="font-size:14px;" target="_blank">View demo</a>
7588 + <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/versus-poll-versus-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7027 7589 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7028 7590 </div>
7029 7591 <div class="ays_poll_layer_item_description"></div>
7030 7592 </div>
@@ -7031,9 +7593,9 @@
7031 7593 </label>
7032 7594 </div>
7033 7595 <div class="ays_poll_select_button_layer">
7034 7596 <div class="ays_poll_select_button_item">
7035 - <input type="button" class="ays_poll_layer_button" name="" value="Next" data-type="<?php echo $poll['type']; ?>">
7597 + <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7036 7598 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7037 7599 </div>
7038 7600 </div>
7039 7601 </div>
@@ -7067,8 +7629,11 @@
7067 7629 <div class="pro-features-popup-modal-right-box-button">
7068 7630 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7069 7631 </div>
7070 7632 </div>
7633 + <div class="pro-features-popup-modal-right-box-footer-text">
7634 + <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7635 + </div>
7071 7636 </div>
7072 7637 </div>
7073 7638 </div>
7074 7639