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 +1826 -1280 5.6.2 → 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%%' => __("Current date", "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
@@ -95,10 +147,10 @@
95 147 'randomize_answers' => 'off',
96 148 "icon_size" => 24,
97 149 "width" => 600,
98 150 "width_for_mobile" => '',
99 - "btn_text" => __('Vote', "poll-maker"),
100 - "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"),
101 153 "border_style" => "ridge",
102 154 "border_radius" => 0,
103 155 "border_width" => 2,
104 156 "enable_box_shadow" => "",
@@ -103,9 +155,9 @@
103 155 "border_width" => 2,
104 156 "enable_box_shadow" => "",
105 157 "bg_image" => "",
106 158 "hide_results" => 0,
107 - "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>",
108 160 "allow_not_vote" => 0,
109 161 "show_social" => 0,
110 162 "poll_show_social_ln" => "on",
111 163 "poll_show_social_fb" => "on",
@@ -113,16 +165,16 @@
113 165 "poll_show_social_vk" => "off",
114 166 "load_effect" => "load_gif",
115 167 "load_gif" => "plg_default",
116 168 'limit_users' => 0,
117 - "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>",
118 170 'redirect_url' => '',
119 171 'redirection_delay' => '',
120 172 'users_role' => '',
121 173 'enable_restriction_pass' => 0,
122 - '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>",
123 175 'enable_logged_users' => 0,
124 - '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>",
125 177 'notify_email_on' => 0,
126 178 'notify_email' => '',
127 179 'result_sort_type' => 'none',
128 180 'redirect_after_submit' => 0,
@@ -141,10 +193,10 @@
141 193 'poll_gradient_direction' => 'vertical',
142 194 'activeIntervalSec' => '',
143 195 'deactiveIntervalSec' => '',
144 196 'active_date_check' => '',
145 - 'active_date_message_soon' => "<p style='text-align: center'>" . __("The poll will be available soon!", "poll-maker") . "</p>",
146 - '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>",
147 199 'enable_restart_button' => 0,
148 200 'enable_vote_btn' => 1,
149 201 'show_votes_count' => 1,
150 202 'show_res_percent' => 1,
@@ -151,9 +203,9 @@
151 203 'poll_direction' => 'ltr',
152 204 'info_form' => 0,
153 205 'fields' => 'apm_name,apm_email,apm_phone',
154 206 'required_fields' => 'apm_email',
155 - '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>",
156 208 'disable_answer_hover' => 0,
157 209 'enable_asnwers_sound' => 'off',
158 210 'poll_bg_image_position' => 'center center',
159 211 'poll_bg_img_in_finish_page' => 'off',
@@ -164,8 +216,10 @@
164 216 'poll_answer_font_size_mobile' => '16',
165 217 'show_passed_users' => 'off',
166 218 'logo_image' => '',
167 219 'dont_show_poll_cont' => 'off',
220 + 'show_votes_before_voting' => 'off',
221 + 'show_votes_before_voting_by' => 'by_count',
168 222 'see_result_button' => 'on',
169 223 'see_result_radio' => 'ays_see_result_button',
170 224 'loader_font_size' => '64',
171 225 'show_answers_numbering' => 'none',
@@ -176,10 +230,13 @@
176 230 'poll_question_size_mobile' => 16,
177 231 'poll_question_image_object_fit' => "cover",
178 232 'poll_title_font_size' => 20,
179 233 'poll_title_font_size_mobile' => 20,
234 + 'poll_title_font_weight' => "normal",
235 + 'poll_title_font_weight_mobile' => "normal",
180 236 'poll_title_alignment' => "center",
181 237 'poll_title_alignment_mobile' => "center",
238 + 'poll_title_text_transform' => "none",
182 239 'poll_text_type_length_enable' => "off",
183 240 'poll_text_type_limit_type' => "characters",
184 241 'poll_text_type_limit_length' => "",
185 242 'poll_text_type_limit_message' => "off",
@@ -215,14 +272,22 @@
215 272 $settings_options = json_decode($settings_options, true);
216 273 }else{
217 274 $settings_options = array();
218 275 }
219 -
276 +$loader_iamge_allow = array(
277 + 'span' => array(
278 + 'class' => array()
279 + ),
280 + 'img' => array(
281 + 'src' => array(),
282 + 'class' => array()
283 + )
284 +);
220 285 switch ( $action ) {
221 286 case 'add':
222 - $heading = __('Add new poll', "poll-maker");
287 + $heading =esc_html__('Add new poll', "poll-maker");
223 288 $options = array_merge($default_options, $default_colors);
224 - $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>";
225 290 // Default category
226 291 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
227 292
228 293 $poll['categories'] = $poll_default_cat;
@@ -233,10 +298,10 @@
233 298
234 299 $ays_check_post = '';
235 300 break;
236 301 case 'edit':
237 - $heading = __('Edit poll', "poll-maker");
238 - $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>";
239 304 $poll = $this->polls_obj->get_poll_by_id($id);
240 305 $post_id = !empty($poll) ? $poll['post_id'] : '';
241 306 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
242 307 $ays_poll_view_post_url = get_permalink($post_id);
@@ -246,9 +311,9 @@
246 311 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
247 312 wp_safe_redirect($url);
248 313 }
249 314
250 - $options = array_merge($default_options, $poll['styles']);
315 + $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
251 316 break;
252 317 default:
253 318 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
254 319 wp_safe_redirect($url);
@@ -280,19 +345,19 @@
280 345 $style_logo_check = false;
281 346 if (isset($poll['image']) && !empty($poll['image'])) {
282 347
283 348 $style = "display: block;";
284 - $image_text = __('Edit Image', "poll-maker");
349 + $image_text =esc_html__('Edit Image', "poll-maker");
285 350 }
286 351 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
287 352 $style_bg = "display: flex;";
288 353 $style_bg_options = "display: block;";
289 - $image_text_bg = __('Edit Image', "poll-maker");
354 + $image_text_bg =esc_html__('Edit Image', "poll-maker");
290 355 }
291 356 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
292 357 $style_logo = "display: block;";
293 358 $style_logo_check = true;
294 - $image_text_logo = __('Edit Image', "poll-maker");
359 + $image_text_logo =esc_html__('Edit Image', "poll-maker");
295 360 }
296 361
297 362 $published = $options['published'];
298 363
@@ -316,17 +381,17 @@
316 381 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
317 382
318 383 $all_fields = array(
319 384 array(
320 - "name" => __("Name", "poll-maker"),
385 + "name" =>esc_html__("Name", "poll-maker"),
321 386 "slug" => "apm_name",
322 387 ),
323 388 array(
324 - "name" => __("Email", "poll-maker"),
389 + "name" =>esc_html__("Email", "poll-maker"),
325 390 "slug" => "apm_email",
326 391 ),
327 392 array(
328 - "name" => __("Phone", "poll-maker"),
393 + "name" =>esc_html__("Phone", "poll-maker"),
329 394 "slug" => "apm_phone",
330 395 ),
331 396 );
332 397
@@ -363,9 +428,9 @@
363 428 'listName' => $list['name']
364 429 );
365 430 }
366 431 } else {
367 - $mailchimp_select = __("There are no lists", "poll-maker");
432 + $mailchimp_select =esc_html__("There are no lists", "poll-maker");
368 433 }
369 434
370 435 // MailChimp
371 436 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
@@ -598,8 +663,11 @@
598 663
599 664 // Buttons Width
600 665 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
601 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 +
602 670 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
603 671 // ==== BUTTON STYLES END ====
604 672
605 673 // ==== Allow Answer options ====
@@ -643,8 +711,14 @@
643 711
644 712 // Poll title font size for mobile
645 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";
646 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 +
647 721 // Poll title alignment
648 722 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
649 723
650 724 // Poll title alignment mobile
@@ -649,11 +723,21 @@
649 723
650 724 // Poll title alignment mobile
651 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;
652 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 +
653 730 // Poll view type
654 731 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
655 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 +
656 740 // ===== Poll text type options start =====
657 741 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
658 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";
659 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']) : "";
@@ -741,8 +825,9 @@
741 825 'twitter_link' => '',
742 826 'vkontakte_link' => '',
743 827 'instagram_link' => '',
744 828 'youtube_link' => '',
829 + 'tiktok_link' => '',
745 830 );
746 831 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
747 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
748 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
@@ -747,8 +832,10 @@
747 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
748 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
749 834 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
750 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'] : '';
751 838 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
752 839
753 840 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
754 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;
@@ -779,23 +866,23 @@
779 866 <style>
780 867 /*save changing properties of poll in the css-variables*/
781 868 :root {
782 869 /*colors*/
783 - --theme-main-color: <?php echo $options['main_color']; ?>;
784 - --theme-bg-color: <?php echo $options['bg_color']; ?>;
785 - --theme-answer-bg-color: <?php echo (isset($options['answer_bg_color']) && !empty($options['answer_bg_color'])) ? $options['answer_bg_color'] : $options['bg_color']; ?>;
786 - --theme-answer-hover-color: <?php echo (isset($options['answer_hover_color']) && !empty($options['answer_hover_color'])) ? $options['answer_hover_color'] : $options['text_color']; ?>;
787 - --theme-title-bg-color: <?php echo (isset($options['title_bg_color']) && !empty($options['title_bg_color'])) ? $options['title_bg_color'] : $options['bg_color']; ?>;
788 - --theme-text-color: <?php echo $options['text_color']; ?>;
789 - --theme-button-text-color: <?php echo $options['bg_color']; ?>;
790 - --theme-icon-color: <?php echo $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']); ?>;
791 878 /*options*/
792 879 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
793 - --poll-border-style: <?php echo $options['border_style']; ?>;
880 + --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
794 881 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
795 882 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
796 - --poll-box-shadow: <?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] . ' 0px 0px 10px 0px' : ''; ?>;
797 - --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . $options['bg_image'] . ")" : "unset"; ?>;
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"; ?>;
798 885 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
799 886 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
800 887 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
801 888
@@ -802,13 +889,19 @@
802 889 }
803 890
804 891
805 892 input[type='button'].ays-poll-btn{
806 - font-size: <?php echo $poll_buttons_font_size; ?>px;
807 - padding: <?php echo $poll_buttons_top_bottom_padding."px ".$poll_buttons_left_right_padding."px"; ?>;
808 - border-radius: <?php echo $poll_buttons_border_radius; ?>px;
809 - 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;
810 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 + }
811 904 </style>
812 905 <!--LIVE PREVIEW STYLES END-->
813 906 <div class="wrap">
814 907 <div class="ays-poll-heading-box">
@@ -814,30 +907,30 @@
814 907 <div class="ays-poll-heading-box">
815 908 <div class="ays-poll-wordpress-user-manual-box">
816 909 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
817 910 <i class="ays_poll_fas ays_fa_file_text"></i>
818 - <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>
819 912 </a>
820 913 </div>
821 914 </div>
822 915 <div class="container-fluid">
823 916 <form class="ays-poll-form" id="ays-poll-form" method="post">
824 - <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); ?>"/>
825 918 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
826 - <input type="hidden" name="ays_poll_author" value="<?php echo htmlentities(json_encode($poll_author)); ?>">
827 - <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']); ?>" >
828 921 <h1 class="wp-heading-inline">
829 922 <?php
830 - echo "$heading";
923 + echo esc_html($heading);
831 924 ?>
832 925 </h1>
833 926 <div>
834 927 <div class="ays-poll-subtitle-main-box">
835 - <p class="ays-subtitle">
836 - <?php if(isset($id) && count($get_all_polls) > 1):?>
837 - <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'; ?>">
838 932 <?php endif; ?>
839 - <strong class="ays_poll_title_in_top"><?php echo $poll['title']; ?></strong>
840 933 </p>
841 934 <?php if(isset($id) && count($get_all_polls) > 1):?>
842 935 <div class="ays-poll-polls-data">
843 936 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
@@ -842,12 +935,12 @@
842 935 <div class="ays-poll-polls-data">
843 936 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
844 937 <?php ?>
845 938 <label class="ays-poll-message-vars-each-data-label">
846 - <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">
847 940 <div class="ays-poll-polls-each-data">
848 - <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo $var; ?>">
849 - <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>
850 943 </div>
851 944 </label>
852 945 <?php endforeach ?>
853 946 </div>
@@ -855,15 +948,15 @@
855 948 </div>
856 949 <?php if($id !== null): ?>
857 950 <div class="row">
858 951 <div class="col-sm-3">
859 - <label> <?php echo __( "Shortcode text for editor", "poll-maker" ); ?> </label>
952 + <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
860 953 </div>
861 954 <div class="col-sm-9">
862 955 <p style="font-size:14px; font-style:italic;">
863 - <?php echo __("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
864 - <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>
865 - <?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"); ?>
866 959 </p>
867 960 </div>
868 961 </div>
869 962 <?php endif;?>
@@ -875,43 +968,43 @@
875 968 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
876 969 <div class="ays-top-menu">
877 970 <div class="nav-tab-wrapper ays-top-tab-wrapper">
878 971 <a href="#tab1" data-title="General"
879 - class="nav-tab <?= $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
880 - <?= __('General', "poll-maker"); ?>
972 + class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
973 + <?php echo esc_html__('General', "poll-maker"); ?>
881 974 </a>
882 975 <a href="#tab2" data-title="Styles"
883 - class="nav-tab <?= $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
884 - <?= __('Styles', "poll-maker"); ?>
976 + class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
977 + <?php echo esc_html__('Styles', "poll-maker"); ?>
885 978 </a>
886 979 <a href="#tab3" data-title="Settings"
887 - class="nav-tab <?= $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
888 - <?= __('Settings', "poll-maker"); ?>
980 + class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
981 + <?php echo esc_html__('Settings', "poll-maker"); ?>
889 982 </a>
890 983 <a href="#tab8" data-title="Results Settings"
891 - class="nav-tab <?= $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
892 - <?= __('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"); ?>
893 986 </a>
894 987 <a href="#tab4" data-title="Limitations"
895 - class="nav-tab <?= $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
896 - <?= __("Limitations", "poll-maker"); ?>
988 + class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
989 + <?php echo esc_html__("Limitations", "poll-maker"); ?>
897 990 </a>
898 991 <a href="#tab5" data-title="Userdata"
899 - class="nav-tab <?= $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
900 - <?= __('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"); ?>
901 994 </a>
902 995 <a href="#tab6" data-title="Email"
903 - class="nav-tab <?= $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
904 - <?= __('Email', "poll-maker"); ?>
996 + class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
997 + <?php echo esc_html__('Email', "poll-maker"); ?>
905 998 </a>
906 999 <a href="#tab7" data-title="Integrations"
907 - class="nav-tab <?= $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
908 - <?= __('Integrations', "poll-maker"); ?>
1000 + class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
1001 + <?php echo esc_html__('Integrations', "poll-maker"); ?>
909 1002 </a>
910 1003 </div>
911 1004 <div class='top-menu-buttons-container'>
912 1005 <?php
913 - echo $loader_iamge;
1006 + echo wp_kses($loader_iamge, $loader_iamge_allow);
914 1007 $save_attributes = array(
915 1008 'id' => 'ays-button-top-apply',
916 1009 'title' => 'Ctrl + s',
917 1010 'data-toggle' => 'tooltip',
@@ -916,27 +1009,27 @@
916 1009 'title' => 'Ctrl + s',
917 1010 'data-toggle' => 'tooltip',
918 1011 'data-delay'=> '{"show":"1000"}'
919 1012 );
920 - 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);
921 1014 $save_close_attributes = array('id' => 'ays-button-top');
922 - 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);
923 - 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());
924 1017 ?>
925 1018 </div>
926 1019 </div>
927 1020 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
928 1021 </div>
929 - <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' : ''; ?>">
930 1023 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
931 1024 <p class="ays-subtitle" style="margin-bottom:0;">
932 - <?= __('General options', "poll-maker"); ?>
1025 + <?php echo esc_html__('General options', "poll-maker"); ?>
933 1026 </p>
934 1027 <?php if ($poll_main_url != ''): ?>
935 1028 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
936 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;">
937 1030 <i class="fa fa-eye" aria-hidden="true"></i>
938 - <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>
939 1032 </a>
940 1033 </div>
941 1034 <?php endif; ?>
942 1035 </div>
@@ -943,12 +1036,12 @@
943 1036 <hr>
944 1037 <div class="form-group row">
945 1038 <div class="col-sm-3">
946 1039 <label for='ays-poll-title'>
947 - <?= __('Title', "poll-maker"); ?>
1040 + <?php echo esc_html__('Title', "poll-maker"); ?>
948 1041 <a class="ays_help" data-toggle="tooltip"
949 1042 data-placement="top"
950 - 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"); ?>">
951 1044 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
952 1045 </a>
953 1046 </label>
954 1047 </div>
@@ -953,9 +1046,9 @@
953 1046 </label>
954 1047 </div>
955 1048 <div class="col-sm-9 ays_divider_left">
956 1049 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
957 - data-required="false" value="<?= $poll_title ?>"/>
1050 + data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
958 1051 </div>
959 1052 </div>
960 1053 <hr>
961 1054 <div class="form-group row" style="display: flex;">
@@ -960,20 +1053,20 @@
960 1053 <hr>
961 1054 <div class="form-group row" style="display: flex;">
962 1055 <div class="col-sm-3">
963 1056 <label for='ays-poll-question'>
964 - <?= __('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"); ?>">
965 1058 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
966 1059 </a>
967 1060 <a href="javascript:void(0)" class="add-question-image button">
968 - <?= $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"); ?>">
969 1062 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
970 1063 </a></a>
971 1064 </label>
972 - <div class="ays-poll-question-image-container" style="<?= $style; ?>">
1065 + <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
973 1066 <span class="ays-remove-question-img"></span>
974 - <img src="<?= $poll['image']; ?>" id="ays-poll-img"/>
975 - <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']; ?>"/>
976 1069 </div>
977 1070 </div>
978 1071 <div class="col-sm-9">
979 1072 <?php
@@ -1001,9 +1094,9 @@
1001 1094 <?php if ($poll['type'] == 'choosing') : ?>
1002 1095 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1003 1096 <div class="col-sm-3">
1004 1097 <label for="ays-poll-answer" >
1005 - <?php echo __('Options', "poll-maker")?>
1098 + <?php echo esc_html__('Options', "poll-maker"); ?>
1006 1099 </label>
1007 1100 </div>
1008 1101 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1009 1102 <div>
@@ -1008,20 +1101,20 @@
1008 1101 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1009 1102 <div>
1010 1103 <div class='add-option-top-container'>
1011 1104 <a class="ays-add-answer ays-click-once" id='add-answer'>
1012 - <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1013 - <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>
1014 1107 </a>
1015 1108 </div>
1016 1109 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1017 1110 <thead>
1018 1111 <tr class="ui-state-default">
1019 - <th class="th-150"><?php echo __('Ordering', "poll-maker"); ?></th>
1020 - <th style="width: 100vw;"><?php echo __('Option', "poll-maker"); ?></th>
1021 - <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo __('Redirect URL', "poll-maker"); ?></th>
1022 - <th class="th-150 only_pro"><?php echo __('Image', "poll-maker"); ?></th>
1023 - <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>
1024 1117 </tr>
1025 1118 </thead>
1026 1119 <tbody class="">
1027 1120 <?php
@@ -1030,8 +1123,17 @@
1030 1123 $loop_iteration = 0;
1031 1124 $rows_count = count($answers);
1032 1125 $ays_key_enter = "";
1033 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 + );
1034 1136 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1035 1137 foreach ($answers as $index => $answer) {
1036 1138 $user_add_html = '';
1037 1139 $class = (($index + 1) % 2 == 0) ? "even" : "";
@@ -1070,27 +1172,27 @@
1070 1172 $ays_key_enter = "ays_poll_enter_key";
1071 1173 }
1072 1174 $loop_iteration++;
1073 1175 ?>
1074 - <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); ?>">
1075 1177 <td class="ays-sort">
1076 1178 <div class='ays_poll_move_arrows'></div>
1077 1179 <td>
1078 1180 <div class="ays_poll_display_flex">
1079 - <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?= $check_show_user_added ?>" />
1080 - <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); ?>">
1081 - <?php echo $user_add_html; ?>
1082 - <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); ?>">
1083 1185 </div>
1084 1186 </td>
1085 1187 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1086 - <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); ?>"/>
1087 1189 </td>
1088 1190 <td>
1089 1191 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1090 1192 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1091 1193 </label>
1092 - <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); ?>">
1093 1195 <span class="ays-poll-remove-answer-img"></span>
1094 1196 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1095 1197 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1096 1198 </div>
@@ -1095,9 +1197,9 @@
1095 1197 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1096 1198 </div>
1097 1199 </td>
1098 1200 <td>
1099 - <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);?>">
1100 1202 </a>
1101 1203 </td>
1102 1204 </tr>
1103 1205 <?php
@@ -1111,21 +1213,21 @@
1111 1213 }
1112 1214 $loop_iteration++;
1113 1215 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1114 1216 ?>
1115 - <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); ?>">
1116 1218 <td class="ays-sort">
1117 1219 <div class='ays_poll_move_arrows'></div>
1118 1220 </td>
1119 1221 <td class="ays-choosing-answer-container">
1120 1222 <div class="ays_poll_display_flex">
1121 - <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); ?>">
1122 - <?php echo $user_add_html; ?>
1123 - <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">
1124 1226 </div>
1125 1227 </td>
1126 1228 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1127 - <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=""/>
1128 1230 </td>
1129 1231 <td>
1130 1232 <label class='ays-label' for='ays-answer'>
1131 1233 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
@@ -1137,9 +1239,9 @@
1137 1239 </div>
1138 1240 </td>
1139 1241
1140 1242 <td>
1141 - <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);?>">
1142 1244 </a>
1143 1245 </td>
1144 1246 </tr>
1145 1247 <?php
@@ -1149,14 +1251,14 @@
1149 1251 </tbody>
1150 1252 </table>
1151 1253 <div class='add-option-top-container'>
1152 1254 <a class="ays-add-answer" id='add-answer'>
1153 - <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1154 - <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>
1155 1257 </a>
1156 1258 </div>
1157 - <input type="hidden" id="ays_poll_answers_count" value="<?php echo $answers_count ?>">
1158 - <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); ?>">
1159 1261 </div>
1160 1262
1161 1263 </div>
1162 1264 </div>
@@ -1164,9 +1266,9 @@
1164 1266 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1165 1267 <div class="form-group row" style="display: flex;">
1166 1268 <div class="col-sm-3">
1167 1269 <label for="ays-poll-answer" >
1168 - <?php echo __('Option Settings', "poll-maker")?>
1270 + <?php echo esc_html__('Option Settings', "poll-maker")?>
1169 1271 </label>
1170 1272 </div>
1171 1273 <div class="col-sm-9">
1172 1274 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
@@ -1176,10 +1278,10 @@
1176 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' : '' ?>/>
1177 1279 </div>
1178 1280 <div class="col-4 unset-padding-left">
1179 1281 <label for="ays_redirect_after_submit" >
1180 - <?php echo __('Answer Redirection', "poll-maker")?>
1181 - <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")?>">
1182 1284 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1183 1285 </a>
1184 1286 </label>
1185 1287 </div>
@@ -1191,33 +1293,33 @@
1191 1293 <div class="col-sm-12">
1192 1294 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1193 1295 <div class="col-1">
1194 1296 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1195 - value="on" <?= $poll_allow_answer ?>>
1297 + value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1196 1298 </div>
1197 1299 <div class="col-4 unset-padding-left">
1198 1300 <label for="ays_poll_allow_add_answers">
1199 - <?= __('Allow custom answer', "poll-maker"); ?>
1301 + <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1200 1302 <a class="ays_help" data-toggle="tooltip"
1201 1303 data-placement="top"
1202 - 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"); ?>">
1203 1305 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1204 1306 </a>
1205 1307 </label>
1206 1308 </div>
1207 1309 <div class="col-7 allow_add_answers_not_show_up_container">
1208 - <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;"'; ?>>
1209 1311 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1210 1312 <div class="col-2 ays_divider_left">
1211 1313 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1212 - value="on" <?= $poll_allow_answer_require ?> />
1314 + value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1213 1315 </div>
1214 1316 <div class="col-10">
1215 1317 <label for="ays_poll_allow_answer_require">
1216 - <?= __('Require admin approval', "poll-maker"); ?>
1318 + <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1217 1319 <a class="ays_help" data-toggle="tooltip"
1218 1320 data-placement="top"
1219 - 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"); ?>">
1220 1322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1221 1323 </a>
1222 1324 </label>
1223 1325 </div>
@@ -1230,18 +1332,18 @@
1230 1332 }
1231 1333 }
1232 1334 if($is_user_added_exist > 0):
1233 1335 ?>
1234 - <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;"' : '' ; ?>>
1235 1337 <div class="col-2 ays_divider_left" style="align-items: center;">
1236 1338 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1237 1339 </div>
1238 1340 <div class="col-10">
1239 1341 <label for="ays_poll_require_approve_select_all">
1240 - <?= __('Select all', "poll-maker"); ?>
1342 + <?php echo esc_html__('Select all', "poll-maker"); ?>
1241 1343 <a class="ays_help" data-toggle="tooltip"
1242 1344 data-placement="top"
1243 - 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"); ?>">
1244 1346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1245 1347 </a>
1246 1348 </label>
1247 1349 </div>
@@ -1258,19 +1360,19 @@
1258 1360 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1259 1361 <div class="if-voting poll-type-block form-group row">
1260 1362 <div class="col-sm-3">
1261 1363 <label for="ays-poll-vote-type">
1262 - <?= __('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"); ?>">
1263 1365 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1264 1366 </a></label>
1265 1367 </div>
1266 1368 <div class="col-sm-9 answers-col">
1267 1369 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1268 - <option value='hand' <?= $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1269 - <?= __('Hand', "poll-maker"); ?>
1370 + <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1371 + <?php echo esc_html__('Hand', "poll-maker"); ?>
1270 1372 </option>
1271 - <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1272 - <?= __('Emoji', "poll-maker"); ?>
1373 + <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1374 + <?php echo esc_html__('Emoji', "poll-maker"); ?>
1273 1375 </option>
1274 1376 </select>
1275 1377 <?php
1276 1378 switch ($poll['view_type']) {
@@ -1294,33 +1396,33 @@
1294 1396 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1295 1397 break;
1296 1398 }
1297 1399 ?>
1298 - <i id="vote-res" class="<?php echo $vote_res; ?>"></i>
1400 + <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1299 1401 </div>
1300 1402 </div>
1301 1403 <div class="if-rating poll-type-block form-group row">
1302 1404 <div class="col-sm-3">
1303 1405 <label for="ays-poll-rate-type">
1304 - <?= __('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"); ?>">
1305 1407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1306 1408 </a></label>
1307 1409 </div>
1308 1410 <div class="col-sm-9 answers-col">
1309 1411 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1310 - <option value='star' <?= $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1311 - <?= __('Stars', "poll-maker"); ?>
1412 + <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1413 + <?php echo esc_html__('Stars', "poll-maker"); ?>
1312 1414 </option>
1313 - <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1314 - <?= __('Emoji', "poll-maker"); ?>
1415 + <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1416 + <?php echo esc_html__('Emoji', "poll-maker"); ?>
1315 1417 </option>
1316 1418 </select>
1317 1419 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1318 - <option value="<?= count($poll['answers']); ?>" selected>
1319 - <?= count($poll['answers']); ?>
1420 + <option value="<?php echo count($poll['answers']); ?>" selected>
1421 + <?php echo count($poll['answers']); ?>
1320 1422 </option>
1321 1423 </select>
1322 - <i id="rate-res" class="<?php echo $rate_res; ?>"></i>
1424 + <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1323 1425 </div>
1324 1426 </div>
1325 1427 <hr class="if-voting if-rating">
1326 1428 <div class="form-group row">
@@ -1327,17 +1429,17 @@
1327 1429 <div class="col-sm-12 only_pro" style="padding:15px;">
1328 1430 <div class="pro_features pro_features_popup">
1329 1431 <div class="pro-features-popup-conteiner">
1330 1432 <div class="pro-features-popup-title">
1331 - <?php echo __("Add Fake Votes", "poll-maker"); ?>
1433 + <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1332 1434 </div>
1333 1435 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1334 1436 <p>
1335 - <?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"); ?>
1336 1438 </p>
1337 1439 </div>
1338 - <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">
1339 - <?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"); ?>
1340 1442 </div>
1341 1443 </div>
1342 1444 </div>
1343 1445 <div class="pro_features" style="justify-content:flex-end;">
@@ -1348,10 +1450,10 @@
1348 1450 value="on">
1349 1451 </div>
1350 1452 <div class="col-11 unset-padding-left">
1351 1453 <label for="ays_add_f_votes">
1352 - <?= __('Add fake votes', "poll-maker"); ?>
1353 - <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"); ?>">
1354 1456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1355 1457 </a>
1356 1458 </label>
1357 1459 </div>
@@ -1358,20 +1460,20 @@
1358 1460 </div>
1359 1461 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1360 1462 <div class="ays-poll-new-upgrade-button-box">
1361 1463 <div>
1362 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1363 - <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">
1364 1466 </div>
1365 - <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>
1366 1468 </div>
1367 1469 </a>
1368 1470 <div class="ays-poll-new-watch-video-button-box">
1369 1471 <div>
1370 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
1371 - <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">
1372 1474 </div>
1373 - <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>
1374 1476 </div>
1375 1477 </div>
1376 1478 </div>
1377 1479 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
@@ -1377,13 +1479,13 @@
1377 1479 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1378 1480 <div class="if-text poll-type-block form-group row">
1379 1481 <div class="col-sm-3">
1380 1482 <label for="">
1381 - <?= __('Choose text type', "poll-maker"); ?>
1483 + <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1382 1484 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1383 - <?php echo __( 'Choose the type of the question:' , "poll-maker" ); ?>
1384 - <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>
1385 - <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>">
1386 1488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1387 1489 </a>
1388 1490 </label>
1389 1491 </div>
@@ -1390,14 +1492,14 @@
1390 1492 <div class="col-sm-9 answers-col row">
1391 1493 <div class="d-flex" style="padding: 0 15px;">
1392 1494 <div class="form-check-inline">
1393 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" : ""; ?>>
1394 - <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");?>
1395 1497 </label>
1396 1498 </div>
1397 1499 <div class="form-check-inline">
1398 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" : ""; ?>>
1399 - <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");?>
1400 1502 </label>
1401 1503 </div>
1402 1504 </div>
1403 1505 </div>
@@ -1405,17 +1507,17 @@
1405 1507 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1406 1508 <div class="if-text poll-type-block form-group row">
1407 1509 <div class="col-sm-3">
1408 1510 <label for='ays_poll_text_type_placeholder'>
1409 - <?= __("Placeholder", "poll-maker"); ?>
1511 + <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1410 1512 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1411 - 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"); ?>">
1412 1514 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1413 1515 </a>
1414 1516 </label>
1415 1517 </div>
1416 1518 <div class="col-sm-3 ays_divider_left">
1417 - <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); ?>">
1418 1520 </div>
1419 1521 </div>
1420 1522 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1421 1523 <div class="if-text poll-type-block form-group row">
@@ -1420,17 +1522,17 @@
1420 1522 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1421 1523 <div class="if-text poll-type-block form-group row">
1422 1524 <div class="col-sm-3">
1423 1525 <label for='ays_poll_text_type_width'>
1424 - <?= __("Width", "poll-maker"); ?>
1526 + <?php echo esc_html__("Width", "poll-maker"); ?>
1425 1527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1426 - 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"); ?>">
1427 1529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1428 1530 </a>
1429 1531 </label>
1430 1532 </div>
1431 1533 <div class="col-sm-3 ays_divider_left">
1432 - <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); ?>">
1433 1535 </div>
1434 1536 <div class="col-sm-6">
1435 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">
1436 1538 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
@@ -1441,10 +1543,10 @@
1441 1543 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1442 1544 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1443 1545 <div class="col-sm-3">
1444 1546 <label for="ays_poll_enable_question_length">
1445 - <?= __('Maximum length of a text field', "poll-maker"); ?>
1446 - <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" ); ?>">
1447 1549 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1448 1550 </a>
1449 1551 </label>
1450 1552 </div>
@@ -1454,10 +1556,10 @@
1454 1556 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1455 1557 <div class="form-group row">
1456 1558 <div class="col-sm-4">
1457 1559 <label for="ays_poll_question_limit_text_type">
1458 - <?php echo __('Limit by', "poll-maker"); ?>
1459 - <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"); ?>">
1460 1562 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1461 1563 </a>
1462 1564 </label>
1463 1565 </div>
@@ -1462,10 +1564,10 @@
1462 1564 </label>
1463 1565 </div>
1464 1566 <div class="col-sm-8">
1465 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%;">
1466 - <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo __( 'Characters' , "poll-maker" ); ?></option>
1467 - <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>
1468 1570 </select>
1469 1571 </div>
1470 1572 </div>
1471 1573 <hr>
@@ -1471,10 +1573,10 @@
1471 1573 <hr>
1472 1574 <div class="form-group row">
1473 1575 <div class="col-sm-4">
1474 1576 <label for="ays_poll_question_text_max_length">
1475 - <?php echo __('Length', "poll-maker"); ?>
1476 - <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"); ?>">
1477 1579 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1478 1580 </a>
1479 1581 </label>
1480 1582 </div>
@@ -1485,10 +1587,10 @@
1485 1587 <hr>
1486 1588 <div class="form-group row">
1487 1589 <div class="col-sm-4">
1488 1590 <label for="ays_poll_question_enable_text_message">
1489 - <?php echo __('Show word/character counter', "poll-maker"); ?>
1490 - <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"); ?>">
1491 1593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1492 1594 </a>
1493 1595 </label>
1494 1596 </div>
@@ -1502,19 +1604,19 @@
1502 1604 </div>
1503 1605 </div>
1504 1606 </div>
1505 1607 </div>
1506 - <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' : ''; ?>">
1507 1609 <p class="ays-subtitle">
1508 - <?= __('Styling options', "poll-maker"); ?>
1610 + <?php echo esc_html__('Styling options', "poll-maker"); ?>
1509 1611 </p>
1510 1612 <hr>
1511 1613 <div class="form-group row ays-poll-all-themes-container">
1512 1614 <div class="col-sm-1">
1513 1615 <label for='ays-poll-theme' class="ays_label_flex">
1514 - <?= __('Theme', "poll-maker"); ?>
1616 + <?php echo esc_html__('Theme', "poll-maker"); ?>
1515 1617 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1516 - 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"); ?>">
1517 1619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1518 1620 </a>
1519 1621 </label>
1520 1622 </div>
@@ -1520,32 +1622,32 @@
1520 1622 </div>
1521 1623 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1522 1624 <div class="ays_poll_theme_image_div col">
1523 1625 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1524 - <p><?= __('Minimal', "poll-maker") ?></p>
1525 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/minimal.png' ?>"
1526 - 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") ?>">
1527 1629 </label>
1528 1630 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1529 - value="3" <?= ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1631 + value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1530 1632 </div>
1531 1633 <div class="ays_poll_theme_image_div col">
1532 1634 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1533 - <p><?= __('Classic Light', "poll-maker") ?></p>
1534 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicLight.png' ?>"
1535 - 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") ?>">
1536 1638 </label>
1537 1639 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1538 - value="1" <?= ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1640 + value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1539 1641 </div>
1540 1642 <div class="ays_poll_theme_image_div col">
1541 1643 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1542 - <p><?= __('Classic Dark', "poll-maker") ?></p>
1543 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicDark.png' ?>"
1544 - 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") ?>">
1545 1647 </label>
1546 1648 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1547 - value="2" <?= ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1649 + value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1548 1650 </div>
1549 1651 <div class="col">
1550 1652 <div class="form-group row" style="margin: 0px;">
1551 1653 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
@@ -1554,35 +1656,35 @@
1554 1656 <div class="ays_poll_theme_image_div_pro">
1555 1657 <div class="ays_poll_theme_image_div col apm-pro-feature">
1556 1658 <label class="ays-poll-theme-item">
1557 1659 <p>Light Shape</p>
1558 - <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' ?>"
1559 1661 alt="Light Shape"
1560 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1662 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1561 1663 </label>
1562 1664 </div>
1563 1665 <div class="ays_poll_theme_image_div col apm-pro-feature">
1564 1666 <label class="ays-poll-theme-item">
1565 1667 <p>Dark Shape</p>
1566 - <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' ?>"
1567 1669 alt="Light Shape"
1568 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1670 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1569 1671 </label>
1570 1672 </div>
1571 1673 <div class="ays_poll_theme_image_div col apm-pro-feature">
1572 1674 <label class="ays-poll-theme-item">
1573 1675 <p>Coffee Fluid</p>
1574 - <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' ?>"
1575 1677 alt="Coffee Fluid"
1576 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1678 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1577 1679 </label>
1578 1680 </div>
1579 1681 <div class="ays_poll_theme_image_div col apm-pro-feature">
1580 1682 <label class="ays-poll-theme-item">
1581 - <p><?= __("Aquamarine", "poll-maker") ?></p>
1582 - <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' ?>"
1583 1685 alt="Aquamarine"
1584 - title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1686 + title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1585 1687 </label>
1586 1688 </div>
1587 1689 </div>
1588 1690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -1587,12 +1689,12 @@
1587 1689 </div>
1588 1690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1589 1691 <div class="ays-poll-new-upgrade-button-box">
1590 1692 <div>
1591 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1592 - <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">
1593 1695 </div>
1594 - <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>
1595 1697 </div>
1596 1698 </a>
1597 1699 </div>
1598 1700 </div>
@@ -1604,10 +1706,10 @@
1604 1706 <div class="row">
1605 1707 <div class="col-lg-6 col-sm-12">
1606 1708 <div class="ays-poll-accordion-options-main-container">
1607 1709 <div class="ays-poll-accordion-header">
1608 - <?php echo $poll_acordion_svg_html; ?>
1609 - <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>
1610 1712 </div>
1611 1713 <hr class="ays-poll-bolder-hr"/>
1612 1714 <div class="ays-poll-accordion-body">
1613 1715 <div class="form-group row">
@@ -1612,13 +1714,13 @@
1612 1714 <div class="ays-poll-accordion-body">
1613 1715 <div class="form-group row">
1614 1716 <div class="col-sm-4">
1615 1717 <label for='ays-poll-main-color'>
1616 - <?= __('Main Color', "poll-maker"); ?>
1718 + <?php echo esc_html__('Main Color', "poll-maker"); ?>
1617 1719 <a class="ays_help"
1618 1720 data-toggle="tooltip"
1619 1721 data-placement="top"
1620 - 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"); ?>">
1621 1723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1622 1724 </a>
1623 1725 </label>
1624 1726 </div>
@@ -1624,9 +1726,9 @@
1624 1726 </div>
1625 1727 <div class="col-sm-8 ays_divider_left">
1626 1728 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1627 1729 name='ays_poll_main_color'
1628 - 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']; ?>"/>
1629 1731 </div>
1630 1732 </div>
1631 1733 <hr>
1632 1734 <div class="form-group row">
@@ -1631,13 +1733,13 @@
1631 1733 <hr>
1632 1734 <div class="form-group row">
1633 1735 <div class="col-sm-4">
1634 1736 <label for='ays-poll-text-color'>
1635 - <?= __('Text Color', "poll-maker"); ?>
1737 + <?php echo esc_html__('Text Color', "poll-maker"); ?>
1636 1738 <a class="ays_help"
1637 1739 data-toggle="tooltip"
1638 1740 data-placement="top"
1639 - 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"); ?>">
1640 1742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1641 1743 </a>
1642 1744 </label>
1643 1745 </div>
@@ -1643,9 +1745,9 @@
1643 1745 </div>
1644 1746 <div class="col-sm-8 ays_divider_left">
1645 1747 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1646 1748 name='ays_poll_text_color'
1647 - 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']); ?>"/>
1648 1750 </div>
1649 1751 </div>
1650 1752 <hr>
1651 1753 <div class="form-group row">
@@ -1650,13 +1752,13 @@
1650 1752 <hr>
1651 1753 <div class="form-group row">
1652 1754 <div class="col-sm-4">
1653 1755 <label for='ays-poll-icon-color'>
1654 - <?= __('Icons Color', "poll-maker"); ?>
1756 + <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1655 1757 <a class="ays_help"
1656 1758 data-toggle="tooltip"
1657 1759 data-placement="top"
1658 - 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"); ?>">
1659 1761 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1660 1762 </a>
1661 1763 </label>
1662 1764 </div>
@@ -1662,9 +1764,9 @@
1662 1764 </div>
1663 1765 <div class="col-sm-8 ays_divider_left">
1664 1766 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1665 1767 name='ays_poll_icon_color'
1666 - 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']); ?>"/>
1667 1769 </div>
1668 1770 </div>
1669 1771 <hr>
1670 1772 <div class="form-group row">
@@ -1669,10 +1771,10 @@
1669 1771 <hr>
1670 1772 <div class="form-group row">
1671 1773 <div class="col-sm-4">
1672 1774 <label for='ays-poll-bg-color'>
1673 - <?= __('Background Color', "poll-maker"); ?>
1674 - <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"); ?>">
1675 1777 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1676 1778 </a>
1677 1779 </label>
1678 1780 </div>
@@ -1678,9 +1780,9 @@
1678 1780 </div>
1679 1781 <div class="col-sm-8 ays_divider_left">
1680 1782 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1681 1783 name='ays_poll_bg_color'
1682 - 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']); ?>"/>
1683 1785 </div>
1684 1786 </div>
1685 1787 <hr>
1686 1788 <div class="form-group row">
@@ -1685,11 +1787,11 @@
1685 1787 <hr>
1686 1788 <div class="form-group row">
1687 1789 <div class="col-sm-4">
1688 1790 <label for='ays-poll-bg-image'>
1689 - <?= __('Background Image', "poll-maker"); ?>
1791 + <?php echo esc_html__('Background Image', "poll-maker"); ?>
1690 1792 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1691 - 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"); ?>">
1692 1794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1693 1795 </a>
1694 1796 </label>
1695 1797 </div>
@@ -1694,41 +1796,41 @@
1694 1796 </label>
1695 1797 </div>
1696 1798 <div class="col-sm-8 ays_divider_left">
1697 1799 <a href="javascript:void(0)" class="add-bg-image button">
1698 - <?= $image_text_bg; ?>
1800 + <?php echo esc_html($image_text_bg); ?>
1699 1801 </a>
1700 - <div class="form-group row" style="<?= $style_bg; ?>">
1802 + <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1701 1803 <div class="ays-poll-bg-image-container">
1702 1804 <span class="ays-remove-bg-img"></span>
1703 - <img src="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"
1805 + <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1704 1806 id="ays-poll-bg-img"/>
1705 1807 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1706 - value="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"/>
1808 + value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1707 1809 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1708 - 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']) : ""; ?>"/>
1709 1811 </div>
1710 1812 </div>
1711 - <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">
1712 1814 <hr>
1713 1815 <div class="form-group row">
1714 1816 <div class="col-sm-12">
1715 1817 <label for="ays_poll_bg_image_position">
1716 - <?php echo __( "Background image position", "poll-maker" ); ?>
1717 - <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")?>">
1718 1820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1719 1821 </a>
1720 1822 </label>
1721 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;">
1722 - <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo __( "Left Top", "poll-maker" ); ?></option>
1723 - <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo __( "Left Center", "poll-maker" ); ?></option>
1724 - <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo __( "Left Bottom", "poll-maker" ); ?></option>
1725 - <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo __( "Center Top", "poll-maker" ); ?></option>
1726 - <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo __( "Center Center", "poll-maker" ); ?></option>
1727 - <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo __( "Center Bottom", "poll-maker" ); ?></option>
1728 - <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo __( "Right Top", "poll-maker" ); ?></option>
1729 - <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo __( "Right Center", "poll-maker" ); ?></option>
1730 - <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>
1731 1833 </select>
1732 1834 </div>
1733 1835 </div>
1734 1836 <hr>
@@ -1734,10 +1836,10 @@
1734 1836 <hr>
1735 1837 <div class="form-group row">
1736 1838 <div class="col-sm-8">
1737 1839 <label for="ays_poll_bg_img_in_finish_page">
1738 - <?php echo __( "Hide background image on result page", "poll-maker" ); ?>
1739 - <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")?>">
1740 1842 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1741 1843 </a>
1742 1844 </label>
1743 1845 </div>
@@ -1754,11 +1856,11 @@
1754 1856 </div>
1755 1857 <hr>
1756 1858 <div class="form-group row">
1757 1859 <div class="col-sm-4">
1758 - <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"); ?>
1759 1861 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1760 - 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"); ?>">
1761 1863 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1762 1864 </a>
1763 1865 </label>
1764 1866 </div>
@@ -1764,38 +1866,38 @@
1764 1866 </div>
1765 1867 <div class="col-sm-8 ays_divider_left">
1766 1868 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1767 1869 id="ays_poll_enable_box_shadow"
1768 - 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' : ''; ?>>
1769 1871 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1770 1872 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1771 - 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;' ?>">
1772 1874 <label for="ays-poll-box-shadow-color">
1773 - <?= __('Box shadow color', "poll-maker") ?>
1875 + <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1774 1876 <a class="ays_help" data-toggle="tooltip"
1775 - title="--><?= __('The shadow color of Poll container', "poll-maker") ?>">
1877 + title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1776 1878 <i class="ays_fa ays_fa_info_circle"></i>
1777 1879 </a>
1778 1880 </label>
1779 1881 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1780 1882 name='ays_poll_box_shadow_color'
1781 - 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'; ?>"/>
1782 1884 </div>
1783 1885 <!---->
1784 - <hr class="ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1785 - <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' ?>">
1786 1888 <div class="col-sm-12">
1787 1889 <div class="col-sm-3" style="display: inline-block;">
1788 - <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; ?>" />
1789 - <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>
1790 1892 </div>
1791 1893 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1792 - <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; ?>" />
1793 - <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>
1794 1896 </div>
1795 1897 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1796 - <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; ?>" />
1797 - <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>
1798 1900 </div>
1799 1901 </div>
1800 1902 </div>
1801 1903 <!---->
@@ -1805,10 +1907,10 @@
1805 1907 <!-- ---------Aro start gradient -->
1806 1908 <div class="form-group row">
1807 1909 <div class="col-sm-4">
1808 1910 <label for="ays-enable-background-gradient">
1809 - <?php echo __('Background Gradient', "poll-maker")?>
1810 - <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")?>">
1811 1913 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1812 1914 </a>
1813 1915 </label>
1814 1916 </div>
@@ -1820,27 +1922,27 @@
1820 1922 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1821 1923 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1822 1924 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1823 1925 <label for='ays-background-gradient-color-1'>
1824 - <?php echo __('Color 1', "poll-maker"); ?>
1926 + <?php echo esc_html__('Color 1', "poll-maker"); ?>
1825 1927 </label>
1826 - <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); ?>"/>
1827 1929 </div>
1828 1930 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1829 1931 <label for='ays-background-gradient-color-2'>
1830 - <?php echo __('Color 2', "poll-maker"); ?>
1932 + <?php echo esc_html__('Color 2', "poll-maker"); ?>
1831 1933 </label>
1832 - <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); ?>"/>
1833 1935 </div>
1834 1936 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1835 1937 <label for="ays_poll_gradient_direction">
1836 - <?php echo __('Gradient direction',"poll-maker")?>
1938 + <?php echo esc_html__('Gradient direction',"poll-maker")?>
1837 1939 </label>
1838 1940 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1839 - <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo __( 'Vertical', "poll-maker"); ?></option>
1840 - <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo __( 'Horizontal', "poll-maker"); ?></option>
1841 - <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>
1842 - <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>
1843 1945 </select>
1844 1946 </div>
1845 1947 </div>
1846 1948 </div>
@@ -1848,12 +1950,12 @@
1848 1950 <hr>
1849 1951 <div class="form-group row ays_toggle_parent">
1850 1952 <div class="col-sm-4">
1851 1953 <label for="ays_poll_image_text_logo">
1852 - <?= __('Poll Logo', "poll-maker"); ?>
1954 + <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1853 1955 <a class="ays_help" data-toggle="tooltip"
1854 1956 data-placement="top"
1855 - 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"); ?>">
1856 1958 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1857 1959 </a>
1858 1960 </label>
1859 1961 </div>
@@ -1859,20 +1961,20 @@
1859 1961 </div>
1860 1962 <div class="col-sm-8 ays_logo_container ays_divider_left">
1861 1963 <div class="form-group row">
1862 1964 <div class="col-sm-4">
1863 - <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>
1864 1966 </div>
1865 - <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); ?>">
1866 1968 <div class="ays-poll-logo-image-container">
1867 1969 <div class="col-sm-3" style="padding:0;">
1868 - <img src="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"
1970 + <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1869 1971 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1870 1972 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1871 - value="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1973 + value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1872 1974 </div>
1873 1975 <div class="col-sm-9">
1874 - <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>
1875 1977 </div>
1876 1978 </div>
1877 1979 </div>
1878 1980 </div>
@@ -1879,12 +1981,12 @@
1879 1981 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1880 1982 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1881 1983 <div class="col-sm-4 ">
1882 1984 <label for="ays_disable_answer_hover">
1883 - <?= __('Logo URL', "poll-maker"); ?>
1985 + <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1884 1986 <a class="ays_help" data-toggle="tooltip"
1885 1987 data-placement="top"
1886 - 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"); ?>">
1887 1989 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1888 1990 </a>
1889 1991 </label>
1890 1992 </div>
@@ -1904,12 +2006,12 @@
1904 2006 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1905 2007 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1906 2008 <div class="col-sm-6">
1907 2009 <label for="ays_poll_logo_enable_image_url_new_tab">
1908 - <?= __('Open in a new tab', "poll-maker"); ?>
2010 + <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
1909 2011 <a class="ays_help" data-toggle="tooltip"
1910 2012 data-placement="top"
1911 - 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"); ?>">
1912 2014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1913 2015 </a>
1914 2016 </label>
1915 2017 </div>
@@ -1916,9 +2018,9 @@
1916 2018 <div class="col-sm-6">
1917 2019 <input type="checkbox"
1918 2020 name="ays_poll_logo_enable_image_url_new_tab"
1919 2021 id="ays_poll_logo_enable_image_url_new_tab"
1920 - 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); ?>>
1921 2023 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
1922 2024 </div>
1923 2025 </div>
1924 2026 </div>
@@ -1926,12 +2028,12 @@
1926 2028 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1927 2029 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1928 2030 <div class="col-sm-4">
1929 2031 <label for="ays_poll_logo_title">
1930 - <?= __('Logo title', "poll-maker"); ?>
2032 + <?php echo esc_html__('Logo title', "poll-maker"); ?>
1931 2033 <a class="ays_help" data-toggle="tooltip"
1932 2034 data-placement="top"
1933 - 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"); ?>">
1934 2036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1935 2037 </a>
1936 2038 </label>
1937 2039 </div>
@@ -1945,13 +2047,13 @@
1945 2047 <hr>
1946 2048 <div class="form-group row">
1947 2049 <div class="col-sm-4">
1948 2050 <label for='ays-poll-title-bg-color'>
1949 - <?= __('Title Background Color', "poll-maker"); ?>
2051 + <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
1950 2052 <a class="ays_help"
1951 2053 data-toggle="tooltip"
1952 2054 data-placement="top"
1953 - 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"); ?>">
1954 2056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1955 2057 </a>
1956 2058 </label>
1957 2059 </div>
@@ -1958,9 +2060,9 @@
1958 2060 <div class="col-sm-8 ays_divider_left">
1959 2061 <input type="text" class="ays-text-input" data-alpha="true"
1960 2062 id='ays-poll-title-bg-color'
1961 2063 name='ays_poll_title_bg_color'
1962 - 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)' ?>"/>
1963 2065 </div>
1964 2066 </div>
1965 2067 <hr>
1966 2068 <div class="form-group row">
@@ -1965,13 +2067,13 @@
1965 2067 <hr>
1966 2068 <div class="form-group row">
1967 2069 <div class="col-sm-4">
1968 2070 <label for='ays_poll_title_font_size'>
1969 - <?= __('Title font size', "poll-maker"); ?>
2071 + <?php echo esc_html__('Title font size', "poll-maker"); ?>
1970 2072 <a class="ays_help"
1971 2073 data-toggle="tooltip"
1972 2074 data-placement="top"
1973 - 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"); ?>">
1974 2076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1975 2077 </a>
1976 2078 </label>
1977 2079 </div>
@@ -1978,16 +2080,16 @@
1978 2080 <div class="col-sm-8 ays_divider_left">
1979 2081 <div>
1980 2082 <div>
1981 2083 <label for='ays_poll_title_font_size'>
1982 - <?php echo __('On desktop', "poll-maker"); ?>
1983 - <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")?>">
1984 2086 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1985 2087 </a>
1986 2088 </label>
1987 2089 </div>
1988 2090 <div>
1989 - <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); ?>"/>
1990 2092 </div>
1991 2093 </div>
1992 2094 <hr>
1993 2095 <div>
@@ -1992,16 +2094,16 @@
1992 2094 <hr>
1993 2095 <div>
1994 2096 <div>
1995 2097 <label for='ays_poll_title_font_size_mobile'>
1996 - <?php echo __('On mobile', "poll-maker"); ?>
1997 - <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")?>">
1998 2100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1999 2101 </a>
2000 2102 </label>
2001 2103 </div>
2002 2104 <div>
2003 - <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);?>">
2004 2106 </div>
2005 2107 </div>
2006 2108 </div>
2007 2109 </div>
@@ -2007,14 +2109,83 @@
2007 2109 </div>
2008 2110 <hr>
2009 2111 <div class="form-group row">
2010 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">
2011 2182 <label for='ays_poll_title_alignment'>
2012 - <?= __('Title alignment', "poll-maker"); ?>
2183 + <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2013 2184 <a class="ays_help"
2014 2185 data-toggle="tooltip"
2015 2186 data-placement="top"
2016 - title="<?= __("Specify the alignment of the title.", "poll-maker"); ?>">
2187 + title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2017 2188 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2018 2189 </a>
2019 2190 </label>
2020 2191 </div>
@@ -2021,10 +2192,10 @@
2021 2192 <div class="col-sm-8 ays_divider_left">
2022 2193 <div>
2023 2194 <div>
2024 2195 <label for='ays_poll_title_alignment'>
2025 - <?php echo __('On desktop', "poll-maker"); ?>
2026 - <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")?>">
2027 2198 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2028 2199 </a>
2029 2200 </label>
2030 2201 </div>
@@ -2029,11 +2200,11 @@
2029 2200 </label>
2030 2201 </div>
2031 2202 <div>
2032 2203 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2033 - <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2034 - <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2035 - <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>
2036 2207 </select>
2037 2208 </div>
2038 2209 </div>
2039 2210 <hr>
@@ -2039,10 +2210,10 @@
2039 2210 <hr>
2040 2211 <div>
2041 2212 <div>
2042 2213 <label for='ays_poll_title_alignment_mobile'>
2043 - <?php echo __('On mobile', "poll-maker"); ?>
2044 - <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")?>">
2045 2216 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2046 2217 </a>
2047 2218 </label>
2048 2219 </div>
@@ -2047,11 +2218,11 @@
2047 2218 </label>
2048 2219 </div>
2049 2220 <div>
2050 2221 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2051 - <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2052 - <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2053 - <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>
2054 2225 </select>
2055 2226 </div>
2056 2227 </div>
2057 2228 </div>
@@ -2056,14 +2227,36 @@
2056 2227 </div>
2057 2228 </div>
2058 2229 </div>
2059 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>
2060 2253 <!-- title text shadow start -->
2061 2254 <div class="form-group row">
2062 2255 <div class="col-sm-4">
2063 2256 <label for="ays_poll_enable_title_text_shadow">
2064 - <?php echo __('Title text shadow', "poll-maker")?>
2065 - <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")?>">
2066 2259 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2067 2260 </a>
2068 2261 </label>
2069 2262 </div>
@@ -2071,30 +2264,30 @@
2071 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' : ''; ?>/>
2072 2265 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2073 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;' ?>">
2074 2267 <label for='ays_poll_title_text_shadow_color'>
2075 - <?php echo __('Color', "poll-maker"); ?>
2076 - <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")?>">
2077 2270 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2078 2271 </a>
2079 2272 </label>
2080 - <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); ?>"/>
2081 2274 </div>
2082 2275 <!---->
2083 - <hr class="ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2084 - <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' ?>">
2085 2278 <div class="col-sm-12">
2086 2279 <div class="col-sm-3" style="display: inline-block;">
2087 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; ?>" />
2088 - <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>
2089 2282 </div>
2090 2283 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2091 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; ?>" />
2092 - <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>
2093 2286 </div>
2094 2287 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2095 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; ?>" />
2096 - <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>
2097 2290 </div>
2098 2291 </div>
2099 2292 </div>
2100 2293 <!---->
@@ -2105,13 +2298,13 @@
2105 2298 <hr>
2106 2299 <div class="form-group row">
2107 2300 <div class="col-sm-4">
2108 2301 <label for='ays-poll-icon-size'>
2109 - <?= __('Icon size (px)', "poll-maker"); ?>
2302 + <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2110 2303 <a class="ays_help"
2111 2304 data-toggle="tooltip"
2112 2305 data-placement="top"
2113 - 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"); ?>">
2114 2307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2115 2308 </a>
2116 2309 </label>
2117 2310 </div>
@@ -2117,9 +2310,9 @@
2117 2310 </div>
2118 2311 <div class="col-sm-8 ays_divider_left">
2119 2312 <input type="number" class="ays-text-input ays-text-input-short"
2120 2313 id='ays-poll-icon-size' name='ays_poll_icon_size'
2121 - value="<?= (isset($options['icon_size'])) ? $options['icon_size'] : '24'; ?>"/>
2314 + value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2122 2315 </div>
2123 2316 </div>
2124 2317 </div>
2125 2318 <hr>
@@ -2125,13 +2318,13 @@
2125 2318 <hr>
2126 2319 <div class="form-group row">
2127 2320 <div class="col-sm-4">
2128 2321 <label for='ays-poll-width'>
2129 - <?= __('Width (px)', "poll-maker"); ?>
2322 + <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2130 2323 <a class="ays_help"
2131 2324 data-toggle="tooltip"
2132 2325 data-placement="top"
2133 - 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"); ?>">
2134 2327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2135 2328 </a>
2136 2329 </label>
2137 2330 </div>
@@ -2138,16 +2331,16 @@
2138 2331 <div class="col-sm-8 ays_divider_left">
2139 2332 <div>
2140 2333 <div>
2141 2334 <label for='ays-poll-width'>
2142 - <?php echo __('On desktop', "poll-maker"); ?>
2143 - <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")?>">
2144 2337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2145 2338 </a>
2146 2339 </label>
2147 2340 </div>
2148 2341 <div>
2149 - <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'] ?>"/>
2150 2343 </div>
2151 2344 </div>
2152 2345 <hr>
2153 2346 <div>
@@ -2152,18 +2345,18 @@
2152 2345 <hr>
2153 2346 <div>
2154 2347 <div>
2155 2348 <label for='ays_poll_width_for_mobile'>
2156 - <?php echo __('On mobile', "poll-maker"); ?>
2157 - <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")?>">
2158 2351 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2159 2352 </a>
2160 2353 </label>
2161 2354 </div>
2162 2355 <div>
2163 - <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 ?>"/>
2164 2357 <p class="ays_poll_small_hint_text_for_message_variables">
2165 - <span><?php echo __( "For 100% leave blank" , "poll-maker" ); ?></span>
2358 + <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2166 2359 </p>
2167 2360 </div>
2168 2361 </div>
2169 2362 </div>
@@ -2171,16 +2364,16 @@
2171 2364 <hr/>
2172 2365 <div class="form-group row">
2173 2366 <div class="col-sm-4">
2174 2367 <label for='ays_poll_min_height'>
2175 - <?php echo __('Min-height', "poll-maker"); ?>
2176 - <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")?>">
2177 2370 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2178 2371 </a>
2179 2372 </label>
2180 2373 </div>
2181 2374 <div class="col-sm-8 ays_divider_left">
2182 - <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); ?>"/>
2183 2376 </div>
2184 2377 </div>
2185 2378 <hr>
2186 2379 <div class="form-group row">
@@ -2185,10 +2378,10 @@
2185 2378 <hr>
2186 2379 <div class="form-group row">
2187 2380 <div class="col-sm-4">
2188 2381 <label for='ays_poll_mobile_max_width'>
2189 - <?php echo __('Poll max-width for mobile', "poll-maker"); ?>
2190 - <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")?>">
2191 2384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2192 2385 </a>
2193 2386 </label>
2194 2387 </div>
@@ -2194,10 +2387,10 @@
2194 2387 </div>
2195 2388 <div class="col-sm-8 ays_divider_left">
2196 2389 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2197 2390 name='ays_poll_mobile_max_width' style="display: inline-block;"
2198 - value="<?php echo $poll_mobile_max_width; ?>"/> %
2199 - <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>
2200 2393 </div>
2201 2394 </div> <!-- Poll max-width for mobile -->
2202 2395 <hr>
2203 2396 </div>
@@ -2203,10 +2396,10 @@
2203 2396 </div>
2204 2397 </div>
2205 2398 <div class="ays-poll-accordion-options-main-container">
2206 2399 <div class="ays-poll-accordion-header">
2207 - <?php echo $poll_acordion_svg_html; ?>
2208 - <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>
2209 2402 </div>
2210 2403 <hr class="ays-poll-bolder-hr"/>
2211 2404 <div class="ays-poll-accordion-body">
2212 2405 <div class="form-group row">
@@ -2211,10 +2404,10 @@
2211 2404 <div class="ays-poll-accordion-body">
2212 2405 <div class="form-group row">
2213 2406 <div class="col-sm-4">
2214 2407 <label for='ays_questions_font_size'>
2215 - <?php echo __('Question font size', "poll-maker"); ?> (px)
2216 - <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")?>">
2217 2410 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2218 2411 </a>
2219 2412 </label>
2220 2413 </div>
@@ -2221,10 +2414,10 @@
2221 2414 <div class="col-sm-8 ays_divider_left">
2222 2415 <div>
2223 2416 <div>
2224 2417 <label for='ays_questions_font_size'>
2225 - <?php echo __('On desktop', "poll-maker"); ?>
2226 - <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")?>">
2227 2420 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2228 2421 </a>
2229 2422 </label>
2230 2423 </div>
@@ -2235,10 +2428,10 @@
2235 2428 <hr>
2236 2429 <div>
2237 2430 <div>
2238 2431 <label for='ays_poll_answers_font_size_mobile'>
2239 - <?php echo __('On mobile', "poll-maker"); ?>
2240 - <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")?>">
2241 2434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2242 2435 </a>
2243 2436 </label>
2244 2437 </div>
@@ -2250,11 +2443,11 @@
2250 2443 </div><!-- Question font size -->
2251 2444 <hr>
2252 2445 <div class="form-group row">
2253 2446 <div class="col-sm-4">
2254 - <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"); ?>
2255 2448 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2256 - 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"); ?>">
2257 2450 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2258 2451 </a>
2259 2452 </label>
2260 2453 </div>
@@ -2261,17 +2454,17 @@
2261 2454 <div class="col-sm-8 ays_divider_left">
2262 2455 <input type="number"
2263 2456 class="ays-text-input ays-text-input-short"
2264 2457 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2265 - value="<?php echo $poll_question_image_height; ?>"/>
2458 + value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2266 2459 </div>
2267 2460 </div><!-- Question image height -->
2268 2461 <hr>
2269 2462 <div class="form-group row">
2270 2463 <div class="col-sm-4">
2271 - <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"); ?>
2272 2465 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2273 - 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"); ?>">
2274 2467 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2275 2468 </a>
2276 2469 </label>
2277 2470 </div>
@@ -2276,13 +2469,13 @@
2276 2469 </label>
2277 2470 </div>
2278 2471 <div class="col-sm-8 ays_divider_left">
2279 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">
2280 - <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo __("Cover", "poll-maker"); ?></option>
2281 - <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo __("Fill", "poll-maker"); ?></option>
2282 - <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo __("Contain", "poll-maker"); ?></option>
2283 - <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo __("Scale-down", "poll-maker"); ?></option>
2284 - <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>
2285 2478 </select>
2286 2479 </div>
2287 2480 </div><!-- Question image object fit -->
2288 2481 <hr>
@@ -2289,18 +2482,18 @@
2289 2482 </div>
2290 2483 </div>
2291 2484 <div class="ays-poll-accordion-options-main-container">
2292 2485 <div class="ays-poll-accordion-header">
2293 - <?php echo $poll_acordion_svg_html; ?>
2294 - <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>
2295 2488 </div>
2296 2489 <hr class="ays-poll-bolder-hr"/>
2297 2490 <div class="ays-poll-accordion-body">
2298 2491 <div class="form-group row">
2299 2492 <div class="col-sm-4">
2300 - <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"); ?>
2301 2494 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2302 - 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"); ?>">
2303 2496 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2304 2497 </a>
2305 2498 </label>
2306 2499 </div>
@@ -2306,16 +2499,16 @@
2306 2499 </div>
2307 2500 <div class="col-sm-8 ays_divider_left">
2308 2501 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2309 2502 id="ays_poll_enable_answer_style"
2310 - 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' : ''; ?>>
2311 2504 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2312 2505 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2313 2506 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2314 2507 <label for="ays-poll-box-shadow-color">
2315 - <?php echo __('Answers Background Color', "poll-maker"); ?>
2508 + <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2316 2509 <a class="ays_help" data-toggle="tooltip"
2317 - title="<?php echo __("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"); ?>">
2318 2511 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2319 2512 </a>
2320 2513 </label>
2321 2514 <input type="text" class="ays-text-input" data-alpha="true"
@@ -2320,16 +2513,16 @@
2320 2513 </label>
2321 2514 <input type="text" class="ays-text-input" data-alpha="true"
2322 2515 id='ays-poll-answer-bg-color'
2323 2516 name='ays_poll_answer_bg_color'
2324 - value="<?php echo $answer_bg_color; ?>"/>
2517 + value="<?php echo esc_attr($answer_bg_color); ?>"/>
2325 2518 </div>
2326 2519 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2327 2520 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2328 2521 <label for="ays-poll-answer-hover-color">
2329 - <?php echo __('Answer Hover Color', "poll-maker"); ?>
2522 + <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2330 2523 <a class="ays_help" data-toggle="tooltip"
2331 - title="<?php echo __('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2524 + title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2332 2525 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2333 2526 </a>
2334 2527 </label>
2335 2528 <input type="text" class="ays-text-input" data-alpha="true"
@@ -2334,18 +2527,18 @@
2334 2527 </label>
2335 2528 <input type="text" class="ays-text-input" data-alpha="true"
2336 2529 id='ays-poll-answer-hover-color'
2337 2530 name='ays_poll_answer_hover_color'
2338 - value="<?php echo $answer_hover_color; ?>"/>
2531 + value="<?php echo esc_attr($answer_hover_color); ?>"/>
2339 2532 </div>
2340 - <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;' ?>">
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;' ?>">
2341 2534 <div>
2342 2535 <label for='ays-poll-border-side'>
2343 - <?= __('Border side', "poll-maker"); ?>
2536 + <?php echo esc_html__('Border side', "poll-maker"); ?>
2344 2537 <a class="ays_help"
2345 2538 data-toggle="tooltip"
2346 2539 data-placement="top"
2347 - 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"); ?>">
2348 2541 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2349 2542 </a>
2350 2543 </label>
2351 2544 </div>
@@ -2351,37 +2544,37 @@
2351 2544 </div>
2352 2545 <div id="ays-poll-border-side-box">
2353 2546 <select name="ays_poll_border_side" id="ays-poll-border-side"
2354 2547 class="ays-select ays-select-short ays_poll_aysDropdown">
2355 - <option value="all_sides" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2356 - <?= __("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"); ?>
2357 2550 </option>
2358 - <option value="none" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2359 - <?= __("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"); ?>
2360 2553 </option>
2361 - <option value="top" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2362 - <?= __("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"); ?>
2363 2556 </option>
2364 - <option value="bottom" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2365 - <?= __("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"); ?>
2366 2559 </option>
2367 - <option value="left" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2368 - <?= __("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"); ?>
2369 2562 </option>
2370 - <option value="right" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2371 - <?= __("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"); ?>
2372 2565 </option>
2373 2566 </select>
2374 2567 </div>
2375 2568 </div>
2376 - <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;' ?>">
2377 2570 <div>
2378 2571 <label for='ays_answer_font_size'>
2379 - <?= __('Answer font size', "poll-maker"); ?>
2572 + <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2380 2573 <a class="ays_help"
2381 2574 data-toggle="tooltip"
2382 2575 data-placement="top"
2383 - 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"); ?>">
2384 2577 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2385 2578 </a>
2386 2579 </label>
2387 2580 </div>
@@ -2388,16 +2581,16 @@
2388 2581 <div class="ays_answer_font_size_box">
2389 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;?>">
2390 2583 </div>
2391 2584 </div>
2392 - <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;' ?>">
2393 2586 <div>
2394 2587 <label for='ays_poll_answer_font_size_mobile'>
2395 - <?= __('Answer font size for mobile', "poll-maker"); ?>
2588 + <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2396 2589 <a class="ays_help"
2397 2590 data-toggle="tooltip"
2398 2591 data-placement="top"
2399 - 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"); ?>">
2400 2593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2401 2594 </a>
2402 2595 </label>
2403 2596 </div>
@@ -2404,13 +2597,13 @@
2404 2597 <div class="ays_answer_font_size_box">
2405 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;?>">
2406 2599 </div>
2407 2600 </div>
2408 - <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;' ?>">
2409 2602 <div>
2410 2603 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2411 - <?php echo __('Answer image height (px)', "poll-maker")?>
2412 - <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")?>">
2413 2606 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2414 2607 </a>
2415 2608 </label>
2416 2609 </div>
@@ -2417,13 +2610,13 @@
2417 2610 <div>
2418 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; ?>" />
2419 2612 </div>
2420 2613 </div> <!-- Answers image height -->
2421 - <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;' ?>">
2422 2615 <div>
2423 2616 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2424 - <?php echo __('Answer image height for mobile (px)', "poll-maker")?>
2425 - <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")?>">
2426 2619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2427 2620 </a>
2428 2621 </label>
2429 2622 </div>
@@ -2430,13 +2623,13 @@
2430 2623 <div>
2431 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; ?>" />
2432 2625 </div>
2433 2626 </div> <!-- Answers image height for mobile-->
2434 - <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;' ?>">
2435 2628 <div>
2436 2629 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2437 - <?php echo __('Answer image border radius (px)', "poll-maker")?>
2438 - <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")?>">
2439 2632 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2440 2633 </a>
2441 2634 </label>
2442 2635 </div>
@@ -2443,13 +2636,13 @@
2443 2636 <div>
2444 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; ?>" />
2445 2638 </div>
2446 2639 </div> <!-- Answers image border radius -->
2447 - <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;' ?>">
2448 2641 <div >
2449 - <label for="ays_poll_background_size">
2450 - <?php echo __('Answer image object fit', "poll-maker"); ?>
2451 - <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"); ?>">
2452 2645 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2453 2646 </a>
2454 2647 </label>
2455 2648 </div>
@@ -2455,43 +2648,43 @@
2455 2648 </div>
2456 2649 <div id="ays_poll_image_background_size_box">
2457 2650 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2458 2651 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2459 - <?php echo __('Cover', "poll-maker")?>
2652 + <?php echo esc_html__('Cover', "poll-maker")?>
2460 2653 </option>
2461 2654 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2462 - <?php echo __('Fill', "poll-maker")?>
2655 + <?php echo esc_html__('Fill', "poll-maker")?>
2463 2656 </option>
2464 2657 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2465 - <?php echo __('Contain', "poll-maker")?>
2658 + <?php echo esc_html__('Contain', "poll-maker")?>
2466 2659 </option>
2467 2660 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2468 - <?php echo __('Scale-down', "poll-maker")?>
2661 + <?php echo esc_html__('Scale-down', "poll-maker")?>
2469 2662 </option>
2470 2663 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2471 - <?php echo __('None', "poll-maker")?>
2664 + <?php echo esc_html__('None', "poll-maker")?>
2472 2665 </option>
2473 2666 </select>
2474 2667 </div>
2475 2668 </div> <!-- Answer image object fit -->
2476 - <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;' ?>">
2477 2670 <div>
2478 2671 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2479 - <?php echo __('Answer padding (px)', "poll-maker")?>
2480 - <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")?>">
2481 2674 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2482 2675 </a>
2483 2676 </label>
2484 2677 </div>
2485 2678 <div>
2486 - <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); ?>"/>
2487 2680 </div>
2488 2681 </div> <!-- Answers padding -->
2489 - <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;' ?>">
2490 2683 <div >
2491 2684 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2492 - <?php echo __('Answer gap (px)', "poll-maker")?>
2493 - <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")?>">
2494 2687 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2495 2688 </a>
2496 2689 </label>
2497 2690 </div>
@@ -2498,19 +2691,19 @@
2498 2691 <div>
2499 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; ?>" />
2500 2693 </div>
2501 2694 </div> <!-- Answers gap -->
2502 - <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;' ?>">
2503 2696 <div>
2504 2697 <label for="ays_poll_answer_border_radius">
2505 - <?php echo __('Answer border radius', "poll-maker")?>
2506 - <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")?>">
2507 2700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2508 2701 </a>
2509 2702 </label>
2510 2703 </div>
2511 2704 <div>
2512 - <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); ?>"/>
2513 2706 </div>
2514 2707 </div> <!-- Answers border radius -->
2515 2708 </div>
2516 2709 </div>
@@ -2517,10 +2710,10 @@
2517 2710 <hr>
2518 2711 <div class="form-group row">
2519 2712 <div class="col-sm-4">
2520 2713 <label for="ays_poll_show_answers_icon">
2521 - <?php echo __('Answer icon', "poll-maker"); ?>
2522 - <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"); ?>">
2523 2716 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2524 2717 </a>
2525 2718 </label>
2526 2719 </div>
@@ -2529,14 +2722,14 @@
2529 2722 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2530 2723 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2531 2724 <div class="form-check form-check-inline">
2532 2725 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2533 - <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' : ''; ?> />
2534 2727 </label>
2535 2728 </div>
2536 2729 <div class="form-check form-check-inline">
2537 2730 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2538 - <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' : ''; ?> />
2539 2732 </label>
2540 2733 </div>
2541 2734 </div>
2542 2735 </div>
@@ -2544,10 +2737,10 @@
2544 2737 <hr>
2545 2738 <div class="form-group row">
2546 2739 <div class="col-sm-4">
2547 2740 <label for="ays_answers_view" class="ays_enable_answer_style">
2548 - <?php echo __('Answer view', "poll-maker")?>
2549 - <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")?>">
2550 2743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2551 2744 </a>
2552 2745 </label>
2553 2746 </div>
@@ -2555,12 +2748,12 @@
2555 2748 <div class="form-group row">
2556 2749 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2557 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">
2558 2751 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2559 - <?php echo __('List', "poll-maker")?>
2752 + <?php echo esc_html__('List', "poll-maker")?>
2560 2753 </option>
2561 2754 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2562 - <?php echo __('Grid', "poll-maker")?>
2755 + <?php echo esc_html__('Grid', "poll-maker")?>
2563 2756 </option>
2564 2757 </select>
2565 2758 </div>
2566 2759 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
@@ -2578,11 +2771,11 @@
2578 2771 </div>
2579 2772 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2580 2773 <div class="col-sm-8" style="display:flex;align-items:center;">
2581 2774 <label for="ays_answers_grid_column_mobile">
2582 - <?php echo __('Mobile Single Column View',"poll-maker")?>
2775 + <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2583 2776 </label>
2584 - <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")?>">
2585 2778 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2586 2779 </a>
2587 2780 </div>
2588 2781 <div class="col-sm-1 ays_divider_left">
@@ -2596,10 +2789,10 @@
2596 2789 <hr>
2597 2790 <div class="form-group row">
2598 2791 <div class="col-sm-4">
2599 2792 <label for="ays_poll_answers_box_shadow_enable">
2600 - <?php echo __('Answer box shadow', "poll-maker")?>
2601 - <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")?>">
2602 2795 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2603 2796 </a>
2604 2797 </label>
2605 2798 </div>
@@ -2607,10 +2800,10 @@
2607 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" : ""; ?>>
2608 2801 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2609 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;"; ?>">
2610 2803 <label for="ays_poll_answers_box_shadow_color">
2611 - <?php echo __('Answer shadow color', "poll-maker")?>
2612 - <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")?>">
2613 2806 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2614 2807 </a>
2615 2808 </label>
2616 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">
@@ -2615,22 +2808,22 @@
2615 2808 </label>
2616 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">
2617 2810 </div>
2618 2811 <!---->
2619 - <hr class="ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none'; ?>">
2620 - <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' ?>">
2621 2814 <div class="col-sm-12">
2622 2815 <div class="col-sm-3" style="display: inline-block;">
2623 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; ?>" />
2624 - <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>
2625 2818 </div>
2626 2819 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2627 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; ?>" />
2628 - <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>
2629 2822 </div>
2630 2823 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2631 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; ?>" />
2632 - <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>
2633 2826 </div>
2634 2827 </div>
2635 2828 </div>
2636 2829 <!---->
@@ -2639,12 +2832,12 @@
2639 2832 <hr>
2640 2833 <div class="form-group row">
2641 2834 <div class="col-sm-4">
2642 2835 <label for="ays_disable_answer_hover">
2643 - <?= __('Disable answers hover', "poll-maker"); ?>
2836 + <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2644 2837 <a class="ays_help" data-toggle="tooltip"
2645 2838 data-placement="top"
2646 - title="<?= __("Disable the hover effect for answers.", "poll-maker"); ?>">
2839 + title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2647 2840 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2648 2841 </a>
2649 2842 </label>
2650 2843 </div>
@@ -2666,10 +2859,10 @@
2666 2859 <div class="" style="width: 100%;">
2667 2860 <div class="form-group row">
2668 2861 <div class="col-sm-5">
2669 2862 <label for="ays_answers_border">
2670 - <?php echo __('Answer border', "poll-maker")?>
2671 - <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")?>">
2672 2865 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2673 2866 </a>
2674 2867 </label>
2675 2868 </div>
@@ -2678,31 +2871,31 @@
2678 2871 checked/>
2679 2872 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2680 2873 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2681 2874 <label for="ays_answers_border_width">
2682 - <?php echo __('Border width', "poll-maker")?> (px)
2683 - <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")?>">
2684 2877 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2685 2878 </a>
2686 2879 </label>
2687 - <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"
2688 2881 value="" min="0"/>
2689 2882 </div>
2690 2883 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2691 2884 <label for="ays_answers_border_style">
2692 - <?php echo __('Border style', "poll-maker")?>
2693 - <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")?>">
2694 2887 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2695 2888 </a>
2696 2889 </label>
2697 - <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">
2698 2891 <option>Solid</option>
2699 2892 </select>
2700 2893 </div>
2701 2894 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2702 2895 <label for="ays_answers_border_color">
2703 - <?php echo __('Border color', "poll-maker")?>
2704 - <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")?>">
2705 2898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2706 2899 </a>
2707 2900 </label>
2708 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">
@@ -2712,10 +2905,10 @@
2712 2905 <hr/>
2713 2906 <div class="form-group row ays_grid_show">
2714 2907 <div class="col-sm-5">
2715 2908 <label for="ays_poll_show_answers_caption">
2716 - <?php echo __('Show answers caption', "poll-maker")?>
2717 - <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"); ?>">
2718 2911 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2719 2912 </a>
2720 2913 </label>
2721 2914 </div>
@@ -2727,10 +2920,10 @@
2727 2920 <hr/>
2728 2921 <div class="form-group row">
2729 2922 <div class="col-sm-5">
2730 2923 <label for="ays_ans_img_caption_style">
2731 - <?php echo __('Answers image caption style', "poll-maker")?>
2732 - <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")?>">
2733 2926 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2734 2927 </a>
2735 2928 </label>
2736 2929 </div>
@@ -2735,9 +2928,9 @@
2735 2928 </label>
2736 2929 </div>
2737 2930 <div class="col-sm-7 ays_divider_left">
2738 2931 <select class="ays-text-input ays-text-input-short">
2739 - <option><?php echo __('Outside', "poll-maker"); ?></option>
2932 + <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2740 2933 </select>
2741 2934 </div>
2742 2935 </div> <!-- Answers image caption style -->
2743 2936 <hr/>
@@ -2743,10 +2936,10 @@
2743 2936 <hr/>
2744 2937 <div class="form-group row">
2745 2938 <div class="col-sm-5">
2746 2939 <label for="ays_ans_img_caption_position">
2747 - <?php echo __('Answers image caption position', "poll-maker")?>
2748 - <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")?>">
2749 2942 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2750 2943 </a>
2751 2944 </label>
2752 2945 </div>
@@ -2751,9 +2944,9 @@
2751 2944 </label>
2752 2945 </div>
2753 2946 <div class="col-sm-7 ays_divider_left">
2754 2947 <select class="ays-text-input ays-text-input-short">
2755 - <option value="top"><?php echo __('Top', "poll-maker"); ?></option>
2948 + <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2756 2949 </select>
2757 2950 </div>
2758 2951 </div> <!-- Answers image caption position -->
2759 2952 <hr>
@@ -2761,12 +2954,12 @@
2761 2954 </div>
2762 2955 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2763 2956 <div class="ays-poll-new-upgrade-button-box">
2764 2957 <div>
2765 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2766 - <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">
2767 2960 </div>
2768 - <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>
2769 2962 </div>
2770 2963 </a>
2771 2964 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2772 2965 <div class="ays-poll-center-big-main-button-box">
@@ -2771,11 +2964,11 @@
2771 2964 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2772 2965 <div class="ays-poll-center-big-main-button-box">
2773 2966 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2774 2967 <div class="ays-poll-center-new-big-upgrade-button">
2775 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2776 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2777 - <?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"); ?>
2778 2971 </div>
2779 2972 </a>
2780 2973 </div>
2781 2974 </div>
@@ -2785,10 +2978,10 @@
2785 2978 </div>
2786 2979 </div>
2787 2980 <div class="ays-poll-accordion-options-main-container">
2788 2981 <div class="ays-poll-accordion-header">
2789 - <?php echo $poll_acordion_svg_html; ?>
2790 - <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>
2791 2984 </div>
2792 2985 <hr class="ays-poll-bolder-hr"/>
2793 2986 <div class="ays-poll-accordion-body">
2794 2987 <div class="form-group row">
@@ -2793,13 +2986,13 @@
2793 2986 <div class="ays-poll-accordion-body">
2794 2987 <div class="form-group row">
2795 2988 <div class="col-sm-4">
2796 2989 <label for='ays-poll-border-style'>
2797 - <?= __('Border style', "poll-maker"); ?>
2990 + <?php echo esc_html__('Border style', "poll-maker"); ?>
2798 2991 <a class="ays_help"
2799 2992 data-toggle="tooltip"
2800 2993 data-placement="top"
2801 - 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"); ?>">
2802 2995 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2803 2996 </a>
2804 2997 </label>
2805 2998 </div>
@@ -2805,34 +2998,34 @@
2805 2998 </div>
2806 2999 <div class="col-sm-8 ays_divider_left">
2807 3000 <select name="ays_poll_border_style" id="ays-poll-border-style"
2808 3001 class="ays-select ays-select-short ays_poll_aysDropdown">
2809 - <option value="solid" <?= $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2810 - <?= __("Solid", "poll-maker"); ?>
3002 + <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
3003 + <?php echo esc_html__("Solid", "poll-maker"); ?>
2811 3004 </option>
2812 - <option value="dashed" <?= $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2813 - <?= __("Dashed", "poll-maker"); ?>
3005 + <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
3006 + <?php echo esc_html__("Dashed", "poll-maker"); ?>
2814 3007 </option>
2815 - <option value="dotted" <?= $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2816 - <?= __("Dotted", "poll-maker"); ?>
3008 + <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
3009 + <?php echo esc_html__("Dotted", "poll-maker"); ?>
2817 3010 </option>
2818 - <option value="double" <?= $options['border_style'] == "double" ? 'selected' : ''; ?>>
2819 - <?= __("Double", "poll-maker"); ?>
3011 + <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
3012 + <?php echo esc_html__("Double", "poll-maker"); ?>
2820 3013 </option>
2821 - <option value="groove" <?= $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2822 - <?= __("Groove", "poll-maker"); ?>
3014 + <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
3015 + <?php echo esc_html__("Groove", "poll-maker"); ?>
2823 3016 </option>
2824 - <option value="ridge" <?= $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2825 - <?= __("Ridge", "poll-maker"); ?>
3017 + <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
3018 + <?php echo esc_html__("Ridge", "poll-maker"); ?>
2826 3019 </option>
2827 - <option value="inset" <?= $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2828 - <?= __("Inset", "poll-maker"); ?>
3020 + <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
3021 + <?php echo esc_html__("Inset", "poll-maker"); ?>
2829 3022 </option>
2830 - <option value="outset" <?= $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2831 - <?= __("Outset", "poll-maker"); ?>
3023 + <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
3024 + <?php echo esc_html__("Outset", "poll-maker"); ?>
2832 3025 </option>
2833 - <option value="none" <?= $options['border_style'] == "none" ? 'selected' : ''; ?>>
2834 - <?= __("None", "poll-maker"); ?>
3026 + <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
3027 + <?php echo esc_html__("None", "poll-maker"); ?>
2835 3028 </option>
2836 3029 </select>
2837 3030 </div>
2838 3031 </div>
@@ -2838,11 +3031,11 @@
2838 3031 </div>
2839 3032 <hr>
2840 3033 <div class="form-group row">
2841 3034 <div class="col-sm-4">
2842 - <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"); ?>
2843 3036 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2844 - 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"); ?>">
2845 3038 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2846 3039 </a>
2847 3040 </label>
2848 3041 </div>
@@ -2849,17 +3042,17 @@
2849 3042 <div class="col-sm-8 ays_divider_left">
2850 3043 <input type="number" min="0"
2851 3044 class="ays-text-input ays-text-input-short"
2852 3045 id='ays-poll-border-radius' name='ays_poll_border_radius'
2853 - 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'; ?>"/>
2854 3047 </div>
2855 3048 </div>
2856 3049 <hr>
2857 3050 <div class="form-group row">
2858 3051 <div class="col-sm-4">
2859 - <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"); ?>
2860 3053 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2861 - 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"); ?>">
2862 3055 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2863 3056 </a>
2864 3057 </label>
2865 3058 </div>
@@ -2866,17 +3059,17 @@
2866 3059 <div class="col-sm-8 ays_divider_left">
2867 3060 <input type="number" min="0"
2868 3061 class="ays-text-input ays-text-input-short"
2869 3062 id='ays-poll-border-width' name='ays_poll_border_width'
2870 - 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; ?>"/>
2871 3064 </div>
2872 3065 </div>
2873 3066 <hr>
2874 3067 <div class="form-group row">
2875 3068 <div class="col-sm-4">
2876 - <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"); ?>
2877 3070 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2878 - title="<?= __("Specify the color of the border.", "poll-maker"); ?>">
3071 + title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
2879 3072 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2880 3073 </a>
2881 3074 </label>
2882 3075 </div>
@@ -2885,9 +3078,9 @@
2885 3078 class="ays-text-input"
2886 3079 data-alpha="true"
2887 3080 id='ays-poll-border-color'
2888 3081 name='ays_poll_border_color'
2889 - value="<?= $default_border ?>"/>
3082 + value="<?php echo esc_attr($default_border); ?>"/>
2890 3083 </div>
2891 3084 </div>
2892 3085 <hr>
2893 3086 <!-- Buttons Styles Start -->
@@ -2894,10 +3087,10 @@
2894 3087 </div>
2895 3088 </div>
2896 3089 <div class="ays-poll-accordion-options-main-container">
2897 3090 <div class="ays-poll-accordion-header">
2898 - <?php echo $poll_acordion_svg_html; ?>
2899 - <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>
2900 3093 </div>
2901 3094 <hr class="ays-poll-bolder-hr"/>
2902 3095 <div class="ays-poll-accordion-body">
2903 3096 <div class="form-group row">
@@ -2902,10 +3095,10 @@
2902 3095 <div class="ays-poll-accordion-body">
2903 3096 <div class="form-group row">
2904 3097 <div class="col-sm-4">
2905 3098 <label for="ays_poll_buttons_size">
2906 - <?php echo __('Buttons Size', "poll-maker"); ?>
2907 - <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"); ?>">
2908 3101 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2909 3102 </a>
2910 3103 </label>
2911 3104 </div>
@@ -2910,11 +3103,11 @@
2910 3103 </label>
2911 3104 </div>
2912 3105 <div class="col-sm-8 ays_divider_left">
2913 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">
2914 - <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo __('Small', "poll-maker"); ?></option>
2915 - <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo __('Medium', "poll-maker"); ?></option>
2916 - <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>
2917 3110 </select>
2918 3111 </div>
2919 3112 </div> <!-- Buttons Size -->
2920 3113 <hr>
@@ -2920,13 +3113,13 @@
2920 3113 <hr>
2921 3114 <div class="form-group row">
2922 3115 <div class="col-sm-4">
2923 3116 <label for='ays-poll-button-text-color'>
2924 - <?= __('Buttons Text Color', "poll-maker"); ?>
3117 + <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
2925 3118 <a class="ays_help"
2926 3119 data-toggle="tooltip"
2927 3120 data-placement="top"
2928 - 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"); ?>">
2929 3122 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2930 3123 </a>
2931 3124 </label>
2932 3125 </div>
@@ -2932,9 +3125,9 @@
2932 3125 </div>
2933 3126 <div class="col-sm-8 ays_divider_left">
2934 3127 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
2935 3128 name='ays_poll_button_text_color'
2936 - value="<?php echo $poll_button_text_color; ?>"/>
3129 + value="<?php echo esc_attr($poll_button_text_color); ?>"/>
2937 3130 </div>
2938 3131 </div><!-- Buttons text color -->
2939 3132 <hr>
2940 3133 <div class="form-group row">
@@ -2939,13 +3132,13 @@
2939 3132 <hr>
2940 3133 <div class="form-group row">
2941 3134 <div class="col-sm-4">
2942 3135 <label for='ays-poll-button-bg-color'>
2943 - <?= __('Buttons Background Color', "poll-maker"); ?>
3136 + <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
2944 3137 <a class="ays_help"
2945 3138 data-toggle="tooltip"
2946 3139 data-placement="top"
2947 - 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"); ?>">
2948 3141 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2949 3142 </a>
2950 3143 </label>
2951 3144 </div>
@@ -2951,9 +3144,9 @@
2951 3144 </div>
2952 3145 <div class="col-sm-8 ays_divider_left">
2953 3146 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
2954 3147 name='ays_poll_button_bg_color'
2955 - value="<?php echo $poll_button_bg_color; ?>"/>
3148 + value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
2956 3149 </div>
2957 3150 </div><!-- Buttons background color -->
2958 3151 <hr>
2959 3152 <div class="form-group row">
@@ -2958,10 +3151,10 @@
2958 3151 <hr>
2959 3152 <div class="form-group row">
2960 3153 <div class="col-sm-4">
2961 3154 <label for='ays_poll_buttons_font_size'>
2962 - <?php echo __('Buttons font size', "poll-maker"); ?> (px)
2963 - <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"); ?>">
2964 3157 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2965 3158 </a>
2966 3159 </label>
2967 3160 </div>
@@ -2972,10 +3165,10 @@
2972 3165 <hr>
2973 3166 <div class="form-group row">
2974 3167 <div class="col-sm-4">
2975 3168 <label for='ays_poll_buttons_mobile_font_size'>
2976 - <?php echo __('Buttons mobile font size', "poll-maker"); ?> (px)
2977 - <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"); ?>">
2978 3171 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2979 3172 </a>
2980 3173 </label>
2981 3174 </div>
@@ -2986,10 +3179,10 @@
2986 3179 <hr>
2987 3180 <div class="form-group row">
2988 3181 <div class="col-sm-4">
2989 3182 <label for="ays_poll_buttons_left_right_padding">
2990 - <?php echo __('Buttons padding (px)', "poll-maker"); ?>
2991 - <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"); ?>">
2992 3185 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2993 3186 </a>
2994 3187 </label>
2995 3188 </div>
@@ -2995,13 +3188,13 @@
2995 3188 </div>
2996 3189 <div class="col-sm-8 ays_divider_left">
2997 3190 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
2998 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;" />
2999 - <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>
3000 3193 </div>
3001 3194 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3002 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;" />
3003 - <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>
3004 3197 </div>
3005 3198 </div>
3006 3199 </div> <!-- Buttons padding -->
3007 3200 <hr>
@@ -3007,10 +3200,10 @@
3007 3200 <hr>
3008 3201 <div class="form-group row">
3009 3202 <div class="col-sm-4">
3010 3203 <label for="ays_poll_buttons_border_radius">
3011 - <?php echo __('Buttons border radius', "poll-maker"); ?> (px)
3012 - <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"); ?>">
3013 3206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3014 3207 </a>
3015 3208 </label>
3016 3209 </div>
@@ -3021,25 +3214,52 @@
3021 3214 <hr>
3022 3215 <div class="form-group row">
3023 3216 <div class="col-sm-4">
3024 3217 <label for='ays_poll_buttons_width'>
3025 - <?php echo __('Buttons width', "poll-maker"); ?> (px)
3026 - <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"); ?>">
3027 3220 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3028 3221 </a>
3029 3222 </label>
3030 3223 </div>
3031 3224 <div class="col-sm-8 ays_divider_left">
3032 - <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; ?>"/>
3033 - <span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3034 - </div><!-- Buttons width -->
3035 - </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>
3036 3256 <hr/>
3037 3257 <div class="form-group row">
3038 3258 <div class="col-sm-4">
3039 3259 <label for="ays_poll_custom_class">
3040 - <?php echo __('Custom class for poll container', "poll-maker")?>
3041 - <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")?>">
3042 3262 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3043 3263 </a>
3044 3264 </label>
3045 3265 </div>
@@ -3049,12 +3269,9 @@
3049 3269 </div>
3050 3270 </div>
3051 3271 </div>
3052 3272 </div>
3053 - <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3054 - <!-- <style id='apm-custom-css'>
3055 - <?=$poll['custom_css']?>
3056 - </style> -->
3273 + <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3057 3274 <?php
3058 3275
3059 3276 $content = "
3060 3277 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
@@ -3186,9 +3403,9 @@
3186 3403 $content .= "</div>";
3187 3404
3188 3405 $content .='</div>
3189 3406 </div>';
3190 - print $content;
3407 + print wp_kses_post($content);
3191 3408 ?>
3192 3409 </div>
3193 3410 </div>
3194 3411 <hr/>
@@ -3194,17 +3411,17 @@
3194 3411 <hr/>
3195 3412 <div class="form-group row">
3196 3413 <div class="col-sm-2">
3197 3414 <label for="ays_custom_css">
3198 - <?= __("Custom CSS", "poll-maker"); ?>
3415 + <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3199 3416 </label>
3200 - <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"); ?>">
3201 3418 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3202 3419 </a>
3203 3420 <br>
3204 3421 </div>
3205 3422 <div class="col-sm-10 ays_divider_left">
3206 - <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>
3207 3424 </div>
3208 3425 </div>
3209 3426 <hr/>
3210 3427 <div class="form-group row">
@@ -3209,11 +3426,11 @@
3209 3426 <hr/>
3210 3427 <div class="form-group row">
3211 3428 <div class="col-sm-2">
3212 3429 <label for="ays_poll_reset_to_default">
3213 - <?php echo __('Reset styles', "poll-maker") ?>
3430 + <?php echo esc_html__('Reset styles', "poll-maker") ?>
3214 3431 <a class="ays_help" data-toggle="tooltip"
3215 - title="<?php echo __('Reset styles to default values', "poll-maker") ?>">
3432 + title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3216 3433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3217 3434 </a>
3218 3435 </label>
3219 3436 </div>
@@ -3218,20 +3435,50 @@
3218 3435 </label>
3219 3436 </div>
3220 3437 <div class="col-sm-10 ays_divider_left">
3221 3438 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3222 - id="ays_poll_reset_to_default"><?= __("Reset", "poll-maker") ?>
3439 + id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3223 3440 </button>
3224 3441 </div>
3225 3442 </div>
3226 3443 </div>
3227 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>
3228 3475 </div>
3229 - <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' : ''; ?>">
3230 3477 <div class="ays-poll-accordion-options-main-container">
3231 3478 <div class="ays-poll-accordion-header">
3232 - <?php echo $poll_acordion_svg_html; ?>
3233 - <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>
3234 3481 </div>
3235 3482 <hr class="ays-poll-bolder-hr"/>
3236 3483 <div class="ays-poll-accordion-body">
3237 3484 <div class="form-group row">
@@ -3236,11 +3483,11 @@
3236 3483 <div class="ays-poll-accordion-body">
3237 3484 <div class="form-group row">
3238 3485 <div class="col-sm-3">
3239 3486 <label>
3240 - <?= __('Status', "poll-maker"); ?>
3487 + <?php echo esc_html__('Status', "poll-maker"); ?>
3241 3488 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3242 - 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") ?>">
3243 3490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3244 3491 </a>
3245 3492 </label>
3246 3493 </div>
@@ -3247,17 +3494,17 @@
3247 3494 <div class="col-sm-9">
3248 3495 <div class="d-flex">
3249 3496 <div class="form-check form-check-inline">
3250 3497 <input type="radio" id="ays-publish" name="ays_publish"
3251 - value="1" <?= ($published == 1) ? 'checked' : ''; ?> />
3498 + value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3252 3499 <label class="form-check-label"
3253 - for="ays-publish"> <?= __('Published', "poll-maker"); ?> </label>
3500 + for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3254 3501 </div>
3255 3502 <div class="form-check form-check-inline">
3256 3503 <input type="radio" id="ays-unpublish" name="ays_publish"
3257 - value="0" <?= ($published == 0) ? 'checked' : ''; ?> />
3504 + value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3258 3505 <label class="form-check-label"
3259 - for="ays-unpublish"> <?= __('Unpublished', "poll-maker"); ?> </label>
3506 + for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3260 3507 </div>
3261 3508 </div>
3262 3509 </div>
3263 3510 </div>
@@ -3264,12 +3511,12 @@
3264 3511 <hr>
3265 3512 <div class='form-group row'>
3266 3513 <div class="col-sm-3">
3267 3514 <label for='ays-poll-category'>
3268 - <?= __('Categories', "poll-maker"); ?>
3515 + <?php echo esc_html__('Categories', "poll-maker"); ?>
3269 3516 <a class="ays_help" data-toggle="tooltip"
3270 3517 data-placement="top"
3271 - 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"); ?>">
3272 3519 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3273 3520 </a>
3274 3521 </label>
3275 3522 </div>
@@ -3275,20 +3522,32 @@
3275 3522 </div>
3276 3523 <div class="col-sm-9">
3277 3524 <?php if (!empty($categories)): ?>
3278 3525 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3279 - data-placeholder='<?= __("Select category", "poll-maker") ?>'>
3526 + data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3280 3527 <?php
3281 3528 foreach ( $categories as $cat ) {
3282 3529 ?>
3283 - <option value="<?= $cat['id']; ?>" <?= in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3284 - <?= $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']); ?>
3285 3532 </option>
3286 3533 <?php }
3287 3534 ?>
3288 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>
3289 3548 <?php else: ?>
3290 - <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>
3291 3550 <?php endif; ?>
3292 3551 </div>
3293 3552 </div>
3294 3553 <hr>
@@ -3295,10 +3554,10 @@
3295 3554 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3296 3555 <div class="form-group row ays_toggle_parent">
3297 3556 <div class="col-sm-3">
3298 3557 <label for="ays_add_post_for_poll">
3299 - <?php echo __('Create post for poll', "poll-maker")?>
3300 - <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")?>">
3301 3560 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3302 3561 </a>
3303 3562 </label>
3304 3563 </div>
@@ -3308,10 +3567,10 @@
3308 3567 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3309 3568 <div class="form-group row">
3310 3569 <div class="col-sm-4">
3311 3570 <label for="ays_add_postcat_for_poll">
3312 - <?php echo __('Choose Post Categories', "poll-maker")?>
3313 - <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")?>">
3314 3573 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3315 3574 </a>
3316 3575 </label>
3317 3576 </div>
@@ -3323,9 +3582,9 @@
3323 3582 multiple>
3324 3583 <?php
3325 3584
3326 3585 foreach ($cat_list as $cat) {
3327 - 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>";
3328 3587 }
3329 3588 ?>
3330 3589 </select>
3331 3590 </div>
@@ -3337,10 +3596,10 @@
3337 3596 <?php else: ?>
3338 3597 <div class="form-group row">
3339 3598 <div class="col-sm-3">
3340 3599 <label for="ays_add_post_for_poll">
3341 - <?php echo __('WP Post', "poll-maker")?>
3342 - <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")?>">
3343 3602 <i class="ays_fa ays_fa_info_circle"></i>
3344 3603 </a>
3345 3604 </label>
3346 3605 </div>
@@ -3346,16 +3605,16 @@
3346 3605 </div>
3347 3606 <div class="col-sm-8" style="margin-left: 15px;">
3348 3607 <div class="row">
3349 3608 <div style="margin-right: 10px;">
3350 - <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>
3351 3610 </div>
3352 3611 <div>
3353 - <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>
3354 3613 </div>
3355 3614 </div>
3356 3615 </div>
3357 - <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); ?>">
3358 3617 </div>
3359 3618 <hr>
3360 3619 <?php endif; ?>
3361 3620 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
@@ -3364,25 +3623,25 @@
3364 3623 </div>
3365 3624 <div class="form-group row">
3366 3625 <div class="col-sm-3">
3367 3626 <label for="ays_poll_enable_copy_protection">
3368 - <?php echo __('Enable copy protection',"poll-maker"); ?>
3369 - <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"); ?>">
3370 3629 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3371 3630 </a>
3372 3631 </label>
3373 3632 </div>
3374 3633 <div class="col-sm-9">
3375 - <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_copy_protection" />
3634 + <input type="checkbox" class="ays-enable-timer1" />
3376 3635 </div>
3377 3636 </div>
3378 3637 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3379 3638 <div class="ays-poll-new-upgrade-button-box">
3380 3639 <div>
3381 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3382 - <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">
3383 3642 </div>
3384 - <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>
3385 3644 </div>
3386 3645 </a>
3387 3646 </div>
3388 3647 </div>
@@ -3393,16 +3652,16 @@
3393 3652 </div>
3394 3653 <div class="form-group row">
3395 3654 <div class="col-sm-3">
3396 3655 <label for="ays_poll_question_text_to_speech">
3397 - <?php echo __('Enable text to speech',"poll-maker")?>
3398 - <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")?>">
3399 3658 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3400 3659 </a>
3401 3660 </label>
3402 3661 </div>
3403 3662 <div class="col-sm-9">
3404 - <input type="checkbox" class="ays-enable-timer1" id="ays_poll_question_text_to_speech"
3663 + <input type="checkbox" class="ays-enable-timer1"
3405 3664 name="ays_poll_question_text_to_speech"
3406 3665 value="on"/>
3407 3666 </div>
3408 3667 </div>
@@ -3408,12 +3667,12 @@
3408 3667 </div>
3409 3668 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3410 3669 <div class="ays-poll-new-upgrade-button-box">
3411 3670 <div>
3412 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3413 - <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">
3414 3673 </div>
3415 - <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>
3416 3675 </div>
3417 3676 </a>
3418 3677 </div>
3419 3678 </div> <!-- Questions text to speech -->
@@ -3420,10 +3679,10 @@
3420 3679 <hr>
3421 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' ?>">
3422 3681 <div class="col-sm-3">
3423 3682 <label for='ays_poll_allow_multivote'>
3424 - <?= __('Allow multivote', "poll-maker"); ?>
3425 - <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"); ?>">
3426 3685 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3427 3686 </a>
3428 3687 </label>
3429 3688 </div>
@@ -3429,17 +3688,17 @@
3429 3688 </div>
3430 3689 <div class="col-sm-1">
3431 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; ?>>
3432 3691 </div>
3433 - <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'; ?>">
3434 3693 <div class="row">
3435 3694 <div class="col-sm-3">
3436 3695 <label for='ays_poll_multivote_min_count'>
3437 - <?= __('Min', "poll-maker"); ?>
3696 + <?php echo esc_html__('Min', "poll-maker"); ?>
3438 3697 <a class="ays_help"
3439 3698 data-toggle="tooltip"
3440 3699 data-placement="top"
3441 - title="<?= __("Indicate the minimum count of answers.", "poll-maker"); ?>">
3700 + title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3442 3701 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3443 3702 </a>
3444 3703 </label>
3445 3704 </div>
@@ -3450,13 +3709,13 @@
3450 3709 <hr>
3451 3710 <div class="row">
3452 3711 <div class="col-sm-3">
3453 3712 <label for='ays_poll_multivote_count'>
3454 - <?= __('Max', "poll-maker"); ?>
3713 + <?php echo esc_html__('Max', "poll-maker"); ?>
3455 3714 <a class="ays_help"
3456 3715 data-toggle="tooltip"
3457 3716 data-placement="top"
3458 - title="<?= __("Indicate the maximum count of answers.", "poll-maker"); ?>">
3717 + title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3459 3718 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3460 3719 </a>
3461 3720 </label>
3462 3721 </div>
@@ -3466,15 +3725,48 @@
3466 3725 </div>
3467 3726 </div>
3468 3727 </div>
3469 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>
3470 3762 <div class="form-group row">
3471 3763 <div class="col-sm-3">
3472 3764 <label for='show-title'>
3473 - <?= __('Show Title', "poll-maker"); ?>
3765 + <?php echo esc_html__('Show Title', "poll-maker"); ?>
3474 3766 <a class="ays_help" data-toggle="tooltip"
3475 3767 data-placement="top"
3476 - 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"); ?>">
3477 3769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3478 3770 </a>
3479 3771 </label>
3480 3772 </div>
@@ -3479,9 +3771,9 @@
3479 3771 </label>
3480 3772 </div>
3481 3773 <div class="col-sm-9">
3482 3774 <input type="checkbox" name="show_title" id="show-title"
3483 - value="show" <?= $poll['show_title'] ? 'checked' : ''; ?>>
3775 + value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3484 3776 </div>
3485 3777 </div>
3486 3778 <hr>
3487 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' ?>" >
@@ -3486,11 +3778,11 @@
3486 3778 <hr>
3487 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' ?>" >
3488 3780 <div class="col-sm-3">
3489 3781 <label>
3490 - <?= __('Alignment', "poll-maker"); ?>
3782 + <?php echo esc_html__('Alignment', "poll-maker"); ?>
3491 3783 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3492 - 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") ?>">
3493 3785 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3494 3786 </a>
3495 3787 </label>
3496 3788 </div>
@@ -3497,23 +3789,23 @@
3497 3789 <div class="col-sm-9">
3498 3790 <div class="d-flex">
3499 3791 <div class="form-check form-check-inline">
3500 3792 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3501 - 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' : ''; ?> />
3502 3794 <label class="form-check-label"
3503 - for="apm-dir-ltr"> <?= __('Left', "poll-maker"); ?> </label>
3795 + for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3504 3796 </div>
3505 3797 <div class="form-check form-check-inline">
3506 3798 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3507 - 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' : ''; ?> />
3508 3800 <label class="form-check-label"
3509 - for="apm-dir-center"> <?= __('Center', "poll-maker"); ?> </label>
3801 + for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3510 3802 </div>
3511 3803 <div class="form-check form-check-inline">
3512 3804 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3513 - 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' : ''; ?> />
3514 3806 <label class="form-check-label"
3515 - for="apm-dir-rtl"> <?= __('Right', "poll-maker"); ?> </label>
3807 + for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3516 3808 </div>
3517 3809 </div>
3518 3810 </div>
3519 3811 </div>
@@ -3522,17 +3814,17 @@
3522 3814 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3523 3815 <div class="pro_features pro_features_popup">
3524 3816 <div class="pro-features-popup-conteiner">
3525 3817 <div class="pro-features-popup-title">
3526 - <?php echo __("Allow Anonymity", "poll-maker"); ?>
3818 + <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3527 3819 </div>
3528 3820 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3529 3821 <p>
3530 - <?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"); ?>
3531 3823 </p>
3532 3824 </div>
3533 - <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">
3534 - <?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"); ?>
3535 3827 </div>
3536 3828 </div>
3537 3829 </div>
3538 3830 <div class="pro_features" style="justify-content:flex-end;">
@@ -3539,10 +3831,10 @@
3539 3831 </div>
3540 3832 <div class="form-group row">
3541 3833 <div class="col-sm-3">
3542 3834 <label for='ays-poll-allow-anonymity'>
3543 - <?= __('Allow anonymity', "poll-maker"); ?>
3544 - <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"); ?>">
3545 3837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3546 3838 </a>
3547 3839 </label>
3548 3840 </div>
@@ -3553,20 +3845,20 @@
3553 3845 </div>
3554 3846 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3555 3847 <div class="ays-poll-new-upgrade-button-box">
3556 3848 <div>
3557 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3558 - <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">
3559 3851 </div>
3560 - <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>
3561 3853 </div>
3562 3854 </a>
3563 3855 <div class="ays-poll-new-watch-video-button-box">
3564 3856 <div>
3565 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
3566 - <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">
3567 3859 </div>
3568 - <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>
3569 3861 </div>
3570 3862 </div>
3571 3863 </div>
3572 3864 <hr>
@@ -3572,12 +3864,12 @@
3572 3864 <hr>
3573 3865 <div class="form-group row">
3574 3866 <div class="col-sm-3">
3575 3867 <label for='ays_poll_change_creation_date'>
3576 - <?= __('Change current poll creation date', "poll-maker"); ?>
3868 + <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3577 3869 <a class="ays_help" data-toggle="tooltip"
3578 3870 data-placement="top"
3579 - title="<?= __("Choose your preferred creation date.", "poll-maker"); ?>">
3871 + title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3580 3872 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3581 3873 </a>
3582 3874 </label>
3583 3875 </div>
@@ -3594,10 +3886,10 @@
3594 3886 <hr>
3595 3887 <div class="form-group row">
3596 3888 <div class="col-sm-3">
3597 3889 <label for="ays_poll_create_author">
3598 - <?php echo __('Change the author of the current poll', "poll-maker"); ?>
3599 - <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"); ?>">
3600 3892 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3601 3893 </a>
3602 3894 </label>
3603 3895 </div>
@@ -3602,16 +3894,16 @@
3602 3894 </label>
3603 3895 </div>
3604 3896 <div class="col-sm-9">
3605 3897 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3606 - <option value=""><?php echo __('Select User', "poll-maker")?></option>
3898 + <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3607 3899 <?php
3608 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;
3609 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) ) : '';
3610 3902 $selected = '';
3611 3903 ?>
3612 - <option value="<?php echo $poll_user_id;?>" selected>
3613 - <?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); ?>
3614 3906 </option>
3615 3907 </select>
3616 3908 </div>
3617 3909 </div> <!-- Change the author of the current poll -->
@@ -3619,10 +3911,10 @@
3619 3911 <!-- Poll Main URL Start -->
3620 3912 <div class="form-group row">
3621 3913 <div class="col-sm-3">
3622 3914 <label for="ays_poll_main_url">
3623 - <?php echo __('Poll main URL',$this->plugin_name)?>
3624 - <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");
3625 3917 ?>">
3626 3918 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3627 3919 </a>
3628 3920 </label>
@@ -3627,9 +3919,9 @@
3627 3919 </a>
3628 3920 </label>
3629 3921 </div>
3630 3922 <div class="col-sm-9">
3631 - <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); ?>">
3632 3924 </div>
3633 3925 </div>
3634 3926 <!-- Poll Main URL End -->
3635 3927 <hr>
@@ -3635,12 +3927,12 @@
3635 3927 <hr>
3636 3928 <div class="form-group row">
3637 3929 <div class="col-sm-3">
3638 3930 <label for='show-poll-create-dates'>
3639 - <?= __('Show creation date', "poll-maker"); ?>
3931 + <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3640 3932 <a class="ays_help" data-toggle="tooltip"
3641 3933 data-placement="top"
3642 - 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"); ?>">
3643 3935 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3644 3936 </a>
3645 3937 </label>
3646 3938 </div>
@@ -3645,9 +3937,9 @@
3645 3937 </label>
3646 3938 </div>
3647 3939 <div class="col-sm-9">
3648 3940 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3649 - value="1" <?= $show_create_date ? 'checked' : '' ?> >
3941 + value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3650 3942 </div>
3651 3943 </div>
3652 3944 <hr>
3653 3945 <div class="form-group row">
@@ -3652,12 +3944,12 @@
3652 3944 <hr>
3653 3945 <div class="form-group row">
3654 3946 <div class="col-sm-3">
3655 3947 <label for='show-poll-author'>
3656 - <?= __('Show author', "poll-maker"); ?>
3948 + <?php echo esc_html__('Show author', "poll-maker"); ?>
3657 3949 <a class="ays_help" data-toggle="tooltip"
3658 3950 data-placement="top"
3659 - 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"); ?>">
3660 3952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3661 3953 </a>
3662 3954 </label>
3663 3955 </div>
@@ -3662,9 +3954,9 @@
3662 3954 </label>
3663 3955 </div>
3664 3956 <div class="col-sm-9">
3665 3957 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3666 - value="1" <?= $show_author ? 'checked' : '' ?> >
3958 + value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3667 3959 </div>
3668 3960 </div>
3669 3961 <hr>
3670 3962 <div class="form-group row">
@@ -3669,11 +3961,11 @@
3669 3961 <hr>
3670 3962 <div class="form-group row">
3671 3963 <div class="col-sm-3">
3672 3964 <label for="schedule_the_poll">
3673 - <?= __('Schedule', "poll-maker"); ?>
3965 + <?php echo esc_html__('Schedule', "poll-maker"); ?>
3674 3966 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3675 - 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") ?>">
3676 3968 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3677 3969 </a>
3678 3970 </label>
3679 3971 </div>
@@ -3680,9 +3972,9 @@
3680 3972 <div class="col-sm-1">
3681 3973 <input type="checkbox"
3682 3974 id="schedule_the_poll"
3683 3975 class="active_date_check"
3684 - 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' : '' ?>>
3685 3977 </div>
3686 3978 <div class="col-sm-8">
3687 3979 <div class="row">
3688 3980 <div class="col-sm-12 active_date ays_divider_left"
@@ -3689,9 +3981,9 @@
3689 3981 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3690 3982 <!-- -1- -->
3691 3983 <div class="form-group row">
3692 3984 <div class="col-sm-3">
3693 - <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>
3694 3986 </div>
3695 3987 <div class="col-sm-9">
3696 3988 <div class="input-group mb-3">
3697 3989 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
@@ -3706,9 +3998,9 @@
3706 3998 </div>
3707 3999 <!-- -2- -->
3708 4000 <div class="form-group row">
3709 4001 <div class="col-sm-3">
3710 - <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>
3711 4003 </div>
3712 4004 <div class="col-sm-9">
3713 4005 <div class="input-group mb-3">
3714 4006 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
@@ -3725,12 +4017,12 @@
3725 4017 <hr>
3726 4018 <div class="form-group row">
3727 4019 <div class="col-sm-3">
3728 4020 <label for='ays_poll_show_timer'>
3729 - <?= __('Show timer', "poll-maker"); ?>
4021 + <?php echo esc_html__('Show timer', "poll-maker"); ?>
3730 4022 <a class="ays_help" data-toggle="tooltip"
3731 4023 data-placement="top"
3732 - 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"); ?>">
3733 4025 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3734 4026 </a>
3735 4027 </label>
3736 4028 </div>
@@ -3735,9 +4027,9 @@
3735 4027 </label>
3736 4028 </div>
3737 4029 <div class="col-sm-1">
3738 4030 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3739 - value="1" <?= $schedule_show_timer ? 'checked' : '' ?> >
4031 + value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
3740 4032 </div>
3741 4033 <div class="col-sm-8">
3742 4034 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3743 4035 <div class="d-flex">
@@ -3742,17 +4034,17 @@
3742 4034 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3743 4035 <div class="d-flex">
3744 4036 <div class="form-check form-check-inline">
3745 4037 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3746 - value="countdown" <?= $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
4038 + value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3747 4039 <label class="form-check-label"
3748 - for="show_time_countdown"> <?= __('Show countdown', "poll-maker"); ?> </label>
4040 + for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
3749 4041 </div>
3750 4042 <div class="form-check form-check-inline">
3751 4043 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3752 - value="enddate" <?= $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
4044 + value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3753 4045 <label class="form-check-label"
3754 - 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>
3755 4047 </div>
3756 4048 </div>
3757 4049 <hr>
3758 4050 <div class='form-group row'>
@@ -3757,18 +4049,18 @@
3757 4049 <hr>
3758 4050 <div class='form-group row'>
3759 4051 <div class='col-sm-5'>
3760 4052 <label class="form-check-label" for="show_bottom_timer">
3761 - <?= __(' Show timer at the bottom', "poll-maker"); ?>
4053 + <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
3762 4054 <a class="ays_help" data-toggle="tooltip"
3763 4055 data-placement="top"
3764 - 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"); ?>">
3765 4057 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3766 4058 </a>
3767 4059 </label>
3768 4060 </div>
3769 4061 <div class='col-sm-7'>
3770 - <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' : ''; ?> >
3771 4063 </div>
3772 4064 </div>
3773 4065 </div>
3774 4066 </div>
@@ -3776,9 +4068,9 @@
3776 4068 <hr>
3777 4069 <div class="form-group row">
3778 4070 <div class="col-sm-3">
3779 4071 <label class="form-check-label"
3780 - 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>
3781 4073 </div>
3782 4074 <div class="col-sm-9">
3783 4075 <div class="editor">
3784 4076 <?php
@@ -3799,9 +4091,9 @@
3799 4091 <!-- -3- -->
3800 4092 <div class="form-group row">
3801 4093 <div class="col-sm-3">
3802 4094 <label class="form-check-label"
3803 - for="active_date_message"><?= __("Expiration message:", "poll-maker") ?></label>
4095 + for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
3804 4096 </div>
3805 4097 <div class="col-sm-9">
3806 4098 <div class="editor">
3807 4099 <?php
@@ -3821,12 +4113,12 @@
3821 4113 <hr>
3822 4114 <div class="form-group row">
3823 4115 <div class="col-sm-3">
3824 4116 <label for='show_result_btn_schedule'>
3825 - <?= __('Show result button', "poll-maker"); ?>
4117 + <?php echo esc_html__('Show result button', "poll-maker"); ?>
3826 4118 <a class="ays_help" data-toggle="tooltip"
3827 4119 data-placement="top"
3828 - 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"); ?>">
3829 4121 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3830 4122 </a>
3831 4123 </label>
3832 4124 </div>
@@ -3831,9 +4123,9 @@
3831 4123 </label>
3832 4124 </div>
3833 4125 <div class="col-sm-1">
3834 4126 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
3835 - value="1" <?= $showresbtnschedule ? 'checked' : '' ?> >
4127 + value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
3836 4128 </div>
3837 4129 <div class="col-sm-8">
3838 4130 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
3839 4131 <div class="form-check form-check-inline">
@@ -3839,9 +4131,9 @@
3839 4131 <div class="form-check form-check-inline">
3840 4132 <label class="form-check-label">
3841 4133 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
3842 4134 <span>
3843 - <?= __('With See Results button', "poll-maker"); ?>
4135 + <?php echo esc_html__('With See Results button', "poll-maker"); ?>
3844 4136 </span>
3845 4137 </label>
3846 4138 </div>
3847 4139 <div class="form-check form-check-inline">
@@ -3847,9 +4139,9 @@
3847 4139 <div class="form-check form-check-inline">
3848 4140 <label class="form-check-label">
3849 4141 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
3850 4142 <span>
3851 - <?= __('Without See Results button', "poll-maker"); ?>
4143 + <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
3852 4144 </span>
3853 4145 </label>
3854 4146 </div>
3855 4147 </div>
@@ -3858,12 +4150,12 @@
3858 4150 <hr>
3859 4151 <div class="form-group row">
3860 4152 <div class="col-sm-3">
3861 4153 <label for='ays_show_poll_container'>
3862 - <?= __("Don't show poll", "poll-maker"); ?>
4154 + <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
3863 4155 <a class="ays_help" data-toggle="tooltip"
3864 4156 data-placement="top"
3865 - 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"); ?>">
3866 4158 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3867 4159 </a>
3868 4160 </label>
3869 4161 </div>
@@ -3868,9 +4160,9 @@
3868 4160 </label>
3869 4161 </div>
3870 4162 <div class="col-sm-9">
3871 4163 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
3872 - value="on" <?php echo $poll_check_exp_cont; ?> >
4164 + value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
3873 4165 </div>
3874 4166 </div>
3875 4167 </div>
3876 4168 </div>
@@ -3879,34 +4171,34 @@
3879 4171 <hr>
3880 4172 <div class="form-group row ays_toggle_parent">
3881 4173 <div class="col-sm-3">
3882 4174 <label for='ays-poll-allow-not-vote'>
3883 - <?= __('Allow not to vote', "poll-maker"); ?>
4175 + <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
3884 4176 <a class="ays_help"
3885 4177 data-toggle="tooltip"
3886 4178 data-placement="top"
3887 - 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"); ?>">
3888 4180 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3889 4181 </a></label>
3890 4182 </div>
3891 4183 <div class="col-sm-1">
3892 - <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' : ''; ?>>
3893 4185 </div>
3894 4186 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
3895 4187 <div class="row">
3896 4188 <div class="col-sm-3 ays_divider_left">
3897 4189 <label for="ays-poll-btn-text">
3898 - <?= __("Results button text", "poll-maker"); ?>
4190 + <?php echo esc_html__("Results button text", "poll-maker"); ?>
3899 4191 <a class="ays_help"
3900 4192 data-toggle="tooltip"
3901 4193 data-placement="top"
3902 - 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"); ?>">
3903 4195 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3904 4196 </a>
3905 4197 </label>
3906 4198 </div>
3907 4199 <div class="col-sm-9">
3908 - <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"); ?>"/>
3909 4201 </div>
3910 4202 </div>
3911 4203 </div>
3912 4204 </div>
@@ -3913,11 +4205,11 @@
3913 4205 <hr>
3914 4206 <div class="form-group row">
3915 4207 <div class="col-sm-3" style="padding-right: 0px;">
3916 4208 <label for="ays_enable_pass_count">
3917 - <?= __('Show passed users count', "poll-maker") ?>
4209 + <?php echo esc_html__('Show passed users count', "poll-maker") ?>
3918 4210 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3919 - 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") ?>">
3920 4212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3921 4213 </a>
3922 4214 </label>
3923 4215 </div>
@@ -3922,9 +4214,9 @@
3922 4214 </label>
3923 4215 </div>
3924 4216 <div class="col-sm-9">
3925 4217 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
3926 - value="on" <?= ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4218 + value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
3927 4219 </div>
3928 4220 </div>
3929 4221 <hr>
3930 4222 <div class="form-group row ays_toggle_parent">
@@ -3929,11 +4221,11 @@
3929 4221 <hr>
3930 4222 <div class="form-group row ays_toggle_parent">
3931 4223 <div class="col-sm-3">
3932 4224 <label for="ays_redirect_after_vote">
3933 - <?= __('Redirect after voting', "poll-maker"); ?>
4225 + <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
3934 4226 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3935 - 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"); ?>">
3936 4228 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3937 4229 </a>
3938 4230 </label>
3939 4231 </div>
@@ -3945,16 +4237,16 @@
3945 4237 <div class="col-sm-12 ays_divider_left">
3946 4238 <div class="form-group row">
3947 4239 <div class="col-sm-3">
3948 4240 <label for="redirection_url">
3949 - <?= __('URL', "poll-maker"); ?>
3950 - <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"); ?>">
3951 4243 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3952 4244 </a>
3953 4245 </label>
3954 4246 </div>
3955 4247 <div class="col-sm-9">
3956 - <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">
3957 4249 </div>
3958 4250 </div>
3959 4251 <hr>
3960 4252 <div class="form-group row">
@@ -3959,17 +4251,17 @@
3959 4251 <hr>
3960 4252 <div class="form-group row">
3961 4253 <div class="col-sm-3">
3962 4254 <label for="redirectio_delay">
3963 - <?= __('Delay', "poll-maker"); ?>
4255 + <?php echo esc_html__('Delay', "poll-maker"); ?>
3964 4256 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3965 - 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"); ?>">
3966 4258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3967 4259 </a>
3968 4260 </label>
3969 4261 </div>
3970 4262 <div class="col-sm-9">
3971 - <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">
3972 4264 </div>
3973 4265 </div>
3974 4266 </div>
3975 4267 </div>
@@ -3979,12 +4271,12 @@
3979 4271 <hr/>
3980 4272 <div class="form-group row">
3981 4273 <div class="col-sm-3">
3982 4274 <label for="randomize-answers">
3983 - <?= __('Randomize Answers', "poll-maker"); ?>
4275 + <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
3984 4276 <a class="ays_help" data-toggle="tooltip"
3985 4277 data-placement="top"
3986 - 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"); ?>">
3987 4279 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3988 4280 </a>
3989 4281 </label>
3990 4282 </div>
@@ -4000,10 +4292,10 @@
4000 4292 <hr/>
4001 4293 <div class="form-group row ays_toggle_parent">
4002 4294 <div class="col-sm-3" style="padding-right: 0px;">
4003 4295 <label for="ays_enable_asnwers_sound">
4004 - <?php echo __('Enable answers sound', "poll-maker")?>
4005 - <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")?>">
4006 4298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4007 4299 </a>
4008 4300 </label>
4009 4301 </div>
@@ -4011,13 +4303,13 @@
4011 4303 <input type="checkbox" id="ays_enable_asnwers_sound"
4012 4304 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4013 4305 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4014 4306 </div>
4015 - <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;' ?>">
4016 4308 <?php if($answers_sound_status): ?>
4017 - <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>
4018 4310 <?php else: ?>
4019 - <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>
4020 4312 <?php endif; ?>
4021 4313 </div>
4022 4314 </div>
4023 4315 <hr/>
@@ -4023,17 +4315,17 @@
4023 4315 <hr/>
4024 4316 <div class="form-group row">
4025 4317 <div class="col-3">
4026 4318 <label for="ays-poll-reason">
4027 - <?= __('Vote Reason', "poll-maker"); ?>
4319 + <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4028 4320 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4029 - 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"); ?>">
4030 4322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4031 4323 </a>
4032 4324 </label>
4033 4325 </div>
4034 4326 <div class="col-9">
4035 - <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); ?>>
4036 4328 </div>
4037 4329 </div>
4038 4330 <hr/>
4039 4331 <div class="form-group row ays_toggle_parent">
@@ -4038,11 +4330,11 @@
4038 4330 <hr/>
4039 4331 <div class="form-group row ays_toggle_parent">
4040 4332 <div class="col-sm-3">
4041 4333 <label for="ays_enable_vote_button">
4042 - <?= __('Enable Vote button', "poll-maker") ?>
4334 + <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4043 4335 <a class="ays_help" data-toggle="tooltip"
4044 - 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") ?>">
4045 4337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4046 4338 </a>
4047 4339 </label>
4048 4340 </div>
@@ -4047,19 +4339,19 @@
4047 4339 </label>
4048 4340 </div>
4049 4341 <div class="col-sm-1">
4050 4342 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4051 - 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' ?> />
4052 4344 </div>
4053 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;' : '' ?>">
4054 4346 <div class="row">
4055 4347 <div class="col-sm-3 ays_divider_left">
4056 4348 <label for="ays-poll-btn-text_vote">
4057 - <?= __("Vote button text", "poll-maker"); ?>
4349 + <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4058 4350 <a class="ays_help"
4059 4351 data-toggle="tooltip"
4060 4352 data-placement="top"
4061 - 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"); ?>">
4062 4354 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4063 4355 </a>
4064 4356 </label>
4065 4357 </div>
@@ -4065,9 +4357,9 @@
4065 4357 </div>
4066 4358 <div class="col-sm-9">
4067 4359 <input type="text" class="ays-text-input ays-text-input-short"
4068 4360 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4069 - value="<?= stripslashes($options['btn_text']) ?>"/>
4361 + value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4070 4362 </div>
4071 4363 </div>
4072 4364 </div>
4073 4365 </div>
@@ -4074,11 +4366,11 @@
4074 4366 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4075 4367 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4076 4368 <div class="col-sm-3">
4077 4369 <label for="ays_enable_view_more_button">
4078 - <?= __('Enable View more button', "poll-maker") ?>
4370 + <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4079 4371 <a class="ays_help" data-toggle="tooltip"
4080 - 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"); ?>">
4081 4373 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4082 4374 </a>
4083 4375 </label>
4084 4376 </div>
@@ -4089,10 +4381,10 @@
4089 4381 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4090 4382 <div class="form-group row">
4091 4383 <div class="col-sm-3">
4092 4384 <label for="ays_poll_view_more_button_count">
4093 - <?php echo __("Count", "poll-maker"); ?>
4094 - <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"); ?>">
4095 4387 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4096 4388 </a>
4097 4389 </label>
4098 4390 </div>
@@ -4105,18 +4397,18 @@
4105 4397 <hr>
4106 4398 <div class="form-group row">
4107 4399 <div class="col-sm-3">
4108 4400 <label for="ays_answers_sort_select">
4109 - <?php echo __('Answers sorting', "poll-maker") ?>
4401 + <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4110 4402 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4111 4403 title="<?php
4112 - 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") .
4113 4405 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4114 - "<li>". __('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4115 - "<li>". __('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4116 - "<li>". __('Most voted – by most votes', "poll-maker") ."</li>".
4117 - "<li>". __('Less voted - by less votes', "poll-maker") ."</li>".
4118 - "<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>".
4119 4411 "</ul>";
4120 4412 ?>">
4121 4413 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4122 4414 </a>
@@ -4123,13 +4415,13 @@
4123 4415 </label>
4124 4416 </div>
4125 4417 <div class="col-sm-9">
4126 4418 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4127 - <option value="default" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo __('Default', "poll-maker") ?></option>
4128 - <option value="ascending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo __('Ascending', "poll-maker") ?></option>
4129 - <option value="descending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo __('Descending', "poll-maker") ?></option>
4130 - <option value="votes_asc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo __('Most Voted', "poll-maker") ?></option>
4131 - <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>
4132 4424 </select>
4133 4425 </div>
4134 4426 </div>
4135 4427 <hr>
@@ -4134,81 +4426,98 @@
4134 4426 </div>
4135 4427 <hr>
4136 4428 <div class="form-group row">
4137 4429 <div class="col-sm-3">
4138 - <label>
4139 - <?php echo __('Answers numbering', "poll-maker"); ?>
4140 - <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"); ?>">
4141 4433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4142 4434 </a>
4143 4435 </label>
4144 4436 </div>
4145 4437 <div class="col-sm-9">
4146 - <select class="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4147 - <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo __( "None", "poll-maker"); ?></option>
4148 - <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo __( "1.", "poll-maker"); ?></option>
4149 - <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo __( "1)", "poll-maker"); ?></option>
4150 - <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo __( "A.", "poll-maker"); ?></option>
4151 - <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo __( "A)", "poll-maker"); ?></option>
4152 - <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo __( "a.", "poll-maker"); ?></option>
4153 - <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>
4154 4447 </select>
4155 4448 </div>
4156 4449 </div> <!-- Show answers numbering -->
4157 4450 <hr>
4158 - <div class="form-group row">
4159 - <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4160 - <div class="pro_features" style="justify-content:flex-end;">
4161 - </div>
4162 - <div class="form-group row ays_toggle_parent">
4163 - <div class="col-sm-3">
4164 - <label for="ays_show_votes_before_voting">
4165 - <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4166 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4167 - 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") ?>">
4168 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4169 - </a>
4170 - </label>
4171 - </div>
4172 - <div class="col-sm-1">
4173 - <input type="checkbox"/>
4174 - </div>
4175 - <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4176 - <div class="d-flex">
4177 - <div class="form-check-inline ays_poll_loader">
4178 - <label class="form-check-label">
4179 - <input type="radio" value="by_count" />
4180 - <span><?= __('By count', "poll-maker"); ?></span>
4181 - </label>
4182 - </div>
4183 - <div class="form-check-inline ays_poll_loader">
4184 - <label class="form-check-label">
4185 - <input type="radio" value="by_percentage"/>
4186 - <span><?= __('By percentage', "poll-maker"); ?></span>
4187 - </label>
4188 - </div>
4189 - </div>
4190 - </div>
4191 - </div> <!-- Status -->
4192 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4193 - <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4194 - <div>
4195 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4196 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4197 - </div>
4198 - <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4199 - </div>
4200 - </a>
4201 - </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>
4202 4501 </div>
4203 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>
4204 4513 </div>
4205 4514 </div>
4206 - <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' : ''; ?>">
4207 4516 <div class="ays-poll-accordion-options-main-container">
4208 4517 <div class="ays-poll-accordion-header">
4209 - <?php echo $poll_acordion_svg_html; ?>
4210 - <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>
4211 4520 </div>
4212 4521 <hr class="ays-poll-bolder-hr"/>
4213 4522 <div class="ays-poll-accordion-body">
4214 4523 <div class="form-group row ays_toggle_parent">
@@ -4213,11 +4522,11 @@
4213 4522 <div class="ays-poll-accordion-body">
4214 4523 <div class="form-group row ays_toggle_parent">
4215 4524 <div class="col-sm-3">
4216 4525 <label for="apm_limit_users">
4217 - <?= __('Maximum number of attempts per user', "poll-maker"); ?>
4526 + <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4218 4527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4219 - 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"); ?>">
4220 4529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4221 4530 </a>
4222 4531 </label>
4223 4532 </div>
@@ -4222,22 +4531,22 @@
4222 4531 </label>
4223 4532 </div>
4224 4533 <div class="col-sm-1">
4225 4534 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4226 - value="on" <?= $options['limit_users'] ? 'checked' : ''; ?> />
4535 + value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4227 4536 </div>
4228 - <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;'; ?>">
4229 4538 <div class="ays-limitation-options">
4230 4539 <!-- Limitation method -->
4231 4540 <div class="form-group row">
4232 4541 <div class="col-sm-3">
4233 4542 <label for="ays_redirect_method">
4234 - <?= __('Detects users by', "poll-maker"); ?>
4235 - <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" ); ?>
4236 - <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>
4237 - <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>
4238 - <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>
4239 - <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>"
4240 4549 >
4241 4550 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4242 4551 </a>
4243 4552 </label>
@@ -4245,29 +4554,29 @@
4245 4554 <div class="col-sm-9">
4246 4555 <div class="ays-poll-sel-fields d-flex p-0">
4247 4556 <div class="ays-poll-check-box mr-2">
4248 4557 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4249 - 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" : "" ?> />
4250 4559 <label class="form-check-label"
4251 - for="ays_limit_method_ip"><?= __('IP', "poll-maker"); ?> </label>
4560 + for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4252 4561 </div>
4253 4562 <div class="ays-poll-check-box mr-2">
4254 4563 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4255 - 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" : "" ?> />
4256 4565 <label class="form-check-label"
4257 - 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>
4258 4567 </div>
4259 4568 <div class="ays-poll-check-box mr-2">
4260 4569 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4261 - 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" : "" ?> />
4262 4571 <label class="form-check-label"
4263 - for="ays_limit_method_cookie"><?= __('Cookie', "poll-maker"); ?> </label>
4572 + for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4264 4573 </div>
4265 4574 <div class="ays-poll-check-box mr-2">
4266 4575 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4267 - 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" : "" ?> />
4268 4577 <label class="form-check-label"
4269 - 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>
4270 4579 </div>
4271 4580 </div>
4272 4581 </div>
4273 4582 </div>
@@ -4275,11 +4584,11 @@
4275 4584 <!-- Limitation message -->
4276 4585 <div class="form-group row">
4277 4586 <div class="col-sm-3">
4278 4587 <label for="ays_limitation_message">
4279 - <?= __('Message', "poll-maker"); ?>
4588 + <?php echo esc_html__('Message', "poll-maker"); ?>
4280 4589 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4281 - 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"); ?>">
4282 4591 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4283 4592 </a>
4284 4593 </label>
4285 4594 </div>
@@ -4301,11 +4610,11 @@
4301 4610 <!-- Limitation redirect url -->
4302 4611 <div class="form-group row">
4303 4612 <div class="col-sm-3">
4304 4613 <label for="ays_redirect_url">
4305 - <?= __('Redirect URL', "poll-maker"); ?>
4614 + <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4306 4615 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4307 - 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"); ?>">
4308 4617 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4309 4618 </a>
4310 4619 </label>
4311 4620 </div>
@@ -4311,9 +4620,9 @@
4311 4620 </div>
4312 4621 <div class="col-sm-9">
4313 4622 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4314 4623 class="ays-text-input"
4315 - value="<?= $options['redirect_url'] ?>"/>
4624 + value="<?php echo $options['redirect_url'] ?>"/>
4316 4625 </div>
4317 4626 </div>
4318 4627 <hr>
4319 4628 <!-- Limitation redirect delay -->
@@ -4319,11 +4628,11 @@
4319 4628 <!-- Limitation redirect delay -->
4320 4629 <div class="form-group row">
4321 4630 <div class="col-sm-3">
4322 4631 <label for="ays_redirection_delay">
4323 - <?= __('Redirect delay (sec)', "poll-maker"); ?>
4632 + <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4324 4633 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4325 - 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"); ?>">
4326 4635 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4327 4636 </a>
4328 4637 </label>
4329 4638 </div>
@@ -4329,9 +4638,9 @@
4329 4638 </div>
4330 4639 <div class="col-sm-9">
4331 4640 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4332 4641 class="ays-text-input"
4333 - value="<?= $options['redirection_delay'] ?>"/>
4642 + value="<?php echo $options['redirection_delay'] ?>"/>
4334 4643 </div>
4335 4644 </div>
4336 4645 <hr>
4337 4646 <div class="form-group row">
@@ -4336,29 +4645,58 @@
4336 4645 <hr>
4337 4646 <div class="form-group row">
4338 4647 <div class="col-sm-3">
4339 4648 <label for="ays_see_result_show">
4340 - <?= __('See results', "poll-maker"); ?>
4649 + <?php echo esc_html__('See results', "poll-maker"); ?>
4341 4650 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4342 - 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" ); ?>
4343 - <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>
4344 - <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>">
4345 4654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4346 4655 </a>
4347 4656 </label>
4348 4657 </div>
4349 4658 <div class="col-sm-9">
4350 - <div style="margin-bottom: 10px;">
4351 - <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; ?>>
4352 - </div>
4353 - <div class="col-sm-9 ays-poll-sel-fields p-0 <?php echo $poll_see_result_button_cont; ?>" id="ays_poll_show_hide_button" >
4354 - <div class="ays-poll-check-box mr-2">
4355 - <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?>>
4356 - <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); ?>>
4357 4665 </div>
4358 - <div class="ays-poll-check-box mr-2">
4359 - <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?>>
4360 - <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>
4361 4699 </div>
4362 4700 </div>
4363 4701 </div>
4364 4702 </div>
@@ -4369,10 +4707,10 @@
4369 4707 </div>
4370 4708 <div class="form-group row d-flex">
4371 4709 <div class="col-sm-3">
4372 4710 <label for="ays_attempts_count">
4373 - <?php echo __('Attempts count', "poll-maker")?>
4374 - <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")?>">
4375 4713 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4376 4714 </a>
4377 4715 </label>
4378 4716 </div>
@@ -4382,12 +4720,12 @@
4382 4720 </div>
4383 4721 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4384 4722 <div class="ays-poll-new-upgrade-button-box">
4385 4723 <div>
4386 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4387 - <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">
4388 4726 </div>
4389 - <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>
4390 4728 </div>
4391 4729 </a>
4392 4730 </div>
4393 4731 </div>
@@ -4397,11 +4735,11 @@
4397 4735 <hr/>
4398 4736 <div class="form-group row ays_toggle_parent">
4399 4737 <div class="col-sm-3">
4400 4738 <label for="ays_enable_logged_users">
4401 - <?= __('Only for logged in users', "poll-maker"); ?>
4739 + <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4402 4740 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4403 - 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"); ?>">
4404 4742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4405 4743 </a>
4406 4744 </label>
4407 4745 </div>
@@ -4406,17 +4744,17 @@
4406 4744 </label>
4407 4745 </div>
4408 4746 <div class="col-sm-1">
4409 4747 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4410 - value="on" <?= $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4748 + value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4411 4749 </div>
4412 - <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;'; ?>">
4413 4751 <div class="form-group row">
4414 4752 <div class="col-sm-3">
4415 4753 <label for="ays_logged_in_message">
4416 - <?= __('Message', "poll-maker"); ?>
4754 + <?php echo esc_html__('Message', "poll-maker"); ?>
4417 4755 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4418 - title="<?= __('Write the message for unauthorized users.', "poll-maker"); ?>">
4756 + title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4419 4757 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4420 4758 </a>
4421 4759 </label>
4422 4760 </div>
@@ -4437,10 +4775,10 @@
4437 4775 <hr/>
4438 4776 <div class="form-group row">
4439 4777 <div class="col-sm-3">
4440 4778 <label for="ays_show_login_form">
4441 - <?php echo __('Show Login form', "poll-maker")?>
4442 - <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")?>">
4443 4781 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4444 4782 </a>
4445 4783 </label>
4446 4784 </div>
@@ -4453,11 +4791,11 @@
4453 4791 <hr/>
4454 4792 <div class="form-group row ays_toggle_parent">
4455 4793 <div class="col-sm-3">
4456 4794 <label for="ays_enable_restriction_pass">
4457 - <?= __('Only for selected user role', "poll-maker"); ?>
4795 + <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4458 4796 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4459 - 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"); ?>">
4460 4798 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4461 4799 </a>
4462 4800 </label>
4463 4801 </div>
@@ -4462,16 +4800,16 @@
4462 4800 </label>
4463 4801 </div>
4464 4802 <div class="col-sm-1">
4465 4803 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4466 - value="on" <?= (isset($options['enable_restriction_pass']) &&
4804 + value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4467 4805 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4468 4806 </div>
4469 - <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;'; ?>">
4470 4808 <div class="form-group row">
4471 4809 <div class="col-sm-3">
4472 4810 <label for="ays_users_roles">
4473 - <?= __('User role', "poll-maker"); ?></label>
4811 + <?php echo esc_html__('User role', "poll-maker"); ?></label>
4474 4812 </div>
4475 4813 <div class="col-sm-9">
4476 4814 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4477 4815 <?php
@@ -4489,9 +4827,9 @@
4489 4827 }else{
4490 4828 $selected_role = '';
4491 4829 }
4492 4830 }
4493 - 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>";
4494 4832 }
4495 4833 ?>
4496 4834 </select>
4497 4835 </div>
@@ -4499,11 +4837,11 @@
4499 4837 <hr>
4500 4838 <div class="form-group row">
4501 4839 <div class="col-sm-3">
4502 4840 <label for="restriction_pass_message">
4503 - <?= __('Message', "poll-maker"); ?>
4841 + <?php echo esc_html__('Message', "poll-maker"); ?>
4504 4842 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4505 - 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"); ?>">
4506 4844 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4507 4845 </a>
4508 4846 </label>
4509 4847 </div>
@@ -4526,10 +4864,10 @@
4526 4864 <hr>
4527 4865 <div class="form-group row ays_toggle_parent">
4528 4866 <div class="col-sm-3">
4529 4867 <label for="ays_poll_enable_password">
4530 - <?php echo __('Password for passing Poll', "poll-maker")?>
4531 - <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")?>">
4532 4870 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4533 4871 </a>
4534 4872 </label>
4535 4873 </div>
@@ -4540,10 +4878,10 @@
4540 4878 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4541 4879 <div class="form-group row">
4542 4880 <div class="col-sm-3">
4543 4881 <label for="ays_poll_password">
4544 - <?php echo __('Password' , "poll-maker")?>
4545 - <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")?>">
4546 4884 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4547 4885 </a>
4548 4886 </label>
4549 4887 </div>
@@ -4554,10 +4892,10 @@
4554 4892 <hr>
4555 4893 <div class="form-group row">
4556 4894 <div class="col-sm-3">
4557 4895 <label for="ays_poll_enable_password_visibility">
4558 - <?php echo __('Enable toggle password visibility', "poll-maker"); ?>
4559 - <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"); ?>">
4560 4898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4561 4899 </a>
4562 4900 </label>
4563 4901 </div>
@@ -4568,10 +4906,10 @@
4568 4906 <hr>
4569 4907 <div class="form-group row">
4570 4908 <div class="col-sm-3">
4571 4909 <label for="ays_poll_password">
4572 - <?php echo __('Message', "poll-maker")?>
4573 - <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")?>">
4574 4912 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4575 4913 </a>
4576 4914 </label>
4577 4915 </div>
@@ -4594,10 +4932,10 @@
4594 4932 </div>
4595 4933 <div class="form-group row ays_toggle_parent">
4596 4934 <div class="col-sm-3">
4597 4935 <label for="ays_enable_tackers_count">
4598 - <?php echo __('Limitation count of takers', "poll-maker")?>
4599 - <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")?>">
4600 4938 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4601 4939 </a>
4602 4940 </label>
4603 4941 </div>
@@ -4608,10 +4946,10 @@
4608 4946 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4609 4947 <div class="form-group row">
4610 4948 <div class="col-sm-3">
4611 4949 <label for="ays_tackers_count">
4612 - <?php echo __('Count', "poll-maker")?>
4613 - <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")?>">
4614 4952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4615 4953 </a>
4616 4954 </label>
4617 4955 </div>
@@ -4624,12 +4962,12 @@
4624 4962 </div>
4625 4963 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4626 4964 <div class="ays-poll-new-upgrade-button-box">
4627 4965 <div>
4628 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4629 - <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">
4630 4968 </div>
4631 - <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>
4632 4970 </div>
4633 4971 </a>
4634 4972 </div>
4635 4973 </div><!-- Limitation count of takers Poll PRO Feautre-->
@@ -4640,10 +4978,10 @@
4640 4978 </div>
4641 4979 <div class="form-group row ays_toggle_parent">
4642 4980 <div class="col-sm-3">
4643 4981 <label for="ays_enable_vote_limitation">
4644 - <?php echo __('Allow to vote once per session', "poll-maker")?>
4645 - <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")?>">
4646 4984 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4647 4985 </a>
4648 4986 </label>
4649 4987 </div>
@@ -4654,10 +4992,10 @@
4654 4992 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4655 4993 <div class="form-group row">
4656 4994 <div class="col-sm-3">
4657 4995 <label for="ays_vote_limitation">
4658 - <?php echo __('Session Period', "poll-maker")?>
4659 - <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")?>">
4660 4998 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4661 4999 </a>
4662 5000 </label>
4663 5001 </div>
@@ -4674,11 +5012,11 @@
4674 5012 </div>
4675 5013 <div class="form-group row d-flex w-100">
4676 5014 <div class="col-sm-3">
4677 5015 <label for="">
4678 - <?= __('Message', "poll-maker"); ?>
5016 + <?php echo esc_html__('Message', "poll-maker"); ?>
4679 5017 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4680 - 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"); ?>">
4681 5019 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4682 5020 </a>
4683 5021 </label>
4684 5022 </div>
@@ -4699,12 +5037,12 @@
4699 5037 </div>
4700 5038 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4701 5039 <div class="ays-poll-new-upgrade-button-box">
4702 5040 <div>
4703 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4704 - <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">
4705 5043 </div>
4706 - <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>
4707 5045 </div>
4708 5046 </a>
4709 5047 </div>
4710 5048 </div> <!-- Allow to vote once per session PRO Feautre-->
@@ -4715,10 +5053,10 @@
4715 5053 </div>
4716 5054 <div class="form-group row ays_toggle_parent">
4717 5055 <div class="col-sm-3">
4718 5056 <label for="enable_limit_by_country">
4719 - <?php echo __('Limit by country', "poll-maker")?>
4720 - <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")?>">
4721 5059 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4722 5060 </a>
4723 5061 </label>
4724 5062 </div>
@@ -4725,10 +5063,13 @@
4725 5063 <div class="col-sm-1">
4726 5064 <input type="checkbox" class="ays-enable-timer1"/>
4727 5065 </div>
4728 5066 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4729 - <select class="ays-text-input ays-text-input-short" style="width: 15vw;">
4730 - <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>
4731 5072 </select>
4732 5073 </div>
4733 5074 </div>
4734 5075 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -4733,12 +5074,12 @@
4733 5074 </div>
4734 5075 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4735 5076 <div class="ays-poll-new-upgrade-button-box">
4736 5077 <div>
4737 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4738 - <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">
4739 5080 </div>
4740 - <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>
4741 5082 </div>
4742 5083 </a>
4743 5084 </div>
4744 5085 </div> <!-- Limit by country PRO Feautre -->
@@ -4744,14 +5085,44 @@
4744 5085 </div> <!-- Limit by country PRO Feautre -->
4745 5086 <hr>
4746 5087 </div>
4747 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>
4748 5119 </div>
4749 - <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' : ''; ?>">
4750 5121 <div class="ays-poll-accordion-options-main-container">
4751 5122 <div class="ays-poll-accordion-header">
4752 - <?php echo $poll_acordion_svg_html; ?>
4753 - <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>
4754 5125 </div>
4755 5126 <hr class="ays-poll-bolder-hr"/>
4756 5127 <div class="ays-poll-accordion-body">
4757 5128 <div class="form-group row">
@@ -4756,11 +5127,11 @@
4756 5127 <div class="ays-poll-accordion-body">
4757 5128 <div class="form-group row">
4758 5129 <div class="col-sm-3">
4759 5130 <label>
4760 - <?= __('Information form title', "poll-maker"); ?>
5131 + <?php echo esc_html__('Information form title', "poll-maker"); ?>
4761 5132 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4762 - 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"); ?>">
4763 5134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4764 5135 </a>
4765 5136 </label>
4766 5137 </div>
@@ -4781,12 +5152,12 @@
4781 5152 <hr>
4782 5153 <div class="form-group row ays_toggle_parent">
4783 5154 <div class="col-sm-2">
4784 5155 <label for='ays_poll_info_form'>
4785 - <?= __('Enable Information Form', "poll-maker"); ?>
5156 + <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
4786 5157 <a class="ays_help" data-toggle="tooltip"
4787 5158 data-placement="top"
4788 - 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"); ?>">
4789 5160 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4790 5161 </a>
4791 5162 </label>
4792 5163 </div>
@@ -4795,10 +5166,10 @@
4795 5166 </div>
4796 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' : ''; ?>">
4797 5168 <div class="col-sm-7">
4798 5169 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
4799 - <?php echo __('Allow collecting information of logged in users', "poll-maker"); ?>
4800 - <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")?>">
4801 5172 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4802 5173 </a>
4803 5174 </label>
4804 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; ?>>
@@ -4806,10 +5177,10 @@
4806 5177 </div>
4807 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;"; ?>">
4808 5179 <div>
4809 5180 <label>
4810 - <?php echo __('Form Fields', "poll-maker"); ?>
4811 - <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"); ?>">
4812 5183 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4813 5184 </a>
4814 5185 </label>
4815 5186 <hr>
@@ -4817,12 +5188,12 @@
4817 5188 <div>
4818 5189 <div class="ays-poll-sel-fields d-flex">
4819 5190 <?php foreach ( $all_fields as $field ): ?>
4820 5191 <div class="ays-poll-check-box mr-2">
4821 - <input type="checkbox" name="ays-poll-form-fields[]" value="<?= $field['slug']; ?>" id="ays-poll-form-field-<?= $field['slug']; ?>"
4822 - <?= (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
4823 - <label for="ays-poll-form-field-<?= $field['slug']; ?>">
4824 - <?= 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>
4825 5196 </div>
4826 5197 <?php endforeach; ?>
4827 5198 </div>
4828 5199 <hr>
@@ -4828,11 +5199,11 @@
4828 5199 <hr>
4829 5200 </div>
4830 5201 <div>
4831 5202 <label>
4832 - <?= __('Required Fields', "poll-maker"); ?>
5203 + <?php echo esc_html__('Required Fields', "poll-maker"); ?>
4833 5204 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4834 - title="<?= __("Select which fields are required.", "poll-maker"); ?>">
5205 + title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
4835 5206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4836 5207 </a>
4837 5208 </label>
4838 5209 <hr>
@@ -4837,19 +5208,19 @@
4837 5208 </label>
4838 5209 <hr>
4839 5210 </div>
4840 5211 <div>
4841 - <div class="ays-poll-req-fields d-flex">
5212 + <div class="ays-poll-sel-fields d-flex">
4842 5213 <?php foreach ( $all_fields as $field ): ?>
4843 5214 <div class="ays-poll-check-box mr-2"
4844 - 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'],
4845 5216 $fields) === false) ? "style='display:none'" : ""; ?>>
4846 5217 <input type="checkbox" name="ays-poll-form-required-fields[]"
4847 - value="<?= $field['slug']; ?>"
4848 - 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'],
4849 5220 $required_fields) !== false) ? "checked" : ""; ?>>
4850 - <label for="ays-poll-form-rfield-<?= $field['slug']; ?>">
4851 - <?= ucfirst($field['name']); ?></label>
5221 + <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5222 + <?php echo ucfirst($field['name']); ?></label>
4852 5223 </div>
4853 5224 <?php endforeach; ?>
4854 5225 </div>
4855 5226 </div>
@@ -4859,9 +5230,9 @@
4859 5230 <hr>
4860 5231 <div class="form-group row">
4861 5232 <div class="col-sm-3">
4862 5233 <label for="ays_poll_autofill_user_data">
4863 - <?php echo __('Autofill logged-in user data', "poll-maker"); ?>
5234 + <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
4864 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"); ?>">
4865 5236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4866 5237 </a>
4867 5238 </label>
@@ -4875,9 +5246,9 @@
4875 5246 <hr>
4876 5247 <div class="form-group row">
4877 5248 <div class="col-sm-3">
4878 5249 <label for="ays_poll_display_fields_labels">
4879 - <?php echo __('Display form fields with labels', "poll-maker"); ?>
5250 + <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
4880 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"); ?>">
4881 5252 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4882 5253 </a>
4883 5254 </label>
@@ -4895,10 +5266,10 @@
4895 5266 </div>
4896 5267 <div class="form-group row">
4897 5268 <div class="col-sm-3">
4898 5269 <label>
4899 - <?= __('Add custom fields', "poll-maker"); ?>
4900 - <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"); ?>">
4901 5272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4902 5273 </a>
4903 5274 </label>
4904 5275 </div>
@@ -4903,10 +5274,10 @@
4903 5274 </label>
4904 5275 </div>
4905 5276 <div class="col-sm-9">
4906 5277 <blockquote>
4907 - <?= __("For creating custom fields click ", "poll-maker"); ?>
4908 - <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>
4909 5280 </blockquote>
4910 5281 </div>
4911 5282 </div>
4912 5283 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -4911,12 +5282,12 @@
4911 5282 </div>
4912 5283 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4913 5284 <div class="ays-poll-new-upgrade-button-box">
4914 5285 <div>
4915 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4916 - <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">
4917 5288 </div>
4918 - <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>
4919 5290 </div>
4920 5291 </a>
4921 5292 </div>
4922 5293 </div>
@@ -4922,14 +5293,44 @@
4922 5293 </div>
4923 5294 <hr>
4924 5295 </div>
4925 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>
4926 5327 </div>
4927 - <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' : ''; ?>">
4928 5329 <div class="ays-poll-accordion-options-main-container">
4929 5330 <div class="ays-poll-accordion-header">
4930 - <?php echo $poll_acordion_svg_html; ?>
4931 - <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>
4932 5333 </div>
4933 5334 <hr class="ays-poll-bolder-hr"/>
4934 5335 <div class="ays-poll-accordion-body">
4935 5336 <div class="form-group row ays_toggle_parent">
@@ -4934,11 +5335,11 @@
4934 5335 <div class="ays-poll-accordion-body">
4935 5336 <div class="form-group row ays_toggle_parent">
4936 5337 <div class="col-sm-3">
4937 5338 <label for="ays_notify_by_email_on">
4938 - <?= __('Results notification by email', "poll-maker"); ?>
5339 + <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
4939 5340 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4940 - 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"); ?>">
4941 5342 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4942 5343 </a>
4943 5344 </label>
4944 5345 </div>
@@ -4948,17 +5349,17 @@
4948 5349 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
4949 5350 <div class="row ays_divider_left">
4950 5351 <div class="col-sm-3">
4951 5352 <label for="ays_notify_email">
4952 - <?php echo __('Email address', "poll-maker"); ?>
5353 + <?php echo esc_html__('Email address', "poll-maker"); ?>
4953 5354 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4954 - 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"); ?>">
4955 5356 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4956 5357 </a>
4957 5358 </label>
4958 5359 </div>
4959 5360 <div class="col-sm-9">
4960 - <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">
4961 5362 </div>
4962 5363 </div>
4963 5364 </div>
4964 5365 </div>
@@ -4967,20 +5368,20 @@
4967 5368 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4968 5369 <div class="pro_features pro_features_popup">
4969 5370 <div class="pro-features-popup-conteiner">
4970 5371 <div class="pro-features-popup-title">
4971 - <?php echo __("Send Mail to User", "poll-maker"); ?>
5372 + <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
4972 5373 </div>
4973 5374 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
4974 5375 <p>
4975 - <?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"); ?>
4976 5377 </p>
4977 5378 <p>
4978 - <?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"); ?>
4979 5380 </p>
4980 5381 </div>
4981 - <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">
4982 - <?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"); ?>
4983 5384 </div>
4984 5385 </div>
4985 5386 </div>
4986 5387 <div class="pro_features" style="justify-content:flex-end;">
@@ -4987,11 +5388,11 @@
4987 5388 </div>
4988 5389 <div class="form-group row" >
4989 5390 <div class="col-sm-3">
4990 5391 <label for="ays_enable_mail_user">
4991 - <?= __('Send Mail to User', "poll-maker"); ?>
5392 + <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
4992 5393 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4993 - 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"); ?>">
4994 5395 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4995 5396 </a>
4996 5397 </label>
4997 5398 </div>
@@ -5004,20 +5405,20 @@
5004 5405 </div>
5005 5406 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5006 5407 <div class="ays-poll-new-upgrade-button-box">
5007 5408 <div>
5008 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5009 - <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">
5010 5411 </div>
5011 - <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>
5012 5413 </div>
5013 5414 </a>
5014 5415 <div class="ays-poll-new-watch-video-button-box">
5015 5416 <div>
5016 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
5017 - <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">
5018 5419 </div>
5019 - <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>
5020 5421 </div>
5021 5422 </div>
5022 5423 </div>
5023 5424 <hr>
@@ -5027,10 +5428,10 @@
5027 5428 </div>
5028 5429 <div class="form-group row">
5029 5430 <div class="col-sm-4">
5030 5431 <label>
5031 - <?php echo __('Email configuration', "poll-maker")?>
5032 - <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"); ?>">
5033 5434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5034 5435 </a>
5035 5436 </label>
5036 5437 </div>
@@ -5037,12 +5438,12 @@
5037 5438 <div class="col-sm-8 ays_divider_left">
5038 5439 <div class="form-group row">
5039 5440 <div class="col-sm-3">
5040 5441 <label for="ays_poll_email_configuration_from_email">
5041 - <?php echo __('From email', "poll-maker")?>
5442 + <?php echo esc_html__('From email', "poll-maker")?>
5042 5443 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5043 5444 /* translators: 1: opening em tag, 2: closing em tag */
5044 - 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"),
5045 5446 '<em>',
5046 5447 '</em>'
5047 5448 ) );
5048 5449 ?>">
@@ -5057,14 +5458,18 @@
5057 5458 <hr/>
5058 5459 <div class="form-group row">
5059 5460 <div class="col-sm-3">
5060 5461 <label for="ays_poll_email_configuration_from_name">
5061 - <?php echo __('From name', "poll-maker")?>
5462 + <?php echo esc_html__('From name', "poll-maker")?>
5062 5463 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5063 5464 /* translators: 1: opening em tag, 2: closing em tag */
5064 - 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,
5065 5467 '<em>',
5468 + // translators: 2: closing em tag
5066 5469 '</em>'
5470 + ), array(
5471 + 'em' => array()
5067 5472 ) );
5068 5473 ?>">
5069 5474 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5070 5475 </a>
@@ -5077,10 +5482,10 @@
5077 5482 <hr/>
5078 5483 <div class="form-group row">
5079 5484 <div class="col-sm-3">
5080 5485 <label for="ays_poll_email_configuration_from_subject">
5081 - <?php echo __('Subject', "poll-maker")?>
5082 - <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"); ?>">
5083 5488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5084 5489 </a>
5085 5490 </label>
5086 5491 </div>
@@ -5091,10 +5496,10 @@
5091 5496 <hr/>
5092 5497 <div class="form-group row">
5093 5498 <div class="col-sm-3">
5094 5499 <label for="ays_poll_email_configuration_replyto_email">
5095 - <?php echo __('Reply to email', "poll-maker")?>
5096 - <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"); ?>">
5097 5502 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5098 5503 </a>
5099 5504 </label>
5100 5505 </div>
@@ -5105,10 +5510,10 @@
5105 5510 <hr/>
5106 5511 <div class="form-group row">
5107 5512 <div class="col-sm-3">
5108 5513 <label for="ays_poll_email_configuration_replyto_name">
5109 - <?php echo __('Reply to name', "poll-maker")?>
5110 - <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"); ?>">
5111 5516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5112 5517 </a>
5113 5518 </label>
5114 5519 </div>
@@ -5120,12 +5525,12 @@
5120 5525 </div> <!-- Email Configuration -->
5121 5526 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5122 5527 <div class="ays-poll-new-upgrade-button-box">
5123 5528 <div>
5124 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5125 - <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">
5126 5531 </div>
5127 - <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>
5128 5533 </div>
5129 5534 </a>
5130 5535 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5131 5536 <div class="ays-poll-center-big-main-button-box">
@@ -5130,11 +5535,11 @@
5130 5535 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5131 5536 <div class="ays-poll-center-big-main-button-box">
5132 5537 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5133 5538 <div class="ays-poll-center-new-big-upgrade-button">
5134 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5135 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5136 - <?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"); ?>
5137 5542 </div>
5138 5543 </a>
5139 5544 </div>
5140 5545 </div>
@@ -5142,21 +5547,51 @@
5142 5547 </div>
5143 5548 <hr>
5144 5549 </div>
5145 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>
5146 5581 </div>
5147 - <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' : ''; ?>">
5148 5583 <div class="ays-poll-accordion-options-main-container">
5149 5584 <div class="ays-poll-accordion-header">
5150 - <?php echo $poll_acordion_svg_html; ?>
5151 - <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>
5152 5587 </div>
5153 5588 <hr class="ays-poll-bolder-hr"/>
5154 5589 <div class="ays-poll-accordion-body">
5155 5590 <fieldset class="ays_poll_settings_integration_container">
5156 5591 <legend>
5157 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mailchimp_logo.png" alt="">
5158 - <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>
5159 5594 </legend>
5160 5595 <?php
5161 5596 if(count($mailchimp) > 0):
5162 5597 ?>
@@ -5166,10 +5601,10 @@
5166 5601 <blockquote class="error_message">
5167 5602 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5168 5603 <?php echo (
5169 5604 /* translators: anchor tag */
5170 - sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5171 - "<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>"
5172 5607 )
5173 5608 );
5174 5609 ?>
5175 5610 </blockquote>
@@ -5178,9 +5613,9 @@
5178 5613 ?>
5179 5614 <div class="form-group row">
5180 5615 <div class="col-sm-4">
5181 5616 <label for="ays_enable_mailchimp">
5182 - <?php echo __('Enable MailChimp', "poll-maker")?>
5617 + <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5183 5618 </label>
5184 5619 </div>
5185 5620 <div class="col-sm-1">
5186 5621 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
@@ -5198,9 +5633,9 @@
5198 5633 <hr>
5199 5634 <div class="form-group row">
5200 5635 <div class="col-sm-4">
5201 5636 <label for="ays_mailchimp_list">
5202 - <?php echo __('MailChimp list', "poll-maker")?>
5637 + <?php echo esc_html__('MailChimp list', "poll-maker")?>
5203 5638 </label>
5204 5639 </div>
5205 5640 <div class="col-sm-8">
5206 5641 <?php if(is_array($mailchimp_select)): ?>
@@ -5216,9 +5651,9 @@
5216 5651 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5217 5652 <?php endforeach; ?>
5218 5653 </select>
5219 5654 <?php else: ?>
5220 - <span><?php echo $mailchimp_select; ?></span>
5655 + <span><?php echo esc_html($mailchimp_select); ?></span>
5221 5656 <?php endif; ?>
5222 5657 </div>
5223 5658 </div>
5224 5659 <?php
@@ -5229,10 +5664,10 @@
5229 5664 ?>
5230 5665 <blockquote class="error_message">
5231 5666 <?php echo (
5232 5667 /* translators: anchor tag */
5233 - sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5234 - "<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>"
5235 5670 )
5236 5671 );
5237 5672 ?>
5238 5673 </blockquote>
@@ -5242,10 +5677,10 @@
5242 5677 </fieldset><!-- MailChimp Settings -->
5243 5678 <hr/>
5244 5679 <fieldset class="ays_poll_settings_integration_container">
5245 5680 <legend>
5246 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/campaignmonitor_logo.png" alt="">
5247 - <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>
5248 5683 </legend>
5249 5684 <div class="form-group row" style="margin: 0px;">
5250 5685 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5251 5686 <div class="pro_features" style="justify-content:flex-end;">
@@ -5252,9 +5687,9 @@
5252 5687 </div>
5253 5688 <div class="form-group row">
5254 5689 <div class="col-sm-4">
5255 5690 <label for="ays_enable_monitor">
5256 - <?php echo __('Enable Campaign Monitor', "poll-maker") ?>
5691 + <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5257 5692 </label>
5258 5693 </div>
5259 5694 <div class="col-sm-8">
5260 5695 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
@@ -5263,14 +5698,14 @@
5263 5698 <hr>
5264 5699 <div class="form-group row">
5265 5700 <div class="col-sm-4">
5266 5701 <label for="ays_monitor_list">
5267 - <?php echo __('Campaign Monitor list', "poll-maker") ?>
5702 + <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5268 5703 </label>
5269 5704 </div>
5270 5705 <div class="col-sm-8">
5271 5706 <select name="ays_monitor_list" id="ays_monitor_list">
5272 - <option value="" disabled selected><?= __("Select List", "poll-maker") ?></option>
5707 + <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5273 5708 </select>
5274 5709 </div>
5275 5710 </div>
5276 5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5275,12 +5710,12 @@
5275 5710 </div>
5276 5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5277 5712 <div class="ays-poll-new-upgrade-button-box">
5278 5713 <div>
5279 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5280 - <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">
5281 5716 </div>
5282 - <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>
5283 5718 </div>
5284 5719 </a>
5285 5720 </div>
5286 5721 </div>
@@ -5287,10 +5722,10 @@
5287 5722 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5288 5723 <hr/>
5289 5724 <fieldset class="ays_poll_settings_integration_container">
5290 5725 <legend>
5291 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/zapier_logo.png" alt="">
5292 - <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>
5293 5728 </legend>
5294 5729 <div class="form-group row" style="margin: 0px;">
5295 5730 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5296 5731 <div class="pro_features" style="justify-content:flex-end;">
@@ -5297,9 +5732,9 @@
5297 5732 </div>
5298 5733 <div class="form-group row">
5299 5734 <div class="col-sm-4">
5300 5735 <label for="ays_enable_zapier">
5301 - <?php echo __('Enable Zapier Integration', "poll-maker") ?>
5736 + <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5302 5737 </label>
5303 5738 </div>
5304 5739 <div class="col-sm-1">
5305 5740 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
@@ -5307,12 +5742,12 @@
5307 5742 <div class="col-sm-3">
5308 5743 <button type="button"
5309 5744 id="testZapier"
5310 5745 class="btn btn-outline-secondary">
5311 - <?= __("Send test data", "poll-maker") ?>
5746 + <?php echo esc_html__("Send test data", "poll-maker") ?>
5312 5747 </button>
5313 5748 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5314 - 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") ?>">
5315 5750 <i class="ays_fa ays_fa_info_circle"></i>
5316 5751 </a>
5317 5752 </div>
5318 5753 </div>
@@ -5318,12 +5753,12 @@
5318 5753 </div>
5319 5754 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5320 5755 <div class="ays-poll-new-upgrade-button-box">
5321 5756 <div>
5322 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5323 - <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">
5324 5759 </div>
5325 - <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>
5326 5761 </div>
5327 5762 </a>
5328 5763 </div>
5329 5764 </div>
@@ -5330,10 +5765,10 @@
5330 5765 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5331 5766 <hr/>
5332 5767 <fieldset class="ays_poll_settings_integration_container">
5333 5768 <legend>
5334 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/activecampaign_logo.png" alt="">
5335 - <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>
5336 5771 </legend>
5337 5772 <div class="form-group row" style="margin: 0px;">
5338 5773 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5339 5774 <div class="pro_features" style="justify-content:flex-end;">
@@ -5340,9 +5775,9 @@
5340 5775 </div>
5341 5776 <div class="form-group row">
5342 5777 <div class="col-sm-4">
5343 5778 <label for="ays_enable_active_camp">
5344 - <?php echo __('Enable ActiveCampaign', "poll-maker") ?>
5779 + <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5345 5780 </label>
5346 5781 </div>
5347 5782 <div class="col-sm-1">
5348 5783 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
@@ -5351,16 +5786,16 @@
5351 5786 <hr>
5352 5787 <div class="form-group row">
5353 5788 <div class="col-sm-4">
5354 5789 <label>
5355 - <?php echo __('ActiveCampaign list', "poll-maker") ?>
5790 + <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5356 5791 </label>
5357 5792 </div>
5358 5793 <div class="col-sm-8">
5359 5794 <select name="ays_active_camp_list" id="ays_active_camp_list">
5360 5795 <option value="" disabled
5361 - selected><?= __("Select List", "poll-maker") ?></option>
5362 - <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>
5363 5798 </select>
5364 5799 </div>
5365 5800 </div>
5366 5801 <hr>
@@ -5366,16 +5801,16 @@
5366 5801 <hr>
5367 5802 <div class="form-group row">
5368 5803 <div class="col-sm-4">
5369 5804 <label>
5370 - <?php echo __('ActiveCampaign automation', "poll-maker") ?>
5805 + <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5371 5806 </label>
5372 5807 </div>
5373 5808 <div class="col-sm-8">
5374 5809 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5375 5810 <option value="" disabled
5376 - selected><?= __("Select List", "poll-maker") ?></option>
5377 - <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>
5378 5813 </select>
5379 5814 </div>
5380 5815 </div>
5381 5816 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5380,12 +5815,12 @@
5380 5815 </div>
5381 5816 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5382 5817 <div class="ays-poll-new-upgrade-button-box">
5383 5818 <div>
5384 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5385 - <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">
5386 5821 </div>
5387 - <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>
5388 5823 </div>
5389 5824 </a>
5390 5825 </div>
5391 5826 </div>
@@ -5392,10 +5827,10 @@
5392 5827 </fieldset><!-- Active Campaign Settings PRO Feature -->
5393 5828 <hr/>
5394 5829 <fieldset class="ays_poll_settings_integration_container">
5395 5830 <legend>
5396 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/slack_logo.png" alt="">
5397 - <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>
5398 5833 </legend>
5399 5834 <div class="form-group row" style="margin: 0px;">
5400 5835 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5401 5836 <div class="pro_features" style="justify-content:flex-end;">
@@ -5402,9 +5837,9 @@
5402 5837 </div>
5403 5838 <div class="form-group row">
5404 5839 <div class="col-sm-4">
5405 5840 <label for="ays_enable_slack">
5406 - <?php echo __('Enable Slack integration', "poll-maker") ?>
5841 + <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5407 5842 </label>
5408 5843 </div>
5409 5844 <div class="col-sm-1">
5410 5845 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
@@ -5413,15 +5848,15 @@
5413 5848 <hr>
5414 5849 <div class="form-group row">
5415 5850 <div class="col-sm-4">
5416 5851 <label>
5417 - <?php echo __('Slack conversation', "poll-maker") ?>
5852 + <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5418 5853 </label>
5419 5854 </div>
5420 5855 <div class="col-sm-8">
5421 5856 <select id="ays_slack_conversation">
5422 5857 <option value="" disabled
5423 - selected><?= __("Select Channel", "poll-maker") ?></option>
5858 + selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5424 5859 </select>
5425 5860 </div>
5426 5861 </div>
5427 5862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5426,12 +5861,12 @@
5426 5861 </div>
5427 5862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5428 5863 <div class="ays-poll-new-upgrade-button-box">
5429 5864 <div>
5430 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5431 - <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">
5432 5867 </div>
5433 - <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>
5434 5869 </div>
5435 5870 </a>
5436 5871 </div>
5437 5872 </div>
@@ -5438,10 +5873,10 @@
5438 5873 </fieldset> <!-- Slack Settings PRO Feature -->
5439 5874 <hr>
5440 5875 <fieldset class="ays_poll_settings_integration_container">
5441 5876 <legend>
5442 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/sheets_logo.png" alt="">
5443 - <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>
5444 5879 </legend>
5445 5880 <div class="form-group row" style="margin: 0px;">
5446 5881 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5447 5882 <div class="pro_features" style="justify-content:flex-end;">
@@ -5448,9 +5883,9 @@
5448 5883 </div>
5449 5884 <div class="form-group row">
5450 5885 <div class="col-sm-4">
5451 5886 <label for="ays_poll_enable_google">
5452 - <?php echo __('Enable Google integration', "poll-maker") ?>
5887 + <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5453 5888 </label>
5454 5889 </div>
5455 5890 <div class="col-sm-1">
5456 5891 <input type="checkbox" class="ays-enable-timer1"
@@ -5459,12 +5894,12 @@
5459 5894 </div>
5460 5895 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5461 5896 <div class="ays-poll-new-upgrade-button-box">
5462 5897 <div>
5463 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5464 - <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">
5465 5900 </div>
5466 - <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>
5467 5902 </div>
5468 5903 </a>
5469 5904 </div>
5470 5905 </div>
@@ -5471,10 +5906,10 @@
5471 5906 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5472 5907 <hr>
5473 5908 <fieldset class="ays_poll_settings_integration_container">
5474 5909 <legend>
5475 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5476 - <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>
5477 5912 </legend>
5478 5913 <div class="form-group row" style="margin: 0px;">
5479 5914 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5480 5915 <div class="pro_features" style="justify-content:flex-end;">
@@ -5482,9 +5917,9 @@
5482 5917 <hr/>
5483 5918 <div class="form-group row">
5484 5919 <div class="col-sm-4">
5485 5920 <label for="ays_poll_enable_mad_mimi">
5486 - <?php echo __('Enable Mad Mimi', "poll-maker") ?>
5921 + <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5487 5922 </label>
5488 5923 </div>
5489 5924 <div class="col-sm-1">
5490 5925 <input type="checkbox" class="ays-enable-timer1">
@@ -5493,17 +5928,28 @@
5493 5928 <hr>
5494 5929 <div class="form-group row">
5495 5930 <div class="col-sm-4">
5496 5931 <label>
5497 - <?php echo __('Select List', "poll-maker") ?>
5932 + <?php echo esc_html__('Select List', "poll-maker") ?>
5498 5933 </label>
5499 5934 </div>
5500 5935 <div class="col-sm-8">
5501 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 +
5502 5948 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5503 5949 $mad_mimi_select .= "<option value=''>Select list</option>";
5504 5950 $mad_mimi_select .= "</select>";
5505 - echo $mad_mimi_select;
5951 + echo wp_kses($mad_mimi_select, $allowed_tags);
5506 5952
5507 5953 ?>
5508 5954 </div>
5509 5955 </div>
@@ -5509,12 +5955,12 @@
5509 5955 </div>
5510 5956 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5511 5957 <div class="ays-poll-new-upgrade-button-box">
5512 5958 <div>
5513 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5514 - <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">
5515 5961 </div>
5516 - <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>
5517 5963 </div>
5518 5964 </a>
5519 5965 </div>
5520 5966 </div>
@@ -5521,10 +5967,10 @@
5521 5967 </fieldset> <!-- Mad Mimi -->
5522 5968 <hr>
5523 5969 <fieldset class="ays_poll_settings_integration_container">
5524 5970 <legend>
5525 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/get_response.png" alt="">
5526 - <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>
5527 5973 </legend>
5528 5974 <div class="form-group row" style="margin: 0px;">
5529 5975 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5530 5976 <div class="pro_features" style="justify-content:flex-end;">
@@ -5531,9 +5977,9 @@
5531 5977 </div>
5532 5978 <div class="form-group row">
5533 5979 <div class="col-sm-4">
5534 5980 <label for="ays_poll_enable_getResponse">
5535 - <?php echo __('Enable GetResponse', "poll-maker") ?>
5981 + <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5536 5982 </label>
5537 5983 </div>
5538 5984 <div class="col-sm-8">
5539 5985 <input type="checkbox"
@@ -5543,17 +5989,29 @@
5543 5989 <hr>
5544 5990 <div class="form-group row">
5545 5991 <div class="col-sm-4">
5546 5992 <label>
5547 - <?php echo __('GetResponse List', "poll-maker") ?>
5993 + <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5548 5994 </label>
5549 5995 </div>
5550 5996 <div class="col-sm-8">
5551 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 + );
5552 6010 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5553 6011 $mad_mimi_select .= "<option value=''>Select list</option>";
5554 6012 $mad_mimi_select .= "</select>";
5555 - echo $mad_mimi_select;
6013 + echo wp_kses($mad_mimi_select, $allowed_tags);
5556 6014
5557 6015 ?>
5558 6016 </div>
5559 6017 </div>
@@ -5559,12 +6017,12 @@
5559 6017 </div>
5560 6018 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5561 6019 <div class="ays-poll-new-upgrade-button-box">
5562 6020 <div>
5563 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5564 - <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">
5565 6023 </div>
5566 - <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>
5567 6025 </div>
5568 6026 </a>
5569 6027 </div>
5570 6028 </div>
@@ -5571,10 +6029,10 @@
5571 6029 </fieldset> <!-- GetResponse Settings -->
5572 6030 <hr>
5573 6031 <fieldset class="ays_poll_settings_integration_container">
5574 6032 <legend>
5575 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/convertkit_logo.png" alt="">
5576 - <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>
5577 6035 </legend>
5578 6036 <div class="form-group row" style="margin: 0px;">
5579 6037 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5580 6038 <div class="pro_features" style="justify-content:flex-end;">
@@ -5581,9 +6039,9 @@
5581 6039 </div>
5582 6040 <div class="form-group row">
5583 6041 <div class="col-sm-4">
5584 6042 <label for="ays_poll_enable_convertkit">
5585 - <?php echo __('Enable ConvertKit', "poll-maker")?>
6043 + <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
5586 6044 </label>
5587 6045 </div>
5588 6046 <div class="col-sm-1">
5589 6047 <input type="checkbox" class="ays-enable-timer1"/>
@@ -5592,9 +6050,9 @@
5592 6050 <hr>
5593 6051 <div class="form-group row">
5594 6052 <div class="col-sm-4">
5595 6053 <label>
5596 - <?php echo __('ConvertKit list', "poll-maker")?>
6054 + <?php echo esc_html__('ConvertKit list', "poll-maker")?>
5597 6055 </label>
5598 6056 </div>
5599 6057 <div class="col-sm-8">
5600 6058 <select id="ays_poll_convertKit_list">
@@ -5604,12 +6062,12 @@
5604 6062 </div>
5605 6063 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5606 6064 <div class="ays-poll-new-upgrade-button-box">
5607 6065 <div>
5608 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5609 - <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">
5610 6068 </div>
5611 - <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>
5612 6070 </div>
5613 6071 </a>
5614 6072 </div>
5615 6073 </div>
@@ -5616,10 +6074,10 @@
5616 6074 </fieldset> <!-- ConvertKit Settings -->
5617 6075 <hr/>
5618 6076 <fieldset class="ays_poll_settings_integration_container">
5619 6077 <legend>
5620 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/klaviyo-logo.png" alt="">
5621 - <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>
5622 6080 </legend>
5623 6081 <div class="form-group row" style="margin: 0px;">
5624 6082 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5625 6083 <div class="pro_features" style="justify-content:flex-end;">
@@ -5625,9 +6083,9 @@
5625 6083 <div class="pro_features" style="justify-content:flex-end;">
5626 6084 </div>
5627 6085 <div class="form-group row">
5628 6086 <div class="col-sm-4">
5629 - <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>
5630 6088 </div>
5631 6089 <div class="col-sm-1">
5632 6090 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5633 6091 </div>
@@ -5634,13 +6092,13 @@
5634 6092 </div>
5635 6093 <hr>
5636 6094 <div class="form-group row">
5637 6095 <div class="col-sm-4">
5638 - <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>
5639 6097 </div>
5640 6098 <div class="col-sm-8">
5641 6099 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5642 - <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>
5643 6101 </select>
5644 6102 </div>
5645 6103 </div>
5646 6104 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5645,12 +6103,12 @@
5645 6103 </div>
5646 6104 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5647 6105 <div class="ays-poll-new-upgrade-button-box">
5648 6106 <div>
5649 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5650 - <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">
5651 6109 </div>
5652 - <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>
5653 6111 </div>
5654 6112 </a>
5655 6113 </div>
5656 6114 </div>
@@ -5657,10 +6115,10 @@
5657 6115 </fieldset> <!-- Klaviyo -->
5658 6116 <hr>
5659 6117 <fieldset class="ays_poll_settings_integration_container">
5660 6118 <legend>
5661 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/aweber-logo.png" alt="">
5662 - <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>
5663 6121 </legend>
5664 6122 <div class="form-group row" style="margin: 0px;">
5665 6123 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5666 6124 <div class="pro_features" style="justify-content:flex-end;">
@@ -5666,9 +6124,9 @@
5666 6124 <div class="pro_features" style="justify-content:flex-end;">
5667 6125 </div>
5668 6126 <div class="form-group row">
5669 6127 <div class="col-sm-4">
5670 - <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>
5671 6129 </div>
5672 6130 <div class="col-sm-1">
5673 6131 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
5674 6132 </div>
@@ -5675,13 +6133,13 @@
5675 6133 </div>
5676 6134 <hr>
5677 6135 <div class="form-group row">
5678 6136 <div class="col-sm-4">
5679 - <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>
5680 6138 </div>
5681 6139 <div class="col-sm-8">
5682 6140 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
5683 - <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>
5684 6142 </select>
5685 6143 </div>
5686 6144 </div>
5687 6145 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5686,12 +6144,12 @@
5686 6144 </div>
5687 6145 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5688 6146 <div class="ays-poll-new-upgrade-button-box">
5689 6147 <div>
5690 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5691 - <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">
5692 6150 </div>
5693 - <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>
5694 6152 </div>
5695 6153 </a>
5696 6154 </div>
5697 6155 </div>
@@ -5698,10 +6156,10 @@
5698 6156 </fieldset> <!-- Aweber -->
5699 6157 <hr>
5700 6158 <fieldset class="ays_poll_settings_integration_container">
5701 6159 <legend>
5702 - <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mail_poet.png" alt="">
5703 - <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>
5704 6162 </legend>
5705 6163 <div class="form-group row" style="margin:0;">
5706 6164 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5707 6165 <div class="pro_features" style="justify-content:flex-end;">
@@ -5707,9 +6165,9 @@
5707 6165 <div class="pro_features" style="justify-content:flex-end;">
5708 6166 </div>
5709 6167 <div class="form-group row">
5710 6168 <div class="col-sm-4">
5711 - <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>
5712 6170 </div>
5713 6171 <div class="col-sm-1">
5714 6172 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
5715 6173 </div>
@@ -5716,13 +6174,13 @@
5716 6174 </div>
5717 6175 <hr>
5718 6176 <div class="form-group row">
5719 6177 <div class="col-sm-4">
5720 - <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>
5721 6179 </div>
5722 6180 <div class="col-sm-8">
5723 6181 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
5724 - <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>
5725 6183 </select>
5726 6184 </div>
5727 6185 </div>
5728 6186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
@@ -5727,12 +6185,12 @@
5727 6185 </div>
5728 6186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5729 6187 <div class="ays-poll-new-upgrade-button-box">
5730 6188 <div>
5731 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5732 - <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">
5733 6191 </div>
5734 - <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>
5735 6193 </div>
5736 6194 </a>
5737 6195 </div>
5738 6196 </div>
@@ -5737,16 +6195,46 @@
5737 6195 </div>
5738 6196 </div>
5739 6197 </fieldset> <!-- Mailpoet -->
5740 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>
5741 6229 </div>
5742 6230 </div>
5743 6231 </div>
5744 - <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' : ''; ?>">
5745 6233 <div class="ays-poll-accordion-options-main-container">
5746 6234 <div class="ays-poll-accordion-header">
5747 - <?php echo $poll_acordion_svg_html; ?>
5748 - <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>
5749 6237 </div>
5750 6238 <hr class="ays-poll-bolder-hr"/>
5751 6239 <div class="ays-poll-accordion-body">
5752 6240 <div class="form-group row">
@@ -5751,12 +6239,12 @@
5751 6239 <div class="ays-poll-accordion-body">
5752 6240 <div class="form-group row">
5753 6241 <div class="col-sm-3">
5754 6242 <label for='show-res-percent'>
5755 - <?= __('Show answer percent', "poll-maker"); ?>
6243 + <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
5756 6244 <a class="ays_help" data-toggle="tooltip"
5757 6245 data-placement="top"
5758 - 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"); ?>">
5759 6247 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5760 6248 </a>
5761 6249 </label>
5762 6250 </div>
@@ -5761,9 +6249,9 @@
5761 6249 </label>
5762 6250 </div>
5763 6251 <div class="col-sm-9">
5764 6252 <input type="checkbox" name="show_res_percent" id="show-res-percent"
5765 - value="1" <?= $show_res_percent ? 'checked' : '' ?> >
6253 + value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
5766 6254 </div>
5767 6255 </div>
5768 6256 <hr>
5769 6257 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
@@ -5768,19 +6256,19 @@
5768 6256 <hr>
5769 6257 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
5770 6258 <div class="col-sm-3">
5771 6259 <label for='ays-poll-hide-results'>
5772 - <?= __('Hide results', "poll-maker"); ?>
6260 + <?php echo esc_html__('Hide results', "poll-maker"); ?>
5773 6261 <a class="ays_help"
5774 6262 data-toggle="tooltip"
5775 6263 data-placement="top"
5776 - 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"); ?>">
5777 6265 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5778 6266 </a>
5779 6267 </label>
5780 6268 <p class="ays_poll_small_hint_text_for_message_variables">
5781 - <span><?php echo __( "To see all Message Variables " , "poll-maker" ); ?></span>
5782 - <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>
5783 6271 </p>
5784 6272 </div>
5785 6273 <div class="col-sm-9 ays_toggle_parent">
5786 6274 <div class="form-group row">
@@ -5787,9 +6275,9 @@
5787 6275
5788 6276 <!-- <div class="col-sm-1"> -->
5789 6277 <div class="col-sm-12">
5790 6278 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
5791 - value="hide" <?= isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6279 + value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
5792 6280 </div>
5793 6281 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
5794 6282 <div class="form-group row">
5795 6283 <div class="col-sm-12">
@@ -5794,13 +6282,13 @@
5794 6282 <div class="form-group row">
5795 6283 <div class="col-sm-12">
5796 6284 <div>
5797 6285 <label for='ays-poll-hide-results-text'>
5798 - <?= __('Message instead of results', "poll-maker"); ?>
6286 + <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
5799 6287 <a class="ays_help"
5800 6288 data-toggle="tooltip"
5801 6289 data-placement="top"
5802 - 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"); ?>">
5803 6291 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5804 6292 </a>
5805 6293 </label>
5806 6294 </div>
@@ -5825,16 +6313,16 @@
5825 6313 <hr>
5826 6314 <div class="form-group row ays-poll-desc-message-vars-parent">
5827 6315 <div class="col-sm-3">
5828 6316 <label for="ays_poll_result_message">
5829 - <?php echo __('Result Message', "poll-maker")?>
5830 - <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")?>">
5831 6319 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5832 6320 </a>
5833 6321 </label>
5834 6322 <p class="ays_poll_small_hint_text_for_message_variables">
5835 - <span><?php echo __( "To see all Message Variables ", "poll-maker" ); ?></span>
5836 - <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>
5837 6325 </p>
5838 6326 </div>
5839 6327 <div class="col-sm-9 ays_toggle_parent">
5840 6328 <div class="form-group row">
@@ -5839,13 +6327,14 @@
5839 6327 <div class="col-sm-9 ays_toggle_parent">
5840 6328 <div class="form-group row">
5841 6329 <div class="col-sm-12">
5842 6330 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
5843 - 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' : ''; ?>>
5844 6332 </div>
5845 - <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;'; ?>">
5846 6334 <?php
5847 - $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 +
5848 6337 echo $poll_message_vars_html;
5849 6338 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
5850 6339 $editor_id = 'ays_result_message';
5851 6340 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
@@ -5858,15 +6347,15 @@
5858 6347 <hr>
5859 6348 <div class="form-group row">
5860 6349 <div class="col-sm-3">
5861 6350 <label for='ays-poll-result-sort-type'>
5862 - <?php echo __('Results sorting', "poll-maker"); ?>
6351 + <?php echo esc_html__('Results sorting', "poll-maker"); ?>
5863 6352 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
5864 - 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") .
5865 6354 "<ul style='list-style-type: circle;padding-left: 20px;'>".
5866 - "<li>". __('Ascending – the smallest to largest', "poll-maker") ."</li>".
5867 - "<li>". __('Descending – the largest to smallest', "poll-maker") ."</li>".
5868 - "<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>".
5869 6358 "</ul>";
5870 6359 ?>">
5871 6360 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5872 6361 </a></label>
@@ -5872,16 +6361,16 @@
5872 6361 </a></label>
5873 6362 </div>
5874 6363 <div class="col-sm-9">
5875 6364 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
5876 - <option value="none" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
5877 - <?= __("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"); ?>
5878 6367 </option>
5879 - <option value="ASC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
5880 - <?= __("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"); ?>
5881 6370 </option>
5882 - <option value="DESC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
5883 - <?= __("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"); ?>
5884 6373 </option>
5885 6374 </select>
5886 6375 </div>
5887 6376 </div>
@@ -5888,12 +6377,12 @@
5888 6377 <hr>
5889 6378 <div class="form-group row">
5890 6379 <div class="col-sm-3">
5891 6380 <label for='show-votes-count'>
5892 - <?= __('Show votes count', "poll-maker"); ?>
6381 + <?php echo esc_html__('Show votes count', "poll-maker"); ?>
5893 6382 <a class="ays_help" data-toggle="tooltip"
5894 6383 data-placement="top"
5895 - 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"); ?>">
5896 6385 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5897 6386 </a>
5898 6387 </label>
5899 6388 </div>
@@ -5898,9 +6387,9 @@
5898 6387 </label>
5899 6388 </div>
5900 6389 <div class="col-sm-9">
5901 6390 <input type="checkbox" name="show_votes_count" id="show-votes-count"
5902 - value="1" <?= $showvotescount ? 'checked' : '' ?> >
6391 + value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
5903 6392 </div>
5904 6393 </div>
5905 6394 <hr>
5906 6395
@@ -5908,12 +6397,12 @@
5908 6397
5909 6398 <div class="form-group row">
5910 6399 <div class="col-sm-3">
5911 6400 <label for='ays-poll-load-effect'>
5912 - <?= __('Loading effect', "poll-maker"); ?>
6401 + <?php echo esc_html__('Loading effect', "poll-maker"); ?>
5913 6402 <a class="ays_help" data-toggle="tooltip"
5914 6403 data-placement="top"
5915 - 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"); ?>">
5916 6405 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5917 6406 </a>
5918 6407 </label>
5919 6408 </div>
@@ -5918,23 +6407,23 @@
5918 6407 </label>
5919 6408 </div>
5920 6409 <div class="col-sm-3">
5921 6410 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
5922 - <option value="load_gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
5923 - <?= __("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"); ?>
5924 6413 </option>
5925 - <option value="opacity" <?= isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
5926 - <?= __("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"); ?>
5927 6416 </option>
5928 - <option value="blur" <?= isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
5929 - <?= __("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"); ?>
5930 6419 </option>
5931 - <option value="message" <?= isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
5932 - <?= __("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"); ?>
5933 6422 </option>
5934 6423 <option class="apm-pro-feature" disabled
5935 - title="<?= __("It is PRO version feature", "poll-maker"); ?>" value="pro">
5936 - <?= __("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"); ?>
5937 6426 </option>
5938 6427 </select>
5939 6428 </div>
5940 6429 <div class="if-loading-gif col-sm-6 row">
@@ -5939,9 +6428,9 @@
5939 6428 </div>
5940 6429 <div class="if-loading-gif col-sm-6 row">
5941 6430 <div class="apm-loader d-flex justify-content-between align-items-center">
5942 6431 <input type="radio"
5943 - 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' : ''; ?>
5944 6433 id="plg_default" value="plg_default">
5945 6434 <label for="plg_default" class="apm-loading-gif">
5946 6435 <div class="loader loader--style3">
5947 6436 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
@@ -5959,9 +6448,9 @@
5959 6448 </label>
5960 6449 </div>
5961 6450 <div class="apm-loader d-flex justify-content-between align-items-center">
5962 6451 <input type="radio"
5963 - 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' : ''; ?>
5964 6453 id="plg_1" value="plg_1">
5965 6454 <label for="plg_1" class="apm-loading-gif">
5966 6455 <div class="loader loader--style5">
5967 6456 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
@@ -5988,9 +6477,9 @@
5988 6477 </label>
5989 6478 </div>
5990 6479 <div class="apm-loader d-flex justify-content-between align-items-center">
5991 6480 <input type="radio"
5992 - 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' : ''; ?>
5993 6482 id="plg_2" value="plg_2">
5994 6483 <label for="plg_2" class="apm-loading-gif">
5995 6484 <div class="loader loader--style8">
5996 6485 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
@@ -6026,9 +6515,9 @@
6026 6515 </label>
6027 6516 </div>
6028 6517 <div class="apm-loader d-flex justify-content-between align-items-center">
6029 6518 <input type="radio"
6030 - 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' : ''; ?>
6031 6520 id="plg_3" value="plg_3">
6032 6521 <label for="plg_3" class="apm-loading-gif">
6033 6522 <div class="loader loader--style5">
6034 6523 <svg width="100%" height="100%" viewBox="0 0 105 105"
@@ -6074,9 +6563,9 @@
6074 6563 </label>
6075 6564 </div>
6076 6565 <div class="apm-loader d-flex justify-content-between align-items-center">
6077 6566 <input type="radio"
6078 - 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' : ''; ?>
6079 6568 id="plg_4" value="plg_4">
6080 6569 <label for="plg_4" class="apm-loading-gif">
6081 6570 <div class="loader loader--style4">
6082 6571 <svg width="100%" height="100%" viewBox="0 0 57 57"
@@ -6113,9 +6602,9 @@
6113 6602 </label>
6114 6603 </div>
6115 6604 <div class="apm-loader d-flex justify-content-between align-items-center">
6116 6605 <input type="radio"
6117 - 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' : ''; ?>
6118 6607 id="plg_5" value="plg_5">
6119 6608 <label for="plg_5" class="apm-loading-gif">
6120 6609 <div class="loader loader--style4">
6121 6610 <svg width="100%" height="100%" viewBox="0 0 135 140"
@@ -6165,18 +6654,18 @@
6165 6654 </label>
6166 6655 </div>
6167 6656 </div>
6168 6657 <div class="if-loading-message col-sm-6 row">
6169 - <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); ?>">
6170 6659 </div>
6171 6660 </div>
6172 - <hr class="<?php echo $poll_loader_size_line_enable; ?> ays_line_changeing">
6173 - <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">
6174 6663 <div class="col-sm-3">
6175 6664 <label for="ays_loader_font_size">
6176 - <?= __('Loading effect size', "poll-maker") ?>
6665 + <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6177 6666 <a class="ays_help" data-toggle="tooltip"
6178 - 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") ?>">
6179 6668 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6180 6669 </a>
6181 6670 </label>
6182 6671 </div>
@@ -6183,9 +6672,9 @@
6183 6672 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6184 6673 <div>
6185 6674 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6186 6675 name="ays_loader_font_size"
6187 - value="<?= $poll_loader_font_size; ?>"/>
6676 + value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6188 6677 </div>
6189 6678 <div class="ays_option_default_measurement_unit">
6190 6679 <input type="text" value="px" disabled>
6191 6680 </div>
@@ -6195,11 +6684,11 @@
6195 6684 <!-- Loading effect end -->
6196 6685 <div class="form-group row">
6197 6686 <div class="col-sm-3">
6198 6687 <label for="ays_enable_restart_button">
6199 - <?= __('Enable restart button', "poll-maker") ?>
6688 + <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6200 6689 <a class="ays_help" data-toggle="tooltip"
6201 - 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") ?>">
6202 6691 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6203 6692 </a>
6204 6693 </label>
6205 6694 </div>
@@ -6205,9 +6694,9 @@
6205 6694 </div>
6206 6695 <div class="col-sm-1">
6207 6696 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6208 6697 name="ays_enable_restart_button"
6209 - 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' : '' ?> />
6210 6699 </div>
6211 6700 </div>
6212 6701 <hr>
6213 6702 <div class="form-group row ays_toggle_parent">
@@ -6212,26 +6701,26 @@
6212 6701 <hr>
6213 6702 <div class="form-group row ays_toggle_parent">
6214 6703 <div class="col-sm-3">
6215 6704 <label for='ays-poll-show-social'>
6216 - <?= __('Social share buttons', "poll-maker"); ?>
6705 + <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6217 6706 <a class="ays_help"
6218 6707 data-toggle="tooltip"
6219 6708 data-placement="top"
6220 - 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"); ?>'>
6221 6710 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6222 6711 </a></label>
6223 6712 </div>
6224 6713 <div class="col-sm-1">
6225 6714 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6226 - value="show" <?= $poll_social_buttons ? 'checked' : ''; ?>>
6715 + value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6227 6716 </div>
6228 6717 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6229 6718 <div class="form-group row">
6230 6719 <div class="col-sm-4">
6231 6720 <label>
6232 - <?php echo __('Heading for share buttons', "poll-maker")?>
6233 - <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"); ?>">
6234 6723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6235 6724 </a>
6236 6725 </label>
6237 6726 </div>
@@ -6248,10 +6737,10 @@
6248 6737 <div class="form-group row">
6249 6738 <div class="col-sm-4">
6250 6739 <label for="ays_poll_enable_linkedin_share_button">
6251 6740 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6252 - <?php echo __('LinkedIn button', "poll-maker")?>
6253 - <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"); ?>">
6254 6743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6255 6744 </a>
6256 6745 </label>
6257 6746 </div>
@@ -6263,10 +6752,10 @@
6263 6752 <div class="form-group row">
6264 6753 <div class="col-sm-4">
6265 6754 <label for="ays_poll_enable_facebook_share_button">
6266 6755 <i class="ays_poll_fas ays_poll_facebook"></i>
6267 - <?php echo __('Facebook button', "poll-maker")?>
6268 - <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"); ?>">
6269 6758 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6270 6759 </a>
6271 6760 </label>
6272 6761 </div>
@@ -6278,10 +6767,10 @@
6278 6767 <div class="form-group row">
6279 6768 <div class="col-sm-4">
6280 6769 <label for="ays_poll_enable_twitter_share_button">
6281 6770 <i class="ays_fa ays_fa_twitter_square"></i>
6282 - <?php echo __('Twitter button', "poll-maker")?>
6283 - <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"); ?>">
6284 6773 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6285 6774 </a>
6286 6775 </label>
6287 6776 </div>
@@ -6293,10 +6782,10 @@
6293 6782 <div class="form-group row">
6294 6783 <div class="col-sm-4">
6295 6784 <label for="ays_poll_enable_vkontakte_share_button">
6296 6785 <i class="ays_fa ays_fa_vk"></i>
6297 - <?php echo __('VKontakte button', "poll-maker")?>
6298 - <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"); ?>">
6299 6788 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6300 6789 </a>
6301 6790 </label>
6302 6791 </div>
@@ -6309,10 +6798,10 @@
6309 6798 <hr>
6310 6799 <div class="form-group row ays_toggle_parent">
6311 6800 <div class="col-sm-3">
6312 6801 <label for="ays_enable_social_links">
6313 - <?php echo __('Enable Social Media links', "poll-maker")?>
6314 - <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")?>">
6315 6804 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6316 6805 </a>
6317 6806 </label>
6318 6807 </div>
@@ -6324,10 +6813,10 @@
6324 6813 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6325 6814 <div class="form-group row">
6326 6815 <div class="col-sm-4">
6327 6816 <label>
6328 - <?php echo __('Heading for social links', "poll-maker")?>
6329 - <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"); ?>">
6330 6819 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6331 6820 </a>
6332 6821 </label>
6333 6822 </div>
@@ -6344,10 +6833,10 @@
6344 6833 <div class="form-group row">
6345 6834 <div class="col-sm-4">
6346 6835 <label for="ays_linkedin_link">
6347 6836 <i class="ays_fa ays_fa_linkedin_square"></i>
6348 - <?php echo __('LinkedIn link', "poll-maker")?>
6349 - <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")?>">
6350 6839 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6351 6840 </a>
6352 6841 </label>
6353 6842 </div>
@@ -6360,10 +6849,10 @@
6360 6849 <div class="form-group row">
6361 6850 <div class="col-sm-4">
6362 6851 <label for="ays_facebook_link">
6363 6852 <i class="ays_fa ays_fa_facebook_square"></i>
6364 - <?php echo __('Facebook link', "poll-maker")?>
6365 - <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")?>">
6366 6855 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6367 6856 </a>
6368 6857 </label>
6369 6858 </div>
@@ -6375,11 +6864,14 @@
6375 6864 <hr/>
6376 6865 <div class="form-group row">
6377 6866 <div class="col-sm-4">
6378 6867 <label for="ays_twitter_link">
6379 - <i class="ays_fa ays_fa_twitter_square"></i>
6380 - <?php echo __('Twitter link', "poll-maker")?>
6381 - <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")?>">
6382 6874 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6383 6875 </a>
6384 6876 </label>
6385 6877 </div>
@@ -6391,11 +6883,11 @@
6391 6883 <hr/>
6392 6884 <div class="form-group row">
6393 6885 <div class="col-sm-4">
6394 6886 <label for="ays_vkontakte_link">
6395 - <i class="ays_fa ays_fa_vk"></i>
6396 - <?php echo __('VKontakte link', "poll-maker")?>
6397 - <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")?>">
6398 6890 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6399 6891 </a>
6400 6892 </label>
6401 6893 </div>
@@ -6407,11 +6899,11 @@
6407 6899 <hr>
6408 6900 <div class="form-group row">
6409 6901 <div class="col-sm-4">
6410 6902 <label for="ays_youtube_link">
6411 - <i class="ays_fa ays_fa_vk"></i>
6412 - <?php echo __('YouTube link', "poll-maker")?>
6413 - <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")?>">
6414 6906 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6415 6907 </a>
6416 6908 </label>
6417 6909 </div>
@@ -6419,8 +6911,43 @@
6419 6911 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6420 6912 value="<?php echo $youtube_link; ?>" />
6421 6913 </div>
6422 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>
6423 6950 </div>
6424 6951 </div>
6425 6952 <hr>
6426 6953 <div class="form-group row">
@@ -6425,12 +6952,12 @@
6425 6952 <hr>
6426 6953 <div class="form-group row">
6427 6954 <div class="col-sm-3">
6428 6955 <label for='ays-poll-res-rgba'>
6429 - <?= __('Results bar in RGBA', "poll-maker"); ?>
6956 + <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6430 6957 <a class="ays_help" data-toggle="tooltip"
6431 6958 data-placement="top"
6432 - 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"); ?>">
6433 6960 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6434 6961 </a>
6435 6962 </label>
6436 6963 </div>
@@ -6442,12 +6969,12 @@
6442 6969 <hr>
6443 6970 <div class="form-group row ays_toggle_parent">
6444 6971 <div class="col-sm-3">
6445 6972 <label for='ays_poll_show_users'>
6446 - <?= __('Show passed users avatars', "poll-maker"); ?>
6973 + <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6447 6974 <a class="ays_help" data-toggle="tooltip"
6448 6975 data-placement="top"
6449 - 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"); ?>">
6450 6977 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6451 6978 </a>
6452 6979 </label>
6453 6980 </div>
@@ -6452,18 +6979,18 @@
6452 6979 </label>
6453 6980 </div>
6454 6981 <div class="col-sm-1">
6455 6982 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6456 - value="on" <?php echo $poll_show_passed_users_checked; ?>>
6983 + value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6457 6984 </div>
6458 6985 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6459 6986 <div class="row">
6460 6987 <div class="col-sm-3 ays_divider_left">
6461 6988 <label for='ays_poll_show_users_count'>
6462 - <?= __('Users count', "poll-maker"); ?>
6989 + <?php echo esc_html__('Users count', "poll-maker"); ?>
6463 6990 <a class="ays_help" data-toggle="tooltip"
6464 6991 data-placement="top"
6465 - 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"); ?>">
6466 6993 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6467 6994 </a>
6468 6995 </label>
6469 6996 </div>
@@ -6471,9 +6998,9 @@
6471 6998 <input type="number"
6472 6999 name="ays_poll_show_users_count"
6473 7000 id="ays_poll_show_users_count"
6474 7001 class="ays-text-input ays-poll-answer-results-short-input"
6475 - value="<?php echo $poll_show_passed_users_count; ?>">
7002 + value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
6476 7003 </div>
6477 7004 </div>
6478 7005 </div>
6479 7006 </div>
@@ -6480,11 +7007,11 @@
6480 7007 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6481 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' ?>">
6482 7009 <div class="col-sm-3">
6483 7010 <label for="ays_poll_enable_answer_redirect_delay">
6484 - <?= __('Option Redirect Delay', "poll-maker") ?>
7011 + <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
6485 7012 <a class="ays_help" data-toggle="tooltip"
6486 - 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") ?>">
6487 7014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6488 7015 </a>
6489 7016 </label>
6490 7017 </div>
@@ -6495,10 +7022,10 @@
6495 7022 <input type="number"
6496 7023 class="ays-text-input ays-poll-answer-results-short-input"
6497 7024 id="ays_poll_answer_redirect_delay"
6498 7025 name="ays_poll_answer_redirect_delay"
6499 - value="<?= $poll_every_answer_redirect_delay; ?>"/>
6500 - <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>
6501 7028 </div>
6502 7029 </div>
6503 7030 <hr>
6504 7031 <div class="form-group row">
@@ -6503,11 +7030,11 @@
6503 7030 <hr>
6504 7031 <div class="form-group row">
6505 7032 <div class="col-sm-3">
6506 7033 <label for="ays_poll_enable_answer_image_after_voting">
6507 - <?= __('Show answers image', "poll-maker") ?>
7034 + <?php echo esc_html__('Show answers image', "poll-maker") ?>
6508 7035 <a class="ays_help" data-toggle="tooltip"
6509 - 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") ?>">
6510 7037 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6511 7038 </a>
6512 7039 </label>
6513 7040 </div>
@@ -6519,11 +7046,11 @@
6519 7046 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6520 7047 <div class="form-group row">
6521 7048 <div class="col-sm-3">
6522 7049 <label for="apm_allow_add_answers">
6523 - <?= __('Show results by', "poll-maker"); ?>
7050 + <?php echo esc_html__('Show results by', "poll-maker"); ?>
6524 7051 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6525 - 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"); ?>">
6526 7053 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6527 7054 </a>
6528 7055 </label>
6529 7056 </div>
@@ -6533,15 +7060,15 @@
6533 7060 <div style="display: flex;">
6534 7061 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6535 7062 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6536 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' : '' ?>/>
6537 - <span><?= __('Bar chart(Google)', "poll-maker"); ?></span>
7064 + <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
6538 7065 </label>
6539 7066 </div>
6540 7067 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6541 7068 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6542 7069 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6543 - <span><?= __('Bar chart', "poll-maker"); ?></span>
7070 + <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
6544 7071 </label>
6545 7072 </div>
6546 7073 </div>
6547 7074 </div>
@@ -6549,17 +7076,17 @@
6549 7076 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6550 7077 <div class="pro_features pro_features_popup">
6551 7078 <div class="pro-features-popup-conteiner">
6552 7079 <div class="pro-features-popup-title">
6553 - <?php echo __("Show Results by", "poll-maker"); ?>
7080 + <?php echo esc_html__("Show Results by", "poll-maker"); ?>
6554 7081 </div>
6555 7082 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
6556 7083 <p>
6557 - <?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"); ?>
6558 7085 </p>
6559 7086 </div>
6560 - <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">
6561 - <?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"); ?>
6562 7089 </div>
6563 7090 </div>
6564 7091 </div>
6565 7092 <div class="pro_features" style="justify-content:flex-end;">
@@ -6566,44 +7093,44 @@
6566 7093 </div>
6567 7094 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6568 7095 <input type="radio"/>
6569 7096 <label class="form-check-label ays_poll_check_label">
6570 - <?= __('Pie Chart', "poll-maker"); ?>
7097 + <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
6571 7098 </label>
6572 7099 </div>
6573 7100 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6574 7101 <input type="radio"/>
6575 7102 <label class="form-check-label ays_poll_check_label">
6576 - <?= __('Column Chart', "poll-maker"); ?>
7103 + <?php echo esc_html__('Column Chart', "poll-maker"); ?>
6577 7104 </label>
6578 7105 </div>
6579 7106 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
6580 7107 <input type="radio"/>
6581 7108 <label class="form-check-label ays_poll_check_label">
6582 - <?= __('Versus Chart', "poll-maker"); ?>
7109 + <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
6583 7110 </label>
6584 7111 </div>
6585 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'?>">
6586 7113 <input type="radio"/>
6587 7114 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
6588 - <?= __('Rating Chart', "poll-maker"); ?>
7115 + <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
6589 7116 </label>
6590 7117 </div>
6591 7118 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6592 7119 <div class="ays-poll-new-upgrade-button-box">
6593 7120 <div>
6594 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6595 - <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">
6596 7123 </div>
6597 - <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>
6598 7125 </div>
6599 7126 </a>
6600 7127 <div class="ays-poll-new-watch-video-button-box">
6601 7128 <div>
6602 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6603 - <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">
6604 7131 </div>
6605 - <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>
6606 7133 </div>
6607 7134 </div>
6608 7135 </div>
6609 7136 </div>
@@ -6611,10 +7138,10 @@
6611 7138 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6612 7139 <div class="form-group row" style="align-items: center; margin-left: 0;">
6613 7140 <div class="col-sm-2">
6614 7141 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
6615 - <?= __('Chart height', "poll-maker") ?>
6616 - <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"); ?>">
6617 7144 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6618 7145 </a>
6619 7146 </label>
6620 7147 </div>
@@ -6619,9 +7146,9 @@
6619 7146 </label>
6620 7147 </div>
6621 7148 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6622 7149 <div>
6623 - <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; ?>"/>
6624 7151 </div>
6625 7152 <div class="ays_option_default_measurement_unit">
6626 7153 <input type="text" value="px" disabled>
6627 7154 </div>
@@ -6636,31 +7163,31 @@
6636 7163 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
6637 7164 <div class="pro_features pro_features_popup">
6638 7165 <div class="pro-features-popup-conteiner">
6639 7166 <div class="pro-features-popup-title">
6640 - <?php echo __("Results Message Based on the Answer", "poll-maker"); ?>
7167 + <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
6641 7168 </div>
6642 7169 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
6643 7170 <p>
6644 - <?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"); ?>
6645 7172 </p>
6646 7173 </div>
6647 - <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">
6648 - <?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"); ?>
6649 7176 </div>
6650 7177 </div>
6651 7178 </div>
6652 7179 <div class="pro_features" style="justify-content:flex-end;">
6653 7180 </div>
6654 - <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>
6655 7182 <hr>
6656 7183 <div class="form-group row">
6657 7184 <div class="col-sm-3">
6658 7185 <label for="ays_show_answer_message">
6659 - <?php echo __('Show Answer message', "poll-maker")?>
7186 + <?php echo esc_html__('Show Answer message', "poll-maker")?>
6660 7187 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
6661 7188 data-placement="top"
6662 - 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"); ?>">
6663 7190 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6664 7191 </a>
6665 7192 </label>
6666 7193 </div>
@@ -6675,27 +7202,70 @@
6675 7202 <div class='form-group row'>
6676 7203 <div class="ays_reset_answers_div">
6677 7204 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
6678 7205 </div>
6679 - <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"); ?>">
6680 7207 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6681 7208 </a>
6682 7209 </div>
6683 7210 <hr>
6684 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 +
6685 7255 $content = '<div class="ays-field-dashboard ays-table-wrap">
6686 7256 <table class="ays-answers-table ">
6687 7257 <thead>
6688 7258 <tr class="ui-state-default">
6689 - <th>'.__('Answers', "poll-maker").'</th>
6690 - <th>'.__('Text', "poll-maker").'</th>
6691 - <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>
6692 7262 </tr>
6693 7263 </thead>
6694 7264 <tbody>';
6695 7265 $content .= '<tr class="ays-interval-row">
6696 7266 <td>
6697 - <span>'.__("Answer 1", "poll-maker").'</span>
7267 + <span>'. esc_html__("Answer 1", "poll-maker").'</span>
6698 7268 <input type="hidden" name="ays_answer_id[]">
6699 7269 </td>
6700 7270 <td>
6701 7271 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
@@ -6702,9 +7272,9 @@
6702 7272 </td>
6703 7273 <td class="ays-answer-image-td">
6704 7274 <label class="ays-label" for="ays-answer">
6705 7275 <a href="javascript:void(0)" class="add-answer-image" >
6706 - '.__("Add", "poll-maker").'
7276 + '. esc_html__("Add", "poll-maker").'
6707 7277 </a>
6708 7278 </label>
6709 7279 <div class="ays-answer-image-container ays-interval-image-container">
6710 7280 <span class="ays-remove-answer-img"></span>
@@ -6715,9 +7285,9 @@
6715 7285 </td>
6716 7286 </tr>
6717 7287 <tr class="ays-interval-row">
6718 7288 <td>
6719 - <span>'.__("Answer 2", "poll-maker").'</span>
7289 + <span>'. esc_html__("Answer 2", "poll-maker").'</span>
6720 7290 <input type="hidden" name="ays_answer_id[]">
6721 7291 </td>
6722 7292 <td>
6723 7293 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
@@ -6724,9 +7294,9 @@
6724 7294 </td>
6725 7295 <td class="ays-answer-image-td">
6726 7296 <label class="ays-label" for="ays-answer">
6727 7297 <a href="javascript:void(0)" class="add-answer-image" >
6728 - '.__("Add", "poll-maker").'
7298 + '. esc_html__("Add", "poll-maker").'
6729 7299 </a>
6730 7300 </label>
6731 7301 <div class="ays-answer-image-container ays-interval-image-container">
6732 7302 <span class="ays-remove-answer-img"></span>
@@ -6736,40 +7306,40 @@
6736 7306 </div>
6737 7307 </td>
6738 7308 </tr>';
6739 7309 $content .= '</tbody></table></div>';
6740 - echo $content;
7310 + echo wp_kses($content, $allowed_tags);
6741 7311 ?>
6742 7312 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6743 7313 <div class="ays-poll-new-upgrade-button-box">
6744 7314 <div>
6745 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6746 - <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">
6747 7317 </div>
6748 - <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>
6749 7319 </div>
6750 7320 </a>
6751 7321 <div class="ays-poll-new-watch-video-button-box">
6752 7322 <div>
6753 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6754 - <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">
6755 7325 </div>
6756 - <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>
6757 7327 </div>
6758 7328 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
6759 7329 <div class="ays-poll-center-big-watch-video-button-box">
6760 7330 <div class="ays-poll-center-new-watch-video-demo-button">
6761 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6762 - <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">
6763 - <?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>
6764 7334 </div>
6765 7335 </div>
6766 7336 <div class="ays-poll-center-big-upgrade-button-box">
6767 7337 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6768 7338 <div class="ays-poll-center-new-big-upgrade-button">
6769 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6770 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6771 - <?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"); ?>
6772 7342 </div>
6773 7343 </a>
6774 7344 </div>
6775 7345 </div>
@@ -6777,67 +7347,44 @@
6777 7347 <hr/>
6778 7348 </div>
6779 7349 </div>
6780 7350 </div>
6781 - </div>
6782 - <div class="bottom-buttons-container">
6783 - <div class="ays_save_default_button_box">
6784 - <?php
6785 - if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
6786 -
6787 - $other_attributes = array(
6788 - 'id' => 'ays-polls-prev-button',
6789 - 'data-message' => __( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
6790 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
6791 - );
6792 - 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);
6793 - }
6794 -
6795 - if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
6796 -
6797 - $other_attributes = array(
6798 - 'id' => 'ays-polls-next-button',
6799 - 'data-message' => __( 'Are you sure you want to go to the next poll page?', "poll-maker"),
6800 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
6801 - );
6802 - 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);
6803 - }
6804 - ?>
6805 - <div class="only_pro" style="position: relative; display: inline-block">
6806 - <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
6807 - <div class="pro-features-popup-conteiner">
6808 - <div class="pro-features-popup-title">
6809 - <?php echo __("Save as Default feature of Poll", "poll-maker"); ?>
6810 - </div>
6811 - <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
6812 - <p>
6813 - <?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"); ?>
6814 - </p>
6815 - <p>
6816 - <?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"); ?>
6817 - </p>
6818 - </div>
6819 - <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">
6820 - <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6821 - </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"); ?>
6822 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>
6823 7368 </div>
6824 - <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
6825 - <span class="ays_save_as_default_content_for_mobile">
6826 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
6827 - <input type="button" class="button ays_default_btn ays-loader-banner" value="Save as default">
6828 - </a>
6829 - <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" ); ?>">
6830 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6831 - </a>
6832 - </span>
6833 - </div>
6834 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>
6835 7380 </div>
7381 + </div>
7382 + <div class="bottom-buttons-container">
6836 7383 <div class='bottom-save-buttons-container'>
6837 7384 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
6838 7385 <?php
6839 - echo $loader_iamge;
7386 + echo wp_kses($loader_iamge, $loader_iamge_allow);
6840 7387 wp_nonce_field('poll_action', 'poll_action');
6841 7388 $save_bottom_attributes = array(
6842 7389 'id' => 'ays-button-apply',
6843 7390 'title' => 'Ctrl + s',
@@ -6843,12 +7390,12 @@
6843 7390 'title' => 'Ctrl + s',
6844 7391 'data-toggle' => 'tooltip',
6845 7392 'data-delay'=> '{"show":"1000"}'
6846 7393 );
6847 - 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);
6848 7395 $save_close_bottom_attributes = array('id' => 'ays-button');
6849 - 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);
6850 - 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());
6851 7398 ?>
6852 7399 </div>
6853 7400 </div>
6854 7401 </div>
@@ -6857,22 +7404,22 @@
6857 7404 <hr>
6858 7405 <!-- <div class="form-group row ays-poll-general-bundle-container">
6859 7406 <div class="col-sm-12 ays-poll-general-bundle-box">
6860 7407 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
6861 - <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>
6862 7409 </div>
6863 7410 <div class="ays-poll-general-bundle-row">
6864 7411 <div class="ays-poll-general-bundle-text">
6865 - <?php //echo __( "Do not miss", $this->plugin_name ); ?>
6866 - <span><?php //echo __( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
6867 - <?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 ); ?>
6868 7415 <span class="ays-poll-general-bundle-color">
6869 - <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>
6870 - </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 ); ?>
6871 7418 </div>
6872 - <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>
6873 7420 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
6874 - <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>
6875 7422 </div>
6876 7423 </div>
6877 7424 <div class="ays-poll-general-bundle-row">
6878 7425 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
@@ -6881,33 +7428,33 @@
6881 7428 </div> -->
6882 7429 <?php if($id === null): ?>
6883 7430 <div class="ays_poll_layer_container">
6884 7431 <div class="ays_poll_layer_content">
6885 - <div class="ays-poll-close-type">
6886 - <a href="?page=poll-maker-ays">
6887 - <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/icons/cross.png">
6888 - </a>
6889 - </div>
6890 7432 <div class="ays_poll_layer_box">
6891 7433 <div class="ays-poll-close-layer">
6892 7434 <div class="ays-poll-choose-type">
6893 - <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>
6894 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>
6895 7442 </div>
6896 7443 <div class="ays_poll_layer_box_blocks">
6897 7444 <label class='ays-poll-dblclick-layer'>
6898 - <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' : '' ?> >
6899 7446 <div class="ays_poll_layer_item" >
6900 7447 <div class="ays_poll_layer_item_logo" >
6901 7448 <div class="ays_poll_layer_item_logo_overlay
6902 7449 ays_poll_layer_item_logo_overlay_choosing" >
6903 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/choosing.png' ?>"
6904 - 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") ?>">
6905 7452 </div>
6906 7453 </div>
6907 7454 <div class="ays_poll_layer_item_title">
6908 - <p style="margin:0px;"><?php echo __('Choosing', "poll-maker") ?><p>
6909 - <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>
6910 7457 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6911 7458 </div>
6912 7459 <div class="ays_poll_layer_item_description"></div>
6913 7460 </div>
@@ -6912,20 +7459,20 @@
6912 7459 <div class="ays_poll_layer_item_description"></div>
6913 7460 </div>
6914 7461 </label>
6915 7462 <label class='ays-poll-dblclick-layer'>
6916 - <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' : '' ?> >
6917 7464 <div class="ays_poll_layer_item">
6918 7465 <div class="ays_poll_layer_item_logo">
6919 7466 <div class="ays_poll_layer_item_logo_overlay
6920 7467 ays_poll_layer_item_logo_overlay_rating">
6921 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/rating.png' ?>"
6922 - 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") ?>">
6923 7470 </div>
6924 7471 </div>
6925 7472 <div class="ays_poll_layer_item_title">
6926 - <p style="margin:0px;"><?php echo __('Rating', "poll-maker") ?><p>
6927 - <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>
6928 7475 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6929 7476 </div>
6930 7477 <div class="ays_poll_layer_item_description"></div>
6931 7478 </div>
@@ -6930,21 +7477,20 @@
6930 7477 <div class="ays_poll_layer_item_description"></div>
6931 7478 </div>
6932 7479 </label>
6933 7480 <label class='ays-poll-dblclick-layer'>
6934 - <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' : '' ?> >
6935 7482 <div class="ays_poll_layer_item">
6936 7483 <div class="ays_poll_layer_item_logo">
6937 7484 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
6938 7485
6939 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Text.png' ?>"
6940 - 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") ?>">
6941 7488 </div>
6942 7489 </div>
6943 7490 <div class="ays_poll_layer_item_title">
6944 - <p style="margin:0px;"><?php echo __('Text', "poll-maker") ?><p>
6945 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6946 - <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>
6947 7493 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6948 7494 </div>
6949 7495 <div class="ays_poll_layer_item_description"></div>
6950 7496 </div>
@@ -6949,18 +7495,18 @@
6949 7495 <div class="ays_poll_layer_item_description"></div>
6950 7496 </div>
6951 7497 </label>
6952 7498 <label class='ays-poll-dblclick-layer'>
6953 - <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' : '' ?> >
6954 7500 <div class="ays_poll_layer_item">
6955 7501 <div class="ays_poll_layer_item_logo">
6956 7502 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
6957 - <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") ?>">
6958 7504 </div>
6959 7505 </div>
6960 7506 <div class="ays_poll_layer_item_title">
6961 - <p style="margin:0px;"><?php echo __('Voting', "poll-maker") ?><p>
6962 - <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>
6963 7509 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6964 7510 </div>
6965 7511 <div class="ays_poll_layer_item_description"></div>
6966 7512 </div>
@@ -6975,20 +7521,19 @@
6975 7521 </span>
6976 7522 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
6977 7523 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
6978 7524
6979 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Dropdown.png' ?>"
6980 - 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") ?>">
6981 7527 </div>
6982 7528 </div>
6983 7529 <div class="ays_poll_layer_item_title">
6984 7530 <p style="margin:0px;">
6985 7531 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6986 - <?php echo __('Dropdown', "poll-maker") ?>
7532 + <?php echo esc_html__('Dropdown', "poll-maker") ?>
6987 7533 </a>
6988 7534 <p>
6989 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6990 - <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>
6991 7536 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6992 7537 </div>
6993 7538 <div class="ays_poll_layer_item_description"></div>
6994 7539 </div>
@@ -7003,20 +7548,19 @@
7003 7548 </span>
7004 7549 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7005 7550 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7006 7551
7007 - <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/range.png' ?>"
7008 - 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") ?>">
7009 7554 </div>
7010 7555 </div>
7011 7556 <div class="ays_poll_layer_item_title">
7012 7557 <p style="margin:0px;">
7013 7558 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7014 - <?php echo __('Range', "poll-maker") ?>
7559 + <?php echo esc_html__('Range', "poll-maker") ?>
7015 7560 </a>
7016 7561 <p>
7017 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7018 - <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>
7019 7563 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7020 7564 </div>
7021 7565 <div class="ays_poll_layer_item_description"></div>
7022 7566 </div>
@@ -7037,13 +7581,12 @@
7037 7581 </div>
7038 7582 <div class="ays_poll_layer_item_title">
7039 7583 <p style="margin:0px;">
7040 7584 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7041 - <?php echo __('Versus', "poll-maker") ?>
7585 + <?php echo esc_html__('Versus', "poll-maker") ?>
7042 7586 </a>
7043 7587 <p>
7044 - <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7045 - <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>
7046 7589 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7047 7590 </div>
7048 7591 <div class="ays_poll_layer_item_description"></div>
7049 7592 </div>
@@ -7050,9 +7593,9 @@
7050 7593 </label>
7051 7594 </div>
7052 7595 <div class="ays_poll_select_button_layer">
7053 7596 <div class="ays_poll_select_button_item">
7054 - <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']; ?>">
7055 7598 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7056 7599 </div>
7057 7600 </div>
7058 7601 </div>
@@ -7086,8 +7629,11 @@
7086 7629 <div class="pro-features-popup-modal-right-box-button">
7087 7630 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7088 7631 </div>
7089 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>
7090 7636 </div>
7091 7637 </div>
7092 7638 </div>
7093 7639