PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.3.7
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.3.7
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
poll-maker / admin / partials / poll-maker-ays-polls-actions.php

poll-maker-ays-polls-actions.php in Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls 6.3.7, at admin/partials/poll-maker-ays-polls-actions.php

7,573 lines 656.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $wpdb;
3 $action = (isset($_GET['action'])) ? sanitize_text_field($_GET['action']) : '';
4 $active_tab = (!empty($_GET['active-tab'])) ? sanitize_text_field($_GET['active-tab']) : 'General';
5 $heading = '';
6 $loader_iamge = '';
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
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
35 $poll_acordion_svg_html = '
36 <div class="ays-poll-accordion-arrow-box">
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">
38 <g>
39 <path xmlns:default="http://www.w3.org/2000/svg" d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" fill="#c4c4c4" vector-effect="non-scaling-stroke" />
40 </g>
41 </svg>
42 </div>';
43
44 $id = (isset($_GET['poll'])) ? absint(intval($_GET['poll'])) : null;
45
46 if ($action == 'edit') {
47 if ($id === null || $id === 0) {
48 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
49 wp_safe_redirect($url);
50 }
51 }
52
53 $user_id = get_current_user_id();
54 $user = get_userdata($user_id);
55 $users_table = esc_sql( $wpdb->prefix . 'users' );
56 // $sql_users = "SELECT ID, display_name FROM {$users_table}";
57 // $ays_poll_wp_users = $wpdb->get_results($sql_users, "ARRAY_A");
58 $author = array(
59 'id' => $user->ID,
60 'name' => $user->data->display_name
61 );
62
63 $cat_list = get_categories(
64 array(
65 'hide_empty' => false
66 )
67 );
68
69 $poll_category_page_url = admin_url( 'admin.php?page=poll-maker-ays-cats' );
70
71 $poll_message_vars = array(
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_id%%' =>esc_html__("Poll ID", "poll-maker"),
77 '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
78 '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
79 '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
80 '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
81 '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
82 '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
83 '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
84 '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
85 '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
86 '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
87 '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
88 '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
89 '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
90 '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
91 "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
92 '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
93 '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
94 '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
95 '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
96 '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
97 '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
98 '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
99 '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
100 '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
101 '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
102 '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
103 '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
104 '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
105 '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
106 '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
107 '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
108 '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
109 '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
110 '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
111 '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
112 '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
113 '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
114 );
115
116 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
117
118
119 $poll = array(
120 'title' => 'Default title',
121 'description' => '',
122 'categories' => array(),
123 'image' => '',
124 'question' => '',
125 'type' => 'choosing',
126 'view_type' => '',
127 'answers' => array(),
128 'show_title' => 1,
129 'styles' => '',
130 'custom_css' => '',
131 'theme_id' => 1,
132 );
133 $default_colors = array(
134 "main_color" => "#0C6291",
135 "text_color" => "#0C6291",
136 "icon_color" => "#0C6291",
137 "box_shadow_color" => "#000000",
138 "bg_color" => "#FBFEF9",
139 "answer_bg_color" => "#FBFEF9",
140 "answer_hover_color" => "#0C6291",
141 "title_bg_color" => "",
142 "border_color" => "#0C6291",
143 );
144 $default_options = array(
145 'randomize_answers' => 'off',
146 "icon_size" => 24,
147 "width" => 600,
148 "width_for_mobile" => '',
149 "btn_text" =>esc_html__('Vote', "poll-maker"),
150 "see_res_btn_text" =>esc_html__('See Results', "poll-maker"),
151 "border_style" => "ridge",
152 "border_radius" => 0,
153 "border_width" => 2,
154 "enable_box_shadow" => "",
155 "bg_image" => "",
156 "hide_results" => 0,
157 "hide_results_text" => "<p style='text-align: center'>" .esc_html__("Thanks for your answer!", "poll-maker") . "</p>",
158 "allow_not_vote" => 0,
159 "show_social" => 0,
160 "poll_show_social_ln" => "on",
161 "poll_show_social_fb" => "on",
162 "poll_show_social_tr" => "on",
163 "poll_show_social_vk" => "off",
164 "load_effect" => "load_gif",
165 "load_gif" => "plg_default",
166 'limit_users' => 0,
167 "limitation_message" => "<p style='text-align: center'>" .esc_html__("You have already voted", "poll-maker") . "</p>",
168 'redirect_url' => '',
169 'redirection_delay' => '',
170 'users_role' => '',
171 'enable_restriction_pass' => 0,
172 'restriction_pass_message' => "<p style='text-align: center'>" .esc_html__("You don't have permissions for passing the poll", "poll-maker") . "</p>",
173 'enable_logged_users' => 0,
174 'enable_logged_users_message' => "<p style='text-align: center'>" .esc_html__('You must sign in for passing the poll', "poll-maker") . "</p>",
175 'notify_email_on' => 0,
176 'notify_email' => '',
177 'result_sort_type' => 'none',
178 'redirect_after_submit' => 0,
179 'redirect_users' => 0,
180 'redirect_after_vote_url' => '',
181 'redirect_after_vote_delay' => '',
182 'published' => 1,
183 'enable_pass_count' => 'on',
184 'activeInterval' => '',
185 'create_date' => current_time( 'mysql' ),
186 'author' => $author,
187 'deactiveInterval' => '',
188 'enable_background_gradient' => 'off',
189 'background_gradient_color_1' => '#103251',
190 'background_gradient_color_2' => '#607593',
191 'poll_gradient_direction' => 'vertical',
192 'activeIntervalSec' => '',
193 'deactiveIntervalSec' => '',
194 'active_date_check' => '',
195 'active_date_message_soon' => "<p style='text-align: center'>" .esc_html__("The poll will be available soon!", "poll-maker") . "</p>",
196 'active_date_message' => "<p style='text-align: center'>" .esc_html__("The poll has expired!", "poll-maker") . "</p>",
197 'enable_restart_button' => 0,
198 'enable_vote_btn' => 1,
199 'show_votes_count' => 1,
200 'show_res_percent' => 1,
201 'poll_direction' => 'ltr',
202 'info_form' => 0,
203 'fields' => 'apm_name,apm_email,apm_phone',
204 'required_fields' => 'apm_email',
205 'info_form_title' => "<h5>" .esc_html__("Please fill out the form:", "poll-maker") . "</h5>",
206 'disable_answer_hover' => 0,
207 'enable_asnwers_sound' => 'off',
208 'poll_bg_image_position' => 'center center',
209 'poll_bg_img_in_finish_page' => 'off',
210 'ays_add_post_for_poll' => 'off',
211 'result_in_rgba' => 'off',
212 'answer_sort_type' => 'default',
213 'answer_font_size' => '16',
214 'poll_answer_font_size_mobile' => '16',
215 'show_passed_users' => 'off',
216 'logo_image' => '',
217 'dont_show_poll_cont' => 'off',
218 'see_result_button' => 'on',
219 'see_result_radio' => 'ays_see_result_button',
220 'loader_font_size' => '64',
221 'show_answers_numbering' => 'none',
222 'poll_box_shadow_x_offset' => 0,
223 'poll_box_shadow_y_offset' => 0,
224 'poll_box_shadow_z_offset' => 15,
225 'poll_question_size_pc' => 16,
226 'poll_question_size_mobile' => 16,
227 'poll_question_image_object_fit' => "cover",
228 'poll_title_font_size' => 20,
229 'poll_title_font_size_mobile' => 20,
230 'poll_title_alignment' => "center",
231 'poll_title_alignment_mobile' => "center",
232 'poll_text_type_length_enable' => "off",
233 'poll_text_type_limit_type' => "characters",
234 'poll_text_type_limit_length' => "",
235 'poll_text_type_limit_message' => "off",
236 'poll_text_type_placeholder' => "Your answer",
237 'poll_text_type_width' => "",
238 'poll_text_type_width_type' => "percent",
239 'poll_enable_password' => "off",
240 'poll_password' => "",
241 'poll_enable_password_visibility' => "off",
242 'poll_password_message' => 'Please enter password',
243 'poll_answer_enable_box_shadow' => "off",
244 'poll_answer_box_shadow_color' => "#000000",
245 'poll_answer_box_shadow_x_offset' => 0,
246 'poll_answer_box_shadow_y_offset' => 0,
247 'poll_answer_box_shadow_z_offset' => 10,
248 'poll_answer_border_radius' => 0,
249 'poll_enable_answer_image_after_voting' => "off",
250 'enable_poll_title_text_shadow' => 'off',
251 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
252 'poll_title_text_shadow_x_offset' => 2,
253 'poll_title_text_shadow_y_offset' => 2,
254 'poll_title_text_shadow_z_offset' => 0,
255 'display_fields_labels' => 'off',
256 'autofill_user_data' => 'off',
257 'poll_create_author' => $user_id,
258 'poll_main_url' => '',
259 'poll_logo_url_new_tab' => 'off',
260 'show_chart_type' => 'google_bar_chart',
261 );
262
263 $settings_options = $this->settings_obj->ays_get_setting('options');
264 if($settings_options){
265 $settings_options = json_decode($settings_options, true);
266 }else{
267 $settings_options = array();
268 }
269 $loader_iamge_allow = array(
270 'span' => array(
271 'class' => array()
272 ),
273 'img' => array(
274 'src' => array(),
275 'class' => array()
276 )
277 );
278 switch ( $action ) {
279 case 'add':
280 $heading =esc_html__('Add new poll', "poll-maker");
281 $options = array_merge($default_options, $default_colors);
282 $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
283 // Default category
284 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
285
286 $poll['categories'] = $poll_default_cat;
287
288 // Default type
289 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
290 $poll['type'] = $poll_default_type;
291
292 $ays_check_post = '';
293 break;
294 case 'edit':
295 $heading =esc_html__('Edit poll', "poll-maker");
296 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
297 $poll = $this->polls_obj->get_poll_by_id($id);
298 $post_id = !empty($poll) ? $poll['post_id'] : '';
299 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
300 $ays_poll_view_post_url = get_permalink($post_id);
301 $ays_poll_edit_post_url = get_edit_post_link($post_id);
302
303 if (empty($poll)) {
304 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
305 wp_safe_redirect($url);
306 }
307
308 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
309 break;
310 default:
311 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
312 wp_safe_redirect($url);
313 break;
314 }
315 $enable_pass_count = $options['enable_pass_count'];
316 $categories = $this->polls_obj->get_categories();
317 global $wp_roles;
318 $ays_users_roles = $wp_roles->roles;
319
320 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
321 $this->polls_obj->add_or_edit_polls($_POST, $id);
322 }
323
324 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
325 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
326 }
327
328 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
329 unset($_GET['page']);
330 $url = remove_query_arg( array_keys($_GET) );
331 wp_redirect( $url );
332 }
333
334 $style = "display: none;";
335 $style_bg = "display: none;";
336 $style_bg_options = "display: none;";
337 $style_logo = "display: none;";
338 $style_logo_check = false;
339 if (isset($poll['image']) && !empty($poll['image'])) {
340
341 $style = "display: block;";
342 $image_text =esc_html__('Edit Image', "poll-maker");
343 }
344 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
345 $style_bg = "display: flex;";
346 $style_bg_options = "display: block;";
347 $image_text_bg =esc_html__('Edit Image', "poll-maker");
348 }
349 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
350 $style_logo = "display: block;";
351 $style_logo_check = true;
352 $image_text_logo =esc_html__('Edit Image', "poll-maker");
353 }
354
355 $published = $options['published'];
356
357
358 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
359 $activateTime = strtotime($options['activeInterval']);
360 $activePoll = date('Y-m-d', $activateTime);
361 $deactivateTime = strtotime($options['deactiveInterval']);
362 $deactivePoll = date('Y-m-d', $deactivateTime);
363 } else {
364 $activePoll = date('Y-m-d');
365 $deactivePoll = date('Y-m-d');
366 }
367
368 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
369 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
370
371 $activePoll = $activePoll . " " . $activePollSec;
372 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
373
374 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
375
376 $all_fields = array(
377 array(
378 "name" =>esc_html__("Name", "poll-maker"),
379 "slug" => "apm_name",
380 ),
381 array(
382 "name" =>esc_html__("Email", "poll-maker"),
383 "slug" => "apm_email",
384 ),
385 array(
386 "name" =>esc_html__("Phone", "poll-maker"),
387 "slug" => "apm_phone",
388 ),
389 );
390
391
392 //INTEGRATIONS
393 $poll_settings = $this->settings_obj;
394
395 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
396
397 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
398
399 $answers_sound_status = false;
400 if($asnwers_sound){
401 $answers_sound_status = true;
402 }
403
404 // WP Editor height
405 $poll_wp_editor_height = (isset($settings_options['poll_wp_editor_height']) && $settings_options['poll_wp_editor_height'] != '') ? absint( sanitize_text_field($settings_options['poll_wp_editor_height']) ) : 100 ;
406
407 // Answers sound option
408 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
409 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
410
411 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
412 $mailchimp = json_decode($mailchimp_res, true);
413 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
414 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
415 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
416 $mailchimp_select = array();
417 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
418 foreach ( $mailchimp_lists['lists'] as $list ) {
419 $mailchimp_select[] = array(
420 'listId' => $list['id'],
421 'listName' => $list['name']
422 );
423 }
424 } else {
425 $mailchimp_select =esc_html__("There are no lists", "poll-maker");
426 }
427
428 // MailChimp
429 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
430 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
431
432
433 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
434 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
435
436 // Show votes count
437 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
438 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
439
440 // Show result percent
441 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
442 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
443
444 // Show result button after schedule
445 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
446 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
447
448 $show_res_btn = isset($options['show_result_btn_see_schedule']) && !empty($options['show_result_btn_see_schedule']) ? $options['show_result_btn_see_schedule'] : 'with_see';
449
450 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
451
452 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
453
454 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
455
456 // Show login form for not logged in users
457 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
458 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
459
460 // Redirect after voting
461 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
462 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
463
464 // Results notification by email
465 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
466 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
467
468 // Background gradient
469 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
470 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
471
472 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
473 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
474 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
475
476
477 // Redirect after submit
478 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
479 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
480 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
481 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
482
483 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
484
485 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
486
487 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
488
489 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
490
491
492 // Bg image positioning
493 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
494
495 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
496
497 if(isset($options['author']) && $options['author'] != 'null'){
498 if ( ! is_array( $options['author'] ) ) {
499 $options['author'] = json_decode($options['author'], true);
500 $poll_author = $options['author'];
501 } else {
502 $poll_author = array_map( 'stripslashes', $options['author'] );
503 }
504 } else {
505 $poll_author = array('name' => 'Unknown');
506 }
507
508 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
509 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
510
511 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
512
513 // Results bar in RGBA
514 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
515 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
516
517 // Enable View more button
518 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
519 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
520 $poll_view_more_button_count = (isset($options['poll_view_more_button_count']) && $options['poll_view_more_button_count'] != '' ) ? absint(intval($options['poll_view_more_button_count'])) : 0;
521
522
523 // Poll Min Height
524 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
525
526 // Poll answer font size
527 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
528
529 // Poll answers font size on mobile
530 $poll_answer_font_size_mobile = (isset($options['poll_answer_font_size_mobile']) && $options['poll_answer_font_size_mobile'] != '') ? esc_attr($options['poll_answer_font_size_mobile']) : '16';
531
532 // Poll show passed users
533 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
534 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
535 $poll_show_passed_users_count = isset($options['poll_show_passed_users_count']) && $options['poll_show_passed_users_count'] != "" ? intval(esc_attr($options['poll_show_passed_users_count'])) : 3;
536
537 // Poll Logo image
538 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
539 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
540 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
541 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
542
543 //
544
545 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
546
547 // Poll schedule container on/off
548 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
549
550 // Poll see results button in limitations
551 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
552 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
553 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
554 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
555 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
556 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
557
558 // Loader font size
559 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
560 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
561 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
562
563 // Show answers numbering
564 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
565
566 // Default border color
567 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
568 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
569
570 // Poll load effect message
571 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
572
573 // Poll title
574 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
575
576 // Box shadow coords
577 // Box Shadow X offset
578 $poll_box_shadow_x_offset = (isset($options['poll_box_shadow_x_offset']) && $options['poll_box_shadow_x_offset'] != '' && $options['poll_box_shadow_x_offset'] != 0 ) ? intval( esc_attr( $options['poll_box_shadow_x_offset'] ) ) : 0;
579
580 // Box Shadow Y offset
581 $poll_box_shadow_y_offset = (isset($options['poll_box_shadow_y_offset']) && $options['poll_box_shadow_y_offset'] != '' && $options['poll_box_shadow_y_offset'] != 0 ) ? intval( esc_attr( $options['poll_box_shadow_y_offset'] ) ) : 0;
582
583 // Box Shadow Z offset
584 $poll_box_shadow_z_offset = (isset($options['poll_box_shadow_z_offset']) && $options['poll_box_shadow_z_offset'] != '' && $options['poll_box_shadow_z_offset'] != 0 ) ? intval( esc_attr( $options['poll_box_shadow_z_offset'] ) ) : 15;
585
586 // Poll Vote Reason
587 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
588
589 // Allow multivote
590 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
591 // Enable multivote answer
592 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
593
594 // Minimum count for multivote answer
595 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
596
597 // Count for multivote answer
598 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
599
600 // Allow collect user info
601 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
602
603 // Show answers icon
604 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
605 // Poll answer icon
606 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
607
608 // Every Answer redirect delay
609 $poll_every_answer_redirect_delay = isset($options['poll_every_answer_redirect_delay']) && $options['poll_every_answer_redirect_delay'] != "" ? esc_attr($options['poll_every_answer_redirect_delay']) : "";
610
611 // Enable answer redirect delay
612 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
613
614 // Show Answers image after voting
615 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
616
617 // Poll logo image url
618 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
619
620 // Check if the poll logo URL is enabled
621 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
622
623 // Poll question font size
624 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
625
626 // Poll question font size for mobile
627 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
628
629 // Poll question image height
630 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
631
632 // Poll container max-width for mobile
633 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
634
635 // ==== BUTTON STYLES START ====
636 // Buttons font size
637 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
638
639 // Buttons text color
640 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
641
642 // Buttons background color
643 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
644
645 // Buttons mobile font size
646 $poll_buttons_mobile_font_size = (isset($options['poll_buttons_mobile_font_size']) && $options['poll_buttons_mobile_font_size'] != "") ? esc_attr($options['poll_buttons_mobile_font_size']) : '17';
647
648 // Buttons Left / Right padding
649 $poll_buttons_left_right_padding = (isset($options['poll_buttons_left_right_padding']) && $options['poll_buttons_left_right_padding'] != '') ? esc_attr($options['poll_buttons_left_right_padding']) : '20';
650
651 // Buttons Top / Bottom padding
652 $poll_buttons_top_bottom_padding = (isset($options['poll_buttons_top_bottom_padding']) && $options['poll_buttons_top_bottom_padding'] != '') ? esc_attr($options['poll_buttons_top_bottom_padding']) : '10';
653
654 // Buttons border radius
655 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
656
657 // Buttons Width
658 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
659
660 // Buttons mobile width
661 $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;
662
663 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
664 // ==== BUTTON STYLES END ====
665
666 // ==== Allow Answer options ====
667 // Allow custom answer
668 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
669 // Require admin approval
670 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
671
672 // ==== ====
673
674 // Poll answer view type
675 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
676
677 // Poll answer image height
678 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
679
680 // Poll answer image height for mobile
681 $poll_answer_image_height_for_mobile = (isset($options['poll_answer_image_height_for_mobile']) && $options['poll_answer_image_height_for_mobile'] != "") ? esc_attr($options['poll_answer_image_height_for_mobile']) : "150";
682
683 // Poll answer image border radius
684 $poll_answer_image_border_radius = (isset($options['poll_answer_image_border_radius']) && $options['poll_answer_image_border_radius'] != "") ? esc_attr($options['poll_answer_image_border_radius']) : 0;
685
686 // Poll question image object fit
687 $poll_question_image_object_fit = (isset($options['poll_question_image_object_fit']) && $options['poll_question_image_object_fit'] != "") ? esc_attr($options['poll_question_image_object_fit']) : "cover";
688
689 // Poll answer image object fit
690 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
691
692 // Poll answer padding
693 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
694
695 // Poll 1 column in mobile
696 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
697 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
698
699 // Poll answer gap
700 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
701
702 // Poll title font size
703 $poll_title_font_size = (isset($options['poll_title_font_size']) && $options['poll_title_font_size'] != "") ? absint(intval(esc_attr($options['poll_title_font_size']))) : "20";
704
705 // Poll title font size for mobile
706 $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";
707
708 // Poll title alignment
709 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
710
711 // Poll title alignment mobile
712 $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;
713
714 // Poll view type
715 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
716
717 // ===== Poll text type options start =====
718 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
719 $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";
720 $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']) : "";
721 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
722 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
723 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
724 $poll_text_type_width_type = ( isset($options['poll_text_type_width_type']) && $options['poll_text_type_width_type'] != "" ) ? esc_attr($options['poll_text_type_width_type']) : "percent";
725 // ===== Poll text type options end =====
726
727 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
728 // Enable toggle password visibility
729 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
730 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
731 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
732 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
733
734 // == Poll answer box shadow ==
735 // Poll answer box shadow enable
736 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
737 // Poll answer box shadow color
738 $poll_answer_box_shadow_color = (isset($options['poll_answer_box_shadow_color']) && $options['poll_answer_box_shadow_color'] != "") ? esc_attr($options['poll_answer_box_shadow_color']) : "#000000";
739 // answer hover color
740 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
741 // answer bg color
742 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
743 // Poll answer box shadow parameters
744 $poll_answer_box_shadow_x_offset = (isset($options['poll_answer_box_shadow_x_offset']) && $options['poll_answer_box_shadow_x_offset'] != "") ? intval($options['poll_answer_box_shadow_x_offset']) : 0;
745
746 $poll_answer_box_shadow_y_offset = (isset($options['poll_answer_box_shadow_y_offset']) && $options['poll_answer_box_shadow_y_offset'] != "") ? intval($options['poll_answer_box_shadow_y_offset']) : 0;
747
748 $poll_answer_box_shadow_z_offset = (isset($options['poll_answer_box_shadow_z_offset']) && $options['poll_answer_box_shadow_z_offset'] != "") ? intval($options['poll_answer_box_shadow_z_offset']) : 10;
749
750 // Poll answer box shadow color
751 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
752
753 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
754 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
755 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
756 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
757 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
758 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
759
760 // Title text shadow
761 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
762
763 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
764
765 $poll_title_text_shadow = (isset($options['poll_title_text_shadow']) && $options['poll_title_text_shadow'] != '') ? stripslashes( esc_attr( $options['poll_title_text_shadow'] ) ) : 'rgba(255,255,255,0)';
766
767 $poll_title_text_shadow_x_offset = (isset($options['poll_title_text_shadow_x_offset']) && $options['poll_title_text_shadow_x_offset'] != '') ? stripslashes( esc_attr( $options['poll_title_text_shadow_x_offset'] ) ) : 2;
768
769 $poll_title_text_shadow_y_offset = (isset($options['poll_title_text_shadow_y_offset']) && $options['poll_title_text_shadow_y_offset'] != '') ? stripslashes( esc_attr( $options['poll_title_text_shadow_y_offset'] ) ) : 2;
770
771 $poll_title_text_shadow_z_offset = (isset($options['poll_title_text_shadow_z_offset']) && $options['poll_title_text_shadow_z_offset'] != '') ? stripslashes( esc_attr( $options['poll_title_text_shadow_z_offset'] ) ) : 0;
772
773 // Display form fields labels
774 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
775 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
776
777 // Autofill user data
778 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
779 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
780
781 // Change the author of the current poll
782 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
783 $get_current_poll_author_data = get_userdata($change_poll_create_author);
784
785 // Poll main url
786 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
787
788 //Open logo URL in new tab
789 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
790
791 //Poll Logo title
792 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
793
794 //Poll mobile width
795 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
796
797 // Social Media links
798 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
799 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
800 'linkedin_link' => '',
801 'facebook_link' => '',
802 'twitter_link' => '',
803 'vkontakte_link' => '',
804 'instagram_link' => '',
805 'youtube_link' => '',
806 'tiktok_link' => '',
807 );
808 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
809 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
810 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
811 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
812 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
813 $tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
814 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
815
816 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
817 $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;
818
819 $next_poll_id = "";
820 $prev_poll_id = '';
821 if ( isset( $id ) && !is_null( $id ) ) {
822 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
823 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
824
825 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
826 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
827
828 }
829
830 $get_all_polls = Poll_Maker_Data::get_all_polls();
831
832 ?>
833 <!--LIVE PREVIEW STYLES-->
834 <?php
835 $emoji = array(
836 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
837 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
838 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
839 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
840 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
841 ); ?>
842 <style>
843 /*save changing properties of poll in the css-variables*/
844 :root {
845 /*colors*/
846 --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
847 --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
848 --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']); ?>;
849 --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']); ?>;
850 --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']); ?>;
851 --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
852 --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
853 --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
854 /*options*/
855 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
856 --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
857 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
858 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
859 --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' : ''; ?>;
860 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
861 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
862 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
863 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
864
865 }
866
867
868 input[type='button'].ays-poll-btn{
869 font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
870 padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
871 border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
872 width: <?php echo esc_attr($poll_buttons_width); ?>px;
873 }
874
875 @media (max-width: 768px) {
876 input[type='button'].ays-poll-btn{
877 width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
878 }
879 }
880 </style>
881 <!--LIVE PREVIEW STYLES END-->
882 <div class="wrap">
883 <div class="ays-poll-heading-box">
884 <div class="ays-poll-wordpress-user-manual-box">
885 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
886 <i class="ays_poll_fas ays_fa_file_text"></i>
887 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
888 </a>
889 </div>
890 </div>
891 <div class="container-fluid">
892 <form class="ays-poll-form" id="ays-poll-form" method="post">
893 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
894 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
895 <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
896 <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
897 <h1 class="wp-heading-inline">
898 <?php
899 echo esc_html($heading);
900 ?>
901 </h1>
902 <div>
903 <div class="ays-poll-subtitle-main-box">
904 <p class="ays-subtitle ays-poll-open-list">
905 <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
906 <?php if(isset($id) && count($get_all_polls) > 1):?>
907 <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
908 <?php endif; ?>
909 </p>
910 <?php if(isset($id) && count($get_all_polls) > 1):?>
911 <div class="ays-poll-polls-data">
912 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
913 <?php ?>
914 <label class="ays-poll-message-vars-each-data-label">
915 <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">
916 <div class="ays-poll-polls-each-data">
917 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
918 <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>
919 </div>
920 </label>
921 <?php endforeach ?>
922 </div>
923 <?php endif; ?>
924 </div>
925 <?php if($id !== null): ?>
926 <div class="row">
927 <div class="col-sm-3">
928 <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
929 </div>
930 <div class="col-sm-9">
931 <p style="font-size:14px; font-style:italic;">
932 <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
933 <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>
934 <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
935 </p>
936 </div>
937 </div>
938 <?php endif;?>
939 </div>
940 <hr>
941 <div class='ays-all-container'>
942 <div class='ays-all-sub-container'>
943 <div class="ays-top-menu-wrapper">
944 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
945 <div class="ays-top-menu">
946 <div class="nav-tab-wrapper ays-top-tab-wrapper">
947 <a href="#tab1" data-title="General"
948 class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
949 <?php echo esc_html__('General', "poll-maker"); ?>
950 </a>
951 <a href="#tab2" data-title="Styles"
952 class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
953 <?php echo esc_html__('Styles', "poll-maker"); ?>
954 </a>
955 <a href="#tab3" data-title="Settings"
956 class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
957 <?php echo esc_html__('Settings', "poll-maker"); ?>
958 </a>
959 <a href="#tab8" data-title="Results Settings"
960 class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
961 <?php echo esc_html__('Results Settings', "poll-maker"); ?>
962 </a>
963 <a href="#tab4" data-title="Limitations"
964 class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
965 <?php echo esc_html__("Limitations", "poll-maker"); ?>
966 </a>
967 <a href="#tab5" data-title="Userdata"
968 class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
969 <?php echo esc_html__('User Data', "poll-maker"); ?>
970 </a>
971 <a href="#tab6" data-title="Email"
972 class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
973 <?php echo esc_html__('Email', "poll-maker"); ?>
974 </a>
975 <a href="#tab7" data-title="Integrations"
976 class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
977 <?php echo esc_html__('Integrations', "poll-maker"); ?>
978 </a>
979 </div>
980 <div class='top-menu-buttons-container'>
981 <?php
982 echo wp_kses($loader_iamge, $loader_iamge_allow);
983 $save_attributes = array(
984 'id' => 'ays-button-top-apply',
985 'title' => 'Ctrl + s',
986 'data-toggle' => 'tooltip',
987 'data-delay'=> '{"show":"1000"}'
988 );
989 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
990 $save_close_attributes = array('id' => 'ays-button-top');
991 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);
992 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
993 ?>
994 </div>
995 </div>
996 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
997 </div>
998 <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
999 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
1000 <p class="ays-subtitle" style="margin-bottom:0;">
1001 <?php echo esc_html__('General options', "poll-maker"); ?>
1002 </p>
1003 <?php if ($poll_main_url != ''): ?>
1004 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
1005 <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;">
1006 <i class="fa fa-eye" aria-hidden="true"></i>
1007 <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
1008 </a>
1009 </div>
1010 <?php endif; ?>
1011 </div>
1012 <hr>
1013 <div class="form-group row">
1014 <div class="col-sm-3">
1015 <label for='ays-poll-title'>
1016 <?php echo esc_html__('Title', "poll-maker"); ?>
1017 <a class="ays_help" data-toggle="tooltip"
1018 data-placement="top"
1019 title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1020 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1021 </a>
1022 </label>
1023 </div>
1024 <div class="col-sm-9 ays_divider_left">
1025 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
1026 data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
1027 </div>
1028 </div>
1029 <hr>
1030 <div class="form-group row" style="display: flex;">
1031 <div class="col-sm-3">
1032 <label for='ays-poll-question'>
1033 <?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"); ?>">
1034 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1035 </a>
1036 <a href="javascript:void(0)" class="add-question-image button">
1037 <?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"); ?>">
1038 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1039 </a></a>
1040 </label>
1041 <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
1042 <span class="ays-remove-question-img"></span>
1043 <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1044 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
1045 </div>
1046 </div>
1047 <div class="col-sm-9">
1048 <?php
1049 $content = stripslashes($poll["question"]);
1050 $editor_id = 'ays-poll-question';
1051 $settings = array(
1052 'editor_height' => $poll_wp_editor_height,
1053 'textarea_name' => 'ays_poll_question',
1054 'editor_class' => 'ays-textarea',
1055 'media_buttons' => true,
1056 'tinymce' => array(
1057 "init_instance_callback" => "function(editor) {
1058 editor.on('Change', function(e) {
1059 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1060 });
1061 }",
1062 )
1063 );
1064 wp_editor($content, $editor_id, $settings);
1065 ?>
1066 </div>
1067 </div>
1068 <hr>
1069
1070 <?php if ($poll['type'] == 'choosing') : ?>
1071 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1072 <div class="col-sm-3">
1073 <label for="ays-poll-answer" >
1074 <?php echo esc_html__('Options', "poll-maker"); ?>
1075 </label>
1076 </div>
1077 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1078 <div>
1079 <div class='add-option-top-container'>
1080 <a class="ays-add-answer ays-click-once" id='add-answer'>
1081 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1082 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1083 </a>
1084 </div>
1085 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1086 <thead>
1087 <tr class="ui-state-default">
1088 <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1089 <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1090 <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>
1091 <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1092 <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1093 </tr>
1094 </thead>
1095 <tbody class="">
1096 <?php
1097 $answers = $poll['answers'];
1098 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1099 $loop_iteration = 0;
1100 $rows_count = count($answers);
1101 $ays_key_enter = "";
1102 $user_add_html = '';
1103 $user_add_html_allow = array(
1104 'input' => array(
1105 'type' => array(),
1106 'class' => array(),
1107 'style' => array(),
1108 'title' => array(),
1109 'checked' => array()
1110 )
1111 );
1112 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1113 foreach ($answers as $index => $answer) {
1114 $user_add_html = '';
1115 $class = (($index + 1) % 2 == 0) ? "even" : "";
1116 $answer_val = stripslashes(htmlentities($answer["answer"]));
1117 $answer_id = $answer["id"];
1118 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1119 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1120 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1121 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1122 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1123
1124 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1125 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1126 $disable_show_user_added = '';
1127 }else{
1128 $disable_show_user_added = 'display: none;';
1129 }
1130
1131 $show_user_added_checkbox = '';
1132 if ($show_user_added == 1) {
1133 $show_user_added_checkbox = 'checked';
1134 }
1135 if ( $user_added ) {
1136 $user_add_html = '<input type="checkbox" class="ays_show_user_added" style="'. $disable_show_user_added .'" title="Show up on the poll" '. $show_user_added_checkbox .' />';
1137 }
1138
1139 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1140 $check_show_user_added = "1";
1141 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1142 $check_show_user_added = "0";
1143 }else{
1144 $check_show_user_added = "1";
1145 }
1146
1147 if($loop_iteration == $rows_count - 1){
1148 $ays_key_enter = "ays_poll_enter_key";
1149 }
1150 $loop_iteration++;
1151 ?>
1152 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1153 <td class="ays-sort">
1154 <div class='ays_poll_move_arrows'></div>
1155 <td>
1156 <div class="ays_poll_display_flex">
1157 <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) ?>" />
1158 <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); ?>">
1159 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1160 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1161 </div>
1162 </td>
1163 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1164 <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); ?>"/>
1165 </td>
1166 <td>
1167 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1168 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1169 </label>
1170 <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1171 <span class="ays-poll-remove-answer-img"></span>
1172 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1173 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1174 </div>
1175 </td>
1176 <td>
1177 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1178 </a>
1179 </td>
1180 </tr>
1181 <?php
1182 }
1183 ?>
1184 <?php
1185 else:
1186 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1187 if($loop_iteration == intval($answer_default_count) - 1){
1188 $ays_key_enter = "ays_poll_enter_key";
1189 }
1190 $loop_iteration++;
1191 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1192 ?>
1193 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1194 <td class="ays-sort">
1195 <div class='ays_poll_move_arrows'></div>
1196 </td>
1197 <td class="ays-choosing-answer-container">
1198 <div class="ays_poll_display_flex">
1199 <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)); ?>">
1200 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1201 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1202 </div>
1203 </td>
1204 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1205 <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=""/>
1206 </td>
1207 <td>
1208 <label class='ays-label' for='ays-answer'>
1209 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1210 </label>
1211 <div class="ays-poll-answer-image-container" style="display:none;">
1212 <span class="ays-poll-remove-answer-img"></span>
1213 <img src="" class="ays-poll-answer-img"/>
1214 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1215 </div>
1216 </td>
1217
1218 <td>
1219 <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);?>">
1220 </a>
1221 </td>
1222 </tr>
1223 <?php
1224 endfor;
1225 endif;
1226 ?>
1227 </tbody>
1228 </table>
1229 <div class='add-option-top-container'>
1230 <a class="ays-add-answer" id='add-answer'>
1231 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1232 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1233 </a>
1234 </div>
1235 <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1236 <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1237 </div>
1238
1239 </div>
1240 </div>
1241 <?php endif; ?>
1242 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1243 <div class="form-group row" style="display: flex;">
1244 <div class="col-sm-3">
1245 <label for="ays-poll-answer" >
1246 <?php echo esc_html__('Option Settings', "poll-maker")?>
1247 </label>
1248 </div>
1249 <div class="col-sm-9">
1250 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1251 <div class="col-sm-12">
1252 <div class="form-group row">
1253 <div class="col-1">
1254 <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' : '' ?>/>
1255 </div>
1256 <div class="col-4 unset-padding-left">
1257 <label for="ays_redirect_after_submit" >
1258 <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1259 <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")?>">
1260 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1261 </a>
1262 </label>
1263 </div>
1264 </div>
1265 </div>
1266 </div>
1267 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1268 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1269 <div class="col-sm-12">
1270 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1271 <div class="col-1">
1272 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1273 value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1274 </div>
1275 <div class="col-4 unset-padding-left">
1276 <label for="ays_poll_allow_add_answers">
1277 <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1278 <a class="ays_help" data-toggle="tooltip"
1279 data-placement="top"
1280 title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1281 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1282 </a>
1283 </label>
1284 </div>
1285 <div class="col-7 allow_add_answers_not_show_up_container">
1286 <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1287 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1288 <div class="col-2 ays_divider_left">
1289 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1290 value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1291 </div>
1292 <div class="col-10">
1293 <label for="ays_poll_allow_answer_require">
1294 <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1295 <a class="ays_help" data-toggle="tooltip"
1296 data-placement="top"
1297 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"); ?>">
1298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1299 </a>
1300 </label>
1301 </div>
1302 <?php
1303 $poll_answers = $poll['answers'];
1304 $is_user_added_exist = 0;
1305 foreach ($poll_answers as $index => $answer) {
1306 if($answer['user_added'] == 1) {
1307 $is_user_added_exist++;
1308 }
1309 }
1310 if($is_user_added_exist > 0):
1311 ?>
1312 <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1313 <div class="col-2 ays_divider_left" style="align-items: center;">
1314 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1315 </div>
1316 <div class="col-10">
1317 <label for="ays_poll_require_approve_select_all">
1318 <?php echo esc_html__('Select all', "poll-maker"); ?>
1319 <a class="ays_help" data-toggle="tooltip"
1320 data-placement="top"
1321 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"); ?>">
1322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1323 </a>
1324 </label>
1325 </div>
1326 </div>
1327 <?php
1328 endif;
1329 ?>
1330 </div>
1331 </div>
1332 </div>
1333 </div>
1334 </div>
1335 </div> <!-- Allow custom answer -->
1336 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1337 <div class="if-voting poll-type-block form-group row">
1338 <div class="col-sm-3">
1339 <label for="ays-poll-vote-type">
1340 <?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"); ?>">
1341 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1342 </a></label>
1343 </div>
1344 <div class="col-sm-9 answers-col">
1345 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1346 <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1347 <?php echo esc_html__('Hand', "poll-maker"); ?>
1348 </option>
1349 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1350 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1351 </option>
1352 </select>
1353 <?php
1354 switch ($poll['view_type']) {
1355 case 'hand':
1356 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1357 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1358 break;
1359
1360 case 'emoji':
1361 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1362 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1363 break;
1364
1365 case 'star':
1366 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1367 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1368 break;
1369
1370 default:
1371 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1372 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1373 break;
1374 }
1375 ?>
1376 <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1377 </div>
1378 </div>
1379 <div class="if-rating poll-type-block form-group row">
1380 <div class="col-sm-3">
1381 <label for="ays-poll-rate-type">
1382 <?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"); ?>">
1383 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1384 </a></label>
1385 </div>
1386 <div class="col-sm-9 answers-col">
1387 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1388 <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1389 <?php echo esc_html__('Stars', "poll-maker"); ?>
1390 </option>
1391 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1392 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1393 </option>
1394 </select>
1395 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1396 <option value="<?php echo count($poll['answers']); ?>" selected>
1397 <?php echo count($poll['answers']); ?>
1398 </option>
1399 </select>
1400 <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1401 </div>
1402 </div>
1403 <hr class="if-voting if-rating">
1404 <div class="form-group row">
1405 <div class="col-sm-12 only_pro" style="padding:15px;">
1406 <div class="pro_features pro_features_popup">
1407 <div class="pro-features-popup-conteiner">
1408 <div class="pro-features-popup-title">
1409 <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1410 </div>
1411 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1412 <p>
1413 <?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"); ?>
1414 </p>
1415 </div>
1416 <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 ); ?>">
1417 <?php echo esc_html__("Pricing", "poll-maker"); ?>
1418 </div>
1419 </div>
1420 </div>
1421 <div class="pro_features" style="justify-content:flex-end;">
1422 </div>
1423 <div class="form-group row">
1424 <div class="col-1">
1425 <input type="checkbox" name="ays_add_f_votes"
1426 value="on">
1427 </div>
1428 <div class="col-11 unset-padding-left">
1429 <label for="ays_add_f_votes">
1430 <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1431 <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"); ?>">
1432 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1433 </a>
1434 </label>
1435 </div>
1436 </div>
1437 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1438 <div class="ays-poll-new-upgrade-button-box">
1439 <div>
1440 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1441 <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">
1442 </div>
1443 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1444 </div>
1445 </a>
1446 <div class="ays-poll-new-watch-video-button-box">
1447 <div>
1448 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1449 <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">
1450 </div>
1451 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1452 </div>
1453 </div>
1454 </div>
1455 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1456 <div class="if-text poll-type-block form-group row">
1457 <div class="col-sm-3">
1458 <label for="">
1459 <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1460 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1461 <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1462 <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>
1463 <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>">
1464 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1465 </a>
1466 </label>
1467 </div>
1468 <div class="col-sm-9 answers-col row">
1469 <div class="d-flex" style="padding: 0 15px;">
1470 <div class="form-check-inline">
1471 <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" : ""; ?>>
1472 <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1473 </label>
1474 </div>
1475 <div class="form-check-inline">
1476 <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" : ""; ?>>
1477 <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1478 </label>
1479 </div>
1480 </div>
1481 </div>
1482 </div>
1483 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1484 <div class="if-text poll-type-block form-group row">
1485 <div class="col-sm-3">
1486 <label for='ays_poll_text_type_placeholder'>
1487 <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1488 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1489 title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1491 </a>
1492 </label>
1493 </div>
1494 <div class="col-sm-3 ays_divider_left">
1495 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1496 </div>
1497 </div>
1498 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1499 <div class="if-text poll-type-block form-group row">
1500 <div class="col-sm-3">
1501 <label for='ays_poll_text_type_width'>
1502 <?php echo esc_html__("Width", "poll-maker"); ?>
1503 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1504 title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1505 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1506 </a>
1507 </label>
1508 </div>
1509 <div class="col-sm-3 ays_divider_left">
1510 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1511 </div>
1512 <div class="col-sm-6">
1513 <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">
1514 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1515 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1516 </select>
1517 </div>
1518 </div>
1519 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1520 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1521 <div class="col-sm-3">
1522 <label for="ays_poll_enable_question_length">
1523 <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1524 <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" ); ?>">
1525 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1526 </a>
1527 </label>
1528 </div>
1529 <div class="col-sm-1 ays_divider_left">
1530 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_question_length" name="ays_poll_enable_question_length" value="on" <?php echo ($poll_text_type_length_enable) ? 'checked' : ''; ?>>
1531 </div>
1532 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1533 <div class="form-group row">
1534 <div class="col-sm-4">
1535 <label for="ays_poll_question_limit_text_type">
1536 <?php echo esc_html__('Limit by', "poll-maker"); ?>
1537 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1538 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1539 </a>
1540 </label>
1541 </div>
1542 <div class="col-sm-8">
1543 <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%;">
1544 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1545 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1546 </select>
1547 </div>
1548 </div>
1549 <hr>
1550 <div class="form-group row">
1551 <div class="col-sm-4">
1552 <label for="ays_poll_question_text_max_length">
1553 <?php echo esc_html__('Length', "poll-maker"); ?>
1554 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1555 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1556 </a>
1557 </label>
1558 </div>
1559 <div class="col-sm-8">
1560 <input type="number" id="ays_poll_question_text_max_length" class="ays-text-input" name="ays_poll_question_text_max_length" value="<?php echo $poll_text_type_limit_length; ?>" style="width: 100%;">
1561 </div>
1562 </div>
1563 <hr>
1564 <div class="form-group row">
1565 <div class="col-sm-4">
1566 <label for="ays_poll_question_enable_text_message">
1567 <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1568 <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"); ?>">
1569 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1570 </a>
1571 </label>
1572 </div>
1573 <div class="col-sm-8">
1574 <div class="form-check form-check-inline">
1575 <input type="checkbox" id="ays_poll_question_enable_text_message" name="ays_poll_question_enable_text_message" value="on" <?php echo ($poll_text_type_limit_message) ? "checked" : ""; ?> />
1576 </div>
1577 </div>
1578 </div>
1579 </div>
1580 </div>
1581 </div>
1582 </div>
1583 </div>
1584 <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1585 <p class="ays-subtitle">
1586 <?php echo esc_html__('Styling options', "poll-maker"); ?>
1587 </p>
1588 <hr>
1589 <div class="form-group row ays-poll-all-themes-container">
1590 <div class="col-sm-1">
1591 <label for='ays-poll-theme' class="ays_label_flex">
1592 <?php echo esc_html__('Theme', "poll-maker"); ?>
1593 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1594 title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1595 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1596 </a>
1597 </label>
1598 </div>
1599 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1600 <div class="ays_poll_theme_image_div col">
1601 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1602 <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1603 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1604 alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1605 </label>
1606 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1607 value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1608 </div>
1609 <div class="ays_poll_theme_image_div col">
1610 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1611 <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1612 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1613 alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1614 </label>
1615 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1616 value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1617 </div>
1618 <div class="ays_poll_theme_image_div col">
1619 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1620 <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1621 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1622 alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1623 </label>
1624 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1625 value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1626 </div>
1627 <div class="col">
1628 <div class="form-group row" style="margin: 0px;">
1629 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1630 <div class="pro_features" style="justify-content:flex-end;">
1631 </div>
1632 <div class="ays_poll_theme_image_div_pro">
1633 <div class="ays_poll_theme_image_div col apm-pro-feature">
1634 <label class="ays-poll-theme-item">
1635 <p>Light Shape</p>
1636 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1637 alt="Light Shape"
1638 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1639 </label>
1640 </div>
1641 <div class="ays_poll_theme_image_div col apm-pro-feature">
1642 <label class="ays-poll-theme-item">
1643 <p>Dark Shape</p>
1644 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1645 alt="Light Shape"
1646 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1647 </label>
1648 </div>
1649 <div class="ays_poll_theme_image_div col apm-pro-feature">
1650 <label class="ays-poll-theme-item">
1651 <p>Coffee Fluid</p>
1652 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1653 alt="Coffee Fluid"
1654 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1655 </label>
1656 </div>
1657 <div class="ays_poll_theme_image_div col apm-pro-feature">
1658 <label class="ays-poll-theme-item">
1659 <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1660 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1661 alt="Aquamarine"
1662 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1663 </label>
1664 </div>
1665 </div>
1666 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1667 <div class="ays-poll-new-upgrade-button-box">
1668 <div>
1669 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1670 <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">
1671 </div>
1672 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1673 </div>
1674 </a>
1675 </div>
1676 </div>
1677 </div>
1678 </div>
1679 </div>
1680 <hr>
1681 <div class="col ays-poll-styles-page-main-container">
1682 <div class="row">
1683 <div class="col-lg-6 col-sm-12">
1684 <div class="ays-poll-accordion-options-main-container">
1685 <div class="ays-poll-accordion-header">
1686 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1687 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1688 </div>
1689 <hr class="ays-poll-bolder-hr"/>
1690 <div class="ays-poll-accordion-body">
1691 <div class="form-group row">
1692 <div class="col-sm-4">
1693 <label for='ays-poll-main-color'>
1694 <?php echo esc_html__('Main Color', "poll-maker"); ?>
1695 <a class="ays_help"
1696 data-toggle="tooltip"
1697 data-placement="top"
1698 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"); ?>">
1699 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1700 </a>
1701 </label>
1702 </div>
1703 <div class="col-sm-8 ays_divider_left">
1704 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1705 name='ays_poll_main_color'
1706 value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1707 </div>
1708 </div>
1709 <hr>
1710 <div class="form-group row">
1711 <div class="col-sm-4">
1712 <label for='ays-poll-text-color'>
1713 <?php echo esc_html__('Text Color', "poll-maker"); ?>
1714 <a class="ays_help"
1715 data-toggle="tooltip"
1716 data-placement="top"
1717 title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1718 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1719 </a>
1720 </label>
1721 </div>
1722 <div class="col-sm-8 ays_divider_left">
1723 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1724 name='ays_poll_text_color'
1725 value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1726 </div>
1727 </div>
1728 <hr>
1729 <div class="form-group row">
1730 <div class="col-sm-4">
1731 <label for='ays-poll-icon-color'>
1732 <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1733 <a class="ays_help"
1734 data-toggle="tooltip"
1735 data-placement="top"
1736 title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1737 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1738 </a>
1739 </label>
1740 </div>
1741 <div class="col-sm-8 ays_divider_left">
1742 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1743 name='ays_poll_icon_color'
1744 value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1745 </div>
1746 </div>
1747 <hr>
1748 <div class="form-group row">
1749 <div class="col-sm-4">
1750 <label for='ays-poll-bg-color'>
1751 <?php echo esc_html__('Background Color', "poll-maker"); ?>
1752 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1753 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1754 </a>
1755 </label>
1756 </div>
1757 <div class="col-sm-8 ays_divider_left">
1758 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1759 name='ays_poll_bg_color'
1760 value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1761 </div>
1762 </div>
1763 <hr>
1764 <div class="form-group row">
1765 <div class="col-sm-4">
1766 <label for='ays-poll-bg-image'>
1767 <?php echo esc_html__('Background Image', "poll-maker"); ?>
1768 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1769 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"); ?>">
1770 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1771 </a>
1772 </label>
1773 </div>
1774 <div class="col-sm-8 ays_divider_left">
1775 <a href="javascript:void(0)" class="add-bg-image button">
1776 <?php echo esc_html($image_text_bg); ?>
1777 </a>
1778 <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1779 <div class="ays-poll-bg-image-container">
1780 <span class="ays-remove-bg-img"></span>
1781 <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1782 id="ays-poll-bg-img"/>
1783 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1784 value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1785 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1786 value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1787 </div>
1788 </div>
1789 <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1790 <hr>
1791 <div class="form-group row">
1792 <div class="col-sm-12">
1793 <label for="ays_poll_bg_image_position">
1794 <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1795 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1796 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1797 </a>
1798 </label>
1799 <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;">
1800 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1801 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1802 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1803 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1804 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1805 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1806 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1807 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1808 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1809 </select>
1810 </div>
1811 </div>
1812 <hr>
1813 <div class="form-group row">
1814 <div class="col-sm-8">
1815 <label for="ays_poll_bg_img_in_finish_page">
1816 <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1817 <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")?>">
1818 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1819 </a>
1820 </label>
1821 </div>
1822 <div class="col-sm-4">
1823 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1824 id="ays_poll_bg_img_in_finish_page"
1825 name="ays_poll_bg_img_in_finish_page"
1826 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1827 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1828 </div>
1829 </div>
1830 </div>
1831 </div>
1832 </div>
1833 <hr>
1834 <div class="form-group row">
1835 <div class="col-sm-4">
1836 <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1837 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1838 title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1839 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1840 </a>
1841 </label>
1842 </div>
1843 <div class="col-sm-8 ays_divider_left">
1844 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1845 id="ays_poll_enable_box_shadow"
1846 name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1847 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1848 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1849 style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1850 <label for="ays-poll-box-shadow-color">
1851 <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1852 <a class="ays_help" data-toggle="tooltip"
1853 title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1854 <i class="ays_fa ays_fa_info_circle"></i>
1855 </a>
1856 </label>
1857 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1858 name='ays_poll_box_shadow_color'
1859 value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1860 </div>
1861 <!---->
1862 <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1863 <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1864 <div class="col-sm-12">
1865 <div class="col-sm-3" style="display: inline-block;">
1866 <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); ?>" />
1867 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1868 </div>
1869 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1870 <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); ?>" />
1871 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1872 </div>
1873 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1874 <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); ?>" />
1875 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1876 </div>
1877 </div>
1878 </div>
1879 <!---->
1880 </div>
1881 </div>
1882 <hr>
1883 <!-- ---------Aro start gradient -->
1884 <div class="form-group row">
1885 <div class="col-sm-4">
1886 <label for="ays-enable-background-gradient">
1887 <?php echo esc_html__('Background Gradient', "poll-maker")?>
1888 <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")?>">
1889 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1890 </a>
1891 </label>
1892 </div>
1893 <div class="col-sm-8 ays_divider_left">
1894 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1895 id="ays-enable-background-gradient"
1896 name="ays_enable_background_gradient"
1897 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1898 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1899 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1900 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1901 <label for='ays-background-gradient-color-1'>
1902 <?php echo esc_html__('Color 1', "poll-maker"); ?>
1903 </label>
1904 <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); ?>"/>
1905 </div>
1906 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1907 <label for='ays-background-gradient-color-2'>
1908 <?php echo esc_html__('Color 2', "poll-maker"); ?>
1909 </label>
1910 <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); ?>"/>
1911 </div>
1912 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1913 <label for="ays_poll_gradient_direction">
1914 <?php echo esc_html__('Gradient direction',"poll-maker")?>
1915 </label>
1916 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1917 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1918 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1919 <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>
1920 <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>
1921 </select>
1922 </div>
1923 </div>
1924 </div>
1925 </div>
1926 <hr>
1927 <div class="form-group row ays_toggle_parent">
1928 <div class="col-sm-4">
1929 <label for="ays_poll_image_text_logo">
1930 <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1931 <a class="ays_help" data-toggle="tooltip"
1932 data-placement="top"
1933 title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1934 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1935 </a>
1936 </label>
1937 </div>
1938 <div class="col-sm-8 ays_logo_container ays_divider_left">
1939 <div class="form-group row">
1940 <div class="col-sm-4">
1941 <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1942 </div>
1943 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1944 <div class="ays-poll-logo-image-container">
1945 <div class="col-sm-3" style="padding:0;">
1946 <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1947 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1948 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1949 value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1950 </div>
1951 <div class="col-sm-9">
1952 <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1953 </div>
1954 </div>
1955 </div>
1956 </div>
1957 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1958 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1959 <div class="col-sm-4 ">
1960 <label for="ays_disable_answer_hover">
1961 <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1962 <a class="ays_help" data-toggle="tooltip"
1963 data-placement="top"
1964 title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1965 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1966 </a>
1967 </label>
1968 </div>
1969 <div class="col-sm-8 ays_divider_left">
1970 <input type="checkbox"
1971 name="ays_poll_logo_enable_image_url"
1972 id="ays_poll_logo_enable_image_url"
1973 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1974 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1975 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1976 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
1977 <input type="text"
1978 name="ays_poll_logo_image_url"
1979 id="ays_poll_logo_image_url"
1980 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
1981 </div>
1982 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1983 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1984 <div class="col-sm-6">
1985 <label for="ays_poll_logo_enable_image_url_new_tab">
1986 <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
1987 <a class="ays_help" data-toggle="tooltip"
1988 data-placement="top"
1989 title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
1990 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1991 </a>
1992 </label>
1993 </div>
1994 <div class="col-sm-6">
1995 <input type="checkbox"
1996 name="ays_poll_logo_enable_image_url_new_tab"
1997 id="ays_poll_logo_enable_image_url_new_tab"
1998 value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
1999 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
2000 </div>
2001 </div>
2002 </div>
2003 </div>
2004 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2005 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2006 <div class="col-sm-4">
2007 <label for="ays_poll_logo_title">
2008 <?php echo esc_html__('Logo title', "poll-maker"); ?>
2009 <a class="ays_help" data-toggle="tooltip"
2010 data-placement="top"
2011 title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
2012 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2013 </a>
2014 </label>
2015 </div>
2016 <div class="col-sm-8 ays_divider_left">
2017 <input type="text" class="ays-text-input" name="ays_poll_logo_title" id="ays_poll_logo_title" value="<?php echo esc_attr($poll_logo_title); ?>">
2018 </div>
2019 </div>
2020 </div>
2021 </div>
2022 <!-- Poll logo start -->
2023 <hr>
2024 <div class="form-group row">
2025 <div class="col-sm-4">
2026 <label for='ays-poll-title-bg-color'>
2027 <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
2028 <a class="ays_help"
2029 data-toggle="tooltip"
2030 data-placement="top"
2031 title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
2032 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2033 </a>
2034 </label>
2035 </div>
2036 <div class="col-sm-8 ays_divider_left">
2037 <input type="text" class="ays-text-input" data-alpha="true"
2038 id='ays-poll-title-bg-color'
2039 name='ays_poll_title_bg_color'
2040 value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2041 </div>
2042 </div>
2043 <hr>
2044 <div class="form-group row">
2045 <div class="col-sm-4">
2046 <label for='ays_poll_title_font_size'>
2047 <?php echo esc_html__('Title font size', "poll-maker"); ?>
2048 <a class="ays_help"
2049 data-toggle="tooltip"
2050 data-placement="top"
2051 title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
2052 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2053 </a>
2054 </label>
2055 </div>
2056 <div class="col-sm-8 ays_divider_left">
2057 <div>
2058 <div>
2059 <label for='ays_poll_title_font_size'>
2060 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2061 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2062 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2063 </a>
2064 </label>
2065 </div>
2066 <div>
2067 <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); ?>"/>
2068 </div>
2069 </div>
2070 <hr>
2071 <div>
2072 <div>
2073 <label for='ays_poll_title_font_size_mobile'>
2074 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2075 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2077 </a>
2078 </label>
2079 </div>
2080 <div>
2081 <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);?>">
2082 </div>
2083 </div>
2084 </div>
2085 </div>
2086 <hr>
2087 <div class="form-group row">
2088 <div class="col-sm-4">
2089 <label for='ays_poll_title_alignment'>
2090 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2091 <a class="ays_help"
2092 data-toggle="tooltip"
2093 data-placement="top"
2094 title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2095 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2096 </a>
2097 </label>
2098 </div>
2099 <div class="col-sm-8 ays_divider_left">
2100 <div>
2101 <div>
2102 <label for='ays_poll_title_alignment'>
2103 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2104 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2105 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2106 </a>
2107 </label>
2108 </div>
2109 <div>
2110 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2111 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2112 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2113 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2114 </select>
2115 </div>
2116 </div>
2117 <hr>
2118 <div>
2119 <div>
2120 <label for='ays_poll_title_alignment_mobile'>
2121 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2122 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2123 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2124 </a>
2125 </label>
2126 </div>
2127 <div>
2128 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2129 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2130 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2131 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2132 </select>
2133 </div>
2134 </div>
2135 </div>
2136 </div>
2137 <hr>
2138 <!-- title text shadow start -->
2139 <div class="form-group row">
2140 <div class="col-sm-4">
2141 <label for="ays_poll_enable_title_text_shadow">
2142 <?php echo esc_html__('Title text shadow', "poll-maker")?>
2143 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2144 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2145 </a>
2146 </label>
2147 </div>
2148 <div class="col-sm-8 ays_divider_left">
2149 <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' : ''; ?>/>
2150 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2151 <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;' ?>">
2152 <label for='ays_poll_title_text_shadow_color'>
2153 <?php echo esc_html__('Color', "poll-maker"); ?>
2154 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2155 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2156 </a>
2157 </label>
2158 <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); ?>"/>
2159 </div>
2160 <!---->
2161 <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2162 <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2163 <div class="col-sm-12">
2164 <div class="col-sm-3" style="display: inline-block;">
2165 <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; ?>" />
2166 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2167 </div>
2168 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2169 <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; ?>" />
2170 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2171 </div>
2172 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2173 <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; ?>" />
2174 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2175 </div>
2176 </div>
2177 </div>
2178 <!---->
2179 </div>
2180 </div>
2181 <!-- title text shadow end -->
2182 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2183 <hr>
2184 <div class="form-group row">
2185 <div class="col-sm-4">
2186 <label for='ays-poll-icon-size'>
2187 <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2188 <a class="ays_help"
2189 data-toggle="tooltip"
2190 data-placement="top"
2191 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"); ?>">
2192 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2193 </a>
2194 </label>
2195 </div>
2196 <div class="col-sm-8 ays_divider_left">
2197 <input type="number" class="ays-text-input ays-text-input-short"
2198 id='ays-poll-icon-size' name='ays_poll_icon_size'
2199 value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2200 </div>
2201 </div>
2202 </div>
2203 <hr>
2204 <div class="form-group row">
2205 <div class="col-sm-4">
2206 <label for='ays-poll-width'>
2207 <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2208 <a class="ays_help"
2209 data-toggle="tooltip"
2210 data-placement="top"
2211 title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2213 </a>
2214 </label>
2215 </div>
2216 <div class="col-sm-8 ays_divider_left">
2217 <div>
2218 <div>
2219 <label for='ays-poll-width'>
2220 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2221 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2222 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2223 </a>
2224 </label>
2225 </div>
2226 <div>
2227 <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'] ?>"/>
2228 </div>
2229 </div>
2230 <hr>
2231 <div>
2232 <div>
2233 <label for='ays_poll_width_for_mobile'>
2234 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2235 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2237 </a>
2238 </label>
2239 </div>
2240 <div>
2241 <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 ?>"/>
2242 <p class="ays_poll_small_hint_text_for_message_variables">
2243 <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2244 </p>
2245 </div>
2246 </div>
2247 </div>
2248 </div>
2249 <hr/>
2250 <div class="form-group row">
2251 <div class="col-sm-4">
2252 <label for='ays_poll_min_height'>
2253 <?php echo esc_html__('Min-height', "poll-maker"); ?>
2254 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2255 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2256 </a>
2257 </label>
2258 </div>
2259 <div class="col-sm-8 ays_divider_left">
2260 <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); ?>"/>
2261 </div>
2262 </div>
2263 <hr>
2264 <div class="form-group row">
2265 <div class="col-sm-4">
2266 <label for='ays_poll_mobile_max_width'>
2267 <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2268 <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")?>">
2269 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2270 </a>
2271 </label>
2272 </div>
2273 <div class="col-sm-8 ays_divider_left">
2274 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2275 name='ays_poll_mobile_max_width' style="display: inline-block;"
2276 value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2277 <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2278 </div>
2279 </div> <!-- Poll max-width for mobile -->
2280 <hr>
2281 </div>
2282 </div>
2283 <div class="ays-poll-accordion-options-main-container">
2284 <div class="ays-poll-accordion-header">
2285 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2286 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2287 </div>
2288 <hr class="ays-poll-bolder-hr"/>
2289 <div class="ays-poll-accordion-body">
2290 <div class="form-group row">
2291 <div class="col-sm-4">
2292 <label for='ays_questions_font_size'>
2293 <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2294 <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")?>">
2295 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2296 </a>
2297 </label>
2298 </div>
2299 <div class="col-sm-8 ays_divider_left">
2300 <div>
2301 <div>
2302 <label for='ays_questions_font_size'>
2303 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2304 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2305 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2306 </a>
2307 </label>
2308 </div>
2309 <div>
2310 <input type="number" class="ays-text-input ays-text-input-short ays-poll-question-font-size" name="ays_poll_answers_font_size_pc" id="ays_questions_font_size" value="<?php echo $poll_question_font_size_pc;?>">
2311 </div>
2312 </div>
2313 <hr>
2314 <div>
2315 <div>
2316 <label for='ays_poll_answers_font_size_mobile'>
2317 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2318 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2319 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2320 </a>
2321 </label>
2322 </div>
2323 <div>
2324 <input type="number" class="ays-text-input ays-text-input-short ays-poll-question-font-size" name="ays_poll_answers_font_size_mobile" id="ays_poll_answers_font_size_mobile" value="<?php echo $poll_question_font_size_mobile;?>">
2325 </div>
2326 </div>
2327 </div>
2328 </div><!-- Question font size -->
2329 <hr>
2330 <div class="form-group row">
2331 <div class="col-sm-4">
2332 <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2333 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2334 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2335 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2336 </a>
2337 </label>
2338 </div>
2339 <div class="col-sm-8 ays_divider_left">
2340 <input type="number"
2341 class="ays-text-input ays-text-input-short"
2342 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2343 value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2344 </div>
2345 </div><!-- Question image height -->
2346 <hr>
2347 <div class="form-group row">
2348 <div class="col-sm-4">
2349 <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2350 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2351 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2352 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2353 </a>
2354 </label>
2355 </div>
2356 <div class="col-sm-8 ays_divider_left">
2357 <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">
2358 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2359 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2360 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2361 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2362 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2363 </select>
2364 </div>
2365 </div><!-- Question image object fit -->
2366 <hr>
2367 </div>
2368 </div>
2369 <div class="ays-poll-accordion-options-main-container">
2370 <div class="ays-poll-accordion-header">
2371 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2372 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2373 </div>
2374 <hr class="ays-poll-bolder-hr"/>
2375 <div class="ays-poll-accordion-body">
2376 <div class="form-group row">
2377 <div class="col-sm-4">
2378 <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2379 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2380 title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2381 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2382 </a>
2383 </label>
2384 </div>
2385 <div class="col-sm-8 ays_divider_left">
2386 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2387 id="ays_poll_enable_answer_style"
2388 name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2389 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2390 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2391 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2392 <label for="ays-poll-box-shadow-color">
2393 <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2394 <a class="ays_help" data-toggle="tooltip"
2395 title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2396 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2397 </a>
2398 </label>
2399 <input type="text" class="ays-text-input" data-alpha="true"
2400 id='ays-poll-answer-bg-color'
2401 name='ays_poll_answer_bg_color'
2402 value="<?php echo esc_attr($answer_bg_color); ?>"/>
2403 </div>
2404 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2405 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2406 <label for="ays-poll-answer-hover-color">
2407 <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2408 <a class="ays_help" data-toggle="tooltip"
2409 title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2410 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2411 </a>
2412 </label>
2413 <input type="text" class="ays-text-input" data-alpha="true"
2414 id='ays-poll-answer-hover-color'
2415 name='ays_poll_answer_hover_color'
2416 value="<?php echo esc_attr($answer_hover_color); ?>"/>
2417 </div>
2418 <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;' ?>">
2419 <div>
2420 <label for='ays-poll-border-side'>
2421 <?php echo esc_html__('Border side', "poll-maker"); ?>
2422 <a class="ays_help"
2423 data-toggle="tooltip"
2424 data-placement="top"
2425 title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2426 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2427 </a>
2428 </label>
2429 </div>
2430 <div id="ays-poll-border-side-box">
2431 <select name="ays_poll_border_side" id="ays-poll-border-side"
2432 class="ays-select ays-select-short ays_poll_aysDropdown">
2433 <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2434 <?php echo esc_html__("All sides", "poll-maker"); ?>
2435 </option>
2436 <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2437 <?php echo esc_html__("None", "poll-maker"); ?>
2438 </option>
2439 <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2440 <?php echo esc_html__("Top", "poll-maker"); ?>
2441 </option>
2442 <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2443 <?php echo esc_html__("Bottom", "poll-maker"); ?>
2444 </option>
2445 <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2446 <?php echo esc_html__("Left", "poll-maker"); ?>
2447 </option>
2448 <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2449 <?php echo esc_html__("Right", "poll-maker"); ?>
2450 </option>
2451 </select>
2452 </div>
2453 </div>
2454 <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;' ?>">
2455 <div>
2456 <label for='ays_answer_font_size'>
2457 <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2458 <a class="ays_help"
2459 data-toggle="tooltip"
2460 data-placement="top"
2461 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"); ?>">
2462 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2463 </a>
2464 </label>
2465 </div>
2466 <div class="ays_answer_font_size_box">
2467 <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;?>">
2468 </div>
2469 </div>
2470 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2471 <div>
2472 <label for='ays_poll_answer_font_size_mobile'>
2473 <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2474 <a class="ays_help"
2475 data-toggle="tooltip"
2476 data-placement="top"
2477 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"); ?>">
2478 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2479 </a>
2480 </label>
2481 </div>
2482 <div class="ays_answer_font_size_box">
2483 <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;?>">
2484 </div>
2485 </div>
2486 <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;' ?>">
2487 <div>
2488 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2489 <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2490 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2491 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2492 </a>
2493 </label>
2494 </div>
2495 <div>
2496 <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; ?>" />
2497 </div>
2498 </div> <!-- Answers image height -->
2499 <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;' ?>">
2500 <div>
2501 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2502 <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2503 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2504 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2505 </a>
2506 </label>
2507 </div>
2508 <div>
2509 <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; ?>" />
2510 </div>
2511 </div> <!-- Answers image height for mobile-->
2512 <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;' ?>">
2513 <div>
2514 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2515 <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2516 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2517 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2518 </a>
2519 </label>
2520 </div>
2521 <div>
2522 <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; ?>" />
2523 </div>
2524 </div> <!-- Answers image border radius -->
2525 <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;' ?>">
2526 <div >
2527 <label for="ays_poll_image_background_size">
2528 <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2529 <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"); ?>">
2530 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2531 </a>
2532 </label>
2533 </div>
2534 <div id="ays_poll_image_background_size_box">
2535 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2536 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2537 <?php echo esc_html__('Cover', "poll-maker")?>
2538 </option>
2539 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2540 <?php echo esc_html__('Fill', "poll-maker")?>
2541 </option>
2542 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2543 <?php echo esc_html__('Contain', "poll-maker")?>
2544 </option>
2545 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2546 <?php echo esc_html__('Scale-down', "poll-maker")?>
2547 </option>
2548 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2549 <?php echo esc_html__('None', "poll-maker")?>
2550 </option>
2551 </select>
2552 </div>
2553 </div> <!-- Answer image object fit -->
2554 <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;' ?>">
2555 <div>
2556 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2557 <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2558 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2559 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2560 </a>
2561 </label>
2562 </div>
2563 <div>
2564 <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); ?>"/>
2565 </div>
2566 </div> <!-- Answers padding -->
2567 <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;' ?>">
2568 <div >
2569 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2570 <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2571 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2572 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2573 </a>
2574 </label>
2575 </div>
2576 <div>
2577 <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; ?>" />
2578 </div>
2579 </div> <!-- Answers gap -->
2580 <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;' ?>">
2581 <div>
2582 <label for="ays_poll_answer_border_radius">
2583 <?php echo esc_html__('Answer border radius', "poll-maker")?>
2584 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2585 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2586 </a>
2587 </label>
2588 </div>
2589 <div>
2590 <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); ?>"/>
2591 </div>
2592 </div> <!-- Answers border radius -->
2593 </div>
2594 </div>
2595 <hr>
2596 <div class="form-group row">
2597 <div class="col-sm-4">
2598 <label for="ays_poll_show_answers_icon">
2599 <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2600 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2601 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2602 </a>
2603 </label>
2604 </div>
2605 <div class="col-sm-8 ays_divider_left">
2606 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_show_answers_icon" name="ays_poll_show_answers_icon" <?php echo ($poll_answer_icon_check) ? 'checked' : ''; ?> />
2607 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2608 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2609 <div class="form-check form-check-inline">
2610 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2611 <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' : ''; ?> />
2612 </label>
2613 </div>
2614 <div class="form-check form-check-inline">
2615 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2616 <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' : ''; ?> />
2617 </label>
2618 </div>
2619 </div>
2620 </div>
2621 </div> <!-- Answer icon -->
2622 <hr>
2623 <div class="form-group row">
2624 <div class="col-sm-4">
2625 <label for="ays_answers_view" class="ays_enable_answer_style">
2626 <?php echo esc_html__('Answer view', "poll-maker")?>
2627 <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")?>">
2628 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2629 </a>
2630 </label>
2631 </div>
2632 <div class="col-sm-8">
2633 <div class="form-group row">
2634 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2635 <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">
2636 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2637 <?php echo esc_html__('List', "poll-maker")?>
2638 </option>
2639 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2640 <?php echo esc_html__('Grid', "poll-maker")?>
2641 </option>
2642 </select>
2643 </div>
2644 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2645 <select class="ays-text-input ays-text-input-short ays_enable_answer_field" id="ays_answers_grid_column" name="ays_answers_grid_column" style="width: 70px;">
2646 <option value='2' selected>
2647 2
2648 </option>
2649 <option value='3' class="ays-poll-grid-type-columns">
2650 3
2651 </option>
2652 <option value='4' class="ays-poll-grid-type-columns">
2653 4
2654 </option>
2655 </select>
2656 </div>
2657 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2658 <div class="col-sm-8" style="display:flex;align-items:center;">
2659 <label for="ays_answers_grid_column_mobile">
2660 <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2661 </label>
2662 <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")?>">
2663 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2664 </a>
2665 </div>
2666 <div class="col-sm-1 ays_divider_left">
2667 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_answers_grid_column_mobile" name="ays_answers_grid_column_mobile" <?php echo ($answers_grid_column_mobile) ? 'checked' : ''; ?> value='on'/>
2668 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2669 </div>
2670 </div>
2671 </div>
2672 </div>
2673 </div> <!-- Answers view -->
2674 <hr>
2675 <div class="form-group row">
2676 <div class="col-sm-4">
2677 <label for="ays_poll_answers_box_shadow_enable">
2678 <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2679 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2680 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2681 </a>
2682 </label>
2683 </div>
2684 <div class="col-sm-8 ays_divider_left">
2685 <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" : ""; ?>>
2686 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2687 <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;"; ?>">
2688 <label for="ays_poll_answers_box_shadow_color">
2689 <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2690 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2691 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2692 </a>
2693 </label>
2694 <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">
2695 </div>
2696 <!---->
2697 <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2698 <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2699 <div class="col-sm-12">
2700 <div class="col-sm-3" style="display: inline-block;">
2701 <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; ?>" />
2702 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2703 </div>
2704 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2705 <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; ?>" />
2706 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2707 </div>
2708 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2709 <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; ?>" />
2710 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2711 </div>
2712 </div>
2713 </div>
2714 <!---->
2715 </div>
2716 </div> <!-- Answers box shadow -->
2717 <hr>
2718 <div class="form-group row">
2719 <div class="col-sm-4">
2720 <label for="ays_disable_answer_hover">
2721 <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2722 <a class="ays_help" data-toggle="tooltip"
2723 data-placement="top"
2724 title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2725 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2726 </a>
2727 </label>
2728 </div>
2729 <div class="col-sm-8 ays_divider_left">
2730 <input type="checkbox"
2731 name="ays_disable_answer_hover"
2732 id="ays_disable_answer_hover"
2733 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2734 >
2735 </div>
2736 </div>
2737 <hr>
2738 <!--PRO ANSWER STYLEs-->
2739 <div class="form-group row">
2740 <div class="col-sm-12 only_pro">
2741 <div class="pro_features" style="justify-content:flex-end;">
2742 </div>
2743 <div class="form-group row" style="padding: 15px 15px 0">
2744 <div class="" style="width: 100%;">
2745 <div class="form-group row">
2746 <div class="col-sm-5">
2747 <label for="ays_answers_border">
2748 <?php echo esc_html__('Answer border', "poll-maker")?>
2749 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2750 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2751 </a>
2752 </label>
2753 </div>
2754 <div class="col-sm-7 ays_divider_left">
2755 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2756 checked/>
2757 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2758 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2759 <label for="ays_answers_border_width">
2760 <?php echo esc_html__('Border width', "poll-maker")?> (px)
2761 <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")?>">
2762 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2763 </a>
2764 </label>
2765 <input type="number" class="ays-text-input"
2766 value="" min="0"/>
2767 </div>
2768 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2769 <label for="ays_answers_border_style">
2770 <?php echo esc_html__('Border style', "poll-maker")?>
2771 <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")?>">
2772 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2773 </a>
2774 </label>
2775 <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2776 <option>Solid</option>
2777 </select>
2778 </div>
2779 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2780 <label for="ays_answers_border_color">
2781 <?php echo esc_html__('Border color', "poll-maker")?>
2782 <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")?>">
2783 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2784 </a>
2785 </label>
2786 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2787 </div>
2788 </div>
2789 </div> <!-- Answers border -->
2790 <hr/>
2791 <div class="form-group row ays_grid_show">
2792 <div class="col-sm-5">
2793 <label for="ays_poll_show_answers_caption">
2794 <?php echo esc_html__('Show answers caption', "poll-maker")?>
2795 <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"); ?>">
2796 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2797 </a>
2798 </label>
2799 </div>
2800 <div class="col-sm-7 ays_divider_left">
2801 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2802 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2803 </div>
2804 </div> <!-- Show answers caption -->
2805 <hr/>
2806 <div class="form-group row">
2807 <div class="col-sm-5">
2808 <label for="ays_ans_img_caption_style">
2809 <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2810 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2811 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2812 </a>
2813 </label>
2814 </div>
2815 <div class="col-sm-7 ays_divider_left">
2816 <select class="ays-text-input ays-text-input-short">
2817 <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2818 </select>
2819 </div>
2820 </div> <!-- Answers image caption style -->
2821 <hr/>
2822 <div class="form-group row">
2823 <div class="col-sm-5">
2824 <label for="ays_ans_img_caption_position">
2825 <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2826 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2827 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2828 </a>
2829 </label>
2830 </div>
2831 <div class="col-sm-7 ays_divider_left">
2832 <select class="ays-text-input ays-text-input-short">
2833 <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2834 </select>
2835 </div>
2836 </div> <!-- Answers image caption position -->
2837 <hr>
2838 </div>
2839 </div>
2840 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2841 <div class="ays-poll-new-upgrade-button-box">
2842 <div>
2843 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2844 <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">
2845 </div>
2846 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2847 </div>
2848 </a>
2849 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2850 <div class="ays-poll-center-big-main-button-box">
2851 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2852 <div class="ays-poll-center-new-big-upgrade-button">
2853 <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">
2854 <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">
2855 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2856 </div>
2857 </a>
2858 </div>
2859 </div>
2860 </div>
2861 </div>
2862 <hr/>
2863 </div>
2864 </div>
2865 <div class="ays-poll-accordion-options-main-container">
2866 <div class="ays-poll-accordion-header">
2867 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2868 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2869 </div>
2870 <hr class="ays-poll-bolder-hr"/>
2871 <div class="ays-poll-accordion-body">
2872 <div class="form-group row">
2873 <div class="col-sm-4">
2874 <label for='ays-poll-border-style'>
2875 <?php echo esc_html__('Border style', "poll-maker"); ?>
2876 <a class="ays_help"
2877 data-toggle="tooltip"
2878 data-placement="top"
2879 title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2880 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2881 </a>
2882 </label>
2883 </div>
2884 <div class="col-sm-8 ays_divider_left">
2885 <select name="ays_poll_border_style" id="ays-poll-border-style"
2886 class="ays-select ays-select-short ays_poll_aysDropdown">
2887 <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2888 <?php echo esc_html__("Solid", "poll-maker"); ?>
2889 </option>
2890 <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2891 <?php echo esc_html__("Dashed", "poll-maker"); ?>
2892 </option>
2893 <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2894 <?php echo esc_html__("Dotted", "poll-maker"); ?>
2895 </option>
2896 <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
2897 <?php echo esc_html__("Double", "poll-maker"); ?>
2898 </option>
2899 <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2900 <?php echo esc_html__("Groove", "poll-maker"); ?>
2901 </option>
2902 <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2903 <?php echo esc_html__("Ridge", "poll-maker"); ?>
2904 </option>
2905 <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2906 <?php echo esc_html__("Inset", "poll-maker"); ?>
2907 </option>
2908 <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2909 <?php echo esc_html__("Outset", "poll-maker"); ?>
2910 </option>
2911 <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
2912 <?php echo esc_html__("None", "poll-maker"); ?>
2913 </option>
2914 </select>
2915 </div>
2916 </div>
2917 <hr>
2918 <div class="form-group row">
2919 <div class="col-sm-4">
2920 <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
2921 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2922 title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2923 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2924 </a>
2925 </label>
2926 </div>
2927 <div class="col-sm-8 ays_divider_left">
2928 <input type="number" min="0"
2929 class="ays-text-input ays-text-input-short"
2930 id='ays-poll-border-radius' name='ays_poll_border_radius'
2931 value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2932 </div>
2933 </div>
2934 <hr>
2935 <div class="form-group row">
2936 <div class="col-sm-4">
2937 <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
2938 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2939 title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2940 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2941 </a>
2942 </label>
2943 </div>
2944 <div class="col-sm-8 ays_divider_left">
2945 <input type="number" min="0"
2946 class="ays-text-input ays-text-input-short"
2947 id='ays-poll-border-width' name='ays_poll_border_width'
2948 value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
2949 </div>
2950 </div>
2951 <hr>
2952 <div class="form-group row">
2953 <div class="col-sm-4">
2954 <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
2955 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2956 title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
2957 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2958 </a>
2959 </label>
2960 </div>
2961 <div class="col-sm-8 ays_divider_left">
2962 <input type="text"
2963 class="ays-text-input"
2964 data-alpha="true"
2965 id='ays-poll-border-color'
2966 name='ays_poll_border_color'
2967 value="<?php echo esc_attr($default_border); ?>"/>
2968 </div>
2969 </div>
2970 <hr>
2971 <!-- Buttons Styles Start -->
2972 </div>
2973 </div>
2974 <div class="ays-poll-accordion-options-main-container">
2975 <div class="ays-poll-accordion-header">
2976 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2977 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
2978 </div>
2979 <hr class="ays-poll-bolder-hr"/>
2980 <div class="ays-poll-accordion-body">
2981 <div class="form-group row">
2982 <div class="col-sm-4">
2983 <label for="ays_poll_buttons_size">
2984 <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
2985 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2986 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2987 </a>
2988 </label>
2989 </div>
2990 <div class="col-sm-8 ays_divider_left">
2991 <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">
2992 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
2993 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
2994 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
2995 </select>
2996 </div>
2997 </div> <!-- Buttons Size -->
2998 <hr>
2999 <div class="form-group row">
3000 <div class="col-sm-4">
3001 <label for='ays-poll-button-text-color'>
3002 <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
3003 <a class="ays_help"
3004 data-toggle="tooltip"
3005 data-placement="top"
3006 title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3007 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3008 </a>
3009 </label>
3010 </div>
3011 <div class="col-sm-8 ays_divider_left">
3012 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
3013 name='ays_poll_button_text_color'
3014 value="<?php echo esc_attr($poll_button_text_color); ?>"/>
3015 </div>
3016 </div><!-- Buttons text color -->
3017 <hr>
3018 <div class="form-group row">
3019 <div class="col-sm-4">
3020 <label for='ays-poll-button-bg-color'>
3021 <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
3022 <a class="ays_help"
3023 data-toggle="tooltip"
3024 data-placement="top"
3025 title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
3026 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3027 </a>
3028 </label>
3029 </div>
3030 <div class="col-sm-8 ays_divider_left">
3031 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
3032 name='ays_poll_button_bg_color'
3033 value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
3034 </div>
3035 </div><!-- Buttons background color -->
3036 <hr>
3037 <div class="form-group row">
3038 <div class="col-sm-4">
3039 <label for='ays_poll_buttons_font_size'>
3040 <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3041 <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"); ?>">
3042 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3043 </a>
3044 </label>
3045 </div>
3046 <div class="col-sm-8 ays_divider_left">
3047 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_buttons_font_size' name='ays_poll_buttons_font_size' value="<?php echo $poll_buttons_font_size; ?>"/>
3048 </div>
3049 </div> <!-- Buttons font size -->
3050 <hr>
3051 <div class="form-group row">
3052 <div class="col-sm-4">
3053 <label for='ays_poll_buttons_mobile_font_size'>
3054 <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3055 <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"); ?>">
3056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3057 </a>
3058 </label>
3059 </div>
3060 <div class="col-sm-8 ays_divider_left">
3061 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_buttons_mobile_font_size' name='ays_poll_buttons_mobile_font_size' value="<?php echo $poll_buttons_mobile_font_size; ?>"/>
3062 </div>
3063 </div> <!-- Buttons font size -->
3064 <hr>
3065 <div class="form-group row">
3066 <div class="col-sm-4">
3067 <label for="ays_poll_buttons_left_right_padding">
3068 <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3069 <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"); ?>">
3070 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3071 </a>
3072 </label>
3073 </div>
3074 <div class="col-sm-8 ays_divider_left">
3075 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3076 <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;" />
3077 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
3078 </div>
3079 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3080 <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;" />
3081 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
3082 </div>
3083 </div>
3084 </div> <!-- Buttons padding -->
3085 <hr>
3086 <div class="form-group row">
3087 <div class="col-sm-4">
3088 <label for="ays_poll_buttons_border_radius">
3089 <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3090 <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"); ?>">
3091 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3092 </a>
3093 </label>
3094 </div>
3095 <div class="col-sm-8 ays_divider_left">
3096 <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_border_radius" name="ays_poll_buttons_border_radius" value="<?php echo $poll_buttons_border_radius; ?>"/>
3097 </div>
3098 </div>
3099 <hr>
3100 <div class="form-group row">
3101 <div class="col-sm-4">
3102 <label for='ays_poll_buttons_width'>
3103 <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3104 <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"); ?>">
3105 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3106 </a>
3107 </label>
3108 </div>
3109 <div class="col-sm-8 ays_divider_left">
3110 <div>
3111 <div>
3112 <label for="ays_poll_buttons_width">
3113 <?php echo esc_html__('On desktop', "poll-maker"); ?>
3114 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3115 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3116 </a>
3117 </label>
3118 </div>
3119 <div>
3120 <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; ?>"/>
3121 <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>
3122 </div>
3123 </div>
3124 <hr>
3125 <div>
3126 <div>
3127 <label for="ays_poll_buttons_mobile_width">
3128 <?php echo esc_html__('On mobile', "poll-maker"); ?>
3129 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3130 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3131 </a>
3132 </label>
3133 </div>
3134 <div>
3135 <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; ?>"/>
3136 <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>
3137 </div>
3138 </div>
3139 </div>
3140 </div>
3141 <hr/>
3142 <div class="form-group row">
3143 <div class="col-sm-4">
3144 <label for="ays_poll_custom_class">
3145 <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3146 <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")?>">
3147 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3148 </a>
3149 </label>
3150 </div>
3151 <div class="col-sm-8 ays_divider_left">
3152 <input type="text" class="ays-text-input" name="ays_poll_custom_class" id="ays_poll_custom_class" placeholder="myClass myAnotherClass..." value="<?php echo $custom_class; ?>">
3153 </div>
3154 </div>
3155 </div>
3156 </div>
3157 </div>
3158 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3159 <?php
3160
3161 $content = "
3162 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3163 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3164 <div class='apm-title-box'>
3165 <h5>{$poll['title']}</h5>
3166 </div>";
3167
3168 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3169 <div class='apm-img-box'>";
3170 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3171 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3172 $content .= "</div>
3173 <div class='apm-answers ays_poll_list_view_container'>";
3174 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3175 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3176 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3177 switch ($poll_answer_icon) {
3178 case 'radio':
3179 $answer_icon_class = 'ays_poll_answer_icon_radio';
3180 break;
3181 case 'checkbox':
3182 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3183 break;
3184 default:
3185 $answer_icon_class = '';
3186 break;
3187 }
3188 }else{
3189 $answer_icon_class = '';
3190 }
3191 switch ( $poll['type'] ) {
3192 case 'choosing':
3193 if(empty($poll['answers'])){
3194 for ($i = 0 ; $i < $answer_default_count ; $i++){
3195 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3196 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3197 <label class='ays_label_poll ".$checking_answer_hover." ays_label_font_size ".$answer_icon_class." ays-poll-answer-more-options' for='radio-".$i."-'>Answer ".($i+1)."</label>
3198
3199 </div>";
3200 }
3201 }
3202 else{
3203 foreach ( $poll['answers'] as $index => $answer ) {
3204 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3205 $poll_class_for_answer_label = "";
3206 $poll_class_for_answer_label_text = "";
3207 if($answer_image != ""){
3208 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3209 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3210 }
3211 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3212 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3213 <label class='ays_label_poll ".$checking_answer_hover." ays_label_font_size ".$poll_class_for_answer_label." ays-poll-answer-more-options' for='radio-".$index."-'>".$answer_image."<div><span class='ays-poll-each-answer ".$poll_class_for_answer_label_text."'>" . stripcslashes($answer['answer']) . "</span></div></label>
3214 </div>";
3215 }
3216 }
3217 break;
3218 case 'voting':
3219 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3220 switch ( $poll_view_type_voting ) {
3221 case 'hand':
3222 foreach ( $poll['answers'] as $index => $answer ) {
3223 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3224 <label for='radio-$index-'>";
3225 $content .= ((int) $answer['answer'] > 0 ? "<i class='ays_poll_far ays_poll_fa-thumbs-up'></i>" : "<i class='ays_poll_far ays_poll_fa-thumbs-down'></i>") . "</label></div>";
3226 }
3227 break;
3228 case 'emoji':
3229 foreach ( $poll['answers'] as $index => $answer ) {
3230 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3231 <label for='radio-$index-'>";
3232 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3233 }
3234 break;
3235 default:
3236 break;
3237 }
3238 break;
3239 case 'rating':
3240 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3241 switch ( $poll_view_type_rating ) {
3242 case 'star':
3243 foreach ( $poll['answers'] as $index => $answer ) {
3244 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3245 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3246 }
3247 break;
3248 case 'emoji':
3249 foreach ( $poll['answers'] as $index => $answer ) {
3250 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3251 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3252 }
3253 break;
3254 default:
3255 break;
3256 }
3257 break;
3258 case 'text':
3259 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3260 switch ( $poll_view_type_text ) {
3261 case 'short_text':
3262 $content .= "<div class='ays-poll-maker-text-live-preview'>
3263 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3264 <label for='ays_poll_text_type_short_live'></label>
3265 </div>";
3266 break;
3267 case 'paragraph':
3268 $content .= "<div class='ays-poll-maker-text-live-preview'>
3269 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3270 <label for='ays_poll_text_type_paragraph_live'></label>
3271 </div>";
3272 break;
3273 default:
3274 break;
3275 }
3276 break;
3277 default:
3278 break;
3279 }
3280 $content .= "</div>
3281 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3282 <input type='button' name='ays_finish_poll' class='btn ays-poll-btn {$poll['type']}-btn ".$minimalThemeBtn." '" . 'value="' . ((isset($options['btn_text']) && '' != $options['btn_text']) ? stripslashes($options['btn_text']) : 'Vote') . '">
3283 </div>';
3284 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3285 if($poll_check_logo){
3286 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3287 }
3288 $content .= "</div>";
3289
3290 $content .='</div>
3291 </div>';
3292 print wp_kses_post($content);
3293 ?>
3294 </div>
3295 </div>
3296 <hr/>
3297 <div class="form-group row">
3298 <div class="col-sm-2">
3299 <label for="ays_custom_css">
3300 <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3301 </label>
3302 <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"); ?>">
3303 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3304 </a>
3305 <br>
3306 </div>
3307 <div class="col-sm-10 ays_divider_left">
3308 <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>
3309 </div>
3310 </div>
3311 <hr/>
3312 <div class="form-group row">
3313 <div class="col-sm-2">
3314 <label for="ays_poll_reset_to_default">
3315 <?php echo esc_html__('Reset styles', "poll-maker") ?>
3316 <a class="ays_help" data-toggle="tooltip"
3317 title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3318 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3319 </a>
3320 </label>
3321 </div>
3322 <div class="col-sm-10 ays_divider_left">
3323 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3324 id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3325 </button>
3326 </div>
3327 </div>
3328 </div>
3329 <hr>
3330 <div class="only_pro" style="position: relative; display: inline-block">
3331 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3332 <div class="pro-features-popup-conteiner">
3333 <div class="pro-features-popup-title">
3334 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3335 </div>
3336 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3337 <p>
3338 <?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"); ?>
3339 </p>
3340 <p>
3341 <?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"); ?>
3342 </p>
3343 </div>
3344 <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 ); ?>">
3345 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3346 </div>
3347 </div>
3348 </div>
3349 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3350 <span class="ays_save_as_default_content_for_mobile">
3351 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3352 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3353 </a>
3354 <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" ); ?>">
3355 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3356 </a>
3357 </span>
3358 </div>
3359 </div>
3360 </div>
3361 <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3362 <div class="ays-poll-accordion-options-main-container">
3363 <div class="ays-poll-accordion-header">
3364 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3365 <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3366 </div>
3367 <hr class="ays-poll-bolder-hr"/>
3368 <div class="ays-poll-accordion-body">
3369 <div class="form-group row">
3370 <div class="col-sm-3">
3371 <label>
3372 <?php echo esc_html__('Status', "poll-maker"); ?>
3373 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3374 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") ?>">
3375 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3376 </a>
3377 </label>
3378 </div>
3379 <div class="col-sm-9">
3380 <div class="d-flex">
3381 <div class="form-check form-check-inline">
3382 <input type="radio" id="ays-publish" name="ays_publish"
3383 value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3384 <label class="form-check-label"
3385 for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3386 </div>
3387 <div class="form-check form-check-inline">
3388 <input type="radio" id="ays-unpublish" name="ays_publish"
3389 value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3390 <label class="form-check-label"
3391 for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3392 </div>
3393 </div>
3394 </div>
3395 </div>
3396 <hr>
3397 <div class='form-group row'>
3398 <div class="col-sm-3">
3399 <label for='ays-poll-category'>
3400 <?php echo esc_html__('Categories', "poll-maker"); ?>
3401 <a class="ays_help" data-toggle="tooltip"
3402 data-placement="top"
3403 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"); ?>">
3404 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3405 </a>
3406 </label>
3407 </div>
3408 <div class="col-sm-9">
3409 <?php if (!empty($categories)): ?>
3410 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3411 data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3412 <?php
3413 foreach ( $categories as $cat ) {
3414 ?>
3415 <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3416 <?php echo esc_html($cat['title']); ?>
3417 </option>
3418 <?php }
3419 ?>
3420 </select>
3421 <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3422 <span>
3423 <?php
3424 echo (sprintf(
3425 /* translators: %s: opening and closing <a> HTML code */
3426 wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3427 '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3428 '</a>'
3429 ));
3430 ?>
3431 </span>
3432 </div>
3433 <?php else: ?>
3434 <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3435 <?php endif; ?>
3436 </div>
3437 </div>
3438 <hr>
3439 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3440 <div class="form-group row ays_toggle_parent">
3441 <div class="col-sm-3">
3442 <label for="ays_add_post_for_poll">
3443 <?php echo esc_html__('Create post for poll', "poll-maker")?>
3444 <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")?>">
3445 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3446 </a>
3447 </label>
3448 </div>
3449 <div class="col-sm-1">
3450 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3451 </div>
3452 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3453 <div class="form-group row">
3454 <div class="col-sm-4">
3455 <label for="ays_add_postcat_for_poll">
3456 <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3457 <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")?>">
3458 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3459 </a>
3460 </label>
3461 </div>
3462 <div class="col-sm-8">
3463 <div class="input-group">
3464 <select name="ays_add_postcat_for_poll[]"
3465 id="ays_add_postcat_for_poll"
3466 class="apm-cat-select2"
3467 multiple>
3468 <?php
3469
3470 foreach ($cat_list as $cat) {
3471 echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3472 }
3473 ?>
3474 </select>
3475 </div>
3476 </div>
3477 </div>
3478 </div>
3479 </div> <!-- Create post for poll -->
3480 <hr/>
3481 <?php else: ?>
3482 <div class="form-group row">
3483 <div class="col-sm-3">
3484 <label for="ays_add_post_for_poll">
3485 <?php echo esc_html__('WP Post', "poll-maker")?>
3486 <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")?>">
3487 <i class="ays_fa ays_fa_info_circle"></i>
3488 </a>
3489 </label>
3490 </div>
3491 <div class="col-sm-8" style="margin-left: 15px;">
3492 <div class="row">
3493 <div style="margin-right: 10px;">
3494 <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>
3495 </div>
3496 <div>
3497 <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>
3498 </div>
3499 </div>
3500 </div>
3501 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3502 </div>
3503 <hr>
3504 <?php endif; ?>
3505 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3506 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3507 <div class="pro_features" style="justify-content:flex-end;">
3508 </div>
3509 <div class="form-group row">
3510 <div class="col-sm-3">
3511 <label for="ays_poll_enable_copy_protection">
3512 <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3513 <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"); ?>">
3514 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3515 </a>
3516 </label>
3517 </div>
3518 <div class="col-sm-9">
3519 <input type="checkbox" class="ays-enable-timer1" />
3520 </div>
3521 </div>
3522 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3523 <div class="ays-poll-new-upgrade-button-box">
3524 <div>
3525 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3526 <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">
3527 </div>
3528 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3529 </div>
3530 </a>
3531 </div>
3532 </div>
3533 <hr/>
3534 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3535 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3536 <div class="pro_features" style="justify-content:flex-end;">
3537 </div>
3538 <div class="form-group row">
3539 <div class="col-sm-3">
3540 <label for="ays_poll_question_text_to_speech">
3541 <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3542 <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")?>">
3543 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3544 </a>
3545 </label>
3546 </div>
3547 <div class="col-sm-9">
3548 <input type="checkbox" class="ays-enable-timer1"
3549 name="ays_poll_question_text_to_speech"
3550 value="on"/>
3551 </div>
3552 </div>
3553 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3554 <div class="ays-poll-new-upgrade-button-box">
3555 <div>
3556 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3557 <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">
3558 </div>
3559 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3560 </div>
3561 </a>
3562 </div>
3563 </div> <!-- Questions text to speech -->
3564 <hr>
3565 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3566 <div class="col-sm-3">
3567 <label for='ays_poll_allow_multivote'>
3568 <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3569 <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"); ?>">
3570 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3571 </a>
3572 </label>
3573 </div>
3574 <div class="col-sm-1">
3575 <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; ?>>
3576 </div>
3577 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3578 <div class="row">
3579 <div class="col-sm-3">
3580 <label for='ays_poll_multivote_min_count'>
3581 <?php echo esc_html__('Min', "poll-maker"); ?>
3582 <a class="ays_help"
3583 data-toggle="tooltip"
3584 data-placement="top"
3585 title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3586 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3587 </a>
3588 </label>
3589 </div>
3590 <div class="col-sm-9">
3591 <input type="number" name="ays_poll_multivote_min_count" id="ays_poll_multivote_min_count" class="ays-enable-timerl ays-text-input ays-text-input-short" value="<?php echo $poll_multivote_min_count; ?>">
3592 </div>
3593 </div>
3594 <hr>
3595 <div class="row">
3596 <div class="col-sm-3">
3597 <label for='ays_poll_multivote_count'>
3598 <?php echo esc_html__('Max', "poll-maker"); ?>
3599 <a class="ays_help"
3600 data-toggle="tooltip"
3601 data-placement="top"
3602 title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3603 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3604 </a>
3605 </label>
3606 </div>
3607 <div class="col-sm-9">
3608 <input type="number" name="ays_poll_multivote_count" id="ays_poll_multivote_count" class="ays-enable-timerl ays-text-input ays-text-input-short" value="<?php echo $poll_multivote_answer_count; ?>">
3609 </div>
3610 </div>
3611 </div>
3612 </div>
3613 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3614 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3615 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3616 <div class="pro_features" style="justify-content:flex-end;">
3617 </div>
3618 <div class="form-group row">
3619 <div class="col-sm-3">
3620 <label for="ays-poll-allow-edit">
3621 <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3622 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3623 data-placement="top"
3624 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"); ?>">
3625 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3626 </a>
3627 </label>
3628 </div>
3629 <div class="col-sm-9">
3630 <input type="checkbox" class="ays-enable-timer1"
3631 name="ays_edit_previous_submission"
3632 value="on"/>
3633 </div>
3634 </div>
3635 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3636 <div class="ays-poll-new-upgrade-button-box">
3637 <div>
3638 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3639 <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">
3640 </div>
3641 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3642 </div>
3643 </a>
3644 </div>
3645 </div>
3646 <hr>
3647 <div class="form-group row">
3648 <div class="col-sm-3">
3649 <label for='show-title'>
3650 <?php echo esc_html__('Show Title', "poll-maker"); ?>
3651 <a class="ays_help" data-toggle="tooltip"
3652 data-placement="top"
3653 title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3655 </a>
3656 </label>
3657 </div>
3658 <div class="col-sm-9">
3659 <input type="checkbox" name="show_title" id="show-title"
3660 value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3661 </div>
3662 </div>
3663 <hr>
3664 <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' ?>" >
3665 <div class="col-sm-3">
3666 <label>
3667 <?php echo esc_html__('Alignment', "poll-maker"); ?>
3668 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3669 title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3670 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3671 </a>
3672 </label>
3673 </div>
3674 <div class="col-sm-9">
3675 <div class="d-flex">
3676 <div class="form-check form-check-inline">
3677 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3678 value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3679 <label class="form-check-label"
3680 for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3681 </div>
3682 <div class="form-check form-check-inline">
3683 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3684 value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3685 <label class="form-check-label"
3686 for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3687 </div>
3688 <div class="form-check form-check-inline">
3689 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3690 value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3691 <label class="form-check-label"
3692 for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3693 </div>
3694 </div>
3695 </div>
3696 </div>
3697 <hr class="ays_poll_option_for_choosing_type ays_poll_option_for_text_type" style="display: <?php echo ($poll['type'] == 'choosing' || $poll['type'] == 'text') ? 'block' : 'none' ?>" >
3698 <div class="form-group row">
3699 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3700 <div class="pro_features pro_features_popup">
3701 <div class="pro-features-popup-conteiner">
3702 <div class="pro-features-popup-title">
3703 <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3704 </div>
3705 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3706 <p>
3707 <?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"); ?>
3708 </p>
3709 </div>
3710 <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 ); ?>">
3711 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3712 </div>
3713 </div>
3714 </div>
3715 <div class="pro_features" style="justify-content:flex-end;">
3716 </div>
3717 <div class="form-group row">
3718 <div class="col-sm-3">
3719 <label for='ays-poll-allow-anonymity'>
3720 <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3721 <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"); ?>">
3722 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3723 </a>
3724 </label>
3725 </div>
3726 <div class="col-sm-9">
3727 <input type="checkbox" name="ays_allow_anonymity"
3728 value="1" >
3729 </div>
3730 </div>
3731 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3732 <div class="ays-poll-new-upgrade-button-box">
3733 <div>
3734 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3735 <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">
3736 </div>
3737 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3738 </div>
3739 </a>
3740 <div class="ays-poll-new-watch-video-button-box">
3741 <div>
3742 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3743 <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">
3744 </div>
3745 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3746 </div>
3747 </div>
3748 </div>
3749 <hr>
3750 <div class="form-group row">
3751 <div class="col-sm-3">
3752 <label for='ays_poll_change_creation_date'>
3753 <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3754 <a class="ays_help" data-toggle="tooltip"
3755 data-placement="top"
3756 title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3757 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3758 </a>
3759 </label>
3760 </div>
3761 <div class="col-sm-9" style="display: inherit;">
3762 <input type="text" class="ays-text-input ays-text-input-short ays-poll-date-create" id="ays_poll_change_creation_date" name="ays_poll_change_creation_date"
3763 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3764 <div class="input-group-append" style="display: block">
3765 <label for="ays_poll_change_creation_date" class="input-group-text">
3766 <span><i class="ays_fa ays_fa_calendar"></i></span>
3767 </label>
3768 </div>
3769 </div>
3770 </div>
3771 <hr>
3772 <div class="form-group row">
3773 <div class="col-sm-3">
3774 <label for="ays_poll_create_author">
3775 <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3776 <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"); ?>">
3777 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3778 </a>
3779 </label>
3780 </div>
3781 <div class="col-sm-9">
3782 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3783 <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3784 <?php
3785 $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;
3786 $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) ) : '';
3787 $selected = '';
3788 ?>
3789 <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3790 <?php echo esc_html($poll_user_display_name); ?>
3791 </option>
3792 </select>
3793 </div>
3794 </div> <!-- Change the author of the current poll -->
3795 <hr/>
3796 <!-- Poll Main URL Start -->
3797 <div class="form-group row">
3798 <div class="col-sm-3">
3799 <label for="ays_poll_main_url">
3800 <?php echo esc_html__('Poll main URL', "poll-maker")?>
3801 <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");
3802 ?>">
3803 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3804 </a>
3805 </label>
3806 </div>
3807 <div class="col-sm-9">
3808 <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); ?>">
3809 </div>
3810 </div>
3811 <!-- Poll Main URL End -->
3812 <hr>
3813 <div class="form-group row">
3814 <div class="col-sm-3">
3815 <label for='show-poll-create-dates'>
3816 <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3817 <a class="ays_help" data-toggle="tooltip"
3818 data-placement="top"
3819 title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3821 </a>
3822 </label>
3823 </div>
3824 <div class="col-sm-9">
3825 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3826 value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3827 </div>
3828 </div>
3829 <hr>
3830 <div class="form-group row">
3831 <div class="col-sm-3">
3832 <label for='show-poll-author'>
3833 <?php echo esc_html__('Show author', "poll-maker"); ?>
3834 <a class="ays_help" data-toggle="tooltip"
3835 data-placement="top"
3836 title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3838 </a>
3839 </label>
3840 </div>
3841 <div class="col-sm-9">
3842 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3843 value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3844 </div>
3845 </div>
3846 <hr>
3847 <div class="form-group row">
3848 <div class="col-sm-3">
3849 <label for="schedule_the_poll">
3850 <?php echo esc_html__('Schedule', "poll-maker"); ?>
3851 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3852 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") ?>">
3853 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3854 </a>
3855 </label>
3856 </div>
3857 <div class="col-sm-1">
3858 <input type="checkbox"
3859 id="schedule_the_poll"
3860 class="active_date_check"
3861 name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3862 </div>
3863 <div class="col-sm-8">
3864 <div class="row">
3865 <div class="col-sm-12 active_date ays_divider_left"
3866 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3867 <!-- -1- -->
3868 <div class="form-group row">
3869 <div class="col-sm-3">
3870 <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3871 </div>
3872 <div class="col-sm-9">
3873 <div class="input-group mb-3">
3874 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3875 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3876 <div class="input-group-append">
3877 <label for="ays-active" class="input-group-text">
3878 <span><i class="ays_fa ays_fa_calendar"></i></span>
3879 </label>
3880 </div>
3881 </div>
3882 </div>
3883 </div>
3884 <!-- -2- -->
3885 <div class="form-group row">
3886 <div class="col-sm-3">
3887 <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
3888 </div>
3889 <div class="col-sm-9">
3890 <div class="input-group mb-3">
3891 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
3892 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3893 <div class="input-group-append">
3894 <label for="ays-deactive" class="input-group-text">
3895 <span><i class="ays_fa ays_fa_calendar"></i></span>
3896 </label>
3897 </div>
3898 </div>
3899 </div>
3900 </div>
3901 <!-- ////////// -->
3902 <hr>
3903 <div class="form-group row">
3904 <div class="col-sm-3">
3905 <label for='ays_poll_show_timer'>
3906 <?php echo esc_html__('Show timer', "poll-maker"); ?>
3907 <a class="ays_help" data-toggle="tooltip"
3908 data-placement="top"
3909 title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3910 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3911 </a>
3912 </label>
3913 </div>
3914 <div class="col-sm-1">
3915 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3916 value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
3917 </div>
3918 <div class="col-sm-8">
3919 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3920 <div class="d-flex">
3921 <div class="form-check form-check-inline">
3922 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3923 value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3924 <label class="form-check-label"
3925 for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
3926 </div>
3927 <div class="form-check form-check-inline">
3928 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3929 value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3930 <label class="form-check-label"
3931 for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
3932 </div>
3933 </div>
3934 <hr>
3935 <div class='form-group row'>
3936 <div class='col-sm-5'>
3937 <label class="form-check-label" for="show_bottom_timer">
3938 <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
3939 <a class="ays_help" data-toggle="tooltip"
3940 data-placement="top"
3941 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"); ?>">
3942 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3943 </a>
3944 </label>
3945 </div>
3946 <div class='col-sm-7'>
3947 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
3948 </div>
3949 </div>
3950 </div>
3951 </div>
3952 </div>
3953 <hr>
3954 <div class="form-group row">
3955 <div class="col-sm-3">
3956 <label class="form-check-label"
3957 for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
3958 </div>
3959 <div class="col-sm-9">
3960 <div class="editor">
3961 <?php
3962 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
3963 $editor_id = 'active_date_message_soon';
3964 $settings = array(
3965 'editor_height' => $poll_wp_editor_height,
3966 'textarea_name' => 'active_date_message_soon',
3967 'editor_class' => 'ays-textarea',
3968 'media_elements' => false
3969 );
3970 wp_editor($content, $editor_id, $settings);
3971 ?>
3972 </div>
3973 </div>
3974 </div>
3975 <hr>
3976 <!-- -3- -->
3977 <div class="form-group row">
3978 <div class="col-sm-3">
3979 <label class="form-check-label"
3980 for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
3981 </div>
3982 <div class="col-sm-9">
3983 <div class="editor">
3984 <?php
3985 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
3986 $editor_id = 'active_date_message';
3987 $settings = array(
3988 'editor_height' => $poll_wp_editor_height,
3989 'textarea_name' => 'active_date_message',
3990 'editor_class' => 'ays-textarea',
3991 'media_elements' => false
3992 );
3993 wp_editor($content, $editor_id, $settings);
3994 ?>
3995 </div>
3996 </div>
3997 </div>
3998 <hr>
3999 <div class="form-group row">
4000 <div class="col-sm-3">
4001 <label for='show_result_btn_schedule'>
4002 <?php echo esc_html__('Show result button', "poll-maker"); ?>
4003 <a class="ays_help" data-toggle="tooltip"
4004 data-placement="top"
4005 title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4006 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4007 </a>
4008 </label>
4009 </div>
4010 <div class="col-sm-1">
4011 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
4012 value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
4013 </div>
4014 <div class="col-sm-8">
4015 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
4016 <div class="form-check form-check-inline">
4017 <label class="form-check-label">
4018 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
4019 <span>
4020 <?php echo esc_html__('With See Results button', "poll-maker"); ?>
4021 </span>
4022 </label>
4023 </div>
4024 <div class="form-check form-check-inline">
4025 <label class="form-check-label">
4026 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
4027 <span>
4028 <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
4029 </span>
4030 </label>
4031 </div>
4032 </div>
4033 </div>
4034 </div>
4035 <hr>
4036 <div class="form-group row">
4037 <div class="col-sm-3">
4038 <label for='ays_show_poll_container'>
4039 <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
4040 <a class="ays_help" data-toggle="tooltip"
4041 data-placement="top"
4042 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"); ?>">
4043 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4044 </a>
4045 </label>
4046 </div>
4047 <div class="col-sm-9">
4048 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
4049 value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
4050 </div>
4051 </div>
4052 </div>
4053 </div>
4054 </div>
4055 </div>
4056 <hr>
4057 <div class="form-group row ays_toggle_parent">
4058 <div class="col-sm-3">
4059 <label for='ays-poll-allow-not-vote'>
4060 <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
4061 <a class="ays_help"
4062 data-toggle="tooltip"
4063 data-placement="top"
4064 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"); ?>">
4065 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4066 </a></label>
4067 </div>
4068 <div class="col-sm-1">
4069 <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' : ''; ?>>
4070 </div>
4071 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
4072 <div class="row">
4073 <div class="col-sm-3 ays_divider_left">
4074 <label for="ays-poll-btn-text">
4075 <?php echo esc_html__("Results button text", "poll-maker"); ?>
4076 <a class="ays_help"
4077 data-toggle="tooltip"
4078 data-placement="top"
4079 title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
4080 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4081 </a>
4082 </label>
4083 </div>
4084 <div class="col-sm-9">
4085 <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"); ?>"/>
4086 </div>
4087 </div>
4088 </div>
4089 </div>
4090 <hr>
4091 <div class="form-group row">
4092 <div class="col-sm-3" style="padding-right: 0px;">
4093 <label for="ays_enable_pass_count">
4094 <?php echo esc_html__('Show passed users count', "poll-maker") ?>
4095 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4096 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") ?>">
4097 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4098 </a>
4099 </label>
4100 </div>
4101 <div class="col-sm-9">
4102 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
4103 value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4104 </div>
4105 </div>
4106 <hr>
4107 <div class="form-group row ays_toggle_parent">
4108 <div class="col-sm-3">
4109 <label for="ays_redirect_after_vote">
4110 <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
4111 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4112 title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4113 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4114 </a>
4115 </label>
4116 </div>
4117 <div class="col-sm-1">
4118 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
4119 </div>
4120 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
4121 <div class="row">
4122 <div class="col-sm-12 ays_divider_left">
4123 <div class="form-group row">
4124 <div class="col-sm-3">
4125 <label for="redirection_url">
4126 <?php echo esc_html__('URL', "poll-maker"); ?>
4127 <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"); ?>">
4128 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4129 </a>
4130 </label>
4131 </div>
4132 <div class="col-sm-9">
4133 <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">
4134 </div>
4135 </div>
4136 <hr>
4137 <div class="form-group row">
4138 <div class="col-sm-3">
4139 <label for="redirectio_delay">
4140 <?php echo esc_html__('Delay', "poll-maker"); ?>
4141 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4142 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4143 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4144 </a>
4145 </label>
4146 </div>
4147 <div class="col-sm-9">
4148 <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">
4149 </div>
4150 </div>
4151 </div>
4152 </div>
4153
4154 </div>
4155 </div>
4156 <hr/>
4157 <div class="form-group row">
4158 <div class="col-sm-3">
4159 <label for="randomize-answers">
4160 <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
4161 <a class="ays_help" data-toggle="tooltip"
4162 data-placement="top"
4163 title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4164 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4165 </a>
4166 </label>
4167 </div>
4168 <div class="col-sm-9">
4169 <input type="checkbox"
4170 name="randomize_answers"
4171 id="randomize-answers"
4172 value="on"
4173 <?php echo $randomize_answers ? 'checked' : ''; ?>
4174 />
4175 </div>
4176 </div>
4177 <hr/>
4178 <div class="form-group row ays_toggle_parent">
4179 <div class="col-sm-3" style="padding-right: 0px;">
4180 <label for="ays_enable_asnwers_sound">
4181 <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4182 <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")?>">
4183 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4184 </a>
4185 </label>
4186 </div>
4187 <div class="col-sm-1">
4188 <input type="checkbox" id="ays_enable_asnwers_sound"
4189 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4190 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4191 </div>
4192 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
4193 <?php if($answers_sound_status): ?>
4194 <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>
4195 <?php else: ?>
4196 <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>
4197 <?php endif; ?>
4198 </div>
4199 </div>
4200 <hr/>
4201 <div class="form-group row">
4202 <div class="col-3">
4203 <label for="ays-poll-reason">
4204 <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4205 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4206 title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4207 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4208 </a>
4209 </label>
4210 </div>
4211 <div class="col-9">
4212 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4213 </div>
4214 </div>
4215 <hr/>
4216 <div class="form-group row ays_toggle_parent">
4217 <div class="col-sm-3">
4218 <label for="ays_enable_vote_button">
4219 <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4220 <a class="ays_help" data-toggle="tooltip"
4221 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") ?>">
4222 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4223 </a>
4224 </label>
4225 </div>
4226 <div class="col-sm-1">
4227 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4228 value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4229 </div>
4230 <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;' : '' ?>">
4231 <div class="row">
4232 <div class="col-sm-3 ays_divider_left">
4233 <label for="ays-poll-btn-text_vote">
4234 <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4235 <a class="ays_help"
4236 data-toggle="tooltip"
4237 data-placement="top"
4238 title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4239 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4240 </a>
4241 </label>
4242 </div>
4243 <div class="col-sm-9">
4244 <input type="text" class="ays-text-input ays-text-input-short"
4245 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4246 value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4247 </div>
4248 </div>
4249 </div>
4250 </div>
4251 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4252 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4253 <div class="col-sm-3">
4254 <label for="ays_enable_view_more_button">
4255 <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4256 <a class="ays_help" data-toggle="tooltip"
4257 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"); ?>">
4258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4259 </a>
4260 </label>
4261 </div>
4262 <div class="col-sm-1">
4263 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4264 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4265 </div>
4266 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4267 <div class="form-group row">
4268 <div class="col-sm-3">
4269 <label for="ays_poll_view_more_button_count">
4270 <?php echo esc_html__("Count", "poll-maker"); ?>
4271 <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"); ?>">
4272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4273 </a>
4274 </label>
4275 </div>
4276 <div class="col-sm-9">
4277 <input type="text" class="ays-text-input ays-text-input-short" id="ays_poll_view_more_button_count" name="ays_poll_view_more_button_count" value="<?php echo $poll_view_more_button_count; ?>"/>
4278 </div>
4279 </div>
4280 </div>
4281 </div>
4282 <hr>
4283 <div class="form-group row">
4284 <div class="col-sm-3">
4285 <label for="ays_answers_sort_select">
4286 <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4287 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4288 title="<?php
4289 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") .
4290 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4291 "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4292 "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4293 "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4294 "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4295 "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4296 "</ul>";
4297 ?>">
4298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4299 </a>
4300 </label>
4301 </div>
4302 <div class="col-sm-9">
4303 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4304 <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4305 <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4306 <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4307 <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>
4308 <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>
4309 </select>
4310 </div>
4311 </div>
4312 <hr>
4313 <div class="form-group row">
4314 <div class="col-sm-3">
4315 <label for="ays_poll_aysDropdown">
4316 <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4317 <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"); ?>">
4318 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4319 </a>
4320 </label>
4321 </div>
4322 <div class="col-sm-9">
4323 <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4324 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "poll-maker"); ?></option>
4325 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo esc_html__( "1.", "poll-maker"); ?></option>
4326 <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo esc_html__( "1)", "poll-maker"); ?></option>
4327 <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo esc_html__( "A.", "poll-maker"); ?></option>
4328 <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo esc_html__( "A)", "poll-maker"); ?></option>
4329 <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo esc_html__( "a.", "poll-maker"); ?></option>
4330 <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo esc_html__( "a)", "poll-maker"); ?></option>
4331 <option <?php echo $show_answers_numbering == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4332 </select>
4333 </div>
4334 </div> <!-- Show answers numbering -->
4335 <hr>
4336 <div class="form-group row">
4337 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4338 <div class="pro_features" style="justify-content:flex-end;">
4339 </div>
4340 <div class="form-group row ays_toggle_parent">
4341 <div class="col-sm-3">
4342 <label for="ays_show_votes_before_voting">
4343 <?php echo esc_html__('Show votes count per answer before voting', "poll-maker"); ?>
4344 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4345 title="<?php echo esc_html__('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") ?>">
4346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4347 </a>
4348 </label>
4349 </div>
4350 <div class="col-sm-1">
4351 <input type="checkbox"/>
4352 </div>
4353 <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4354 <div class="d-flex">
4355 <div class="form-check-inline ays_poll_loader">
4356 <label class="form-check-label">
4357 <input type="radio" value="by_count" />
4358 <span><?php echo esc_html__('By count', "poll-maker"); ?></span>
4359 </label>
4360 </div>
4361 <div class="form-check-inline ays_poll_loader">
4362 <label class="form-check-label">
4363 <input type="radio" value="by_percentage"/>
4364 <span><?php echo esc_html__('By percentage', "poll-maker"); ?></span>
4365 </label>
4366 </div>
4367 </div>
4368 </div>
4369 </div> <!-- Status -->
4370 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4371 <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4372 <div>
4373 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4374 <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">
4375 </div>
4376 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4377 </div>
4378 </a>
4379 </div>
4380 </div>
4381 </div>
4382 </div>
4383 <div class="only_pro" style="position: relative; display: inline-block">
4384 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4385 <div class="pro-features-popup-conteiner">
4386 <div class="pro-features-popup-title">
4387 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4388 </div>
4389 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4390 <p>
4391 <?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"); ?>
4392 </p>
4393 <p>
4394 <?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"); ?>
4395 </p>
4396 </div>
4397 <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 ); ?>">
4398 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4399 </div>
4400 </div>
4401 </div>
4402 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4403 <span class="ays_save_as_default_content_for_mobile">
4404 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4405 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4406 </a>
4407 <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" ); ?>">
4408 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4409 </a>
4410 </span>
4411 </div>
4412 </div>
4413 </div>
4414 <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4415 <div class="ays-poll-accordion-options-main-container">
4416 <div class="ays-poll-accordion-header">
4417 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4418 <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4419 </div>
4420 <hr class="ays-poll-bolder-hr"/>
4421 <div class="ays-poll-accordion-body">
4422 <div class="form-group row ays_toggle_parent">
4423 <div class="col-sm-3">
4424 <label for="apm_limit_users">
4425 <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4426 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4427 title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4428 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4429 </a>
4430 </label>
4431 </div>
4432 <div class="col-sm-1">
4433 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4434 value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4435 </div>
4436 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4437 <div class="ays-limitation-options">
4438 <!-- Limitation method -->
4439 <div class="form-group row">
4440 <div class="col-sm-3">
4441 <label for="ays_redirect_method">
4442 <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4443 <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" ); ?>
4444 <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>
4445 <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>
4446 <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>
4447 <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>"
4448 >
4449 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4450 </a>
4451 </label>
4452 </div>
4453 <div class="col-sm-9">
4454 <div class="ays-poll-sel-fields d-flex p-0">
4455 <div class="ays-poll-check-box mr-2">
4456 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4457 value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4458 <label class="form-check-label"
4459 for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4460 </div>
4461 <div class="ays-poll-check-box mr-2">
4462 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4463 value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4464 <label class="form-check-label"
4465 for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4466 </div>
4467 <div class="ays-poll-check-box mr-2">
4468 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4469 value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4470 <label class="form-check-label"
4471 for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4472 </div>
4473 <div class="ays-poll-check-box mr-2">
4474 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4475 value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4476 <label class="form-check-label"
4477 for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4478 </div>
4479 </div>
4480 </div>
4481 </div>
4482 <hr>
4483 <!-- Limitation message -->
4484 <div class="form-group row">
4485 <div class="col-sm-3">
4486 <label for="ays_limitation_message">
4487 <?php echo esc_html__('Message', "poll-maker"); ?>
4488 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4489 title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4491 </a>
4492 </label>
4493 </div>
4494 <div class="col-sm-9">
4495 <?php
4496 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4497 $editor_id = 'ays_limitation_message';
4498 $settings = array(
4499 'editor_height' => $poll_wp_editor_height,
4500 'textarea_name' => 'ays_limitation_message',
4501 'editor_class' => 'ays-textarea',
4502 'media_elements' => false
4503 );
4504 wp_editor($content, $editor_id, $settings);
4505 ?>
4506 </div>
4507 </div>
4508 <hr>
4509 <!-- Limitation redirect url -->
4510 <div class="form-group row">
4511 <div class="col-sm-3">
4512 <label for="ays_redirect_url">
4513 <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4514 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4515 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"); ?>">
4516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4517 </a>
4518 </label>
4519 </div>
4520 <div class="col-sm-9">
4521 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4522 class="ays-text-input"
4523 value="<?php echo $options['redirect_url'] ?>"/>
4524 </div>
4525 </div>
4526 <hr>
4527 <!-- Limitation redirect delay -->
4528 <div class="form-group row">
4529 <div class="col-sm-3">
4530 <label for="ays_redirection_delay">
4531 <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4532 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4533 title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4534 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4535 </a>
4536 </label>
4537 </div>
4538 <div class="col-sm-9">
4539 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4540 class="ays-text-input"
4541 value="<?php echo $options['redirection_delay'] ?>"/>
4542 </div>
4543 </div>
4544 <hr>
4545 <div class="form-group row">
4546 <div class="col-sm-3">
4547 <label for="ays_see_result_show">
4548 <?php echo esc_html__('See results', "poll-maker"); ?>
4549 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4550 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" ); ?>
4551 <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>
4552 <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>">
4553 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4554 </a>
4555 </label>
4556 </div>
4557 <div class="col-sm-9">
4558 <div class="row">
4559 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4560 <input type="checkbox" id="ays_see_result_show"
4561 name="ays_see_result_show"
4562 class="ays_poll_show_hide_button"
4563 value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4564 </div>
4565
4566 <div class="col-sm-10" id="ays_poll_show_hide_button">
4567 <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4568 <div class="col-sm-6">
4569 <div class="ays-poll-check-box d-flex align-items-center"
4570 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4571 <input type="radio"
4572 id="ays_see_result_button_show"
4573 name="ays_poll_see_result_show"
4574 class="ays_poll_show_hide_button mr-2"
4575 value="ays_see_result_button"
4576 <?php echo esc_attr($poll_see_result_botton_show) ?>>
4577 <label for="ays_see_result_button_show" class="form-check-label">
4578 <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4579 </label>
4580 </div>
4581 </div>
4582 <div class="col-sm-6">
4583 <div class="ays-poll-check-box d-flex align-items-center"
4584 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4585 <input type="radio"
4586 id="ays_see_result_button_hide"
4587 name="ays_poll_see_result_show"
4588 class="ays_poll_show_hide_button mr-2"
4589 value="ays_see_result_immediately"
4590 <?php echo esc_attr($poll_see_result_immediately) ?>>
4591 <label for="ays_see_result_button_hide" class="form-check-label">
4592 <?php echo esc_html__('Directly', "poll-maker"); ?>
4593 </label>
4594 </div>
4595 </div>
4596
4597 </div>
4598 </div>
4599 </div>
4600 </div>
4601 </div>
4602 <hr>
4603 <div class="form-group row">
4604 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4605 <div class="pro_features" style="justify-content:flex-end;">
4606 </div>
4607 <div class="form-group row d-flex">
4608 <div class="col-sm-3">
4609 <label for="ays_attempts_count">
4610 <?php echo esc_html__('Attempts count', "poll-maker")?>
4611 <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")?>">
4612 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4613 </a>
4614 </label>
4615 </div>
4616 <div class="col-sm-9">
4617 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4618 </div>
4619 </div>
4620 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4621 <div class="ays-poll-new-upgrade-button-box">
4622 <div>
4623 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4624 <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">
4625 </div>
4626 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4627 </div>
4628 </a>
4629 </div>
4630 </div>
4631 </div>
4632 </div>
4633 </div><!-- Maximum number of attempts per user -->
4634 <hr/>
4635 <div class="form-group row ays_toggle_parent">
4636 <div class="col-sm-3">
4637 <label for="ays_enable_logged_users">
4638 <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4639 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4640 title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4641 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4642 </a>
4643 </label>
4644 </div>
4645 <div class="col-sm-1">
4646 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4647 value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4648 </div>
4649 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4650 <div class="form-group row">
4651 <div class="col-sm-3">
4652 <label for="ays_logged_in_message">
4653 <?php echo esc_html__('Message', "poll-maker"); ?>
4654 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4655 title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4656 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4657 </a>
4658 </label>
4659 </div>
4660 <div class="col-sm-9">
4661 <?php
4662 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4663 $editor_id = 'ays_logged_in_message';
4664 $settings = array(
4665 'editor_height' => $poll_wp_editor_height,
4666 'textarea_name' => 'ays_enable_logged_users_message',
4667 'editor_class' => 'ays-textarea',
4668 'media_elements' => false
4669 );
4670 wp_editor($content, $editor_id, $settings);
4671 ?>
4672 </div>
4673 </div>
4674 <hr/>
4675 <div class="form-group row">
4676 <div class="col-sm-3">
4677 <label for="ays_show_login_form">
4678 <?php echo esc_html__('Show Login form', "poll-maker")?>
4679 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4680 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4681 </a>
4682 </label>
4683 </div>
4684 <div class="col-sm-9">
4685 <input type="checkbox" class="ays-enable-timer1" id="ays_show_login_form" name="ays_show_login_form" value="on" <?php echo ($show_login_form && $options['enable_logged_users'] == 1) ? 'checked' : ''; ?>/>
4686 </div>
4687 </div>
4688 </div>
4689 </div> <!-- Only for logged in users -->
4690 <hr/>
4691 <div class="form-group row ays_toggle_parent">
4692 <div class="col-sm-3">
4693 <label for="ays_enable_restriction_pass">
4694 <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4695 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4696 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"); ?>">
4697 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4698 </a>
4699 </label>
4700 </div>
4701 <div class="col-sm-1">
4702 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4703 value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4704 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4705 </div>
4706 <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;'; ?>">
4707 <div class="form-group row">
4708 <div class="col-sm-3">
4709 <label for="ays_users_roles">
4710 <?php echo esc_html__('User role', "poll-maker"); ?></label>
4711 </div>
4712 <div class="col-sm-9">
4713 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4714 <?php
4715 foreach ($ays_users_roles as $key => $user_role) {
4716 $selected_role = "";
4717 if(is_array($users_role)){
4718 if(in_array($user_role['name'], $users_role)){
4719 $selected_role = 'selected';
4720 }else{
4721 $selected_role = '';
4722 }
4723 }else{
4724 if($users_role == $user_role['name']){
4725 $selected_role = 'selected';
4726 }else{
4727 $selected_role = '';
4728 }
4729 }
4730 echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4731 }
4732 ?>
4733 </select>
4734 </div>
4735 </div>
4736 <hr>
4737 <div class="form-group row">
4738 <div class="col-sm-3">
4739 <label for="restriction_pass_message">
4740 <?php echo esc_html__('Message', "poll-maker"); ?>
4741 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4742 title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4744 </a>
4745 </label>
4746 </div>
4747 <div class="col-sm-9">
4748 <?php
4749 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4750 $editor_id = 'restriction_pass_message';
4751 $settings = array(
4752 'editor_height' => $poll_wp_editor_height,
4753 'textarea_name' => 'restriction_pass_message',
4754 'editor_class' => 'ays-textarea',
4755 'media_elements' => false
4756 );
4757 wp_editor($content, $editor_id, $settings);
4758 ?>
4759 </div>
4760 </div>
4761 </div>
4762 </div> <!-- Only for selected user role -->
4763 <hr>
4764 <div class="form-group row ays_toggle_parent">
4765 <div class="col-sm-3">
4766 <label for="ays_poll_enable_password">
4767 <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4768 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4770 </a>
4771 </label>
4772 </div>
4773 <div class="col-sm-1">
4774 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4775 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4776 </div>
4777 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4778 <div class="form-group row">
4779 <div class="col-sm-3">
4780 <label for="ays_poll_password">
4781 <?php echo esc_html__('Password' , "poll-maker")?>
4782 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4783 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4784 </a>
4785 </label>
4786 </div>
4787 <div class="col-sm-9">
4788 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4789 </div>
4790 </div>
4791 <hr>
4792 <div class="form-group row">
4793 <div class="col-sm-3">
4794 <label for="ays_poll_enable_password_visibility">
4795 <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4796 <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"); ?>">
4797 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4798 </a>
4799 </label>
4800 </div>
4801 <div class="col-sm-9">
4802 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_password_visibility" name="ays_poll_enable_password_visibility" value="on" <?php echo $poll_enable_password_visibility ? 'checked' : ''; ?>/>
4803 </div>
4804 </div>
4805 <hr>
4806 <div class="form-group row">
4807 <div class="col-sm-3">
4808 <label for="ays_poll_password">
4809 <?php echo esc_html__('Message', "poll-maker")?>
4810 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4811 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4812 </a>
4813 </label>
4814 </div>
4815
4816 <div class="col-sm-9">
4817 <?php
4818 $content = $poll_password_message;
4819 $editor_id = 'ays-poll-password-message';
4820 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4821 wp_editor($content, $editor_id, $settings);
4822 ?>
4823 </div>
4824 </div>
4825 </div>
4826 </div><!-- Password for passing Poll PRO Feautre-->
4827 <hr>
4828 <div class="form-group row">
4829 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4830 <div class="pro_features" style="justify-content:flex-end;">
4831 </div>
4832 <div class="form-group row ays_toggle_parent">
4833 <div class="col-sm-3">
4834 <label for="ays_enable_tackers_count">
4835 <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4836 <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")?>">
4837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4838 </a>
4839 </label>
4840 </div>
4841 <div class="col-sm-1">
4842 <input type="checkbox" class="ays-enable-timer1"
4843 name="ays_enable_tackers_count" value="on">
4844 </div>
4845 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4846 <div class="form-group row">
4847 <div class="col-sm-3">
4848 <label for="ays_tackers_count">
4849 <?php echo esc_html__('Count', "poll-maker")?>
4850 <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")?>">
4851 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4852 </a>
4853 </label>
4854 </div>
4855 <div class="col-sm-9">
4856 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4857 >
4858 </div>
4859 </div>
4860 </div>
4861 </div>
4862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4863 <div class="ays-poll-new-upgrade-button-box">
4864 <div>
4865 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4866 <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">
4867 </div>
4868 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4869 </div>
4870 </a>
4871 </div>
4872 </div><!-- Limitation count of takers Poll PRO Feautre-->
4873 <hr>
4874 <div class="form-group row">
4875 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4876 <div class="pro_features" style="justify-content:flex-end;">
4877 </div>
4878 <div class="form-group row ays_toggle_parent">
4879 <div class="col-sm-3">
4880 <label for="ays_enable_vote_limitation">
4881 <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4882 <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")?>">
4883 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4884 </a>
4885 </label>
4886 </div>
4887 <div class="col-sm-1">
4888 <input type="checkbox" class="ays-enable-timer1"
4889 name="ays_enable_vote_limitation" value="on" >
4890 </div>
4891 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4892 <div class="form-group row">
4893 <div class="col-sm-3">
4894 <label for="ays_vote_limitation">
4895 <?php echo esc_html__('Session Period', "poll-maker")?>
4896 <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")?>">
4897 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4898 </a>
4899 </label>
4900 </div>
4901 <div class="col-sm-7">
4902 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
4903
4904 </div>
4905 <div class="col-sm-2 ays_vote_limitation_time_period_box">
4906 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
4907 <option>Minute(s)
4908 </option>
4909 </select>
4910 </div>
4911 </div>
4912 <div class="form-group row d-flex w-100">
4913 <div class="col-sm-3">
4914 <label for="">
4915 <?php echo esc_html__('Message', "poll-maker"); ?>
4916 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4917 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"); ?>">
4918 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4919 </a>
4920 </label>
4921 </div>
4922 <div class="col-sm-9">
4923 <?php
4924 $editor_id = 'vote_limit_message';
4925 $settings = array(
4926 'editor_height' => 100,
4927 'textarea_name' => 'vote_limit_message',
4928 'editor_class' => 'ays-textarea',
4929 'media_elements' => false
4930 );
4931 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
4932 ?>
4933 </div>
4934 </div>
4935 </div>
4936 </div>
4937 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4938 <div class="ays-poll-new-upgrade-button-box">
4939 <div>
4940 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4941 <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">
4942 </div>
4943 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4944 </div>
4945 </a>
4946 </div>
4947 </div> <!-- Allow to vote once per session PRO Feautre-->
4948 <hr>
4949 <div class="form-group row">
4950 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4951 <div class="pro_features" style="justify-content:flex-end;">
4952 </div>
4953 <div class="form-group row ays_toggle_parent">
4954 <div class="col-sm-3">
4955 <label for="enable_limit_by_country">
4956 <?php echo esc_html__('Limit by country', "poll-maker")?>
4957 <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")?>">
4958 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4959 </a>
4960 </label>
4961 </div>
4962 <div class="col-sm-1">
4963 <input type="checkbox" class="ays-enable-timer1"/>
4964 </div>
4965 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4966 <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>
4967 <option selected value="AD">Andorra</option>
4968 <option selected value="US">United States</option>
4969 <option selected value="GB">United Kingdom</option>
4970 <option selected value="FR">France</option>
4971 </select>
4972 </div>
4973 </div>
4974 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4975 <div class="ays-poll-new-upgrade-button-box">
4976 <div>
4977 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4978 <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">
4979 </div>
4980 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4981 </div>
4982 </a>
4983 </div>
4984 </div> <!-- Limit by country PRO Feautre -->
4985 <hr>
4986 </div>
4987 </div>
4988 <div class="only_pro" style="position: relative; display: inline-block">
4989 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4990 <div class="pro-features-popup-conteiner">
4991 <div class="pro-features-popup-title">
4992 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4993 </div>
4994 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4995 <p>
4996 <?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"); ?>
4997 </p>
4998 <p>
4999 <?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"); ?>
5000 </p>
5001 </div>
5002 <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 ); ?>">
5003 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5004 </div>
5005 </div>
5006 </div>
5007 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5008 <span class="ays_save_as_default_content_for_mobile">
5009 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5010 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5011 </a>
5012 <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" ); ?>">
5013 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5014 </a>
5015 </span>
5016 </div>
5017 </div>
5018 </div>
5019 <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5020 <div class="ays-poll-accordion-options-main-container">
5021 <div class="ays-poll-accordion-header">
5022 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5023 <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
5024 </div>
5025 <hr class="ays-poll-bolder-hr"/>
5026 <div class="ays-poll-accordion-body">
5027 <div class="form-group row">
5028 <div class="col-sm-3">
5029 <label>
5030 <?php echo esc_html__('Information form title', "poll-maker"); ?>
5031 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5032 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"); ?>">
5033 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5034 </a>
5035 </label>
5036 </div>
5037 <div class="col-sm-9 ays_divider_left">
5038 <?php
5039 $content = stripslashes($options['info_form_title']);
5040 $editor_id = 'ays-poll-info-form-text';
5041 $settings = array(
5042 'editor_height' => $poll_wp_editor_height,
5043 'textarea_name' => 'ays-poll-info-form-text',
5044 'editor_class' => 'ays-textarea',
5045 'media_elements' => false
5046 );
5047 wp_editor($content, $editor_id, $settings);
5048 ?>
5049 </div>
5050 </div>
5051 <hr>
5052 <div class="form-group row ays_toggle_parent">
5053 <div class="col-sm-2">
5054 <label for='ays_poll_info_form'>
5055 <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
5056 <a class="ays_help" data-toggle="tooltip"
5057 data-placement="top"
5058 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"); ?>">
5059 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5060 </a>
5061 </label>
5062 </div>
5063 <div class="col-sm-1">
5064 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_info_form" id="ays_poll_info_form" value="on" <?php echo ($options['info_form'] == 1) ? 'checked' : ''; ?>>
5065 </div>
5066 <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' : ''; ?>">
5067 <div class="col-sm-7">
5068 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
5069 <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5070 <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")?>">
5071 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5072 </a>
5073 </label>
5074 <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; ?>>
5075 </div> <!-- Allow collecting information of logged in users -->
5076 </div>
5077 <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;"; ?>">
5078 <div>
5079 <label>
5080 <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5081 <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"); ?>">
5082 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5083 </a>
5084 </label>
5085 <hr>
5086 </div>
5087 <div>
5088 <div class="ays-poll-sel-fields d-flex">
5089 <?php foreach ( $all_fields as $field ): ?>
5090 <div class="ays-poll-check-box mr-2">
5091 <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5092 <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5093 <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5094 <?php echo ucfirst($field['name']); ?></label>
5095 </div>
5096 <?php endforeach; ?>
5097 </div>
5098 <hr>
5099 </div>
5100 <div>
5101 <label>
5102 <?php echo esc_html__('Required Fields', "poll-maker"); ?>
5103 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5104 title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
5105 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5106 </a>
5107 </label>
5108 <hr>
5109 </div>
5110 <div>
5111 <div class="ays-poll-sel-fields d-flex">
5112 <?php foreach ( $all_fields as $field ): ?>
5113 <div class="ays-poll-check-box mr-2"
5114 id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5115 $fields) === false) ? "style='display:none'" : ""; ?>>
5116 <input type="checkbox" name="ays-poll-form-required-fields[]"
5117 value="<?php echo $field['slug']; ?>"
5118 id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5119 $required_fields) !== false) ? "checked" : ""; ?>>
5120 <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5121 <?php echo ucfirst($field['name']); ?></label>
5122 </div>
5123 <?php endforeach; ?>
5124 </div>
5125 </div>
5126 </div>
5127 <hr>
5128 </div>
5129 <hr>
5130 <div class="form-group row">
5131 <div class="col-sm-3">
5132 <label for="ays_poll_autofill_user_data">
5133 <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
5134 <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"); ?>">
5135 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5136 </a>
5137 </label>
5138 </div>
5139 <div class="col-sm-9">
5140 <div class="information_form_settings">
5141 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
5142 </div>
5143 </div>
5144 </div>
5145 <hr>
5146 <div class="form-group row">
5147 <div class="col-sm-3">
5148 <label for="ays_poll_display_fields_labels">
5149 <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
5150 <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"); ?>">
5151 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5152 </a>
5153 </label>
5154 </div>
5155 <div class="col-sm-9">
5156 <div class="information_form_settings">
5157 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
5158 </div>
5159 </div>
5160 </div>
5161 <hr>
5162 <div class="form-group row">
5163 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5164 <div class="pro_features" style="justify-content:flex-end;">
5165 </div>
5166 <div class="form-group row">
5167 <div class="col-sm-3">
5168 <label>
5169 <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5170 <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"); ?>">
5171 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5172 </a>
5173 </label>
5174 </div>
5175 <div class="col-sm-9">
5176 <blockquote>
5177 <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5178 <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
5179 </blockquote>
5180 </div>
5181 </div>
5182 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5183 <div class="ays-poll-new-upgrade-button-box">
5184 <div>
5185 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5186 <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">
5187 </div>
5188 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5189 </div>
5190 </a>
5191 </div>
5192 </div>
5193 <hr>
5194 </div>
5195 </div>
5196 <div class="only_pro" style="position: relative; display: inline-block">
5197 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5198 <div class="pro-features-popup-conteiner">
5199 <div class="pro-features-popup-title">
5200 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5201 </div>
5202 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5203 <p>
5204 <?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"); ?>
5205 </p>
5206 <p>
5207 <?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"); ?>
5208 </p>
5209 </div>
5210 <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 ); ?>">
5211 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5212 </div>
5213 </div>
5214 </div>
5215 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5216 <span class="ays_save_as_default_content_for_mobile">
5217 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5218 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5219 </a>
5220 <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" ); ?>">
5221 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5222 </a>
5223 </span>
5224 </div>
5225 </div>
5226 </div>
5227 <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5228 <div class="ays-poll-accordion-options-main-container">
5229 <div class="ays-poll-accordion-header">
5230 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5231 <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
5232 </div>
5233 <hr class="ays-poll-bolder-hr"/>
5234 <div class="ays-poll-accordion-body">
5235 <div class="form-group row ays_toggle_parent">
5236 <div class="col-sm-3">
5237 <label for="ays_notify_by_email_on">
5238 <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
5239 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5240 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"); ?>">
5241 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5242 </a>
5243 </label>
5244 </div>
5245 <div class="col-sm-1">
5246 <input type="checkbox" class="ays_toggle_checkbox" id="ays_notify_by_email_on" name="ays_notify_by_email_on" value="on" <?php echo ($notify_email_on) ? 'checked' : ''; ?> />
5247 </div>
5248 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5249 <div class="row ays_divider_left">
5250 <div class="col-sm-3">
5251 <label for="ays_notify_email">
5252 <?php echo esc_html__('Email address', "poll-maker"); ?>
5253 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5254 title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5255 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5256 </a>
5257 </label>
5258 </div>
5259 <div class="col-sm-9">
5260 <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">
5261 </div>
5262 </div>
5263 </div>
5264 </div>
5265 <hr>
5266 <div class="form-group row">
5267 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5268 <div class="pro_features pro_features_popup">
5269 <div class="pro-features-popup-conteiner">
5270 <div class="pro-features-popup-title">
5271 <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
5272 </div>
5273 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5274 <p>
5275 <?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"); ?>
5276 </p>
5277 <p>
5278 <?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"); ?>
5279 </p>
5280 </div>
5281 <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 ); ?>">
5282 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5283 </div>
5284 </div>
5285 </div>
5286 <div class="pro_features" style="justify-content:flex-end;">
5287 </div>
5288 <div class="form-group row" >
5289 <div class="col-sm-3">
5290 <label for="ays_enable_mail_user">
5291 <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
5292 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5293 title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5294 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5295 </a>
5296 </label>
5297 </div>
5298 <div class="col-sm-1">
5299 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5300 </div>
5301 <div class="col-sm-8 if-enable-email_note">
5302
5303 </div>
5304 </div>
5305 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5306 <div class="ays-poll-new-upgrade-button-box">
5307 <div>
5308 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5309 <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">
5310 </div>
5311 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5312 </div>
5313 </a>
5314 <div class="ays-poll-new-watch-video-button-box">
5315 <div>
5316 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5317 <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">
5318 </div>
5319 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5320 </div>
5321 </div>
5322 </div>
5323 <hr>
5324 <div class="form-group row">
5325 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5326 <div class="pro_features" style="justify-content:flex-end;">
5327 </div>
5328 <div class="form-group row">
5329 <div class="col-sm-4">
5330 <label>
5331 <?php echo esc_html__('Email configuration', "poll-maker")?>
5332 <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"); ?>">
5333 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5334 </a>
5335 </label>
5336 </div>
5337 <div class="col-sm-8 ays_divider_left">
5338 <div class="form-group row">
5339 <div class="col-sm-3">
5340 <label for="ays_poll_email_configuration_from_email">
5341 <?php echo esc_html__('From email', "poll-maker")?>
5342 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5343 /* translators: 1: opening em tag, 2: closing em tag */
5344 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"),
5345 '<em>',
5346 '</em>'
5347 ) );
5348 ?>">
5349 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5350 </a>
5351 </label>
5352 </div>
5353 <div class="col-sm-9">
5354 <input type="text" class="ays-text-input" />
5355 </div>
5356 </div> <!-- From email -->
5357 <hr/>
5358 <div class="form-group row">
5359 <div class="col-sm-3">
5360 <label for="ays_poll_email_configuration_from_name">
5361 <?php echo esc_html__('From name', "poll-maker")?>
5362 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5363 /* translators: 1: opening em tag, 2: closing em tag */
5364 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"),
5365 // translators: 1: opening em tag,
5366 '<em>',
5367 // translators: 2: closing em tag
5368 '</em>'
5369 ), array(
5370 'em' => array()
5371 ) );
5372 ?>">
5373 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5374 </a>
5375 </label>
5376 </div>
5377 <div class="col-sm-9">
5378 <input type="text" class="ays-text-input" >
5379 </div>
5380 </div><!-- From name -->
5381 <hr/>
5382 <div class="form-group row">
5383 <div class="col-sm-3">
5384 <label for="ays_poll_email_configuration_from_subject">
5385 <?php echo esc_html__('Subject', "poll-maker")?>
5386 <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"); ?>">
5387 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5388 </a>
5389 </label>
5390 </div>
5391 <div class="col-sm-9">
5392 <input type="text" class="ays-text-input">
5393 </div>
5394 </div> <!-- Subject -->
5395 <hr/>
5396 <div class="form-group row">
5397 <div class="col-sm-3">
5398 <label for="ays_poll_email_configuration_replyto_email">
5399 <?php echo esc_html__('Reply to email', "poll-maker")?>
5400 <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"); ?>">
5401 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5402 </a>
5403 </label>
5404 </div>
5405 <div class="col-sm-9">
5406 <input type="text" class="ays-text-input">
5407 </div>
5408 </div> <!-- Reply to email -->
5409 <hr/>
5410 <div class="form-group row">
5411 <div class="col-sm-3">
5412 <label for="ays_poll_email_configuration_replyto_name">
5413 <?php echo esc_html__('Reply to name', "poll-maker")?>
5414 <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"); ?>">
5415 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5416 </a>
5417 </label>
5418 </div>
5419 <div class="col-sm-9">
5420 <input type="text" class="ays-text-input">
5421 </div>
5422 </div> <!-- Reply to name -->
5423 </div>
5424 </div> <!-- Email Configuration -->
5425 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5426 <div class="ays-poll-new-upgrade-button-box">
5427 <div>
5428 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5429 <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">
5430 </div>
5431 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5432 </div>
5433 </a>
5434 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5435 <div class="ays-poll-center-big-main-button-box">
5436 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5437 <div class="ays-poll-center-new-big-upgrade-button">
5438 <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">
5439 <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">
5440 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5441 </div>
5442 </a>
5443 </div>
5444 </div>
5445 </div>
5446 </div>
5447 <hr>
5448 </div>
5449 </div>
5450 <div class="only_pro" style="position: relative; display: inline-block">
5451 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5452 <div class="pro-features-popup-conteiner">
5453 <div class="pro-features-popup-title">
5454 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5455 </div>
5456 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5457 <p>
5458 <?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"); ?>
5459 </p>
5460 <p>
5461 <?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"); ?>
5462 </p>
5463 </div>
5464 <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 ); ?>">
5465 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5466 </div>
5467 </div>
5468 </div>
5469 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5470 <span class="ays_save_as_default_content_for_mobile">
5471 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5472 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5473 </a>
5474 <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" ); ?>">
5475 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5476 </a>
5477 </span>
5478 </div>
5479 </div>
5480 </div>
5481 <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5482 <div class="ays-poll-accordion-options-main-container">
5483 <div class="ays-poll-accordion-header">
5484 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5485 <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5486 </div>
5487 <hr class="ays-poll-bolder-hr"/>
5488 <div class="ays-poll-accordion-body">
5489 <fieldset class="ays_poll_settings_integration_container">
5490 <legend>
5491 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5492 <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5493 </legend>
5494 <?php
5495 if(count($mailchimp) > 0):
5496 ?>
5497 <?php
5498 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5499 ?>
5500 <blockquote class="error_message">
5501 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5502 <?php echo (
5503 /* translators: anchor tag */
5504 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5505 "<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>"
5506 )
5507 );
5508 ?>
5509 </blockquote>
5510 <?php
5511 else:
5512 ?>
5513 <div class="form-group row">
5514 <div class="col-sm-4">
5515 <label for="ays_enable_mailchimp">
5516 <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5517 </label>
5518 </div>
5519 <div class="col-sm-1">
5520 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5521 name="ays_enable_mailchimp"
5522 value="on"
5523 <?php
5524 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5525 echo "disabled";
5526 }else{
5527 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5528 }
5529 ?>/>
5530 </div>
5531 </div>
5532 <hr>
5533 <div class="form-group row">
5534 <div class="col-sm-4">
5535 <label for="ays_mailchimp_list">
5536 <?php echo esc_html__('MailChimp list', "poll-maker")?>
5537 </label>
5538 </div>
5539 <div class="col-sm-8">
5540 <?php if(is_array($mailchimp_select)): ?>
5541 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5542 <?php
5543 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5544 echo 'disabled';
5545 }
5546 ?>>
5547 <option value="" disabled selected>Select list</option>
5548 <?php foreach($mailchimp_select as $mlist): ?>
5549 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5550 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5551 <?php endforeach; ?>
5552 </select>
5553 <?php else: ?>
5554 <span><?php echo esc_html($mailchimp_select); ?></span>
5555 <?php endif; ?>
5556 </div>
5557 </div>
5558 <?php
5559 endif;
5560 ?>
5561 <?php
5562 else:
5563 ?>
5564 <blockquote class="error_message">
5565 <?php echo (
5566 /* translators: anchor tag */
5567 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5568 "<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>"
5569 )
5570 );
5571 ?>
5572 </blockquote>
5573 <?php
5574 endif;
5575 ?>
5576 </fieldset><!-- MailChimp Settings -->
5577 <hr/>
5578 <fieldset class="ays_poll_settings_integration_container">
5579 <legend>
5580 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5581 <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5582 </legend>
5583 <div class="form-group row" style="margin: 0px;">
5584 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5585 <div class="pro_features" style="justify-content:flex-end;">
5586 </div>
5587 <div class="form-group row">
5588 <div class="col-sm-4">
5589 <label for="ays_enable_monitor">
5590 <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5591 </label>
5592 </div>
5593 <div class="col-sm-8">
5594 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5595 </div>
5596 </div>
5597 <hr>
5598 <div class="form-group row">
5599 <div class="col-sm-4">
5600 <label for="ays_monitor_list">
5601 <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5602 </label>
5603 </div>
5604 <div class="col-sm-8">
5605 <select name="ays_monitor_list" id="ays_monitor_list">
5606 <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5607 </select>
5608 </div>
5609 </div>
5610 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5611 <div class="ays-poll-new-upgrade-button-box">
5612 <div>
5613 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5614 <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">
5615 </div>
5616 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5617 </div>
5618 </a>
5619 </div>
5620 </div>
5621 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5622 <hr/>
5623 <fieldset class="ays_poll_settings_integration_container">
5624 <legend>
5625 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5626 <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5627 </legend>
5628 <div class="form-group row" style="margin: 0px;">
5629 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5630 <div class="pro_features" style="justify-content:flex-end;">
5631 </div>
5632 <div class="form-group row">
5633 <div class="col-sm-4">
5634 <label for="ays_enable_zapier">
5635 <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5636 </label>
5637 </div>
5638 <div class="col-sm-1">
5639 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5640 </div>
5641 <div class="col-sm-3">
5642 <button type="button"
5643 id="testZapier"
5644 class="btn btn-outline-secondary">
5645 <?php echo esc_html__("Send test data", "poll-maker") ?>
5646 </button>
5647 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5648 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") ?>">
5649 <i class="ays_fa ays_fa_info_circle"></i>
5650 </a>
5651 </div>
5652 </div>
5653 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5654 <div class="ays-poll-new-upgrade-button-box">
5655 <div>
5656 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5657 <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">
5658 </div>
5659 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5660 </div>
5661 </a>
5662 </div>
5663 </div>
5664 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5665 <hr/>
5666 <fieldset class="ays_poll_settings_integration_container">
5667 <legend>
5668 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5669 <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5670 </legend>
5671 <div class="form-group row" style="margin: 0px;">
5672 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5673 <div class="pro_features" style="justify-content:flex-end;">
5674 </div>
5675 <div class="form-group row">
5676 <div class="col-sm-4">
5677 <label for="ays_enable_active_camp">
5678 <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5679 </label>
5680 </div>
5681 <div class="col-sm-1">
5682 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5683 </div>
5684 </div>
5685 <hr>
5686 <div class="form-group row">
5687 <div class="col-sm-4">
5688 <label>
5689 <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5690 </label>
5691 </div>
5692 <div class="col-sm-8">
5693 <select name="ays_active_camp_list" id="ays_active_camp_list">
5694 <option value="" disabled
5695 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5696 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5697 </select>
5698 </div>
5699 </div>
5700 <hr>
5701 <div class="form-group row">
5702 <div class="col-sm-4">
5703 <label>
5704 <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5705 </label>
5706 </div>
5707 <div class="col-sm-8">
5708 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5709 <option value="" disabled
5710 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5711 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5712 </select>
5713 </div>
5714 </div>
5715 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5716 <div class="ays-poll-new-upgrade-button-box">
5717 <div>
5718 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5719 <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">
5720 </div>
5721 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5722 </div>
5723 </a>
5724 </div>
5725 </div>
5726 </fieldset><!-- Active Campaign Settings PRO Feature -->
5727 <hr/>
5728 <fieldset class="ays_poll_settings_integration_container">
5729 <legend>
5730 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5731 <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5732 </legend>
5733 <div class="form-group row" style="margin: 0px;">
5734 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5735 <div class="pro_features" style="justify-content:flex-end;">
5736 </div>
5737 <div class="form-group row">
5738 <div class="col-sm-4">
5739 <label for="ays_enable_slack">
5740 <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5741 </label>
5742 </div>
5743 <div class="col-sm-1">
5744 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5745 </div>
5746 </div>
5747 <hr>
5748 <div class="form-group row">
5749 <div class="col-sm-4">
5750 <label>
5751 <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5752 </label>
5753 </div>
5754 <div class="col-sm-8">
5755 <select id="ays_slack_conversation">
5756 <option value="" disabled
5757 selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5758 </select>
5759 </div>
5760 </div>
5761 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5762 <div class="ays-poll-new-upgrade-button-box">
5763 <div>
5764 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5765 <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">
5766 </div>
5767 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5768 </div>
5769 </a>
5770 </div>
5771 </div>
5772 </fieldset> <!-- Slack Settings PRO Feature -->
5773 <hr>
5774 <fieldset class="ays_poll_settings_integration_container">
5775 <legend>
5776 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5777 <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5778 </legend>
5779 <div class="form-group row" style="margin: 0px;">
5780 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5781 <div class="pro_features" style="justify-content:flex-end;">
5782 </div>
5783 <div class="form-group row">
5784 <div class="col-sm-4">
5785 <label for="ays_poll_enable_google">
5786 <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5787 </label>
5788 </div>
5789 <div class="col-sm-1">
5790 <input type="checkbox" class="ays-enable-timer1"
5791 value="on">
5792 </div>
5793 </div>
5794 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5795 <div class="ays-poll-new-upgrade-button-box">
5796 <div>
5797 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5798 <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">
5799 </div>
5800 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5801 </div>
5802 </a>
5803 </div>
5804 </div>
5805 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5806 <hr>
5807 <fieldset class="ays_poll_settings_integration_container">
5808 <legend>
5809 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5810 <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5811 </legend>
5812 <div class="form-group row" style="margin: 0px;">
5813 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5814 <div class="pro_features" style="justify-content:flex-end;">
5815 </div>
5816 <hr/>
5817 <div class="form-group row">
5818 <div class="col-sm-4">
5819 <label for="ays_poll_enable_mad_mimi">
5820 <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5821 </label>
5822 </div>
5823 <div class="col-sm-1">
5824 <input type="checkbox" class="ays-enable-timer1">
5825 </div>
5826 </div>
5827 <hr>
5828 <div class="form-group row">
5829 <div class="col-sm-4">
5830 <label>
5831 <?php echo esc_html__('Select List', "poll-maker") ?>
5832 </label>
5833 </div>
5834 <div class="col-sm-8">
5835 <?php
5836 $allowed_tags = array(
5837 'select' => array(
5838 'id' => array(),
5839 'class' => array()
5840 ),
5841 'option' => array(
5842 'value' => array(),
5843 'selected' => array()
5844 )
5845 );
5846
5847 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5848 $mad_mimi_select .= "<option value=''>Select list</option>";
5849 $mad_mimi_select .= "</select>";
5850 echo wp_kses($mad_mimi_select, $allowed_tags);
5851
5852 ?>
5853 </div>
5854 </div>
5855 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5856 <div class="ays-poll-new-upgrade-button-box">
5857 <div>
5858 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5859 <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">
5860 </div>
5861 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5862 </div>
5863 </a>
5864 </div>
5865 </div>
5866 </fieldset> <!-- Mad Mimi -->
5867 <hr>
5868 <fieldset class="ays_poll_settings_integration_container">
5869 <legend>
5870 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5871 <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5872 </legend>
5873 <div class="form-group row" style="margin: 0px;">
5874 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5875 <div class="pro_features" style="justify-content:flex-end;">
5876 </div>
5877 <div class="form-group row">
5878 <div class="col-sm-4">
5879 <label for="ays_poll_enable_getResponse">
5880 <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5881 </label>
5882 </div>
5883 <div class="col-sm-8">
5884 <input type="checkbox"
5885 class="ays-enable-timer1">
5886 </div>
5887 </div>
5888 <hr>
5889 <div class="form-group row">
5890 <div class="col-sm-4">
5891 <label>
5892 <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5893 </label>
5894 </div>
5895 <div class="col-sm-8">
5896 <?php
5897 $allowed_tags = array(
5898 'select' => array(
5899 'id' => array(),
5900 'class' => array(),
5901 'name' => array()
5902 ),
5903 'option' => array(
5904 'value' => array(),
5905 'selected' => array(),
5906 'disabled' => array()
5907 )
5908 );
5909 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5910 $mad_mimi_select .= "<option value=''>Select list</option>";
5911 $mad_mimi_select .= "</select>";
5912 echo wp_kses($mad_mimi_select, $allowed_tags);
5913
5914 ?>
5915 </div>
5916 </div>
5917 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5918 <div class="ays-poll-new-upgrade-button-box">
5919 <div>
5920 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5921 <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">
5922 </div>
5923 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5924 </div>
5925 </a>
5926 </div>
5927 </div>
5928 </fieldset> <!-- GetResponse Settings -->
5929 <hr>
5930 <fieldset class="ays_poll_settings_integration_container">
5931 <legend>
5932 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
5933 <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
5934 </legend>
5935 <div class="form-group row" style="margin: 0px;">
5936 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5937 <div class="pro_features" style="justify-content:flex-end;">
5938 </div>
5939 <div class="form-group row">
5940 <div class="col-sm-4">
5941 <label for="ays_poll_enable_convertkit">
5942 <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
5943 </label>
5944 </div>
5945 <div class="col-sm-1">
5946 <input type="checkbox" class="ays-enable-timer1"/>
5947 </div>
5948 </div>
5949 <hr>
5950 <div class="form-group row">
5951 <div class="col-sm-4">
5952 <label>
5953 <?php echo esc_html__('ConvertKit list', "poll-maker")?>
5954 </label>
5955 </div>
5956 <div class="col-sm-8">
5957 <select id="ays_poll_convertKit_list">
5958 <option value="" disabled selected>Select list</option>
5959 </select>
5960 </div>
5961 </div>
5962 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5963 <div class="ays-poll-new-upgrade-button-box">
5964 <div>
5965 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5966 <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">
5967 </div>
5968 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5969 </div>
5970 </a>
5971 </div>
5972 </div>
5973 </fieldset> <!-- ConvertKit Settings -->
5974 <hr/>
5975 <fieldset class="ays_poll_settings_integration_container">
5976 <legend>
5977 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
5978 <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
5979 </legend>
5980 <div class="form-group row" style="margin: 0px;">
5981 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5982 <div class="pro_features" style="justify-content:flex-end;">
5983 </div>
5984 <div class="form-group row">
5985 <div class="col-sm-4">
5986 <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
5987 </div>
5988 <div class="col-sm-1">
5989 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5990 </div>
5991 </div>
5992 <hr>
5993 <div class="form-group row">
5994 <div class="col-sm-4">
5995 <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
5996 </div>
5997 <div class="col-sm-8">
5998 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5999 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6000 </select>
6001 </div>
6002 </div>
6003 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6004 <div class="ays-poll-new-upgrade-button-box">
6005 <div>
6006 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6007 <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">
6008 </div>
6009 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6010 </div>
6011 </a>
6012 </div>
6013 </div>
6014 </fieldset> <!-- Klaviyo -->
6015 <hr>
6016 <fieldset class="ays_poll_settings_integration_container">
6017 <legend>
6018 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6019 <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
6020 </legend>
6021 <div class="form-group row" style="margin: 0px;">
6022 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6023 <div class="pro_features" style="justify-content:flex-end;">
6024 </div>
6025 <div class="form-group row">
6026 <div class="col-sm-4">
6027 <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
6028 </div>
6029 <div class="col-sm-1">
6030 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
6031 </div>
6032 </div>
6033 <hr>
6034 <div class="form-group row">
6035 <div class="col-sm-4">
6036 <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
6037 </div>
6038 <div class="col-sm-8">
6039 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
6040 <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
6041 </select>
6042 </div>
6043 </div>
6044 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6045 <div class="ays-poll-new-upgrade-button-box">
6046 <div>
6047 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6048 <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">
6049 </div>
6050 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6051 </div>
6052 </a>
6053 </div>
6054 </div>
6055 </fieldset> <!-- Aweber -->
6056 <hr>
6057 <fieldset class="ays_poll_settings_integration_container">
6058 <legend>
6059 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6060 <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
6061 </legend>
6062 <div class="form-group row" style="margin:0;">
6063 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6064 <div class="pro_features" style="justify-content:flex-end;">
6065 </div>
6066 <div class="form-group row">
6067 <div class="col-sm-4">
6068 <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
6069 </div>
6070 <div class="col-sm-1">
6071 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
6072 </div>
6073 </div>
6074 <hr>
6075 <div class="form-group row">
6076 <div class="col-sm-4">
6077 <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
6078 </div>
6079 <div class="col-sm-8">
6080 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
6081 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6082 </select>
6083 </div>
6084 </div>
6085 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6086 <div class="ays-poll-new-upgrade-button-box">
6087 <div>
6088 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6089 <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">
6090 </div>
6091 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6092 </div>
6093 </a>
6094 </div>
6095 </div>
6096 </fieldset> <!-- Mailpoet -->
6097 <hr>
6098 <fieldset class="ays_poll_settings_integration_container">
6099 <legend>
6100 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6101 <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6102 </legend>
6103 <div class="form-group row" style="margin:0;">
6104 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6105 <div class="pro_features" style="justify-content:flex-end;">
6106 </div>
6107 <div class="form-group row">
6108 <div class="col-sm-4">
6109 <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6110 </div>
6111 <div class="col-sm-1">
6112 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6113 </div>
6114 </div>
6115 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6116 <div class="ays-poll-new-upgrade-button-box">
6117 <div>
6118 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6119 <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">
6120 </div>
6121 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6122 </div>
6123 </a>
6124 </div>
6125 </div>
6126 </fieldset> <!-- reCaptcha Settings -->
6127 <hr>
6128 </div>
6129 </div>
6130 </div>
6131 <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6132 <div class="ays-poll-accordion-options-main-container">
6133 <div class="ays-poll-accordion-header">
6134 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6135 <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
6136 </div>
6137 <hr class="ays-poll-bolder-hr"/>
6138 <div class="ays-poll-accordion-body">
6139 <div class="form-group row">
6140 <div class="col-sm-3">
6141 <label for='show-res-percent'>
6142 <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
6143 <a class="ays_help" data-toggle="tooltip"
6144 data-placement="top"
6145 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"); ?>">
6146 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6147 </a>
6148 </label>
6149 </div>
6150 <div class="col-sm-9">
6151 <input type="checkbox" name="show_res_percent" id="show-res-percent"
6152 value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
6153 </div>
6154 </div>
6155 <hr>
6156 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
6157 <div class="col-sm-3">
6158 <label for='ays-poll-hide-results'>
6159 <?php echo esc_html__('Hide results', "poll-maker"); ?>
6160 <a class="ays_help"
6161 data-toggle="tooltip"
6162 data-placement="top"
6163 title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6164 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6165 </a>
6166 </label>
6167 <p class="ays_poll_small_hint_text_for_message_variables">
6168 <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6169 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
6170 </p>
6171 </div>
6172 <div class="col-sm-9 ays_toggle_parent">
6173 <div class="form-group row">
6174
6175 <!-- <div class="col-sm-1"> -->
6176 <div class="col-sm-12">
6177 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
6178 value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6179 </div>
6180 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
6181 <div class="form-group row">
6182 <div class="col-sm-12">
6183 <div>
6184 <label for='ays-poll-hide-results-text'>
6185 <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
6186 <a class="ays_help"
6187 data-toggle="tooltip"
6188 data-placement="top"
6189 title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6190 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6191 </a>
6192 </label>
6193 </div>
6194 <?php
6195 $allowed_tags = array(
6196 'div' => array(
6197 'class' => true
6198 ),
6199 'i' => array(
6200 'class' => true
6201 ),
6202 'span' => array(),
6203 'a' => array(
6204 'class' => true,
6205 'data-toggle' => true,
6206 'data-html' => true,
6207 'title' => true
6208 ),
6209 'label' => array(
6210 'class' => true
6211 ),
6212 'input' => array(
6213 'type' => true,
6214 'class' => true,
6215 'hidden' => true,
6216 'id' => true,
6217 'name' => true,
6218 'value' => true
6219 )
6220 );
6221 echo wp_kses($poll_message_vars_html, $allowed_tags);
6222 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6223 $editor_id = 'ays-poll-hide-results-text';
6224 $settings = array(
6225 'editor_height' => $poll_wp_editor_height,
6226 'textarea_name' => 'ays-poll-hide-results-text',
6227 'editor_class' => 'ays-textarea',
6228 'media_elements' => false
6229 );
6230 wp_editor($content, $editor_id, $settings);
6231 ?>
6232 </div>
6233 </div>
6234 </div>
6235 </div>
6236 </div>
6237 </div>
6238 <hr>
6239 <div class="form-group row ays-poll-desc-message-vars-parent">
6240 <div class="col-sm-3">
6241 <label for="ays_poll_result_message">
6242 <?php echo esc_html__('Result Message', "poll-maker")?>
6243 <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")?>">
6244 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6245 </a>
6246 </label>
6247 <p class="ays_poll_small_hint_text_for_message_variables">
6248 <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6249 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
6250 </p>
6251 </div>
6252 <div class="col-sm-9 ays_toggle_parent">
6253 <div class="form-group row">
6254 <div class="col-sm-12">
6255 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
6256 value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6257 </div>
6258 <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;'; ?>">
6259 <?php
6260 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6261 $allowed_tags = array(
6262 'div' => array(
6263 'class' => true
6264 ),
6265 'i' => array(
6266 'class' => true
6267 ),
6268 'span' => array(),
6269 'a' => array(
6270 'class' => true,
6271 'data-toggle' => true,
6272 'data-html' => true,
6273 'title' => true
6274 ),
6275 'label' => array(
6276 'class' => true
6277 ),
6278 'input' => array(
6279 'type' => true,
6280 'class' => true,
6281 'hidden' => true,
6282 'id' => true,
6283 'name' => true,
6284 'value' => true
6285 )
6286 );
6287 echo wp_kses($poll_message_vars_html, $allowed_tags);
6288 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6289 $editor_id = 'ays_result_message';
6290 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6291 wp_editor($content, $editor_id, $settings);
6292 ?>
6293 </div>
6294 </div>
6295 </div>
6296 </div>
6297 <hr>
6298 <div class="form-group row">
6299 <div class="col-sm-3">
6300 <label for='ays-poll-result-sort-type'>
6301 <?php echo esc_html__('Results sorting', "poll-maker"); ?>
6302 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
6303 echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6304 "<ul style='list-style-type: circle;padding-left: 20px;'>".
6305 "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6306 "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6307 "<li>".esc_html__('None', "poll-maker") ."</li>".
6308 "</ul>";
6309 ?>">
6310 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6311 </a></label>
6312 </div>
6313 <div class="col-sm-9">
6314 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
6315 <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6316 <?php echo esc_html__("None", "poll-maker"); ?>
6317 </option>
6318 <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6319 <?php echo esc_html__("Ascending", "poll-maker"); ?>
6320 </option>
6321 <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6322 <?php echo esc_html__("Descending", "poll-maker"); ?>
6323 </option>
6324 </select>
6325 </div>
6326 </div>
6327 <hr>
6328 <div class="form-group row">
6329 <div class="col-sm-3">
6330 <label for='show-votes-count'>
6331 <?php echo esc_html__('Show votes count', "poll-maker"); ?>
6332 <a class="ays_help" data-toggle="tooltip"
6333 data-placement="top"
6334 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"); ?>">
6335 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6336 </a>
6337 </label>
6338 </div>
6339 <div class="col-sm-9">
6340 <input type="checkbox" name="show_votes_count" id="show-votes-count"
6341 value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
6342 </div>
6343 </div>
6344 <hr>
6345
6346 <!-- Loading effect start -->
6347
6348 <div class="form-group row">
6349 <div class="col-sm-3">
6350 <label for='ays-poll-load-effect'>
6351 <?php echo esc_html__('Loading effect', "poll-maker"); ?>
6352 <a class="ays_help" data-toggle="tooltip"
6353 data-placement="top"
6354 title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6355 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6356 </a>
6357 </label>
6358 </div>
6359 <div class="col-sm-3">
6360 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
6361 <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6362 <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
6363 </option>
6364 <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6365 <?php echo esc_html__("Opacity", "poll-maker"); ?>
6366 </option>
6367 <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6368 <?php echo esc_html__("Blur", "poll-maker"); ?>
6369 </option>
6370 <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6371 <?php echo esc_html__("Message", "poll-maker"); ?>
6372 </option>
6373 <option class="apm-pro-feature" disabled
6374 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6375 <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
6376 </option>
6377 </select>
6378 </div>
6379 <div class="if-loading-gif col-sm-6 row">
6380 <div class="apm-loader d-flex justify-content-between align-items-center">
6381 <input type="radio"
6382 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' : ''; ?>
6383 id="plg_default" value="plg_default">
6384 <label for="plg_default" class="apm-loading-gif">
6385 <div class="loader loader--style3">
6386 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6387 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6388 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6389 xml:space="preserve">
6390 <path fill="#000"
6391 d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318, 0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0, 14.615, 6.543,14.615,14.615H43.935z">
6392 <animateTransform attributeType="xml" attributeName="transform"
6393 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6394 repeatCount="indefinite"/>
6395 </path>
6396 </svg>
6397 </div>
6398 </label>
6399 </div>
6400 <div class="apm-loader d-flex justify-content-between align-items-center">
6401 <input type="radio"
6402 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' : ''; ?>
6403 id="plg_1" value="plg_1">
6404 <label for="plg_1" class="apm-loading-gif">
6405 <div class="loader loader--style5">
6406 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6407 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6408 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6409 xml:space="preserve">
6410 <rect x="0" y="0" width="4" height="10" fill="#333">
6411 <animateTransform attributeType="xml" attributeName="transform"
6412 type="translate" values="0 0; 0 20; 0 0" begin="0"
6413 dur="0.8s" repeatCount="indefinite"/>
6414 </rect>
6415 <rect x="10" y="0" width="4" height="10" fill="#333">
6416 <animateTransform attributeType="xml" attributeName="transform"
6417 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
6418 dur="0.8s" repeatCount="indefinite"/>
6419 </rect>
6420 <rect x="20" y="0" width="4" height="10" fill="#333">
6421 <animateTransform attributeType="xml" attributeName="transform"
6422 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
6423 dur="0.8s" repeatCount="indefinite"/>
6424 </rect>
6425 </svg>
6426 </div>
6427 </label>
6428 </div>
6429 <div class="apm-loader d-flex justify-content-between align-items-center">
6430 <input type="radio"
6431 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' : ''; ?>
6432 id="plg_2" value="plg_2">
6433 <label for="plg_2" class="apm-loading-gif">
6434 <div class="loader loader--style8">
6435 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6436 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6437 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6438 xml:space="preserve">
6439 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6440 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6441 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6442 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6443 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6444 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6445 dur="0.7s" repeatCount="indefinite"/>
6446 </rect>
6447 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6448 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6449 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6450 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6451 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6452 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6453 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6454 </rect>
6455 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6456 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6457 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6458 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6459 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6460 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6461 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6462 </rect>
6463 </svg>
6464 </div>
6465 </label>
6466 </div>
6467 <div class="apm-loader d-flex justify-content-between align-items-center">
6468 <input type="radio"
6469 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' : ''; ?>
6470 id="plg_3" value="plg_3">
6471 <label for="plg_3" class="apm-loading-gif">
6472 <div class="loader loader--style5">
6473 <svg width="100%" height="100%" viewBox="0 0 105 105"
6474 xmlns="http://www.w3.org/2000/svg" fill="#000">
6475 <circle cx="12.5" cy="12.5" r="12.5">
6476 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6477 calcMode="linear" repeatCount="indefinite"/>
6478 </circle>
6479 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6480 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6481 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6482 </circle>
6483 <circle cx="52.5" cy="12.5" r="12.5">
6484 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6485 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6486 </circle>
6487 <circle cx="52.5" cy="52.5" r="12.5">
6488 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6489 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6490 </circle>
6491 <circle cx="92.5" cy="12.5" r="12.5">
6492 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6493 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6494 </circle>
6495 <circle cx="92.5" cy="52.5" r="12.5">
6496 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6497 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6498 </circle>
6499 <circle cx="12.5" cy="92.5" r="12.5">
6500 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6501 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6502 </circle>
6503 <circle cx="52.5" cy="92.5" r="12.5">
6504 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6505 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6506 </circle>
6507 <circle cx="92.5" cy="92.5" r="12.5">
6508 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6509 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6510 </circle>
6511 </svg>
6512 </div>
6513 </label>
6514 </div>
6515 <div class="apm-loader d-flex justify-content-between align-items-center">
6516 <input type="radio"
6517 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' : ''; ?>
6518 id="plg_4" value="plg_4">
6519 <label for="plg_4" class="apm-loading-gif">
6520 <div class="loader loader--style4">
6521 <svg width="100%" height="100%" viewBox="0 0 57 57"
6522 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6523 <g fill="none" fill-rule="evenodd">
6524 <g transform="translate(1 1)" stroke-width="2">
6525 <circle cx="5" cy="50" r="5">
6526 <animate attributeName="cy" begin="0s" dur="2.2s"
6527 values="50;5;50;50" calcMode="linear"
6528 repeatCount="indefinite"/>
6529 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6530 calcMode="linear" repeatCount="indefinite"/>
6531 </circle>
6532 <circle cx="27" cy="5" r="5">
6533 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6534 values="5;50;50;5" calcMode="linear"
6535 repeatCount="indefinite"/>
6536 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6537 values="27;49;5;27" calcMode="linear"
6538 repeatCount="indefinite"/>
6539 </circle>
6540 <circle cx="49" cy="50" r="5">
6541 <animate attributeName="cy" begin="0s" dur="2.2s"
6542 values="50;50;5;50" calcMode="linear"
6543 repeatCount="indefinite"/>
6544 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6545 values="49;5;27;49" calcMode="linear"
6546 repeatCount="indefinite"/>
6547 </circle>
6548 </g>
6549 </g>
6550 </svg>
6551 </div>
6552 </label>
6553 </div>
6554 <div class="apm-loader d-flex justify-content-between align-items-center">
6555 <input type="radio"
6556 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' : ''; ?>
6557 id="plg_5" value="plg_5">
6558 <label for="plg_5" class="apm-loading-gif">
6559 <div class="loader loader--style4">
6560 <svg width="100%" height="100%" viewBox="0 0 135 140"
6561 xmlns="http://www.w3.org/2000/svg" fill="#000">
6562 <rect y="10" width="15" height="120" rx="6">
6563 <animate attributeName="height" begin="0.5s" dur="1s"
6564 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6565 repeatCount="indefinite"/>
6566 <animate attributeName="y" begin="0.5s" dur="1s"
6567 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6568 repeatCount="indefinite"/>
6569 </rect>
6570 <rect x="30" y="10" width="15" height="120" rx="6">
6571 <animate attributeName="height" begin="0.25s" dur="1s"
6572 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6573 repeatCount="indefinite"/>
6574 <animate attributeName="y" begin="0.25s" dur="1s"
6575 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6576 repeatCount="indefinite"/>
6577 </rect>
6578 <rect x="60" width="15" height="140" rx="6">
6579 <animate attributeName="height" begin="0s" dur="1s"
6580 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6581 repeatCount="indefinite"/>
6582 <animate attributeName="y" begin="0s" dur="1s"
6583 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6584 repeatCount="indefinite"/>
6585 </rect>
6586 <rect x="90" y="10" width="15" height="120" rx="6">
6587 <animate attributeName="height" begin="0.25s" dur="1s"
6588 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6589 repeatCount="indefinite"/>
6590 <animate attributeName="y" begin="0.25s" dur="1s"
6591 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6592 repeatCount="indefinite"/>
6593 </rect>
6594 <rect x="120" y="10" width="15" height="120" rx="6">
6595 <animate attributeName="height" begin="0.5s" dur="1s"
6596 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6597 repeatCount="indefinite"/>
6598 <animate attributeName="y" begin="0.5s" dur="1s"
6599 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6600 repeatCount="indefinite"/>
6601 </rect>
6602 </svg>
6603 </div>
6604 </label>
6605 </div>
6606 </div>
6607 <div class="if-loading-message col-sm-6 row">
6608 <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); ?>">
6609 </div>
6610 </div>
6611 <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6612 <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6613 <div class="col-sm-3">
6614 <label for="ays_loader_font_size">
6615 <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6616 <a class="ays_help" data-toggle="tooltip"
6617 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") ?>">
6618 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6619 </a>
6620 </label>
6621 </div>
6622 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6623 <div>
6624 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6625 name="ays_loader_font_size"
6626 value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6627 </div>
6628 <div class="ays_option_default_measurement_unit">
6629 <input type="text" value="px" disabled>
6630 </div>
6631 </div>
6632 </div>
6633 <hr>
6634 <!-- Loading effect end -->
6635 <div class="form-group row">
6636 <div class="col-sm-3">
6637 <label for="ays_enable_restart_button">
6638 <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6639 <a class="ays_help" data-toggle="tooltip"
6640 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") ?>">
6641 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6642 </a>
6643 </label>
6644 </div>
6645 <div class="col-sm-1">
6646 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6647 name="ays_enable_restart_button"
6648 value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6649 </div>
6650 </div>
6651 <hr>
6652 <div class="form-group row ays_toggle_parent">
6653 <div class="col-sm-3">
6654 <label for='ays-poll-show-social'>
6655 <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6656 <a class="ays_help"
6657 data-toggle="tooltip"
6658 data-placement="top"
6659 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"); ?>'>
6660 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6661 </a></label>
6662 </div>
6663 <div class="col-sm-1">
6664 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6665 value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6666 </div>
6667 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6668 <div class="form-group row">
6669 <div class="col-sm-4">
6670 <label>
6671 <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6672 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6673 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6674 </a>
6675 </label>
6676 </div>
6677 <div class="col-sm-8">
6678 <?php
6679 $content = $poll_social_buttons_heading;
6680 $editor_id = 'ays_poll_social_buttons_heading';
6681 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6682 wp_editor($content, $editor_id, $settings);
6683 ?>
6684 </div>
6685 </div>
6686 <hr>
6687 <div class="form-group row">
6688 <div class="col-sm-4">
6689 <label for="ays_poll_enable_linkedin_share_button">
6690 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6691 <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6692 <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"); ?>">
6693 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6694 </a>
6695 </label>
6696 </div>
6697 <div class="col-sm-8">
6698 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_linkedin_share_button" name="ays_poll_enable_linkedin_share_button" value="on" <?php echo ( $poll_show_social_ln ) ? "checked" : ""; ?>/>
6699 </div>
6700 </div>
6701 <hr/>
6702 <div class="form-group row">
6703 <div class="col-sm-4">
6704 <label for="ays_poll_enable_facebook_share_button">
6705 <i class="ays_poll_fas ays_poll_facebook"></i>
6706 <?php echo esc_html__('Facebook button', "poll-maker")?>
6707 <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"); ?>">
6708 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6709 </a>
6710 </label>
6711 </div>
6712 <div class="col-sm-8">
6713 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_facebook_share_button" name="ays_poll_enable_facebook_share_button" value="on" <?php echo ( $poll_show_social_fb ) ? "checked" : ""; ?>/>
6714 </div>
6715 </div>
6716 <hr/>
6717 <div class="form-group row">
6718 <div class="col-sm-4">
6719 <label for="ays_poll_enable_twitter_share_button">
6720 <i class="ays_fa ays_fa_twitter_square"></i>
6721 <?php echo esc_html__('Twitter button', "poll-maker")?>
6722 <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"); ?>">
6723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6724 </a>
6725 </label>
6726 </div>
6727 <div class="col-sm-8">
6728 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_twitter_share_button" name="ays_poll_enable_twitter_share_button" value="on" <?php echo ( $poll_show_social_tr ) ? "checked" : ""; ?>/>
6729 </div>
6730 </div>
6731 <hr/>
6732 <div class="form-group row">
6733 <div class="col-sm-4">
6734 <label for="ays_poll_enable_vkontakte_share_button">
6735 <i class="ays_fa ays_fa_vk"></i>
6736 <?php echo esc_html__('VKontakte button', "poll-maker")?>
6737 <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"); ?>">
6738 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6739 </a>
6740 </label>
6741 </div>
6742 <div class="col-sm-8">
6743 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_vkontakte_share_button" name="ays_poll_enable_vkontakte_share_button" value="on" <?php echo ( $poll_show_social_vk ) ? "checked" : ""; ?>/>
6744 </div>
6745 </div>
6746 </div>
6747 </div>
6748 <hr>
6749 <div class="form-group row ays_toggle_parent">
6750 <div class="col-sm-3">
6751 <label for="ays_enable_social_links">
6752 <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6753 <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")?>">
6754 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6755 </a>
6756 </label>
6757 </div>
6758 <div class="col-sm-1">
6759 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6760 name="ays_poll_enable_social_links"
6761 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6762 </div>
6763 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6764 <div class="form-group row">
6765 <div class="col-sm-4">
6766 <label>
6767 <?php echo esc_html__('Heading for social links', "poll-maker")?>
6768 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6770 </a>
6771 </label>
6772 </div>
6773 <div class="col-sm-8">
6774 <?php
6775 $content = $poll_social_links_heading;
6776 $editor_id = 'ays_poll_social_links_heading';
6777 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6778 wp_editor($content, $editor_id, $settings);
6779 ?>
6780 </div>
6781 </div>
6782 <hr>
6783 <div class="form-group row">
6784 <div class="col-sm-4">
6785 <label for="ays_linkedin_link">
6786 <i class="ays_fa ays_fa_linkedin_square"></i>
6787 <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6788 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6789 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6790 </a>
6791 </label>
6792 </div>
6793 <div class="col-sm-8">
6794 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6795 value="<?php echo $linkedin_link; ?>" />
6796 </div>
6797 </div>
6798 <hr/>
6799 <div class="form-group row">
6800 <div class="col-sm-4">
6801 <label for="ays_facebook_link">
6802 <i class="ays_fa ays_fa_facebook_square"></i>
6803 <?php echo esc_html__('Facebook link', "poll-maker")?>
6804 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6805 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6806 </a>
6807 </label>
6808 </div>
6809 <div class="col-sm-8">
6810 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6811 value="<?php echo $facebook_link; ?>" />
6812 </div>
6813 </div>
6814 <hr/>
6815 <div class="form-group row">
6816 <div class="col-sm-4">
6817 <label for="ays_twitter_link">
6818 <i class="ays_fa ays_fa_twitter_square"></i>
6819 <?php echo esc_html__('X link', "poll-maker")?>
6820 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6821 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6822 </a>
6823 </label>
6824 </div>
6825 <div class="col-sm-8">
6826 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6827 value="<?php echo $twitter_link; ?>" />
6828 </div>
6829 </div>
6830 <hr/>
6831 <div class="form-group row">
6832 <div class="col-sm-4">
6833 <label for="ays_vkontakte_link">
6834 <i class="ays_fa ays_fa_vk"></i>
6835 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6836 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6838 </a>
6839 </label>
6840 </div>
6841 <div class="col-sm-8">
6842 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6843 value="<?php echo $vkontakte_link; ?>" />
6844 </div>
6845 </div>
6846 <hr>
6847 <div class="form-group row">
6848 <div class="col-sm-4">
6849 <label for="ays_youtube_link">
6850 <i class="ays_fa ays_fa_vk"></i>
6851 <?php echo esc_html__('YouTube link', "poll-maker")?>
6852 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6853 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6854 </a>
6855 </label>
6856 </div>
6857 <div class="col-sm-8">
6858 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6859 value="<?php echo $youtube_link; ?>" />
6860 </div>
6861 </div>
6862 <div class="form-group row">
6863 <div class="col-sm-4">
6864 <label for="ays_youtube_link">
6865 <i class="ays_fa ays_fa_vk"></i>
6866 <?php echo esc_html__('TikTok link', "poll-maker")?>
6867 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6868 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6869 </a>
6870 </label>
6871 </div>
6872 <div class="col-sm-8">
6873 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_tiktok_link]"
6874 value="<?php echo $tiktok_link; ?>" />
6875 </div>
6876 </div>
6877 </div>
6878 </div>
6879 <hr>
6880 <div class="form-group row">
6881 <div class="col-sm-3">
6882 <label for='ays-poll-res-rgba'>
6883 <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6884 <a class="ays_help" data-toggle="tooltip"
6885 data-placement="top"
6886 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"); ?>">
6887 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6888 </a>
6889 </label>
6890 </div>
6891 <div class="col-sm-9">
6892 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6893 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6894 </div>
6895 </div>
6896 <hr>
6897 <div class="form-group row ays_toggle_parent">
6898 <div class="col-sm-3">
6899 <label for='ays_poll_show_users'>
6900 <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6901 <a class="ays_help" data-toggle="tooltip"
6902 data-placement="top"
6903 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"); ?>">
6904 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6905 </a>
6906 </label>
6907 </div>
6908 <div class="col-sm-1">
6909 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6910 value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6911 </div>
6912 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6913 <div class="row">
6914 <div class="col-sm-3 ays_divider_left">
6915 <label for='ays_poll_show_users_count'>
6916 <?php echo esc_html__('Users count', "poll-maker"); ?>
6917 <a class="ays_help" data-toggle="tooltip"
6918 data-placement="top"
6919 title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6920 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6921 </a>
6922 </label>
6923 </div>
6924 <div class="col-sm-9">
6925 <input type="number"
6926 name="ays_poll_show_users_count"
6927 id="ays_poll_show_users_count"
6928 class="ays-text-input ays-poll-answer-results-short-input"
6929 value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
6930 </div>
6931 </div>
6932 </div>
6933 </div>
6934 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6935 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6936 <div class="col-sm-3">
6937 <label for="ays_poll_enable_answer_redirect_delay">
6938 <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
6939 <a class="ays_help" data-toggle="tooltip"
6940 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") ?>">
6941 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6942 </a>
6943 </label>
6944 </div>
6945 <div class="col-sm-1">
6946 <input type="checkbox" id="ays_poll_enable_answer_redirect_delay" name="ays_poll_enable_answer_redirect_delay" class="ays_toggle_checkbox" value="on" <?php echo ($poll_enable_answer_redirect_delay) ? "checked" : ""; ?>>
6947 </div>
6948 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
6949 <input type="number"
6950 class="ays-text-input ays-poll-answer-results-short-input"
6951 id="ays_poll_answer_redirect_delay"
6952 name="ays_poll_answer_redirect_delay"
6953 value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
6954 <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
6955 </div>
6956 </div>
6957 <hr>
6958 <div class="form-group row">
6959 <div class="col-sm-3">
6960 <label for="ays_poll_enable_answer_image_after_voting">
6961 <?php echo esc_html__('Show answers image', "poll-maker") ?>
6962 <a class="ays_help" data-toggle="tooltip"
6963 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") ?>">
6964 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6965 </a>
6966 </label>
6967 </div>
6968 <div class="col-sm-1">
6969 <input type="checkbox" id="ays_poll_enable_answer_image_after_voting" name="ays_poll_enable_answer_image_after_voting" value="on" <?php echo ($poll_enable_answer_image_after_voting) ? "checked" : ""; ?>>
6970 </div>
6971 </div>
6972 <hr>
6973 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6974 <div class="form-group row">
6975 <div class="col-sm-3">
6976 <label for="apm_allow_add_answers">
6977 <?php echo esc_html__('Show results by', "poll-maker"); ?>
6978 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6979 title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6980 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6981 </a>
6982 </label>
6983 </div>
6984 <div class="col-sm-9">
6985 <div class="form-group row" style="align-items:center">
6986 <div class="col-sm-4">
6987 <div style="display: flex;">
6988 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6989 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6990 <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' : '' ?>/>
6991 <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
6992 </label>
6993 </div>
6994 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6995 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6996 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6997 <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
6998 </label>
6999 </div>
7000 </div>
7001 </div>
7002 <div class="col-sm-8" style="padding-left: 0">
7003 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
7004 <div class="pro_features pro_features_popup">
7005 <div class="pro-features-popup-conteiner">
7006 <div class="pro-features-popup-title">
7007 <?php echo esc_html__("Show Results by", "poll-maker"); ?>
7008 </div>
7009 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
7010 <p>
7011 <?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"); ?>
7012 </p>
7013 </div>
7014 <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 ); ?>">
7015 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7016 </div>
7017 </div>
7018 </div>
7019 <div class="pro_features" style="justify-content:flex-end;">
7020 </div>
7021 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7022 <input type="radio"/>
7023 <label class="form-check-label ays_poll_check_label">
7024 <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
7025 </label>
7026 </div>
7027 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7028 <input type="radio"/>
7029 <label class="form-check-label ays_poll_check_label">
7030 <?php echo esc_html__('Column Chart', "poll-maker"); ?>
7031 </label>
7032 </div>
7033 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
7034 <input type="radio"/>
7035 <label class="form-check-label ays_poll_check_label">
7036 <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
7037 </label>
7038 </div>
7039 <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'?>">
7040 <input type="radio"/>
7041 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
7042 <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
7043 </label>
7044 </div>
7045 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7046 <div class="ays-poll-new-upgrade-button-box">
7047 <div>
7048 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7049 <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">
7050 </div>
7051 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7052 </div>
7053 </a>
7054 <div class="ays-poll-new-watch-video-button-box">
7055 <div>
7056 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7057 <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">
7058 </div>
7059 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7060 </div>
7061 </div>
7062 </div>
7063 </div>
7064 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7065 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7066 <div class="form-group row" style="align-items: center; margin-left: 0;">
7067 <div class="col-sm-2">
7068 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
7069 <?php echo esc_html__('Chart height', "poll-maker") ?>
7070 <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"); ?>">
7071 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7072 </a>
7073 </label>
7074 </div>
7075 <div class="col-sm-9 ays_option_with_default_measurement_unit">
7076 <div>
7077 <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; ?>"/>
7078 </div>
7079 <div class="ays_option_default_measurement_unit">
7080 <input type="text" value="px" disabled>
7081 </div>
7082 </div>
7083 </div>
7084 </div>
7085 </div>
7086 </div>
7087 </div>
7088 <hr/>
7089 <div class="form-group row">
7090 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
7091 <div class="pro_features pro_features_popup">
7092 <div class="pro-features-popup-conteiner">
7093 <div class="pro-features-popup-title">
7094 <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
7095 </div>
7096 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
7097 <p>
7098 <?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"); ?>
7099 </p>
7100 </div>
7101 <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 ); ?>">
7102 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7103 </div>
7104 </div>
7105 </div>
7106 <div class="pro_features" style="justify-content:flex-end;">
7107 </div>
7108 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
7109 <hr>
7110 <div class="form-group row">
7111 <div class="col-sm-3">
7112 <label for="ays_show_answer_message">
7113 <?php echo esc_html__('Show Answer message', "poll-maker")?>
7114 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
7115 data-placement="top"
7116 title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
7117 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7118 </a>
7119 </label>
7120 </div>
7121 <div class="col-sm-9">
7122 <input type="checkbox" class="ays-enable-timer1"
7123 name=""
7124 value="on">
7125 </div>
7126 </div>
7127 <hr/>
7128 <!--Result message -->
7129 <div class='form-group row'>
7130 <div class="ays_reset_answers_div">
7131 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
7132 </div>
7133 <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"); ?>">
7134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7135 </a>
7136 </div>
7137 <hr>
7138 <?php
7139 $allowed_tags = array(
7140 'div' => array(
7141 'class' => true
7142 ),
7143 'table' => array(
7144 'class' => true
7145 ),
7146 'thead' => array(),
7147 'tbody' => array(),
7148 'tr' => array(
7149 'class' => true
7150 ),
7151 'th' => array(),
7152 'td' => array(
7153 'class' => true
7154 ),
7155 'span' => array(),
7156 'input' => array(
7157 'type' => true,
7158 'name' => true,
7159 'class' => true,
7160 'value' => true,
7161 'hidden' => true
7162 ),
7163 'textarea' => array(
7164 'type' => true,
7165 'name' => true,
7166 'class' => true
7167 ),
7168 'label' => array(
7169 'class' => true,
7170 'for' => true
7171 ),
7172 'a' => array(
7173 'href' => true,
7174 'class' => true
7175 ),
7176 'img' => array(
7177 'src' => true,
7178 'class' => true
7179 )
7180 );
7181
7182 $content = '<div class="ays-field-dashboard ays-table-wrap">
7183 <table class="ays-answers-table ">
7184 <thead>
7185 <tr class="ui-state-default">
7186 <th>'. esc_html__('Answers', "poll-maker").'</th>
7187 <th>'. esc_html__('Text', "poll-maker").'</th>
7188 <th>'. esc_html__('Image', "poll-maker").'</th>
7189 </tr>
7190 </thead>
7191 <tbody>';
7192 $content .= '<tr class="ays-interval-row">
7193 <td>
7194 <span>'. esc_html__("Answer 1", "poll-maker").'</span>
7195 <input type="hidden" name="ays_answer_id[]">
7196 </td>
7197 <td>
7198 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7199 </td>
7200 <td class="ays-answer-image-td">
7201 <label class="ays-label" for="ays-answer">
7202 <a href="javascript:void(0)" class="add-answer-image" >
7203 '. esc_html__("Add", "poll-maker").'
7204 </a>
7205 </label>
7206 <div class="ays-answer-image-container ays-interval-image-container">
7207 <span class="ays-remove-answer-img"></span>
7208 <img src="" class="ays-answer-img">
7209 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7210 >
7211 </div>
7212 </td>
7213 </tr>
7214 <tr class="ays-interval-row">
7215 <td>
7216 <span>'. esc_html__("Answer 2", "poll-maker").'</span>
7217 <input type="hidden" name="ays_answer_id[]">
7218 </td>
7219 <td>
7220 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7221 </td>
7222 <td class="ays-answer-image-td">
7223 <label class="ays-label" for="ays-answer">
7224 <a href="javascript:void(0)" class="add-answer-image" >
7225 '. esc_html__("Add", "poll-maker").'
7226 </a>
7227 </label>
7228 <div class="ays-answer-image-container ays-interval-image-container">
7229 <span class="ays-remove-answer-img"></span>
7230 <img src="" class="ays-answer-img">
7231 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7232 >
7233 </div>
7234 </td>
7235 </tr>';
7236 $content .= '</tbody></table></div>';
7237 echo wp_kses($content, $allowed_tags);
7238 ?>
7239 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7240 <div class="ays-poll-new-upgrade-button-box">
7241 <div>
7242 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7243 <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">
7244 </div>
7245 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7246 </div>
7247 </a>
7248 <div class="ays-poll-new-watch-video-button-box">
7249 <div>
7250 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7251 <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">
7252 </div>
7253 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7254 </div>
7255 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
7256 <div class="ays-poll-center-big-watch-video-button-box">
7257 <div class="ays-poll-center-new-watch-video-demo-button">
7258 <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">
7259 <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">
7260 <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
7261 </div>
7262 </div>
7263 <div class="ays-poll-center-big-upgrade-button-box">
7264 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7265 <div class="ays-poll-center-new-big-upgrade-button">
7266 <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">
7267 <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">
7268 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
7269 </div>
7270 </a>
7271 </div>
7272 </div>
7273 </div>
7274 <hr/>
7275 </div>
7276 </div>
7277 </div>
7278 <div class="only_pro" style="position: relative; display: inline-block">
7279 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7280 <div class="pro-features-popup-conteiner">
7281 <div class="pro-features-popup-title">
7282 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
7283 </div>
7284 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7285 <p>
7286 <?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"); ?>
7287 </p>
7288 <p>
7289 <?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"); ?>
7290 </p>
7291 </div>
7292 <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 ); ?>">
7293 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7294 </div>
7295 </div>
7296 </div>
7297 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7298 <span class="ays_save_as_default_content_for_mobile">
7299 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7300 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7301 </a>
7302 <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" ); ?>">
7303 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7304 </a>
7305 </span>
7306 </div>
7307 </div>
7308 </div>
7309 <div class="bottom-buttons-container">
7310 <div class='bottom-save-buttons-container'>
7311 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7312 <?php
7313 echo wp_kses($loader_iamge, $loader_iamge_allow);
7314 wp_nonce_field('poll_action', 'poll_action');
7315 $save_bottom_attributes = array(
7316 'id' => 'ays-button-apply',
7317 'title' => 'Ctrl + s',
7318 'data-toggle' => 'tooltip',
7319 'data-delay'=> '{"show":"1000"}'
7320 );
7321 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7322 $save_close_bottom_attributes = array('id' => 'ays-button');
7323 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);
7324 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7325 ?>
7326 </div>
7327 </div>
7328 </div>
7329 </div>
7330 <div>
7331 <hr>
7332 <!-- <div class="form-group row ays-poll-general-bundle-container">
7333 <div class="col-sm-12 ays-poll-general-bundle-box">
7334 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
7335 <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>
7336 </div>
7337 <div class="ays-poll-general-bundle-row">
7338 <div class="ays-poll-general-bundle-text">
7339 <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7340 <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7341 <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
7342 <span class="ays-poll-general-bundle-color">
7343 <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>
7344 </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
7345 </div>
7346 <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7347 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
7348 <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>
7349 </div>
7350 </div>
7351 <div class="ays-poll-general-bundle-row">
7352 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
7353 </div>
7354 </div>
7355 </div> -->
7356 <?php if($id === null): ?>
7357 <div class="ays_poll_layer_container">
7358 <div class="ays_poll_layer_content">
7359 <div class="ays_poll_layer_box">
7360 <div class="ays-poll-close-layer">
7361 <div class="ays-poll-choose-type">
7362 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7363 </div>
7364 <div class="ays-poll-close-type">
7365 <a href="?page=poll-maker-ays">
7366 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7367 </a>
7368 </div>
7369 </div>
7370 <div class="ays_poll_layer_box_blocks">
7371 <label class='ays-poll-dblclick-layer'>
7372 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7373 <div class="ays_poll_layer_item" >
7374 <div class="ays_poll_layer_item_logo" >
7375 <div class="ays_poll_layer_item_logo_overlay
7376 ays_poll_layer_item_logo_overlay_choosing" >
7377 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7378 alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
7379 </div>
7380 </div>
7381 <div class="ays_poll_layer_item_title">
7382 <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7383 <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>
7384 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7385 </div>
7386 <div class="ays_poll_layer_item_description"></div>
7387 </div>
7388 </label>
7389 <label class='ays-poll-dblclick-layer'>
7390 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7391 <div class="ays_poll_layer_item">
7392 <div class="ays_poll_layer_item_logo">
7393 <div class="ays_poll_layer_item_logo_overlay
7394 ays_poll_layer_item_logo_overlay_rating">
7395 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7396 alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
7397 </div>
7398 </div>
7399 <div class="ays_poll_layer_item_title">
7400 <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7401 <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>
7402 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7403 </div>
7404 <div class="ays_poll_layer_item_description"></div>
7405 </div>
7406 </label>
7407 <label class='ays-poll-dblclick-layer'>
7408 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
7409 <div class="ays_poll_layer_item">
7410 <div class="ays_poll_layer_item_logo">
7411 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7412
7413 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7414 alt="<?php echo esc_html__('Text', "poll-maker") ?>">
7415 </div>
7416 </div>
7417 <div class="ays_poll_layer_item_title">
7418 <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7419 <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>
7420 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7421 </div>
7422 <div class="ays_poll_layer_item_description"></div>
7423 </div>
7424 </label>
7425 <label class='ays-poll-dblclick-layer'>
7426 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7427 <div class="ays_poll_layer_item">
7428 <div class="ays_poll_layer_item_logo">
7429 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7430 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
7431 </div>
7432 </div>
7433 <div class="ays_poll_layer_item_title">
7434 <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7435 <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>
7436 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7437 </div>
7438 <div class="ays_poll_layer_item_description"></div>
7439 </div>
7440 </label>
7441 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7442 <!-- <input type="radio" value="select" > -->
7443 <div class="ays_poll_layer_item">
7444 <span class="ays_poll_layer_item_pro_version">
7445 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7446 PRO
7447 </a>
7448 </span>
7449 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7450 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7451
7452 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7453 alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
7454 </div>
7455 </div>
7456 <div class="ays_poll_layer_item_title">
7457 <p style="margin:0px;">
7458 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7459 <?php echo esc_html__('Dropdown', "poll-maker") ?>
7460 </a>
7461 <p>
7462 <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>
7463 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7464 </div>
7465 <div class="ays_poll_layer_item_description"></div>
7466 </div>
7467 </label>
7468 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7469 <!-- <input value="range" type="radio"> -->
7470 <div class="ays_poll_layer_item">
7471 <span class="ays_poll_layer_item_pro_version">
7472 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7473 PRO
7474 </a>
7475 </span>
7476 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7477 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7478
7479 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7480 alt="<?php echo esc_html__('Range', "poll-maker") ?>">
7481 </div>
7482 </div>
7483 <div class="ays_poll_layer_item_title">
7484 <p style="margin:0px;">
7485 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7486 <?php echo esc_html__('Range', "poll-maker") ?>
7487 </a>
7488 <p>
7489 <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>
7490 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7491 </div>
7492 <div class="ays_poll_layer_item_description"></div>
7493 </div>
7494 </label>
7495 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7496 <!-- <input value="versus" type="radio"> -->
7497 <div class="ays_poll_layer_item">
7498 <span class="ays_poll_layer_item_pro_version">
7499 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7500 PRO
7501 </a>
7502 </span>
7503 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7504 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7505
7506 <span>VS</span>
7507 </div>
7508 </div>
7509 <div class="ays_poll_layer_item_title">
7510 <p style="margin:0px;">
7511 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7512 <?php echo esc_html__('Versus', "poll-maker") ?>
7513 </a>
7514 <p>
7515 <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>
7516 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7517 </div>
7518 <div class="ays_poll_layer_item_description"></div>
7519 </div>
7520 </label>
7521 </div>
7522 <div class="ays_poll_select_button_layer">
7523 <div class="ays_poll_select_button_item">
7524 <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7525 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7526 </div>
7527 </div>
7528 </div>
7529 </div>
7530 </div>
7531 <?php else: ?>
7532 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7533 <?php endif; ?>
7534 </form>
7535 <div class="ays-modal" id="pro-features-popup-modal">
7536 <div class="ays-modal-content">
7537 <!-- Modal Header -->
7538 <div class="ays-modal-header">
7539 <span class="ays-close-pro-popup">&times;</span>
7540 <!-- <h2></h2> -->
7541 </div>
7542
7543 <!-- Modal body -->
7544 <div class="ays-modal-body">
7545 <div class="row">
7546 <div class="col-sm-6 pro-features-popup-modal-left-section">
7547 </div>
7548 <div class="col-sm-6 pro-features-popup-modal-right-section">
7549 <div class="pro-features-popup-modal-right-box">
7550 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7551
7552 <div class="pro-features-popup-modal-right-box-title"></div>
7553
7554 <div class="pro-features-popup-modal-right-box-content"></div>
7555
7556 <div class="pro-features-popup-modal-right-box-button">
7557 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7558 </div>
7559 </div>
7560 <div class="pro-features-popup-modal-right-box-footer-text">
7561 <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7562 </div>
7563 </div>
7564 </div>
7565 </div>
7566
7567 <!-- Modal footer -->
7568 <div class="ays-modal-footer" style="display:none">
7569 </div>
7570 </div>
7571 </div>
7572 </div>
7573 </div>