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

7,568 lines 655.0 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 'show_votes_before_voting' => 'off',
219 'show_votes_before_voting_by' => 'by_count',
220 'see_result_button' => 'on',
221 'see_result_radio' => 'ays_see_result_button',
222 'loader_font_size' => '64',
223 'show_answers_numbering' => 'none',
224 'poll_box_shadow_x_offset' => 0,
225 'poll_box_shadow_y_offset' => 0,
226 'poll_box_shadow_z_offset' => 15,
227 'poll_question_size_pc' => 16,
228 'poll_question_size_mobile' => 16,
229 'poll_question_image_object_fit' => "cover",
230 'poll_title_font_size' => 20,
231 'poll_title_font_size_mobile' => 20,
232 'poll_title_alignment' => "center",
233 'poll_title_alignment_mobile' => "center",
234 'poll_text_type_length_enable' => "off",
235 'poll_text_type_limit_type' => "characters",
236 'poll_text_type_limit_length' => "",
237 'poll_text_type_limit_message' => "off",
238 'poll_text_type_placeholder' => "Your answer",
239 'poll_text_type_width' => "",
240 'poll_text_type_width_type' => "percent",
241 'poll_enable_password' => "off",
242 'poll_password' => "",
243 'poll_enable_password_visibility' => "off",
244 'poll_password_message' => 'Please enter password',
245 'poll_answer_enable_box_shadow' => "off",
246 'poll_answer_box_shadow_color' => "#000000",
247 'poll_answer_box_shadow_x_offset' => 0,
248 'poll_answer_box_shadow_y_offset' => 0,
249 'poll_answer_box_shadow_z_offset' => 10,
250 'poll_answer_border_radius' => 0,
251 'poll_enable_answer_image_after_voting' => "off",
252 'enable_poll_title_text_shadow' => 'off',
253 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
254 'poll_title_text_shadow_x_offset' => 2,
255 'poll_title_text_shadow_y_offset' => 2,
256 'poll_title_text_shadow_z_offset' => 0,
257 'display_fields_labels' => 'off',
258 'autofill_user_data' => 'off',
259 'poll_create_author' => $user_id,
260 'poll_main_url' => '',
261 'poll_logo_url_new_tab' => 'off',
262 'show_chart_type' => 'google_bar_chart',
263 );
264
265 $settings_options = $this->settings_obj->ays_get_setting('options');
266 if($settings_options){
267 $settings_options = json_decode($settings_options, true);
268 }else{
269 $settings_options = array();
270 }
271 $loader_iamge_allow = array(
272 'span' => array(
273 'class' => array()
274 ),
275 'img' => array(
276 'src' => array(),
277 'class' => array()
278 )
279 );
280 switch ( $action ) {
281 case 'add':
282 $heading =esc_html__('Add new poll', "poll-maker");
283 $options = array_merge($default_options, $default_colors);
284 $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
285 // Default category
286 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
287
288 $poll['categories'] = $poll_default_cat;
289
290 // Default type
291 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
292 $poll['type'] = $poll_default_type;
293
294 $ays_check_post = '';
295 break;
296 case 'edit':
297 $heading =esc_html__('Edit poll', "poll-maker");
298 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
299 $poll = $this->polls_obj->get_poll_by_id($id);
300 $post_id = !empty($poll) ? $poll['post_id'] : '';
301 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
302 $ays_poll_view_post_url = get_permalink($post_id);
303 $ays_poll_edit_post_url = get_edit_post_link($post_id);
304
305 if (empty($poll)) {
306 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
307 wp_safe_redirect($url);
308 }
309
310 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
311 break;
312 default:
313 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
314 wp_safe_redirect($url);
315 break;
316 }
317 $enable_pass_count = $options['enable_pass_count'];
318 $categories = $this->polls_obj->get_categories();
319 global $wp_roles;
320 $ays_users_roles = $wp_roles->roles;
321
322 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
323 $this->polls_obj->add_or_edit_polls($_POST, $id);
324 }
325
326 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
327 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
328 }
329
330 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
331 unset($_GET['page']);
332 $url = remove_query_arg( array_keys($_GET) );
333 wp_redirect( $url );
334 }
335
336 $style = "display: none;";
337 $style_bg = "display: none;";
338 $style_bg_options = "display: none;";
339 $style_logo = "display: none;";
340 $style_logo_check = false;
341 if (isset($poll['image']) && !empty($poll['image'])) {
342
343 $style = "display: block;";
344 $image_text =esc_html__('Edit Image', "poll-maker");
345 }
346 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
347 $style_bg = "display: flex;";
348 $style_bg_options = "display: block;";
349 $image_text_bg =esc_html__('Edit Image', "poll-maker");
350 }
351 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
352 $style_logo = "display: block;";
353 $style_logo_check = true;
354 $image_text_logo =esc_html__('Edit Image', "poll-maker");
355 }
356
357 $published = $options['published'];
358
359
360 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
361 $activateTime = strtotime($options['activeInterval']);
362 $activePoll = date('Y-m-d', $activateTime);
363 $deactivateTime = strtotime($options['deactiveInterval']);
364 $deactivePoll = date('Y-m-d', $deactivateTime);
365 } else {
366 $activePoll = date('Y-m-d');
367 $deactivePoll = date('Y-m-d');
368 }
369
370 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
371 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
372
373 $activePoll = $activePoll . " " . $activePollSec;
374 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
375
376 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
377
378 $all_fields = array(
379 array(
380 "name" =>esc_html__("Name", "poll-maker"),
381 "slug" => "apm_name",
382 ),
383 array(
384 "name" =>esc_html__("Email", "poll-maker"),
385 "slug" => "apm_email",
386 ),
387 array(
388 "name" =>esc_html__("Phone", "poll-maker"),
389 "slug" => "apm_phone",
390 ),
391 );
392
393
394 //INTEGRATIONS
395 $poll_settings = $this->settings_obj;
396
397 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
398
399 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
400
401 $answers_sound_status = false;
402 if($asnwers_sound){
403 $answers_sound_status = true;
404 }
405
406 // WP Editor height
407 $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 ;
408
409 // Answers sound option
410 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
411 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
412
413 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
414 $mailchimp = json_decode($mailchimp_res, true);
415 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
416 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
417 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
418 $mailchimp_select = array();
419 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
420 foreach ( $mailchimp_lists['lists'] as $list ) {
421 $mailchimp_select[] = array(
422 'listId' => $list['id'],
423 'listName' => $list['name']
424 );
425 }
426 } else {
427 $mailchimp_select =esc_html__("There are no lists", "poll-maker");
428 }
429
430 // MailChimp
431 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
432 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
433
434
435 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
436 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
437
438 // Show votes count
439 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
440 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
441
442 // Show result percent
443 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
444 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
445
446 // Show result button after schedule
447 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
448 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
449
450 $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';
451
452 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
453
454 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
455
456 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
457
458 // Show login form for not logged in users
459 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
460 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
461
462 // Redirect after voting
463 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
464 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
465
466 // Results notification by email
467 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
468 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
469
470 // Background gradient
471 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
472 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
473
474 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
475 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
476 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
477
478
479 // Redirect after submit
480 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
481 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
482 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
483 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
484
485 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
486
487 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
488
489 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
490
491 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
492
493
494 // Bg image positioning
495 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
496
497 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
498
499 if(isset($options['author']) && $options['author'] != 'null'){
500 if ( ! is_array( $options['author'] ) ) {
501 $options['author'] = json_decode($options['author'], true);
502 $poll_author = $options['author'];
503 } else {
504 $poll_author = array_map( 'stripslashes', $options['author'] );
505 }
506 } else {
507 $poll_author = array('name' => 'Unknown');
508 }
509
510 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
511 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
512
513 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
514
515 // Results bar in RGBA
516 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
517 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
518
519 // Enable View more button
520 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
521 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
522 $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;
523
524
525 // Poll Min Height
526 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
527
528 // Poll answer font size
529 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
530
531 // Poll answers font size on mobile
532 $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';
533
534 // Poll show passed users
535 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
536 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
537 $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;
538
539 // Poll Logo image
540 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
541 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
542 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
543 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
544
545 //
546
547 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
548
549 // Poll schedule container on/off
550 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
551
552 // Poll see results button in limitations
553 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
554 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
555 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
556 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
557 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
558 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
559
560 // Loader font size
561 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
562 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
563 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
564
565 // Show answers numbering
566 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
567
568 // Default border color
569 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
570 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
571
572 // Poll load effect message
573 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
574
575 // Poll title
576 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
577
578 // Box shadow coords
579 // Box Shadow X offset
580 $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;
581
582 // Box Shadow Y offset
583 $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;
584
585 // Box Shadow Z offset
586 $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;
587
588 // Poll Vote Reason
589 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
590
591 // Allow multivote
592 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
593 // Enable multivote answer
594 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
595
596 // Minimum count for multivote answer
597 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
598
599 // Count for multivote answer
600 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
601
602 // Allow collect user info
603 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
604
605 // Show answers icon
606 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
607 // Poll answer icon
608 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
609
610 // Every Answer redirect delay
611 $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']) : "";
612
613 // Enable answer redirect delay
614 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
615
616 // Show Answers image after voting
617 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
618
619 // Poll logo image url
620 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
621
622 // Check if the poll logo URL is enabled
623 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
624
625 // Poll question font size
626 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
627
628 // Poll question font size for mobile
629 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
630
631 // Poll question image height
632 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
633
634 // Poll container max-width for mobile
635 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
636
637 // ==== BUTTON STYLES START ====
638 // Buttons font size
639 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
640
641 // Buttons text color
642 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
643
644 // Buttons background color
645 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
646
647 // Buttons mobile font size
648 $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';
649
650 // Buttons Left / Right padding
651 $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';
652
653 // Buttons Top / Bottom padding
654 $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';
655
656 // Buttons border radius
657 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
658
659 // Buttons Width
660 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
661
662 // Buttons mobile width
663 $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;
664
665 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
666 // ==== BUTTON STYLES END ====
667
668 // ==== Allow Answer options ====
669 // Allow custom answer
670 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
671 // Require admin approval
672 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
673
674 // ==== ====
675
676 // Poll answer view type
677 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
678
679 // Poll answer image height
680 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
681
682 // Poll answer image height for mobile
683 $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";
684
685 // Poll answer image border radius
686 $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;
687
688 // Poll question image object fit
689 $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";
690
691 // Poll answer image object fit
692 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
693
694 // Poll answer padding
695 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
696
697 // Poll 1 column in mobile
698 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
699 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
700
701 // Poll answer gap
702 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
703
704 // Poll title font size
705 $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";
706
707 // Poll title font size for mobile
708 $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";
709
710 // Poll title alignment
711 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
712
713 // Poll title alignment mobile
714 $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;
715
716 // Poll view type
717 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
718
719
720 $options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
721 $show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
722 $show_votes_before_voting_by = (isset($options['show_votes_before_voting_by']) && $options['show_votes_before_voting_by'] != '') ? $options['show_votes_before_voting_by'] : 'by_count';
723
724
725
726 // ===== Poll text type options start =====
727 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
728 $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";
729 $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']) : "";
730 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
731 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
732 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
733 $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";
734 // ===== Poll text type options end =====
735
736 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
737 // Enable toggle password visibility
738 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
739 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
740 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
741 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
742
743 // == Poll answer box shadow ==
744 // Poll answer box shadow enable
745 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
746 // Poll answer box shadow color
747 $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";
748 // answer hover color
749 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
750 // answer bg color
751 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
752 // Poll answer box shadow parameters
753 $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;
754
755 $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;
756
757 $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;
758
759 // Poll answer box shadow color
760 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
761
762 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
763 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
764 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
765 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
766 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
767 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
768
769 // Title text shadow
770 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
771
772 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
773
774 $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)';
775
776 $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;
777
778 $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;
779
780 $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;
781
782 // Display form fields labels
783 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
784 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
785
786 // Autofill user data
787 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
788 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
789
790 // Change the author of the current poll
791 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
792 $get_current_poll_author_data = get_userdata($change_poll_create_author);
793
794 // Poll main url
795 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
796
797 //Open logo URL in new tab
798 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
799
800 //Poll Logo title
801 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
802
803 //Poll mobile width
804 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
805
806 // Social Media links
807 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
808 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
809 'linkedin_link' => '',
810 'facebook_link' => '',
811 'twitter_link' => '',
812 'vkontakte_link' => '',
813 'instagram_link' => '',
814 'youtube_link' => '',
815 'tiktok_link' => '',
816 );
817 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
818 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
819 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
820 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
821 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
822 $tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
823 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
824
825 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
826 $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;
827
828 $next_poll_id = "";
829 $prev_poll_id = '';
830 if ( isset( $id ) && !is_null( $id ) ) {
831 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
832 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
833
834 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
835 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
836
837 }
838
839 $get_all_polls = Poll_Maker_Data::get_all_polls();
840
841 ?>
842 <!--LIVE PREVIEW STYLES-->
843 <?php
844 $emoji = array(
845 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
846 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
847 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
848 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
849 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
850 ); ?>
851 <style>
852 /*save changing properties of poll in the css-variables*/
853 :root {
854 /*colors*/
855 --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
856 --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
857 --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']); ?>;
858 --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']); ?>;
859 --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']); ?>;
860 --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
861 --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
862 --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
863 /*options*/
864 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
865 --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
866 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
867 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
868 --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' : ''; ?>;
869 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
870 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
871 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
872 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
873
874 }
875
876
877 input[type='button'].ays-poll-btn{
878 font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
879 padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
880 border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
881 width: <?php echo esc_attr($poll_buttons_width); ?>px;
882 }
883
884 @media (max-width: 768px) {
885 input[type='button'].ays-poll-btn{
886 width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
887 }
888 }
889 </style>
890 <!--LIVE PREVIEW STYLES END-->
891 <div class="wrap">
892 <div class="ays-poll-heading-box">
893 <div class="ays-poll-wordpress-user-manual-box">
894 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
895 <i class="ays_poll_fas ays_fa_file_text"></i>
896 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
897 </a>
898 </div>
899 </div>
900 <div class="container-fluid">
901 <form class="ays-poll-form" id="ays-poll-form" method="post">
902 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
903 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
904 <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
905 <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
906 <h1 class="wp-heading-inline">
907 <?php
908 echo esc_html($heading);
909 ?>
910 </h1>
911 <div>
912 <div class="ays-poll-subtitle-main-box">
913 <p class="ays-subtitle ays-poll-open-list">
914 <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
915 <?php if(isset($id) && count($get_all_polls) > 1):?>
916 <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
917 <?php endif; ?>
918 </p>
919 <?php if(isset($id) && count($get_all_polls) > 1):?>
920 <div class="ays-poll-polls-data">
921 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
922 <?php ?>
923 <label class="ays-poll-message-vars-each-data-label">
924 <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">
925 <div class="ays-poll-polls-each-data">
926 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
927 <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>
928 </div>
929 </label>
930 <?php endforeach ?>
931 </div>
932 <?php endif; ?>
933 </div>
934 <?php if($id !== null): ?>
935 <div class="row">
936 <div class="col-sm-3">
937 <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
938 </div>
939 <div class="col-sm-9">
940 <p style="font-size:14px; font-style:italic;">
941 <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
942 <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>
943 <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
944 </p>
945 </div>
946 </div>
947 <?php endif;?>
948 </div>
949 <hr>
950 <div class='ays-all-container'>
951 <div class='ays-all-sub-container'>
952 <div class="ays-top-menu-wrapper">
953 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
954 <div class="ays-top-menu">
955 <div class="nav-tab-wrapper ays-top-tab-wrapper">
956 <a href="#tab1" data-title="General"
957 class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
958 <?php echo esc_html__('General', "poll-maker"); ?>
959 </a>
960 <a href="#tab2" data-title="Styles"
961 class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
962 <?php echo esc_html__('Styles', "poll-maker"); ?>
963 </a>
964 <a href="#tab3" data-title="Settings"
965 class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
966 <?php echo esc_html__('Settings', "poll-maker"); ?>
967 </a>
968 <a href="#tab8" data-title="Results Settings"
969 class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
970 <?php echo esc_html__('Results Settings', "poll-maker"); ?>
971 </a>
972 <a href="#tab4" data-title="Limitations"
973 class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
974 <?php echo esc_html__("Limitations", "poll-maker"); ?>
975 </a>
976 <a href="#tab5" data-title="Userdata"
977 class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
978 <?php echo esc_html__('User Data', "poll-maker"); ?>
979 </a>
980 <a href="#tab6" data-title="Email"
981 class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
982 <?php echo esc_html__('Email', "poll-maker"); ?>
983 </a>
984 <a href="#tab7" data-title="Integrations"
985 class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
986 <?php echo esc_html__('Integrations', "poll-maker"); ?>
987 </a>
988 </div>
989 <div class='top-menu-buttons-container'>
990 <?php
991 echo wp_kses($loader_iamge, $loader_iamge_allow);
992 $save_attributes = array(
993 'id' => 'ays-button-top-apply',
994 'title' => 'Ctrl + s',
995 'data-toggle' => 'tooltip',
996 'data-delay'=> '{"show":"1000"}'
997 );
998 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
999 $save_close_attributes = array('id' => 'ays-button-top');
1000 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);
1001 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
1002 ?>
1003 </div>
1004 </div>
1005 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
1006 </div>
1007 <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
1008 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
1009 <p class="ays-subtitle" style="margin-bottom:0;">
1010 <?php echo esc_html__('General options', "poll-maker"); ?>
1011 </p>
1012 <?php if ($poll_main_url != ''): ?>
1013 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
1014 <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;">
1015 <i class="fa fa-eye" aria-hidden="true"></i>
1016 <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
1017 </a>
1018 </div>
1019 <?php endif; ?>
1020 </div>
1021 <hr>
1022 <div class="form-group row">
1023 <div class="col-sm-3">
1024 <label for='ays-poll-title'>
1025 <?php echo esc_html__('Title', "poll-maker"); ?>
1026 <a class="ays_help" data-toggle="tooltip"
1027 data-placement="top"
1028 title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1029 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1030 </a>
1031 </label>
1032 </div>
1033 <div class="col-sm-9 ays_divider_left">
1034 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
1035 data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
1036 </div>
1037 </div>
1038 <hr>
1039 <div class="form-group row" style="display: flex;">
1040 <div class="col-sm-3">
1041 <label for='ays-poll-question'>
1042 <?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"); ?>">
1043 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1044 </a>
1045 <a href="javascript:void(0)" class="add-question-image button">
1046 <?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"); ?>">
1047 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1048 </a></a>
1049 </label>
1050 <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
1051 <span class="ays-remove-question-img"></span>
1052 <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1053 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
1054 </div>
1055 </div>
1056 <div class="col-sm-9">
1057 <?php
1058 $content = stripslashes($poll["question"]);
1059 $editor_id = 'ays-poll-question';
1060 $settings = array(
1061 'editor_height' => $poll_wp_editor_height,
1062 'textarea_name' => 'ays_poll_question',
1063 'editor_class' => 'ays-textarea',
1064 'media_buttons' => true,
1065 'tinymce' => array(
1066 "init_instance_callback" => "function(editor) {
1067 editor.on('Change', function(e) {
1068 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1069 });
1070 }",
1071 )
1072 );
1073 wp_editor($content, $editor_id, $settings);
1074 ?>
1075 </div>
1076 </div>
1077 <hr>
1078
1079 <?php if ($poll['type'] == 'choosing') : ?>
1080 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1081 <div class="col-sm-3">
1082 <label for="ays-poll-answer" >
1083 <?php echo esc_html__('Options', "poll-maker"); ?>
1084 </label>
1085 </div>
1086 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1087 <div>
1088 <div class='add-option-top-container'>
1089 <a class="ays-add-answer ays-click-once" id='add-answer'>
1090 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1091 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1092 </a>
1093 </div>
1094 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1095 <thead>
1096 <tr class="ui-state-default">
1097 <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1098 <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1099 <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>
1100 <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1101 <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1102 </tr>
1103 </thead>
1104 <tbody class="">
1105 <?php
1106 $answers = $poll['answers'];
1107 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1108 $loop_iteration = 0;
1109 $rows_count = count($answers);
1110 $ays_key_enter = "";
1111 $user_add_html = '';
1112 $user_add_html_allow = array(
1113 'input' => array(
1114 'type' => array(),
1115 'class' => array(),
1116 'style' => array(),
1117 'title' => array(),
1118 'checked' => array()
1119 )
1120 );
1121 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1122 foreach ($answers as $index => $answer) {
1123 $user_add_html = '';
1124 $class = (($index + 1) % 2 == 0) ? "even" : "";
1125 $answer_val = stripslashes(htmlentities($answer["answer"]));
1126 $answer_id = $answer["id"];
1127 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1128 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1129 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1130 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1131 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1132
1133 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1134 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1135 $disable_show_user_added = '';
1136 }else{
1137 $disable_show_user_added = 'display: none;';
1138 }
1139
1140 $show_user_added_checkbox = '';
1141 if ($show_user_added == 1) {
1142 $show_user_added_checkbox = 'checked';
1143 }
1144 if ( $user_added ) {
1145 $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 .' />';
1146 }
1147
1148 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1149 $check_show_user_added = "1";
1150 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1151 $check_show_user_added = "0";
1152 }else{
1153 $check_show_user_added = "1";
1154 }
1155
1156 if($loop_iteration == $rows_count - 1){
1157 $ays_key_enter = "ays_poll_enter_key";
1158 }
1159 $loop_iteration++;
1160 ?>
1161 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1162 <td class="ays-sort">
1163 <div class='ays_poll_move_arrows'></div>
1164 <td>
1165 <div class="ays_poll_display_flex">
1166 <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) ?>" />
1167 <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); ?>">
1168 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1169 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1170 </div>
1171 </td>
1172 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1173 <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); ?>"/>
1174 </td>
1175 <td>
1176 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1177 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1178 </label>
1179 <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1180 <span class="ays-poll-remove-answer-img"></span>
1181 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1182 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1183 </div>
1184 </td>
1185 <td>
1186 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1187 </a>
1188 </td>
1189 </tr>
1190 <?php
1191 }
1192 ?>
1193 <?php
1194 else:
1195 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1196 if($loop_iteration == intval($answer_default_count) - 1){
1197 $ays_key_enter = "ays_poll_enter_key";
1198 }
1199 $loop_iteration++;
1200 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1201 ?>
1202 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1203 <td class="ays-sort">
1204 <div class='ays_poll_move_arrows'></div>
1205 </td>
1206 <td class="ays-choosing-answer-container">
1207 <div class="ays_poll_display_flex">
1208 <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)); ?>">
1209 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1210 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1211 </div>
1212 </td>
1213 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1214 <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=""/>
1215 </td>
1216 <td>
1217 <label class='ays-label' for='ays-answer'>
1218 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1219 </label>
1220 <div class="ays-poll-answer-image-container" style="display:none;">
1221 <span class="ays-poll-remove-answer-img"></span>
1222 <img src="" class="ays-poll-answer-img"/>
1223 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1224 </div>
1225 </td>
1226
1227 <td>
1228 <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);?>">
1229 </a>
1230 </td>
1231 </tr>
1232 <?php
1233 endfor;
1234 endif;
1235 ?>
1236 </tbody>
1237 </table>
1238 <div class='add-option-top-container'>
1239 <a class="ays-add-answer" id='add-answer'>
1240 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1241 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1242 </a>
1243 </div>
1244 <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1245 <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1246 </div>
1247
1248 </div>
1249 </div>
1250 <?php endif; ?>
1251 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1252 <div class="form-group row" style="display: flex;">
1253 <div class="col-sm-3">
1254 <label for="ays-poll-answer" >
1255 <?php echo esc_html__('Option Settings', "poll-maker")?>
1256 </label>
1257 </div>
1258 <div class="col-sm-9">
1259 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1260 <div class="col-sm-12">
1261 <div class="form-group row">
1262 <div class="col-1">
1263 <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' : '' ?>/>
1264 </div>
1265 <div class="col-4 unset-padding-left">
1266 <label for="ays_redirect_after_submit" >
1267 <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1268 <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")?>">
1269 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1270 </a>
1271 </label>
1272 </div>
1273 </div>
1274 </div>
1275 </div>
1276 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1277 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1278 <div class="col-sm-12">
1279 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1280 <div class="col-1">
1281 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1282 value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1283 </div>
1284 <div class="col-4 unset-padding-left">
1285 <label for="ays_poll_allow_add_answers">
1286 <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1287 <a class="ays_help" data-toggle="tooltip"
1288 data-placement="top"
1289 title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1290 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1291 </a>
1292 </label>
1293 </div>
1294 <div class="col-7 allow_add_answers_not_show_up_container">
1295 <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1296 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1297 <div class="col-2 ays_divider_left">
1298 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1299 value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1300 </div>
1301 <div class="col-10">
1302 <label for="ays_poll_allow_answer_require">
1303 <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1304 <a class="ays_help" data-toggle="tooltip"
1305 data-placement="top"
1306 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"); ?>">
1307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1308 </a>
1309 </label>
1310 </div>
1311 <?php
1312 $poll_answers = $poll['answers'];
1313 $is_user_added_exist = 0;
1314 foreach ($poll_answers as $index => $answer) {
1315 if($answer['user_added'] == 1) {
1316 $is_user_added_exist++;
1317 }
1318 }
1319 if($is_user_added_exist > 0):
1320 ?>
1321 <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1322 <div class="col-2 ays_divider_left" style="align-items: center;">
1323 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1324 </div>
1325 <div class="col-10">
1326 <label for="ays_poll_require_approve_select_all">
1327 <?php echo esc_html__('Select all', "poll-maker"); ?>
1328 <a class="ays_help" data-toggle="tooltip"
1329 data-placement="top"
1330 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"); ?>">
1331 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1332 </a>
1333 </label>
1334 </div>
1335 </div>
1336 <?php
1337 endif;
1338 ?>
1339 </div>
1340 </div>
1341 </div>
1342 </div>
1343 </div>
1344 </div> <!-- Allow custom answer -->
1345 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1346 <div class="if-voting poll-type-block form-group row">
1347 <div class="col-sm-3">
1348 <label for="ays-poll-vote-type">
1349 <?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"); ?>">
1350 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1351 </a></label>
1352 </div>
1353 <div class="col-sm-9 answers-col">
1354 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1355 <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1356 <?php echo esc_html__('Hand', "poll-maker"); ?>
1357 </option>
1358 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1359 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1360 </option>
1361 </select>
1362 <?php
1363 switch ($poll['view_type']) {
1364 case 'hand':
1365 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1366 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1367 break;
1368
1369 case 'emoji':
1370 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1371 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1372 break;
1373
1374 case 'star':
1375 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1376 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1377 break;
1378
1379 default:
1380 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1381 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1382 break;
1383 }
1384 ?>
1385 <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1386 </div>
1387 </div>
1388 <div class="if-rating poll-type-block form-group row">
1389 <div class="col-sm-3">
1390 <label for="ays-poll-rate-type">
1391 <?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"); ?>">
1392 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1393 </a></label>
1394 </div>
1395 <div class="col-sm-9 answers-col">
1396 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1397 <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1398 <?php echo esc_html__('Stars', "poll-maker"); ?>
1399 </option>
1400 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1401 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1402 </option>
1403 </select>
1404 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1405 <option value="<?php echo count($poll['answers']); ?>" selected>
1406 <?php echo count($poll['answers']); ?>
1407 </option>
1408 </select>
1409 <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1410 </div>
1411 </div>
1412 <hr class="if-voting if-rating">
1413 <div class="form-group row">
1414 <div class="col-sm-12 only_pro" style="padding:15px;">
1415 <div class="pro_features pro_features_popup">
1416 <div class="pro-features-popup-conteiner">
1417 <div class="pro-features-popup-title">
1418 <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1419 </div>
1420 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1421 <p>
1422 <?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"); ?>
1423 </p>
1424 </div>
1425 <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 ); ?>">
1426 <?php echo esc_html__("Pricing", "poll-maker"); ?>
1427 </div>
1428 </div>
1429 </div>
1430 <div class="pro_features" style="justify-content:flex-end;">
1431 </div>
1432 <div class="form-group row">
1433 <div class="col-1">
1434 <input type="checkbox" name="ays_add_f_votes"
1435 value="on">
1436 </div>
1437 <div class="col-11 unset-padding-left">
1438 <label for="ays_add_f_votes">
1439 <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1440 <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"); ?>">
1441 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1442 </a>
1443 </label>
1444 </div>
1445 </div>
1446 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1447 <div class="ays-poll-new-upgrade-button-box">
1448 <div>
1449 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1450 <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">
1451 </div>
1452 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1453 </div>
1454 </a>
1455 <div class="ays-poll-new-watch-video-button-box">
1456 <div>
1457 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1458 <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">
1459 </div>
1460 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1461 </div>
1462 </div>
1463 </div>
1464 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1465 <div class="if-text poll-type-block form-group row">
1466 <div class="col-sm-3">
1467 <label for="">
1468 <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1469 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1470 <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1471 <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>
1472 <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>">
1473 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1474 </a>
1475 </label>
1476 </div>
1477 <div class="col-sm-9 answers-col row">
1478 <div class="d-flex" style="padding: 0 15px;">
1479 <div class="form-check-inline">
1480 <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" : ""; ?>>
1481 <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1482 </label>
1483 </div>
1484 <div class="form-check-inline">
1485 <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" : ""; ?>>
1486 <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1487 </label>
1488 </div>
1489 </div>
1490 </div>
1491 </div>
1492 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1493 <div class="if-text poll-type-block form-group row">
1494 <div class="col-sm-3">
1495 <label for='ays_poll_text_type_placeholder'>
1496 <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1497 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1498 title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1499 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1500 </a>
1501 </label>
1502 </div>
1503 <div class="col-sm-3 ays_divider_left">
1504 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1505 </div>
1506 </div>
1507 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1508 <div class="if-text poll-type-block form-group row">
1509 <div class="col-sm-3">
1510 <label for='ays_poll_text_type_width'>
1511 <?php echo esc_html__("Width", "poll-maker"); ?>
1512 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1513 title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1514 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1515 </a>
1516 </label>
1517 </div>
1518 <div class="col-sm-3 ays_divider_left">
1519 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1520 </div>
1521 <div class="col-sm-6">
1522 <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">
1523 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1524 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1525 </select>
1526 </div>
1527 </div>
1528 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1529 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1530 <div class="col-sm-3">
1531 <label for="ays_poll_enable_question_length">
1532 <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1533 <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" ); ?>">
1534 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1535 </a>
1536 </label>
1537 </div>
1538 <div class="col-sm-1 ays_divider_left">
1539 <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' : ''; ?>>
1540 </div>
1541 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1542 <div class="form-group row">
1543 <div class="col-sm-4">
1544 <label for="ays_poll_question_limit_text_type">
1545 <?php echo esc_html__('Limit by', "poll-maker"); ?>
1546 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1547 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1548 </a>
1549 </label>
1550 </div>
1551 <div class="col-sm-8">
1552 <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%;">
1553 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1554 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1555 </select>
1556 </div>
1557 </div>
1558 <hr>
1559 <div class="form-group row">
1560 <div class="col-sm-4">
1561 <label for="ays_poll_question_text_max_length">
1562 <?php echo esc_html__('Length', "poll-maker"); ?>
1563 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1564 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1565 </a>
1566 </label>
1567 </div>
1568 <div class="col-sm-8">
1569 <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%;">
1570 </div>
1571 </div>
1572 <hr>
1573 <div class="form-group row">
1574 <div class="col-sm-4">
1575 <label for="ays_poll_question_enable_text_message">
1576 <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1577 <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"); ?>">
1578 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1579 </a>
1580 </label>
1581 </div>
1582 <div class="col-sm-8">
1583 <div class="form-check form-check-inline">
1584 <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" : ""; ?> />
1585 </div>
1586 </div>
1587 </div>
1588 </div>
1589 </div>
1590 </div>
1591 </div>
1592 </div>
1593 <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1594 <p class="ays-subtitle">
1595 <?php echo esc_html__('Styling options', "poll-maker"); ?>
1596 </p>
1597 <hr>
1598 <div class="form-group row ays-poll-all-themes-container">
1599 <div class="col-sm-1">
1600 <label for='ays-poll-theme' class="ays_label_flex">
1601 <?php echo esc_html__('Theme', "poll-maker"); ?>
1602 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1603 title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1604 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1605 </a>
1606 </label>
1607 </div>
1608 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1609 <div class="ays_poll_theme_image_div col">
1610 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1611 <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1612 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1613 alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1614 </label>
1615 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1616 value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1617 </div>
1618 <div class="ays_poll_theme_image_div col">
1619 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1620 <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1621 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1622 alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1623 </label>
1624 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1625 value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1626 </div>
1627 <div class="ays_poll_theme_image_div col">
1628 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1629 <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1630 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1631 alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1632 </label>
1633 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1634 value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1635 </div>
1636 <div class="col">
1637 <div class="form-group row" style="margin: 0px;">
1638 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1639 <div class="pro_features" style="justify-content:flex-end;">
1640 </div>
1641 <div class="ays_poll_theme_image_div_pro">
1642 <div class="ays_poll_theme_image_div col apm-pro-feature">
1643 <label class="ays-poll-theme-item">
1644 <p>Light Shape</p>
1645 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1646 alt="Light Shape"
1647 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1648 </label>
1649 </div>
1650 <div class="ays_poll_theme_image_div col apm-pro-feature">
1651 <label class="ays-poll-theme-item">
1652 <p>Dark Shape</p>
1653 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1654 alt="Light Shape"
1655 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1656 </label>
1657 </div>
1658 <div class="ays_poll_theme_image_div col apm-pro-feature">
1659 <label class="ays-poll-theme-item">
1660 <p>Coffee Fluid</p>
1661 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1662 alt="Coffee Fluid"
1663 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1664 </label>
1665 </div>
1666 <div class="ays_poll_theme_image_div col apm-pro-feature">
1667 <label class="ays-poll-theme-item">
1668 <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1669 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1670 alt="Aquamarine"
1671 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1672 </label>
1673 </div>
1674 </div>
1675 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1676 <div class="ays-poll-new-upgrade-button-box">
1677 <div>
1678 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1679 <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">
1680 </div>
1681 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1682 </div>
1683 </a>
1684 </div>
1685 </div>
1686 </div>
1687 </div>
1688 </div>
1689 <hr>
1690 <div class="col ays-poll-styles-page-main-container">
1691 <div class="row">
1692 <div class="col-lg-6 col-sm-12">
1693 <div class="ays-poll-accordion-options-main-container">
1694 <div class="ays-poll-accordion-header">
1695 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1696 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1697 </div>
1698 <hr class="ays-poll-bolder-hr"/>
1699 <div class="ays-poll-accordion-body">
1700 <div class="form-group row">
1701 <div class="col-sm-4">
1702 <label for='ays-poll-main-color'>
1703 <?php echo esc_html__('Main Color', "poll-maker"); ?>
1704 <a class="ays_help"
1705 data-toggle="tooltip"
1706 data-placement="top"
1707 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"); ?>">
1708 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1709 </a>
1710 </label>
1711 </div>
1712 <div class="col-sm-8 ays_divider_left">
1713 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1714 name='ays_poll_main_color'
1715 value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1716 </div>
1717 </div>
1718 <hr>
1719 <div class="form-group row">
1720 <div class="col-sm-4">
1721 <label for='ays-poll-text-color'>
1722 <?php echo esc_html__('Text Color', "poll-maker"); ?>
1723 <a class="ays_help"
1724 data-toggle="tooltip"
1725 data-placement="top"
1726 title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1727 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1728 </a>
1729 </label>
1730 </div>
1731 <div class="col-sm-8 ays_divider_left">
1732 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1733 name='ays_poll_text_color'
1734 value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1735 </div>
1736 </div>
1737 <hr>
1738 <div class="form-group row">
1739 <div class="col-sm-4">
1740 <label for='ays-poll-icon-color'>
1741 <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1742 <a class="ays_help"
1743 data-toggle="tooltip"
1744 data-placement="top"
1745 title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1746 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1747 </a>
1748 </label>
1749 </div>
1750 <div class="col-sm-8 ays_divider_left">
1751 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1752 name='ays_poll_icon_color'
1753 value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1754 </div>
1755 </div>
1756 <hr>
1757 <div class="form-group row">
1758 <div class="col-sm-4">
1759 <label for='ays-poll-bg-color'>
1760 <?php echo esc_html__('Background Color', "poll-maker"); ?>
1761 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1762 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1763 </a>
1764 </label>
1765 </div>
1766 <div class="col-sm-8 ays_divider_left">
1767 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1768 name='ays_poll_bg_color'
1769 value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1770 </div>
1771 </div>
1772 <hr>
1773 <div class="form-group row">
1774 <div class="col-sm-4">
1775 <label for='ays-poll-bg-image'>
1776 <?php echo esc_html__('Background Image', "poll-maker"); ?>
1777 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1778 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"); ?>">
1779 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1780 </a>
1781 </label>
1782 </div>
1783 <div class="col-sm-8 ays_divider_left">
1784 <a href="javascript:void(0)" class="add-bg-image button">
1785 <?php echo esc_html($image_text_bg); ?>
1786 </a>
1787 <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1788 <div class="ays-poll-bg-image-container">
1789 <span class="ays-remove-bg-img"></span>
1790 <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1791 id="ays-poll-bg-img"/>
1792 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1793 value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1794 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1795 value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1796 </div>
1797 </div>
1798 <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1799 <hr>
1800 <div class="form-group row">
1801 <div class="col-sm-12">
1802 <label for="ays_poll_bg_image_position">
1803 <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1804 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1805 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1806 </a>
1807 </label>
1808 <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;">
1809 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1810 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1811 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1812 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1813 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1814 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1815 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1816 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1817 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1818 </select>
1819 </div>
1820 </div>
1821 <hr>
1822 <div class="form-group row">
1823 <div class="col-sm-8">
1824 <label for="ays_poll_bg_img_in_finish_page">
1825 <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1826 <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")?>">
1827 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1828 </a>
1829 </label>
1830 </div>
1831 <div class="col-sm-4">
1832 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1833 id="ays_poll_bg_img_in_finish_page"
1834 name="ays_poll_bg_img_in_finish_page"
1835 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1836 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1837 </div>
1838 </div>
1839 </div>
1840 </div>
1841 </div>
1842 <hr>
1843 <div class="form-group row">
1844 <div class="col-sm-4">
1845 <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1846 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1847 title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1848 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1849 </a>
1850 </label>
1851 </div>
1852 <div class="col-sm-8 ays_divider_left">
1853 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1854 id="ays_poll_enable_box_shadow"
1855 name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1856 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1857 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1858 style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1859 <label for="ays-poll-box-shadow-color">
1860 <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1861 <a class="ays_help" data-toggle="tooltip"
1862 title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1863 <i class="ays_fa ays_fa_info_circle"></i>
1864 </a>
1865 </label>
1866 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1867 name='ays_poll_box_shadow_color'
1868 value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1869 </div>
1870 <!---->
1871 <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1872 <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1873 <div class="col-sm-12">
1874 <div class="col-sm-3" style="display: inline-block;">
1875 <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); ?>" />
1876 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1877 </div>
1878 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1879 <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); ?>" />
1880 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1881 </div>
1882 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1883 <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); ?>" />
1884 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1885 </div>
1886 </div>
1887 </div>
1888 <!---->
1889 </div>
1890 </div>
1891 <hr>
1892 <!-- ---------Aro start gradient -->
1893 <div class="form-group row">
1894 <div class="col-sm-4">
1895 <label for="ays-enable-background-gradient">
1896 <?php echo esc_html__('Background Gradient', "poll-maker")?>
1897 <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")?>">
1898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1899 </a>
1900 </label>
1901 </div>
1902 <div class="col-sm-8 ays_divider_left">
1903 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1904 id="ays-enable-background-gradient"
1905 name="ays_enable_background_gradient"
1906 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1907 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1908 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1909 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1910 <label for='ays-background-gradient-color-1'>
1911 <?php echo esc_html__('Color 1', "poll-maker"); ?>
1912 </label>
1913 <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); ?>"/>
1914 </div>
1915 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1916 <label for='ays-background-gradient-color-2'>
1917 <?php echo esc_html__('Color 2', "poll-maker"); ?>
1918 </label>
1919 <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); ?>"/>
1920 </div>
1921 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1922 <label for="ays_poll_gradient_direction">
1923 <?php echo esc_html__('Gradient direction',"poll-maker")?>
1924 </label>
1925 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1926 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1927 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1928 <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>
1929 <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>
1930 </select>
1931 </div>
1932 </div>
1933 </div>
1934 </div>
1935 <hr>
1936 <div class="form-group row ays_toggle_parent">
1937 <div class="col-sm-4">
1938 <label for="ays_poll_image_text_logo">
1939 <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1940 <a class="ays_help" data-toggle="tooltip"
1941 data-placement="top"
1942 title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1943 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1944 </a>
1945 </label>
1946 </div>
1947 <div class="col-sm-8 ays_logo_container ays_divider_left">
1948 <div class="form-group row">
1949 <div class="col-sm-4">
1950 <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1951 </div>
1952 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1953 <div class="ays-poll-logo-image-container">
1954 <div class="col-sm-3" style="padding:0;">
1955 <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1956 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1957 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1958 value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1959 </div>
1960 <div class="col-sm-9">
1961 <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1962 </div>
1963 </div>
1964 </div>
1965 </div>
1966 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1967 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1968 <div class="col-sm-4 ">
1969 <label for="ays_disable_answer_hover">
1970 <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1971 <a class="ays_help" data-toggle="tooltip"
1972 data-placement="top"
1973 title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1974 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1975 </a>
1976 </label>
1977 </div>
1978 <div class="col-sm-8 ays_divider_left">
1979 <input type="checkbox"
1980 name="ays_poll_logo_enable_image_url"
1981 id="ays_poll_logo_enable_image_url"
1982 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1983 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1984 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1985 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
1986 <input type="text"
1987 name="ays_poll_logo_image_url"
1988 id="ays_poll_logo_image_url"
1989 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
1990 </div>
1991 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1992 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1993 <div class="col-sm-6">
1994 <label for="ays_poll_logo_enable_image_url_new_tab">
1995 <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
1996 <a class="ays_help" data-toggle="tooltip"
1997 data-placement="top"
1998 title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
1999 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2000 </a>
2001 </label>
2002 </div>
2003 <div class="col-sm-6">
2004 <input type="checkbox"
2005 name="ays_poll_logo_enable_image_url_new_tab"
2006 id="ays_poll_logo_enable_image_url_new_tab"
2007 value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
2008 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
2009 </div>
2010 </div>
2011 </div>
2012 </div>
2013 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2014 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2015 <div class="col-sm-4">
2016 <label for="ays_poll_logo_title">
2017 <?php echo esc_html__('Logo title', "poll-maker"); ?>
2018 <a class="ays_help" data-toggle="tooltip"
2019 data-placement="top"
2020 title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
2021 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2022 </a>
2023 </label>
2024 </div>
2025 <div class="col-sm-8 ays_divider_left">
2026 <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); ?>">
2027 </div>
2028 </div>
2029 </div>
2030 </div>
2031 <!-- Poll logo start -->
2032 <hr>
2033 <div class="form-group row">
2034 <div class="col-sm-4">
2035 <label for='ays-poll-title-bg-color'>
2036 <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
2037 <a class="ays_help"
2038 data-toggle="tooltip"
2039 data-placement="top"
2040 title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
2041 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2042 </a>
2043 </label>
2044 </div>
2045 <div class="col-sm-8 ays_divider_left">
2046 <input type="text" class="ays-text-input" data-alpha="true"
2047 id='ays-poll-title-bg-color'
2048 name='ays_poll_title_bg_color'
2049 value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2050 </div>
2051 </div>
2052 <hr>
2053 <div class="form-group row">
2054 <div class="col-sm-4">
2055 <label for='ays_poll_title_font_size'>
2056 <?php echo esc_html__('Title font size', "poll-maker"); ?>
2057 <a class="ays_help"
2058 data-toggle="tooltip"
2059 data-placement="top"
2060 title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
2061 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2062 </a>
2063 </label>
2064 </div>
2065 <div class="col-sm-8 ays_divider_left">
2066 <div>
2067 <div>
2068 <label for='ays_poll_title_font_size'>
2069 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2070 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2071 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2072 </a>
2073 </label>
2074 </div>
2075 <div>
2076 <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); ?>"/>
2077 </div>
2078 </div>
2079 <hr>
2080 <div>
2081 <div>
2082 <label for='ays_poll_title_font_size_mobile'>
2083 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2084 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2085 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2086 </a>
2087 </label>
2088 </div>
2089 <div>
2090 <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);?>">
2091 </div>
2092 </div>
2093 </div>
2094 </div>
2095 <hr>
2096 <div class="form-group row">
2097 <div class="col-sm-4">
2098 <label for='ays_poll_title_alignment'>
2099 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2100 <a class="ays_help"
2101 data-toggle="tooltip"
2102 data-placement="top"
2103 title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2104 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2105 </a>
2106 </label>
2107 </div>
2108 <div class="col-sm-8 ays_divider_left">
2109 <div>
2110 <div>
2111 <label for='ays_poll_title_alignment'>
2112 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2113 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2114 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2115 </a>
2116 </label>
2117 </div>
2118 <div>
2119 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2120 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2121 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2122 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2123 </select>
2124 </div>
2125 </div>
2126 <hr>
2127 <div>
2128 <div>
2129 <label for='ays_poll_title_alignment_mobile'>
2130 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2131 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2132 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2133 </a>
2134 </label>
2135 </div>
2136 <div>
2137 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2138 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2139 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2140 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2141 </select>
2142 </div>
2143 </div>
2144 </div>
2145 </div>
2146 <hr>
2147 <!-- title text shadow start -->
2148 <div class="form-group row">
2149 <div class="col-sm-4">
2150 <label for="ays_poll_enable_title_text_shadow">
2151 <?php echo esc_html__('Title text shadow', "poll-maker")?>
2152 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2153 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2154 </a>
2155 </label>
2156 </div>
2157 <div class="col-sm-8 ays_divider_left">
2158 <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' : ''; ?>/>
2159 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2160 <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;' ?>">
2161 <label for='ays_poll_title_text_shadow_color'>
2162 <?php echo esc_html__('Color', "poll-maker"); ?>
2163 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2164 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2165 </a>
2166 </label>
2167 <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); ?>"/>
2168 </div>
2169 <!---->
2170 <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2171 <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2172 <div class="col-sm-12">
2173 <div class="col-sm-3" style="display: inline-block;">
2174 <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; ?>" />
2175 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2176 </div>
2177 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2178 <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; ?>" />
2179 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2180 </div>
2181 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2182 <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; ?>" />
2183 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2184 </div>
2185 </div>
2186 </div>
2187 <!---->
2188 </div>
2189 </div>
2190 <!-- title text shadow end -->
2191 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2192 <hr>
2193 <div class="form-group row">
2194 <div class="col-sm-4">
2195 <label for='ays-poll-icon-size'>
2196 <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2197 <a class="ays_help"
2198 data-toggle="tooltip"
2199 data-placement="top"
2200 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"); ?>">
2201 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2202 </a>
2203 </label>
2204 </div>
2205 <div class="col-sm-8 ays_divider_left">
2206 <input type="number" class="ays-text-input ays-text-input-short"
2207 id='ays-poll-icon-size' name='ays_poll_icon_size'
2208 value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2209 </div>
2210 </div>
2211 </div>
2212 <hr>
2213 <div class="form-group row">
2214 <div class="col-sm-4">
2215 <label for='ays-poll-width'>
2216 <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2217 <a class="ays_help"
2218 data-toggle="tooltip"
2219 data-placement="top"
2220 title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2221 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2222 </a>
2223 </label>
2224 </div>
2225 <div class="col-sm-8 ays_divider_left">
2226 <div>
2227 <div>
2228 <label for='ays-poll-width'>
2229 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2230 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2231 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2232 </a>
2233 </label>
2234 </div>
2235 <div>
2236 <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'] ?>"/>
2237 </div>
2238 </div>
2239 <hr>
2240 <div>
2241 <div>
2242 <label for='ays_poll_width_for_mobile'>
2243 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2244 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2245 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2246 </a>
2247 </label>
2248 </div>
2249 <div>
2250 <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 ?>"/>
2251 <p class="ays_poll_small_hint_text_for_message_variables">
2252 <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2253 </p>
2254 </div>
2255 </div>
2256 </div>
2257 </div>
2258 <hr/>
2259 <div class="form-group row">
2260 <div class="col-sm-4">
2261 <label for='ays_poll_min_height'>
2262 <?php echo esc_html__('Min-height', "poll-maker"); ?>
2263 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2264 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2265 </a>
2266 </label>
2267 </div>
2268 <div class="col-sm-8 ays_divider_left">
2269 <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); ?>"/>
2270 </div>
2271 </div>
2272 <hr>
2273 <div class="form-group row">
2274 <div class="col-sm-4">
2275 <label for='ays_poll_mobile_max_width'>
2276 <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2277 <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")?>">
2278 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2279 </a>
2280 </label>
2281 </div>
2282 <div class="col-sm-8 ays_divider_left">
2283 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2284 name='ays_poll_mobile_max_width' style="display: inline-block;"
2285 value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2286 <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2287 </div>
2288 </div> <!-- Poll max-width for mobile -->
2289 <hr>
2290 </div>
2291 </div>
2292 <div class="ays-poll-accordion-options-main-container">
2293 <div class="ays-poll-accordion-header">
2294 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2295 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2296 </div>
2297 <hr class="ays-poll-bolder-hr"/>
2298 <div class="ays-poll-accordion-body">
2299 <div class="form-group row">
2300 <div class="col-sm-4">
2301 <label for='ays_questions_font_size'>
2302 <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2303 <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")?>">
2304 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2305 </a>
2306 </label>
2307 </div>
2308 <div class="col-sm-8 ays_divider_left">
2309 <div>
2310 <div>
2311 <label for='ays_questions_font_size'>
2312 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2313 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2314 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2315 </a>
2316 </label>
2317 </div>
2318 <div>
2319 <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;?>">
2320 </div>
2321 </div>
2322 <hr>
2323 <div>
2324 <div>
2325 <label for='ays_poll_answers_font_size_mobile'>
2326 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2327 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2328 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2329 </a>
2330 </label>
2331 </div>
2332 <div>
2333 <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;?>">
2334 </div>
2335 </div>
2336 </div>
2337 </div><!-- Question font size -->
2338 <hr>
2339 <div class="form-group row">
2340 <div class="col-sm-4">
2341 <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2342 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2343 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2344 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2345 </a>
2346 </label>
2347 </div>
2348 <div class="col-sm-8 ays_divider_left">
2349 <input type="number"
2350 class="ays-text-input ays-text-input-short"
2351 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2352 value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2353 </div>
2354 </div><!-- Question image height -->
2355 <hr>
2356 <div class="form-group row">
2357 <div class="col-sm-4">
2358 <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2359 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2360 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2361 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2362 </a>
2363 </label>
2364 </div>
2365 <div class="col-sm-8 ays_divider_left">
2366 <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">
2367 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2368 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2369 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2370 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2371 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2372 </select>
2373 </div>
2374 </div><!-- Question image object fit -->
2375 <hr>
2376 </div>
2377 </div>
2378 <div class="ays-poll-accordion-options-main-container">
2379 <div class="ays-poll-accordion-header">
2380 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2381 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2382 </div>
2383 <hr class="ays-poll-bolder-hr"/>
2384 <div class="ays-poll-accordion-body">
2385 <div class="form-group row">
2386 <div class="col-sm-4">
2387 <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2388 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2389 title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2390 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2391 </a>
2392 </label>
2393 </div>
2394 <div class="col-sm-8 ays_divider_left">
2395 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2396 id="ays_poll_enable_answer_style"
2397 name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2398 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2399 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2400 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2401 <label for="ays-poll-box-shadow-color">
2402 <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2403 <a class="ays_help" data-toggle="tooltip"
2404 title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2405 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2406 </a>
2407 </label>
2408 <input type="text" class="ays-text-input" data-alpha="true"
2409 id='ays-poll-answer-bg-color'
2410 name='ays_poll_answer_bg_color'
2411 value="<?php echo esc_attr($answer_bg_color); ?>"/>
2412 </div>
2413 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2414 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2415 <label for="ays-poll-answer-hover-color">
2416 <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2417 <a class="ays_help" data-toggle="tooltip"
2418 title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2419 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2420 </a>
2421 </label>
2422 <input type="text" class="ays-text-input" data-alpha="true"
2423 id='ays-poll-answer-hover-color'
2424 name='ays_poll_answer_hover_color'
2425 value="<?php echo esc_attr($answer_hover_color); ?>"/>
2426 </div>
2427 <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;' ?>">
2428 <div>
2429 <label for='ays-poll-border-side'>
2430 <?php echo esc_html__('Border side', "poll-maker"); ?>
2431 <a class="ays_help"
2432 data-toggle="tooltip"
2433 data-placement="top"
2434 title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2435 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2436 </a>
2437 </label>
2438 </div>
2439 <div id="ays-poll-border-side-box">
2440 <select name="ays_poll_border_side" id="ays-poll-border-side"
2441 class="ays-select ays-select-short ays_poll_aysDropdown">
2442 <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2443 <?php echo esc_html__("All sides", "poll-maker"); ?>
2444 </option>
2445 <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2446 <?php echo esc_html__("None", "poll-maker"); ?>
2447 </option>
2448 <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2449 <?php echo esc_html__("Top", "poll-maker"); ?>
2450 </option>
2451 <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2452 <?php echo esc_html__("Bottom", "poll-maker"); ?>
2453 </option>
2454 <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2455 <?php echo esc_html__("Left", "poll-maker"); ?>
2456 </option>
2457 <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2458 <?php echo esc_html__("Right", "poll-maker"); ?>
2459 </option>
2460 </select>
2461 </div>
2462 </div>
2463 <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;' ?>">
2464 <div>
2465 <label for='ays_answer_font_size'>
2466 <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2467 <a class="ays_help"
2468 data-toggle="tooltip"
2469 data-placement="top"
2470 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"); ?>">
2471 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2472 </a>
2473 </label>
2474 </div>
2475 <div class="ays_answer_font_size_box">
2476 <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;?>">
2477 </div>
2478 </div>
2479 <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;' ?>">
2480 <div>
2481 <label for='ays_poll_answer_font_size_mobile'>
2482 <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2483 <a class="ays_help"
2484 data-toggle="tooltip"
2485 data-placement="top"
2486 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"); ?>">
2487 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2488 </a>
2489 </label>
2490 </div>
2491 <div class="ays_answer_font_size_box">
2492 <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;?>">
2493 </div>
2494 </div>
2495 <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;' ?>">
2496 <div>
2497 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2498 <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2499 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2500 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2501 </a>
2502 </label>
2503 </div>
2504 <div>
2505 <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; ?>" />
2506 </div>
2507 </div> <!-- Answers image height -->
2508 <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;' ?>">
2509 <div>
2510 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2511 <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2512 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2513 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2514 </a>
2515 </label>
2516 </div>
2517 <div>
2518 <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; ?>" />
2519 </div>
2520 </div> <!-- Answers image height for mobile-->
2521 <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;' ?>">
2522 <div>
2523 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2524 <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2525 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2526 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2527 </a>
2528 </label>
2529 </div>
2530 <div>
2531 <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; ?>" />
2532 </div>
2533 </div> <!-- Answers image border radius -->
2534 <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;' ?>">
2535 <div >
2536 <label for="ays_poll_image_background_size">
2537 <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2538 <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"); ?>">
2539 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2540 </a>
2541 </label>
2542 </div>
2543 <div id="ays_poll_image_background_size_box">
2544 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2545 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2546 <?php echo esc_html__('Cover', "poll-maker")?>
2547 </option>
2548 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2549 <?php echo esc_html__('Fill', "poll-maker")?>
2550 </option>
2551 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2552 <?php echo esc_html__('Contain', "poll-maker")?>
2553 </option>
2554 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2555 <?php echo esc_html__('Scale-down', "poll-maker")?>
2556 </option>
2557 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2558 <?php echo esc_html__('None', "poll-maker")?>
2559 </option>
2560 </select>
2561 </div>
2562 </div> <!-- Answer image object fit -->
2563 <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;' ?>">
2564 <div>
2565 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2566 <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2567 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2568 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2569 </a>
2570 </label>
2571 </div>
2572 <div>
2573 <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); ?>"/>
2574 </div>
2575 </div> <!-- Answers padding -->
2576 <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;' ?>">
2577 <div >
2578 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2579 <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2580 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2581 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2582 </a>
2583 </label>
2584 </div>
2585 <div>
2586 <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; ?>" />
2587 </div>
2588 </div> <!-- Answers gap -->
2589 <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;' ?>">
2590 <div>
2591 <label for="ays_poll_answer_border_radius">
2592 <?php echo esc_html__('Answer border radius', "poll-maker")?>
2593 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2594 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2595 </a>
2596 </label>
2597 </div>
2598 <div>
2599 <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); ?>"/>
2600 </div>
2601 </div> <!-- Answers border radius -->
2602 </div>
2603 </div>
2604 <hr>
2605 <div class="form-group row">
2606 <div class="col-sm-4">
2607 <label for="ays_poll_show_answers_icon">
2608 <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2609 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2610 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2611 </a>
2612 </label>
2613 </div>
2614 <div class="col-sm-8 ays_divider_left">
2615 <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' : ''; ?> />
2616 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2617 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2618 <div class="form-check form-check-inline">
2619 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2620 <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' : ''; ?> />
2621 </label>
2622 </div>
2623 <div class="form-check form-check-inline">
2624 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2625 <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' : ''; ?> />
2626 </label>
2627 </div>
2628 </div>
2629 </div>
2630 </div> <!-- Answer icon -->
2631 <hr>
2632 <div class="form-group row">
2633 <div class="col-sm-4">
2634 <label for="ays_answers_view" class="ays_enable_answer_style">
2635 <?php echo esc_html__('Answer view', "poll-maker")?>
2636 <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")?>">
2637 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2638 </a>
2639 </label>
2640 </div>
2641 <div class="col-sm-8">
2642 <div class="form-group row">
2643 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2644 <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">
2645 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2646 <?php echo esc_html__('List', "poll-maker")?>
2647 </option>
2648 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2649 <?php echo esc_html__('Grid', "poll-maker")?>
2650 </option>
2651 </select>
2652 </div>
2653 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2654 <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;">
2655 <option value='2' selected>
2656 2
2657 </option>
2658 <option value='3' class="ays-poll-grid-type-columns">
2659 3
2660 </option>
2661 <option value='4' class="ays-poll-grid-type-columns">
2662 4
2663 </option>
2664 </select>
2665 </div>
2666 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2667 <div class="col-sm-8" style="display:flex;align-items:center;">
2668 <label for="ays_answers_grid_column_mobile">
2669 <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2670 </label>
2671 <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")?>">
2672 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2673 </a>
2674 </div>
2675 <div class="col-sm-1 ays_divider_left">
2676 <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'/>
2677 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2678 </div>
2679 </div>
2680 </div>
2681 </div>
2682 </div> <!-- Answers view -->
2683 <hr>
2684 <div class="form-group row">
2685 <div class="col-sm-4">
2686 <label for="ays_poll_answers_box_shadow_enable">
2687 <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2688 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2689 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2690 </a>
2691 </label>
2692 </div>
2693 <div class="col-sm-8 ays_divider_left">
2694 <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" : ""; ?>>
2695 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2696 <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;"; ?>">
2697 <label for="ays_poll_answers_box_shadow_color">
2698 <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2699 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2701 </a>
2702 </label>
2703 <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">
2704 </div>
2705 <!---->
2706 <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2707 <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2708 <div class="col-sm-12">
2709 <div class="col-sm-3" style="display: inline-block;">
2710 <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; ?>" />
2711 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2712 </div>
2713 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2714 <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; ?>" />
2715 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2716 </div>
2717 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2718 <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; ?>" />
2719 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2720 </div>
2721 </div>
2722 </div>
2723 <!---->
2724 </div>
2725 </div> <!-- Answers box shadow -->
2726 <hr>
2727 <div class="form-group row">
2728 <div class="col-sm-4">
2729 <label for="ays_disable_answer_hover">
2730 <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2731 <a class="ays_help" data-toggle="tooltip"
2732 data-placement="top"
2733 title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2734 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2735 </a>
2736 </label>
2737 </div>
2738 <div class="col-sm-8 ays_divider_left">
2739 <input type="checkbox"
2740 name="ays_disable_answer_hover"
2741 id="ays_disable_answer_hover"
2742 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2743 >
2744 </div>
2745 </div>
2746 <hr>
2747 <!--PRO ANSWER STYLEs-->
2748 <div class="form-group row">
2749 <div class="col-sm-12 only_pro">
2750 <div class="pro_features" style="justify-content:flex-end;">
2751 </div>
2752 <div class="form-group row" style="padding: 15px 15px 0">
2753 <div class="" style="width: 100%;">
2754 <div class="form-group row">
2755 <div class="col-sm-5">
2756 <label for="ays_answers_border">
2757 <?php echo esc_html__('Answer border', "poll-maker")?>
2758 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2759 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2760 </a>
2761 </label>
2762 </div>
2763 <div class="col-sm-7 ays_divider_left">
2764 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2765 checked/>
2766 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2767 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2768 <label for="ays_answers_border_width">
2769 <?php echo esc_html__('Border width', "poll-maker")?> (px)
2770 <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")?>">
2771 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2772 </a>
2773 </label>
2774 <input type="number" class="ays-text-input"
2775 value="" min="0"/>
2776 </div>
2777 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2778 <label for="ays_answers_border_style">
2779 <?php echo esc_html__('Border style', "poll-maker")?>
2780 <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")?>">
2781 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2782 </a>
2783 </label>
2784 <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2785 <option>Solid</option>
2786 </select>
2787 </div>
2788 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2789 <label for="ays_answers_border_color">
2790 <?php echo esc_html__('Border color', "poll-maker")?>
2791 <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")?>">
2792 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2793 </a>
2794 </label>
2795 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2796 </div>
2797 </div>
2798 </div> <!-- Answers border -->
2799 <hr/>
2800 <div class="form-group row ays_grid_show">
2801 <div class="col-sm-5">
2802 <label for="ays_poll_show_answers_caption">
2803 <?php echo esc_html__('Show answers caption', "poll-maker")?>
2804 <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"); ?>">
2805 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2806 </a>
2807 </label>
2808 </div>
2809 <div class="col-sm-7 ays_divider_left">
2810 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2811 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2812 </div>
2813 </div> <!-- Show answers caption -->
2814 <hr/>
2815 <div class="form-group row">
2816 <div class="col-sm-5">
2817 <label for="ays_ans_img_caption_style">
2818 <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2819 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2821 </a>
2822 </label>
2823 </div>
2824 <div class="col-sm-7 ays_divider_left">
2825 <select class="ays-text-input ays-text-input-short">
2826 <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2827 </select>
2828 </div>
2829 </div> <!-- Answers image caption style -->
2830 <hr/>
2831 <div class="form-group row">
2832 <div class="col-sm-5">
2833 <label for="ays_ans_img_caption_position">
2834 <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2835 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2836 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2837 </a>
2838 </label>
2839 </div>
2840 <div class="col-sm-7 ays_divider_left">
2841 <select class="ays-text-input ays-text-input-short">
2842 <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2843 </select>
2844 </div>
2845 </div> <!-- Answers image caption position -->
2846 <hr>
2847 </div>
2848 </div>
2849 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2850 <div class="ays-poll-new-upgrade-button-box">
2851 <div>
2852 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2853 <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">
2854 </div>
2855 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2856 </div>
2857 </a>
2858 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2859 <div class="ays-poll-center-big-main-button-box">
2860 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2861 <div class="ays-poll-center-new-big-upgrade-button">
2862 <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">
2863 <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">
2864 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2865 </div>
2866 </a>
2867 </div>
2868 </div>
2869 </div>
2870 </div>
2871 <hr/>
2872 </div>
2873 </div>
2874 <div class="ays-poll-accordion-options-main-container">
2875 <div class="ays-poll-accordion-header">
2876 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2877 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2878 </div>
2879 <hr class="ays-poll-bolder-hr"/>
2880 <div class="ays-poll-accordion-body">
2881 <div class="form-group row">
2882 <div class="col-sm-4">
2883 <label for='ays-poll-border-style'>
2884 <?php echo esc_html__('Border style', "poll-maker"); ?>
2885 <a class="ays_help"
2886 data-toggle="tooltip"
2887 data-placement="top"
2888 title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2889 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2890 </a>
2891 </label>
2892 </div>
2893 <div class="col-sm-8 ays_divider_left">
2894 <select name="ays_poll_border_style" id="ays-poll-border-style"
2895 class="ays-select ays-select-short ays_poll_aysDropdown">
2896 <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2897 <?php echo esc_html__("Solid", "poll-maker"); ?>
2898 </option>
2899 <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2900 <?php echo esc_html__("Dashed", "poll-maker"); ?>
2901 </option>
2902 <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2903 <?php echo esc_html__("Dotted", "poll-maker"); ?>
2904 </option>
2905 <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
2906 <?php echo esc_html__("Double", "poll-maker"); ?>
2907 </option>
2908 <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2909 <?php echo esc_html__("Groove", "poll-maker"); ?>
2910 </option>
2911 <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2912 <?php echo esc_html__("Ridge", "poll-maker"); ?>
2913 </option>
2914 <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2915 <?php echo esc_html__("Inset", "poll-maker"); ?>
2916 </option>
2917 <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2918 <?php echo esc_html__("Outset", "poll-maker"); ?>
2919 </option>
2920 <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
2921 <?php echo esc_html__("None", "poll-maker"); ?>
2922 </option>
2923 </select>
2924 </div>
2925 </div>
2926 <hr>
2927 <div class="form-group row">
2928 <div class="col-sm-4">
2929 <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
2930 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2931 title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2932 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2933 </a>
2934 </label>
2935 </div>
2936 <div class="col-sm-8 ays_divider_left">
2937 <input type="number" min="0"
2938 class="ays-text-input ays-text-input-short"
2939 id='ays-poll-border-radius' name='ays_poll_border_radius'
2940 value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2941 </div>
2942 </div>
2943 <hr>
2944 <div class="form-group row">
2945 <div class="col-sm-4">
2946 <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
2947 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2948 title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2949 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2950 </a>
2951 </label>
2952 </div>
2953 <div class="col-sm-8 ays_divider_left">
2954 <input type="number" min="0"
2955 class="ays-text-input ays-text-input-short"
2956 id='ays-poll-border-width' name='ays_poll_border_width'
2957 value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
2958 </div>
2959 </div>
2960 <hr>
2961 <div class="form-group row">
2962 <div class="col-sm-4">
2963 <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
2964 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2965 title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
2966 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2967 </a>
2968 </label>
2969 </div>
2970 <div class="col-sm-8 ays_divider_left">
2971 <input type="text"
2972 class="ays-text-input"
2973 data-alpha="true"
2974 id='ays-poll-border-color'
2975 name='ays_poll_border_color'
2976 value="<?php echo esc_attr($default_border); ?>"/>
2977 </div>
2978 </div>
2979 <hr>
2980 <!-- Buttons Styles Start -->
2981 </div>
2982 </div>
2983 <div class="ays-poll-accordion-options-main-container">
2984 <div class="ays-poll-accordion-header">
2985 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2986 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
2987 </div>
2988 <hr class="ays-poll-bolder-hr"/>
2989 <div class="ays-poll-accordion-body">
2990 <div class="form-group row">
2991 <div class="col-sm-4">
2992 <label for="ays_poll_buttons_size">
2993 <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
2994 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2995 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2996 </a>
2997 </label>
2998 </div>
2999 <div class="col-sm-8 ays_divider_left">
3000 <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">
3001 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
3002 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
3003 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
3004 </select>
3005 </div>
3006 </div> <!-- Buttons Size -->
3007 <hr>
3008 <div class="form-group row">
3009 <div class="col-sm-4">
3010 <label for='ays-poll-button-text-color'>
3011 <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
3012 <a class="ays_help"
3013 data-toggle="tooltip"
3014 data-placement="top"
3015 title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3016 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3017 </a>
3018 </label>
3019 </div>
3020 <div class="col-sm-8 ays_divider_left">
3021 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
3022 name='ays_poll_button_text_color'
3023 value="<?php echo esc_attr($poll_button_text_color); ?>"/>
3024 </div>
3025 </div><!-- Buttons text color -->
3026 <hr>
3027 <div class="form-group row">
3028 <div class="col-sm-4">
3029 <label for='ays-poll-button-bg-color'>
3030 <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
3031 <a class="ays_help"
3032 data-toggle="tooltip"
3033 data-placement="top"
3034 title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
3035 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3036 </a>
3037 </label>
3038 </div>
3039 <div class="col-sm-8 ays_divider_left">
3040 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
3041 name='ays_poll_button_bg_color'
3042 value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
3043 </div>
3044 </div><!-- Buttons background color -->
3045 <hr>
3046 <div class="form-group row">
3047 <div class="col-sm-4">
3048 <label for='ays_poll_buttons_font_size'>
3049 <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3050 <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"); ?>">
3051 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3052 </a>
3053 </label>
3054 </div>
3055 <div class="col-sm-8 ays_divider_left">
3056 <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; ?>"/>
3057 </div>
3058 </div> <!-- Buttons font size -->
3059 <hr>
3060 <div class="form-group row">
3061 <div class="col-sm-4">
3062 <label for='ays_poll_buttons_mobile_font_size'>
3063 <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3064 <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"); ?>">
3065 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3066 </a>
3067 </label>
3068 </div>
3069 <div class="col-sm-8 ays_divider_left">
3070 <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; ?>"/>
3071 </div>
3072 </div> <!-- Buttons font size -->
3073 <hr>
3074 <div class="form-group row">
3075 <div class="col-sm-4">
3076 <label for="ays_poll_buttons_left_right_padding">
3077 <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3078 <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"); ?>">
3079 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3080 </a>
3081 </label>
3082 </div>
3083 <div class="col-sm-8 ays_divider_left">
3084 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3085 <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;" />
3086 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
3087 </div>
3088 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3089 <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;" />
3090 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
3091 </div>
3092 </div>
3093 </div> <!-- Buttons padding -->
3094 <hr>
3095 <div class="form-group row">
3096 <div class="col-sm-4">
3097 <label for="ays_poll_buttons_border_radius">
3098 <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3099 <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"); ?>">
3100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3101 </a>
3102 </label>
3103 </div>
3104 <div class="col-sm-8 ays_divider_left">
3105 <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; ?>"/>
3106 </div>
3107 </div>
3108 <hr>
3109 <div class="form-group row">
3110 <div class="col-sm-4">
3111 <label for='ays_poll_buttons_width'>
3112 <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3113 <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"); ?>">
3114 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3115 </a>
3116 </label>
3117 </div>
3118 <div class="col-sm-8 ays_divider_left">
3119 <div>
3120 <div>
3121 <label for="ays_poll_buttons_width">
3122 <?php echo esc_html__('On desktop', "poll-maker"); ?>
3123 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3124 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3125 </a>
3126 </label>
3127 </div>
3128 <div>
3129 <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; ?>"/>
3130 <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>
3131 </div>
3132 </div>
3133 <hr>
3134 <div>
3135 <div>
3136 <label for="ays_poll_buttons_mobile_width">
3137 <?php echo esc_html__('On mobile', "poll-maker"); ?>
3138 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3139 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3140 </a>
3141 </label>
3142 </div>
3143 <div>
3144 <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; ?>"/>
3145 <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>
3146 </div>
3147 </div>
3148 </div>
3149 </div>
3150 <hr/>
3151 <div class="form-group row">
3152 <div class="col-sm-4">
3153 <label for="ays_poll_custom_class">
3154 <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3155 <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")?>">
3156 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3157 </a>
3158 </label>
3159 </div>
3160 <div class="col-sm-8 ays_divider_left">
3161 <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; ?>">
3162 </div>
3163 </div>
3164 </div>
3165 </div>
3166 </div>
3167 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3168 <?php
3169
3170 $content = "
3171 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3172 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3173 <div class='apm-title-box'>
3174 <h5>{$poll['title']}</h5>
3175 </div>";
3176
3177 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3178 <div class='apm-img-box'>";
3179 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3180 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3181 $content .= "</div>
3182 <div class='apm-answers ays_poll_list_view_container'>";
3183 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3184 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3185 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3186 switch ($poll_answer_icon) {
3187 case 'radio':
3188 $answer_icon_class = 'ays_poll_answer_icon_radio';
3189 break;
3190 case 'checkbox':
3191 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3192 break;
3193 default:
3194 $answer_icon_class = '';
3195 break;
3196 }
3197 }else{
3198 $answer_icon_class = '';
3199 }
3200 switch ( $poll['type'] ) {
3201 case 'choosing':
3202 if(empty($poll['answers'])){
3203 for ($i = 0 ; $i < $answer_default_count ; $i++){
3204 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3205 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3206 <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>
3207
3208 </div>";
3209 }
3210 }
3211 else{
3212 foreach ( $poll['answers'] as $index => $answer ) {
3213 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3214 $poll_class_for_answer_label = "";
3215 $poll_class_for_answer_label_text = "";
3216 if($answer_image != ""){
3217 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3218 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3219 }
3220 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3221 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3222 <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>
3223 </div>";
3224 }
3225 }
3226 break;
3227 case 'voting':
3228 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3229 switch ( $poll_view_type_voting ) {
3230 case 'hand':
3231 foreach ( $poll['answers'] as $index => $answer ) {
3232 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3233 <label for='radio-$index-'>";
3234 $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>";
3235 }
3236 break;
3237 case 'emoji':
3238 foreach ( $poll['answers'] as $index => $answer ) {
3239 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3240 <label for='radio-$index-'>";
3241 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3242 }
3243 break;
3244 default:
3245 break;
3246 }
3247 break;
3248 case 'rating':
3249 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3250 switch ( $poll_view_type_rating ) {
3251 case 'star':
3252 foreach ( $poll['answers'] as $index => $answer ) {
3253 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3254 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3255 }
3256 break;
3257 case 'emoji':
3258 foreach ( $poll['answers'] as $index => $answer ) {
3259 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3260 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3261 }
3262 break;
3263 default:
3264 break;
3265 }
3266 break;
3267 case 'text':
3268 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3269 switch ( $poll_view_type_text ) {
3270 case 'short_text':
3271 $content .= "<div class='ays-poll-maker-text-live-preview'>
3272 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3273 <label for='ays_poll_text_type_short_live'></label>
3274 </div>";
3275 break;
3276 case 'paragraph':
3277 $content .= "<div class='ays-poll-maker-text-live-preview'>
3278 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3279 <label for='ays_poll_text_type_paragraph_live'></label>
3280 </div>";
3281 break;
3282 default:
3283 break;
3284 }
3285 break;
3286 default:
3287 break;
3288 }
3289 $content .= "</div>
3290 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3291 <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') . '">
3292 </div>';
3293 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3294 if($poll_check_logo){
3295 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3296 }
3297 $content .= "</div>";
3298
3299 $content .='</div>
3300 </div>';
3301 print wp_kses_post($content);
3302 ?>
3303 </div>
3304 </div>
3305 <hr/>
3306 <div class="form-group row">
3307 <div class="col-sm-2">
3308 <label for="ays_custom_css">
3309 <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3310 </label>
3311 <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"); ?>">
3312 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3313 </a>
3314 <br>
3315 </div>
3316 <div class="col-sm-10 ays_divider_left">
3317 <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>
3318 </div>
3319 </div>
3320 <hr/>
3321 <div class="form-group row">
3322 <div class="col-sm-2">
3323 <label for="ays_poll_reset_to_default">
3324 <?php echo esc_html__('Reset styles', "poll-maker") ?>
3325 <a class="ays_help" data-toggle="tooltip"
3326 title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3328 </a>
3329 </label>
3330 </div>
3331 <div class="col-sm-10 ays_divider_left">
3332 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3333 id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3334 </button>
3335 </div>
3336 </div>
3337 </div>
3338 <hr>
3339 <div class="only_pro" style="position: relative; display: inline-block">
3340 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3341 <div class="pro-features-popup-conteiner">
3342 <div class="pro-features-popup-title">
3343 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3344 </div>
3345 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3346 <p>
3347 <?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"); ?>
3348 </p>
3349 <p>
3350 <?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"); ?>
3351 </p>
3352 </div>
3353 <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 ); ?>">
3354 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3355 </div>
3356 </div>
3357 </div>
3358 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3359 <span class="ays_save_as_default_content_for_mobile">
3360 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3361 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3362 </a>
3363 <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" ); ?>">
3364 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3365 </a>
3366 </span>
3367 </div>
3368 </div>
3369 </div>
3370 <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3371 <div class="ays-poll-accordion-options-main-container">
3372 <div class="ays-poll-accordion-header">
3373 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3374 <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3375 </div>
3376 <hr class="ays-poll-bolder-hr"/>
3377 <div class="ays-poll-accordion-body">
3378 <div class="form-group row">
3379 <div class="col-sm-3">
3380 <label>
3381 <?php echo esc_html__('Status', "poll-maker"); ?>
3382 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3383 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") ?>">
3384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3385 </a>
3386 </label>
3387 </div>
3388 <div class="col-sm-9">
3389 <div class="d-flex">
3390 <div class="form-check form-check-inline">
3391 <input type="radio" id="ays-publish" name="ays_publish"
3392 value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3393 <label class="form-check-label"
3394 for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3395 </div>
3396 <div class="form-check form-check-inline">
3397 <input type="radio" id="ays-unpublish" name="ays_publish"
3398 value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3399 <label class="form-check-label"
3400 for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3401 </div>
3402 </div>
3403 </div>
3404 </div>
3405 <hr>
3406 <div class='form-group row'>
3407 <div class="col-sm-3">
3408 <label for='ays-poll-category'>
3409 <?php echo esc_html__('Categories', "poll-maker"); ?>
3410 <a class="ays_help" data-toggle="tooltip"
3411 data-placement="top"
3412 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"); ?>">
3413 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3414 </a>
3415 </label>
3416 </div>
3417 <div class="col-sm-9">
3418 <?php if (!empty($categories)): ?>
3419 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3420 data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3421 <?php
3422 foreach ( $categories as $cat ) {
3423 ?>
3424 <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3425 <?php echo esc_html($cat['title']); ?>
3426 </option>
3427 <?php }
3428 ?>
3429 </select>
3430 <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3431 <span>
3432 <?php
3433 echo (sprintf(
3434 /* translators: %s: opening and closing <a> HTML code */
3435 wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3436 '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3437 '</a>'
3438 ));
3439 ?>
3440 </span>
3441 </div>
3442 <?php else: ?>
3443 <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3444 <?php endif; ?>
3445 </div>
3446 </div>
3447 <hr>
3448 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3449 <div class="form-group row ays_toggle_parent">
3450 <div class="col-sm-3">
3451 <label for="ays_add_post_for_poll">
3452 <?php echo esc_html__('Create post for poll', "poll-maker")?>
3453 <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")?>">
3454 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3455 </a>
3456 </label>
3457 </div>
3458 <div class="col-sm-1">
3459 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3460 </div>
3461 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3462 <div class="form-group row">
3463 <div class="col-sm-4">
3464 <label for="ays_add_postcat_for_poll">
3465 <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3466 <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")?>">
3467 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3468 </a>
3469 </label>
3470 </div>
3471 <div class="col-sm-8">
3472 <div class="input-group">
3473 <select name="ays_add_postcat_for_poll[]"
3474 id="ays_add_postcat_for_poll"
3475 class="apm-cat-select2"
3476 multiple>
3477 <?php
3478
3479 foreach ($cat_list as $cat) {
3480 echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3481 }
3482 ?>
3483 </select>
3484 </div>
3485 </div>
3486 </div>
3487 </div>
3488 </div> <!-- Create post for poll -->
3489 <hr/>
3490 <?php else: ?>
3491 <div class="form-group row">
3492 <div class="col-sm-3">
3493 <label for="ays_add_post_for_poll">
3494 <?php echo esc_html__('WP Post', "poll-maker")?>
3495 <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")?>">
3496 <i class="ays_fa ays_fa_info_circle"></i>
3497 </a>
3498 </label>
3499 </div>
3500 <div class="col-sm-8" style="margin-left: 15px;">
3501 <div class="row">
3502 <div style="margin-right: 10px;">
3503 <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>
3504 </div>
3505 <div>
3506 <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>
3507 </div>
3508 </div>
3509 </div>
3510 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3511 </div>
3512 <hr>
3513 <?php endif; ?>
3514 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3515 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3516 <div class="pro_features" style="justify-content:flex-end;">
3517 </div>
3518 <div class="form-group row">
3519 <div class="col-sm-3">
3520 <label for="ays_poll_enable_copy_protection">
3521 <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3522 <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"); ?>">
3523 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3524 </a>
3525 </label>
3526 </div>
3527 <div class="col-sm-9">
3528 <input type="checkbox" class="ays-enable-timer1" />
3529 </div>
3530 </div>
3531 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3532 <div class="ays-poll-new-upgrade-button-box">
3533 <div>
3534 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3535 <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">
3536 </div>
3537 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3538 </div>
3539 </a>
3540 </div>
3541 </div>
3542 <hr/>
3543 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3544 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3545 <div class="pro_features" style="justify-content:flex-end;">
3546 </div>
3547 <div class="form-group row">
3548 <div class="col-sm-3">
3549 <label for="ays_poll_question_text_to_speech">
3550 <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3551 <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")?>">
3552 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3553 </a>
3554 </label>
3555 </div>
3556 <div class="col-sm-9">
3557 <input type="checkbox" class="ays-enable-timer1"
3558 name="ays_poll_question_text_to_speech"
3559 value="on"/>
3560 </div>
3561 </div>
3562 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3563 <div class="ays-poll-new-upgrade-button-box">
3564 <div>
3565 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3566 <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">
3567 </div>
3568 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3569 </div>
3570 </a>
3571 </div>
3572 </div> <!-- Questions text to speech -->
3573 <hr>
3574 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3575 <div class="col-sm-3">
3576 <label for='ays_poll_allow_multivote'>
3577 <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3578 <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"); ?>">
3579 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3580 </a>
3581 </label>
3582 </div>
3583 <div class="col-sm-1">
3584 <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; ?>>
3585 </div>
3586 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3587 <div class="row">
3588 <div class="col-sm-3">
3589 <label for='ays_poll_multivote_min_count'>
3590 <?php echo esc_html__('Min', "poll-maker"); ?>
3591 <a class="ays_help"
3592 data-toggle="tooltip"
3593 data-placement="top"
3594 title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3595 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3596 </a>
3597 </label>
3598 </div>
3599 <div class="col-sm-9">
3600 <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; ?>">
3601 </div>
3602 </div>
3603 <hr>
3604 <div class="row">
3605 <div class="col-sm-3">
3606 <label for='ays_poll_multivote_count'>
3607 <?php echo esc_html__('Max', "poll-maker"); ?>
3608 <a class="ays_help"
3609 data-toggle="tooltip"
3610 data-placement="top"
3611 title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3612 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3613 </a>
3614 </label>
3615 </div>
3616 <div class="col-sm-9">
3617 <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; ?>">
3618 </div>
3619 </div>
3620 </div>
3621 </div>
3622 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3623 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3624 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3625 <div class="pro_features" style="justify-content:flex-end;">
3626 </div>
3627 <div class="form-group row">
3628 <div class="col-sm-3">
3629 <label for="ays-poll-allow-edit">
3630 <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3631 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3632 data-placement="top"
3633 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"); ?>">
3634 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3635 </a>
3636 </label>
3637 </div>
3638 <div class="col-sm-9">
3639 <input type="checkbox" class="ays-enable-timer1"
3640 name="ays_edit_previous_submission"
3641 value="on"/>
3642 </div>
3643 </div>
3644 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3645 <div class="ays-poll-new-upgrade-button-box">
3646 <div>
3647 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3648 <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">
3649 </div>
3650 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3651 </div>
3652 </a>
3653 </div>
3654 </div>
3655 <hr>
3656 <div class="form-group row">
3657 <div class="col-sm-3">
3658 <label for='show-title'>
3659 <?php echo esc_html__('Show Title', "poll-maker"); ?>
3660 <a class="ays_help" data-toggle="tooltip"
3661 data-placement="top"
3662 title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3663 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3664 </a>
3665 </label>
3666 </div>
3667 <div class="col-sm-9">
3668 <input type="checkbox" name="show_title" id="show-title"
3669 value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3670 </div>
3671 </div>
3672 <hr>
3673 <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' ?>" >
3674 <div class="col-sm-3">
3675 <label>
3676 <?php echo esc_html__('Alignment', "poll-maker"); ?>
3677 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3678 title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3679 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3680 </a>
3681 </label>
3682 </div>
3683 <div class="col-sm-9">
3684 <div class="d-flex">
3685 <div class="form-check form-check-inline">
3686 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3687 value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3688 <label class="form-check-label"
3689 for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3690 </div>
3691 <div class="form-check form-check-inline">
3692 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3693 value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3694 <label class="form-check-label"
3695 for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3696 </div>
3697 <div class="form-check form-check-inline">
3698 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3699 value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3700 <label class="form-check-label"
3701 for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3702 </div>
3703 </div>
3704 </div>
3705 </div>
3706 <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' ?>" >
3707 <div class="form-group row">
3708 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3709 <div class="pro_features pro_features_popup">
3710 <div class="pro-features-popup-conteiner">
3711 <div class="pro-features-popup-title">
3712 <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3713 </div>
3714 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3715 <p>
3716 <?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"); ?>
3717 </p>
3718 </div>
3719 <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 ); ?>">
3720 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3721 </div>
3722 </div>
3723 </div>
3724 <div class="pro_features" style="justify-content:flex-end;">
3725 </div>
3726 <div class="form-group row">
3727 <div class="col-sm-3">
3728 <label for='ays-poll-allow-anonymity'>
3729 <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3730 <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"); ?>">
3731 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3732 </a>
3733 </label>
3734 </div>
3735 <div class="col-sm-9">
3736 <input type="checkbox" name="ays_allow_anonymity"
3737 value="1" >
3738 </div>
3739 </div>
3740 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3741 <div class="ays-poll-new-upgrade-button-box">
3742 <div>
3743 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3744 <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">
3745 </div>
3746 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3747 </div>
3748 </a>
3749 <div class="ays-poll-new-watch-video-button-box">
3750 <div>
3751 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3752 <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">
3753 </div>
3754 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3755 </div>
3756 </div>
3757 </div>
3758 <hr>
3759 <div class="form-group row">
3760 <div class="col-sm-3">
3761 <label for='ays_poll_change_creation_date'>
3762 <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3763 <a class="ays_help" data-toggle="tooltip"
3764 data-placement="top"
3765 title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3766 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3767 </a>
3768 </label>
3769 </div>
3770 <div class="col-sm-9" style="display: inherit;">
3771 <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"
3772 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3773 <div class="input-group-append" style="display: block">
3774 <label for="ays_poll_change_creation_date" class="input-group-text">
3775 <span><i class="ays_fa ays_fa_calendar"></i></span>
3776 </label>
3777 </div>
3778 </div>
3779 </div>
3780 <hr>
3781 <div class="form-group row">
3782 <div class="col-sm-3">
3783 <label for="ays_poll_create_author">
3784 <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3785 <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"); ?>">
3786 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3787 </a>
3788 </label>
3789 </div>
3790 <div class="col-sm-9">
3791 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3792 <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3793 <?php
3794 $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;
3795 $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) ) : '';
3796 $selected = '';
3797 ?>
3798 <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3799 <?php echo esc_html($poll_user_display_name); ?>
3800 </option>
3801 </select>
3802 </div>
3803 </div> <!-- Change the author of the current poll -->
3804 <hr/>
3805 <!-- Poll Main URL Start -->
3806 <div class="form-group row">
3807 <div class="col-sm-3">
3808 <label for="ays_poll_main_url">
3809 <?php echo esc_html__('Poll main URL', "poll-maker")?>
3810 <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");
3811 ?>">
3812 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3813 </a>
3814 </label>
3815 </div>
3816 <div class="col-sm-9">
3817 <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); ?>">
3818 </div>
3819 </div>
3820 <!-- Poll Main URL End -->
3821 <hr>
3822 <div class="form-group row">
3823 <div class="col-sm-3">
3824 <label for='show-poll-create-dates'>
3825 <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3826 <a class="ays_help" data-toggle="tooltip"
3827 data-placement="top"
3828 title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3829 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3830 </a>
3831 </label>
3832 </div>
3833 <div class="col-sm-9">
3834 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3835 value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3836 </div>
3837 </div>
3838 <hr>
3839 <div class="form-group row">
3840 <div class="col-sm-3">
3841 <label for='show-poll-author'>
3842 <?php echo esc_html__('Show author', "poll-maker"); ?>
3843 <a class="ays_help" data-toggle="tooltip"
3844 data-placement="top"
3845 title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3846 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3847 </a>
3848 </label>
3849 </div>
3850 <div class="col-sm-9">
3851 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3852 value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3853 </div>
3854 </div>
3855 <hr>
3856 <div class="form-group row">
3857 <div class="col-sm-3">
3858 <label for="schedule_the_poll">
3859 <?php echo esc_html__('Schedule', "poll-maker"); ?>
3860 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3861 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") ?>">
3862 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3863 </a>
3864 </label>
3865 </div>
3866 <div class="col-sm-1">
3867 <input type="checkbox"
3868 id="schedule_the_poll"
3869 class="active_date_check"
3870 name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3871 </div>
3872 <div class="col-sm-8">
3873 <div class="row">
3874 <div class="col-sm-12 active_date ays_divider_left"
3875 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3876 <!-- -1- -->
3877 <div class="form-group row">
3878 <div class="col-sm-3">
3879 <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3880 </div>
3881 <div class="col-sm-9">
3882 <div class="input-group mb-3">
3883 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3884 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3885 <div class="input-group-append">
3886 <label for="ays-active" class="input-group-text">
3887 <span><i class="ays_fa ays_fa_calendar"></i></span>
3888 </label>
3889 </div>
3890 </div>
3891 </div>
3892 </div>
3893 <!-- -2- -->
3894 <div class="form-group row">
3895 <div class="col-sm-3">
3896 <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
3897 </div>
3898 <div class="col-sm-9">
3899 <div class="input-group mb-3">
3900 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
3901 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3902 <div class="input-group-append">
3903 <label for="ays-deactive" class="input-group-text">
3904 <span><i class="ays_fa ays_fa_calendar"></i></span>
3905 </label>
3906 </div>
3907 </div>
3908 </div>
3909 </div>
3910 <!-- ////////// -->
3911 <hr>
3912 <div class="form-group row">
3913 <div class="col-sm-3">
3914 <label for='ays_poll_show_timer'>
3915 <?php echo esc_html__('Show timer', "poll-maker"); ?>
3916 <a class="ays_help" data-toggle="tooltip"
3917 data-placement="top"
3918 title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3919 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3920 </a>
3921 </label>
3922 </div>
3923 <div class="col-sm-1">
3924 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3925 value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
3926 </div>
3927 <div class="col-sm-8">
3928 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3929 <div class="d-flex">
3930 <div class="form-check form-check-inline">
3931 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3932 value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3933 <label class="form-check-label"
3934 for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
3935 </div>
3936 <div class="form-check form-check-inline">
3937 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3938 value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3939 <label class="form-check-label"
3940 for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
3941 </div>
3942 </div>
3943 <hr>
3944 <div class='form-group row'>
3945 <div class='col-sm-5'>
3946 <label class="form-check-label" for="show_bottom_timer">
3947 <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
3948 <a class="ays_help" data-toggle="tooltip"
3949 data-placement="top"
3950 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"); ?>">
3951 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3952 </a>
3953 </label>
3954 </div>
3955 <div class='col-sm-7'>
3956 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
3957 </div>
3958 </div>
3959 </div>
3960 </div>
3961 </div>
3962 <hr>
3963 <div class="form-group row">
3964 <div class="col-sm-3">
3965 <label class="form-check-label"
3966 for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
3967 </div>
3968 <div class="col-sm-9">
3969 <div class="editor">
3970 <?php
3971 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
3972 $editor_id = 'active_date_message_soon';
3973 $settings = array(
3974 'editor_height' => $poll_wp_editor_height,
3975 'textarea_name' => 'active_date_message_soon',
3976 'editor_class' => 'ays-textarea',
3977 'media_elements' => false
3978 );
3979 wp_editor($content, $editor_id, $settings);
3980 ?>
3981 </div>
3982 </div>
3983 </div>
3984 <hr>
3985 <!-- -3- -->
3986 <div class="form-group row">
3987 <div class="col-sm-3">
3988 <label class="form-check-label"
3989 for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
3990 </div>
3991 <div class="col-sm-9">
3992 <div class="editor">
3993 <?php
3994 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
3995 $editor_id = 'active_date_message';
3996 $settings = array(
3997 'editor_height' => $poll_wp_editor_height,
3998 'textarea_name' => 'active_date_message',
3999 'editor_class' => 'ays-textarea',
4000 'media_elements' => false
4001 );
4002 wp_editor($content, $editor_id, $settings);
4003 ?>
4004 </div>
4005 </div>
4006 </div>
4007 <hr>
4008 <div class="form-group row">
4009 <div class="col-sm-3">
4010 <label for='show_result_btn_schedule'>
4011 <?php echo esc_html__('Show result button', "poll-maker"); ?>
4012 <a class="ays_help" data-toggle="tooltip"
4013 data-placement="top"
4014 title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4015 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4016 </a>
4017 </label>
4018 </div>
4019 <div class="col-sm-1">
4020 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
4021 value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
4022 </div>
4023 <div class="col-sm-8">
4024 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
4025 <div class="form-check form-check-inline">
4026 <label class="form-check-label">
4027 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
4028 <span>
4029 <?php echo esc_html__('With See Results button', "poll-maker"); ?>
4030 </span>
4031 </label>
4032 </div>
4033 <div class="form-check form-check-inline">
4034 <label class="form-check-label">
4035 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
4036 <span>
4037 <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
4038 </span>
4039 </label>
4040 </div>
4041 </div>
4042 </div>
4043 </div>
4044 <hr>
4045 <div class="form-group row">
4046 <div class="col-sm-3">
4047 <label for='ays_show_poll_container'>
4048 <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
4049 <a class="ays_help" data-toggle="tooltip"
4050 data-placement="top"
4051 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"); ?>">
4052 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4053 </a>
4054 </label>
4055 </div>
4056 <div class="col-sm-9">
4057 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
4058 value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
4059 </div>
4060 </div>
4061 </div>
4062 </div>
4063 </div>
4064 </div>
4065 <hr>
4066 <div class="form-group row ays_toggle_parent">
4067 <div class="col-sm-3">
4068 <label for='ays-poll-allow-not-vote'>
4069 <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
4070 <a class="ays_help"
4071 data-toggle="tooltip"
4072 data-placement="top"
4073 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"); ?>">
4074 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4075 </a></label>
4076 </div>
4077 <div class="col-sm-1">
4078 <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' : ''; ?>>
4079 </div>
4080 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
4081 <div class="row">
4082 <div class="col-sm-3 ays_divider_left">
4083 <label for="ays-poll-btn-text">
4084 <?php echo esc_html__("Results button text", "poll-maker"); ?>
4085 <a class="ays_help"
4086 data-toggle="tooltip"
4087 data-placement="top"
4088 title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
4089 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4090 </a>
4091 </label>
4092 </div>
4093 <div class="col-sm-9">
4094 <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"); ?>"/>
4095 </div>
4096 </div>
4097 </div>
4098 </div>
4099 <hr>
4100 <div class="form-group row">
4101 <div class="col-sm-3" style="padding-right: 0px;">
4102 <label for="ays_enable_pass_count">
4103 <?php echo esc_html__('Show passed users count', "poll-maker") ?>
4104 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4105 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") ?>">
4106 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4107 </a>
4108 </label>
4109 </div>
4110 <div class="col-sm-9">
4111 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
4112 value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4113 </div>
4114 </div>
4115 <hr>
4116 <div class="form-group row ays_toggle_parent">
4117 <div class="col-sm-3">
4118 <label for="ays_redirect_after_vote">
4119 <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
4120 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4121 title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4122 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4123 </a>
4124 </label>
4125 </div>
4126 <div class="col-sm-1">
4127 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
4128 </div>
4129 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
4130 <div class="row">
4131 <div class="col-sm-12 ays_divider_left">
4132 <div class="form-group row">
4133 <div class="col-sm-3">
4134 <label for="redirection_url">
4135 <?php echo esc_html__('URL', "poll-maker"); ?>
4136 <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"); ?>">
4137 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4138 </a>
4139 </label>
4140 </div>
4141 <div class="col-sm-9">
4142 <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">
4143 </div>
4144 </div>
4145 <hr>
4146 <div class="form-group row">
4147 <div class="col-sm-3">
4148 <label for="redirectio_delay">
4149 <?php echo esc_html__('Delay', "poll-maker"); ?>
4150 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4151 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4152 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4153 </a>
4154 </label>
4155 </div>
4156 <div class="col-sm-9">
4157 <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">
4158 </div>
4159 </div>
4160 </div>
4161 </div>
4162
4163 </div>
4164 </div>
4165 <hr/>
4166 <div class="form-group row">
4167 <div class="col-sm-3">
4168 <label for="randomize-answers">
4169 <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
4170 <a class="ays_help" data-toggle="tooltip"
4171 data-placement="top"
4172 title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4173 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4174 </a>
4175 </label>
4176 </div>
4177 <div class="col-sm-9">
4178 <input type="checkbox"
4179 name="randomize_answers"
4180 id="randomize-answers"
4181 value="on"
4182 <?php echo $randomize_answers ? 'checked' : ''; ?>
4183 />
4184 </div>
4185 </div>
4186 <hr/>
4187 <div class="form-group row ays_toggle_parent">
4188 <div class="col-sm-3" style="padding-right: 0px;">
4189 <label for="ays_enable_asnwers_sound">
4190 <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4191 <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")?>">
4192 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4193 </a>
4194 </label>
4195 </div>
4196 <div class="col-sm-1">
4197 <input type="checkbox" id="ays_enable_asnwers_sound"
4198 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4199 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4200 </div>
4201 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
4202 <?php if($answers_sound_status): ?>
4203 <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>
4204 <?php else: ?>
4205 <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>
4206 <?php endif; ?>
4207 </div>
4208 </div>
4209 <hr/>
4210 <div class="form-group row">
4211 <div class="col-3">
4212 <label for="ays-poll-reason">
4213 <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4214 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4215 title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4216 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4217 </a>
4218 </label>
4219 </div>
4220 <div class="col-9">
4221 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4222 </div>
4223 </div>
4224 <hr/>
4225 <div class="form-group row ays_toggle_parent">
4226 <div class="col-sm-3">
4227 <label for="ays_enable_vote_button">
4228 <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4229 <a class="ays_help" data-toggle="tooltip"
4230 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") ?>">
4231 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4232 </a>
4233 </label>
4234 </div>
4235 <div class="col-sm-1">
4236 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4237 value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4238 </div>
4239 <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;' : '' ?>">
4240 <div class="row">
4241 <div class="col-sm-3 ays_divider_left">
4242 <label for="ays-poll-btn-text_vote">
4243 <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4244 <a class="ays_help"
4245 data-toggle="tooltip"
4246 data-placement="top"
4247 title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4248 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4249 </a>
4250 </label>
4251 </div>
4252 <div class="col-sm-9">
4253 <input type="text" class="ays-text-input ays-text-input-short"
4254 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4255 value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4256 </div>
4257 </div>
4258 </div>
4259 </div>
4260 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4261 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4262 <div class="col-sm-3">
4263 <label for="ays_enable_view_more_button">
4264 <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4265 <a class="ays_help" data-toggle="tooltip"
4266 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"); ?>">
4267 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4268 </a>
4269 </label>
4270 </div>
4271 <div class="col-sm-1">
4272 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4273 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4274 </div>
4275 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4276 <div class="form-group row">
4277 <div class="col-sm-3">
4278 <label for="ays_poll_view_more_button_count">
4279 <?php echo esc_html__("Count", "poll-maker"); ?>
4280 <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"); ?>">
4281 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4282 </a>
4283 </label>
4284 </div>
4285 <div class="col-sm-9">
4286 <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; ?>"/>
4287 </div>
4288 </div>
4289 </div>
4290 </div>
4291 <hr>
4292 <div class="form-group row">
4293 <div class="col-sm-3">
4294 <label for="ays_answers_sort_select">
4295 <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4296 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4297 title="<?php
4298 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") .
4299 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4300 "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4301 "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4302 "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4303 "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4304 "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4305 "</ul>";
4306 ?>">
4307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4308 </a>
4309 </label>
4310 </div>
4311 <div class="col-sm-9">
4312 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4313 <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4314 <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4315 <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4316 <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>
4317 <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>
4318 </select>
4319 </div>
4320 </div>
4321 <hr>
4322 <div class="form-group row">
4323 <div class="col-sm-3">
4324 <label for="ays_poll_aysDropdown">
4325 <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4326 <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"); ?>">
4327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4328 </a>
4329 </label>
4330 </div>
4331 <div class="col-sm-9">
4332 <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4333 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "poll-maker"); ?></option>
4334 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo esc_html__( "1.", "poll-maker"); ?></option>
4335 <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo esc_html__( "1)", "poll-maker"); ?></option>
4336 <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo esc_html__( "A.", "poll-maker"); ?></option>
4337 <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo esc_html__( "A)", "poll-maker"); ?></option>
4338 <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo esc_html__( "a.", "poll-maker"); ?></option>
4339 <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo esc_html__( "a)", "poll-maker"); ?></option>
4340 <option <?php echo $show_answers_numbering == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4341 </select>
4342 </div>
4343 </div> <!-- Show answers numbering -->
4344 <hr>
4345 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="<?php echo ($id === null || (isset($poll['type']) && $poll['type'] != 'choosing')) ? 'display: none;' : ''; ?>">
4346 <div class="col-sm-3">
4347 <label for="ays_show_votes_before_voting">
4348 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4349 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4350 title="<?= __('Display the votes count per answer to the poll participants beforehand. It will show the last result. There are two ways to represent the votes count: by count and by percentage.', "poll-maker") ?>">
4351 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4352 </a>
4353 </label>
4354 </div>
4355 <div class="col-sm-1">
4356 <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4357 value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4358 </div>
4359 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4360 <div class="d-flex">
4361 <div class="form-check-inline ays_poll_loader">
4362 <label class="form-check-label">
4363 <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4364 <span><?= __('By count', "poll-maker"); ?></span>
4365 </label>
4366 </div>
4367 <div class="form-check-inline ays_poll_loader">
4368 <label class="form-check-label">
4369 <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4370 <span><?= __('By percentage', "poll-maker"); ?></span>
4371 </label>
4372 </div>
4373 </div>
4374 </div>
4375 </div>
4376 </div>
4377 </div>
4378 <div class="only_pro" style="position: relative; display: inline-block">
4379 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4380 <div class="pro-features-popup-conteiner">
4381 <div class="pro-features-popup-title">
4382 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4383 </div>
4384 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4385 <p>
4386 <?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"); ?>
4387 </p>
4388 <p>
4389 <?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"); ?>
4390 </p>
4391 </div>
4392 <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 ); ?>">
4393 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4394 </div>
4395 </div>
4396 </div>
4397 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4398 <span class="ays_save_as_default_content_for_mobile">
4399 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4400 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4401 </a>
4402 <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" ); ?>">
4403 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4404 </a>
4405 </span>
4406 </div>
4407 </div>
4408 </div>
4409 <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4410 <div class="ays-poll-accordion-options-main-container">
4411 <div class="ays-poll-accordion-header">
4412 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4413 <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4414 </div>
4415 <hr class="ays-poll-bolder-hr"/>
4416 <div class="ays-poll-accordion-body">
4417 <div class="form-group row ays_toggle_parent">
4418 <div class="col-sm-3">
4419 <label for="apm_limit_users">
4420 <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4421 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4422 title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4423 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4424 </a>
4425 </label>
4426 </div>
4427 <div class="col-sm-1">
4428 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4429 value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4430 </div>
4431 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4432 <div class="ays-limitation-options">
4433 <!-- Limitation method -->
4434 <div class="form-group row">
4435 <div class="col-sm-3">
4436 <label for="ays_redirect_method">
4437 <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4438 <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" ); ?>
4439 <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>
4440 <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>
4441 <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>
4442 <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>"
4443 >
4444 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4445 </a>
4446 </label>
4447 </div>
4448 <div class="col-sm-9">
4449 <div class="ays-poll-sel-fields d-flex p-0">
4450 <div class="ays-poll-check-box mr-2">
4451 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4452 value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4453 <label class="form-check-label"
4454 for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4455 </div>
4456 <div class="ays-poll-check-box mr-2">
4457 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4458 value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4459 <label class="form-check-label"
4460 for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4461 </div>
4462 <div class="ays-poll-check-box mr-2">
4463 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4464 value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4465 <label class="form-check-label"
4466 for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4467 </div>
4468 <div class="ays-poll-check-box mr-2">
4469 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4470 value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4471 <label class="form-check-label"
4472 for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4473 </div>
4474 </div>
4475 </div>
4476 </div>
4477 <hr>
4478 <!-- Limitation message -->
4479 <div class="form-group row">
4480 <div class="col-sm-3">
4481 <label for="ays_limitation_message">
4482 <?php echo esc_html__('Message', "poll-maker"); ?>
4483 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4484 title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4485 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4486 </a>
4487 </label>
4488 </div>
4489 <div class="col-sm-9">
4490 <?php
4491 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4492 $editor_id = 'ays_limitation_message';
4493 $settings = array(
4494 'editor_height' => $poll_wp_editor_height,
4495 'textarea_name' => 'ays_limitation_message',
4496 'editor_class' => 'ays-textarea',
4497 'media_elements' => false
4498 );
4499 wp_editor($content, $editor_id, $settings);
4500 ?>
4501 </div>
4502 </div>
4503 <hr>
4504 <!-- Limitation redirect url -->
4505 <div class="form-group row">
4506 <div class="col-sm-3">
4507 <label for="ays_redirect_url">
4508 <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4509 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4510 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"); ?>">
4511 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4512 </a>
4513 </label>
4514 </div>
4515 <div class="col-sm-9">
4516 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4517 class="ays-text-input"
4518 value="<?php echo $options['redirect_url'] ?>"/>
4519 </div>
4520 </div>
4521 <hr>
4522 <!-- Limitation redirect delay -->
4523 <div class="form-group row">
4524 <div class="col-sm-3">
4525 <label for="ays_redirection_delay">
4526 <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4528 title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4530 </a>
4531 </label>
4532 </div>
4533 <div class="col-sm-9">
4534 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4535 class="ays-text-input"
4536 value="<?php echo $options['redirection_delay'] ?>"/>
4537 </div>
4538 </div>
4539 <hr>
4540 <div class="form-group row">
4541 <div class="col-sm-3">
4542 <label for="ays_see_result_show">
4543 <?php echo esc_html__('See results', "poll-maker"); ?>
4544 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4545 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" ); ?>
4546 <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>
4547 <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>">
4548 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4549 </a>
4550 </label>
4551 </div>
4552 <div class="col-sm-9">
4553 <div class="row">
4554 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4555 <input type="checkbox" id="ays_see_result_show"
4556 name="ays_see_result_show"
4557 class="ays_poll_show_hide_button"
4558 value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4559 </div>
4560
4561 <div class="col-sm-10" id="ays_poll_show_hide_button">
4562 <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4563 <div class="col-sm-6">
4564 <div class="ays-poll-check-box d-flex align-items-center"
4565 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4566 <input type="radio"
4567 id="ays_see_result_button_show"
4568 name="ays_poll_see_result_show"
4569 class="ays_poll_show_hide_button mr-2"
4570 value="ays_see_result_button"
4571 <?php echo esc_attr($poll_see_result_botton_show) ?>>
4572 <label for="ays_see_result_button_show" class="form-check-label">
4573 <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4574 </label>
4575 </div>
4576 </div>
4577 <div class="col-sm-6">
4578 <div class="ays-poll-check-box d-flex align-items-center"
4579 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4580 <input type="radio"
4581 id="ays_see_result_button_hide"
4582 name="ays_poll_see_result_show"
4583 class="ays_poll_show_hide_button mr-2"
4584 value="ays_see_result_immediately"
4585 <?php echo esc_attr($poll_see_result_immediately) ?>>
4586 <label for="ays_see_result_button_hide" class="form-check-label">
4587 <?php echo esc_html__('Directly', "poll-maker"); ?>
4588 </label>
4589 </div>
4590 </div>
4591
4592 </div>
4593 </div>
4594 </div>
4595 </div>
4596 </div>
4597 <hr>
4598 <div class="form-group row">
4599 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4600 <div class="pro_features" style="justify-content:flex-end;">
4601 </div>
4602 <div class="form-group row d-flex">
4603 <div class="col-sm-3">
4604 <label for="ays_attempts_count">
4605 <?php echo esc_html__('Attempts count', "poll-maker")?>
4606 <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")?>">
4607 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4608 </a>
4609 </label>
4610 </div>
4611 <div class="col-sm-9">
4612 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4613 </div>
4614 </div>
4615 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4616 <div class="ays-poll-new-upgrade-button-box">
4617 <div>
4618 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4619 <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">
4620 </div>
4621 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4622 </div>
4623 </a>
4624 </div>
4625 </div>
4626 </div>
4627 </div>
4628 </div><!-- Maximum number of attempts per user -->
4629 <hr/>
4630 <div class="form-group row ays_toggle_parent">
4631 <div class="col-sm-3">
4632 <label for="ays_enable_logged_users">
4633 <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4634 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4635 title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4636 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4637 </a>
4638 </label>
4639 </div>
4640 <div class="col-sm-1">
4641 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4642 value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4643 </div>
4644 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4645 <div class="form-group row">
4646 <div class="col-sm-3">
4647 <label for="ays_logged_in_message">
4648 <?php echo esc_html__('Message', "poll-maker"); ?>
4649 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4650 title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4651 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4652 </a>
4653 </label>
4654 </div>
4655 <div class="col-sm-9">
4656 <?php
4657 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4658 $editor_id = 'ays_logged_in_message';
4659 $settings = array(
4660 'editor_height' => $poll_wp_editor_height,
4661 'textarea_name' => 'ays_enable_logged_users_message',
4662 'editor_class' => 'ays-textarea',
4663 'media_elements' => false
4664 );
4665 wp_editor($content, $editor_id, $settings);
4666 ?>
4667 </div>
4668 </div>
4669 <hr/>
4670 <div class="form-group row">
4671 <div class="col-sm-3">
4672 <label for="ays_show_login_form">
4673 <?php echo esc_html__('Show Login form', "poll-maker")?>
4674 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4675 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4676 </a>
4677 </label>
4678 </div>
4679 <div class="col-sm-9">
4680 <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' : ''; ?>/>
4681 </div>
4682 </div>
4683 </div>
4684 </div> <!-- Only for logged in users -->
4685 <hr/>
4686 <div class="form-group row ays_toggle_parent">
4687 <div class="col-sm-3">
4688 <label for="ays_enable_restriction_pass">
4689 <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4690 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4691 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"); ?>">
4692 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4693 </a>
4694 </label>
4695 </div>
4696 <div class="col-sm-1">
4697 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4698 value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4699 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4700 </div>
4701 <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;'; ?>">
4702 <div class="form-group row">
4703 <div class="col-sm-3">
4704 <label for="ays_users_roles">
4705 <?php echo esc_html__('User role', "poll-maker"); ?></label>
4706 </div>
4707 <div class="col-sm-9">
4708 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4709 <?php
4710 foreach ($ays_users_roles as $key => $user_role) {
4711 $selected_role = "";
4712 if(is_array($users_role)){
4713 if(in_array($user_role['name'], $users_role)){
4714 $selected_role = 'selected';
4715 }else{
4716 $selected_role = '';
4717 }
4718 }else{
4719 if($users_role == $user_role['name']){
4720 $selected_role = 'selected';
4721 }else{
4722 $selected_role = '';
4723 }
4724 }
4725 echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4726 }
4727 ?>
4728 </select>
4729 </div>
4730 </div>
4731 <hr>
4732 <div class="form-group row">
4733 <div class="col-sm-3">
4734 <label for="restriction_pass_message">
4735 <?php echo esc_html__('Message', "poll-maker"); ?>
4736 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4737 title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4738 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4739 </a>
4740 </label>
4741 </div>
4742 <div class="col-sm-9">
4743 <?php
4744 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4745 $editor_id = 'restriction_pass_message';
4746 $settings = array(
4747 'editor_height' => $poll_wp_editor_height,
4748 'textarea_name' => 'restriction_pass_message',
4749 'editor_class' => 'ays-textarea',
4750 'media_elements' => false
4751 );
4752 wp_editor($content, $editor_id, $settings);
4753 ?>
4754 </div>
4755 </div>
4756 </div>
4757 </div> <!-- Only for selected user role -->
4758 <hr>
4759 <div class="form-group row ays_toggle_parent">
4760 <div class="col-sm-3">
4761 <label for="ays_poll_enable_password">
4762 <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4763 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4764 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4765 </a>
4766 </label>
4767 </div>
4768 <div class="col-sm-1">
4769 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4770 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4771 </div>
4772 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4773 <div class="form-group row">
4774 <div class="col-sm-3">
4775 <label for="ays_poll_password">
4776 <?php echo esc_html__('Password' , "poll-maker")?>
4777 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4778 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4779 </a>
4780 </label>
4781 </div>
4782 <div class="col-sm-9">
4783 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4784 </div>
4785 </div>
4786 <hr>
4787 <div class="form-group row">
4788 <div class="col-sm-3">
4789 <label for="ays_poll_enable_password_visibility">
4790 <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4791 <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"); ?>">
4792 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4793 </a>
4794 </label>
4795 </div>
4796 <div class="col-sm-9">
4797 <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' : ''; ?>/>
4798 </div>
4799 </div>
4800 <hr>
4801 <div class="form-group row">
4802 <div class="col-sm-3">
4803 <label for="ays_poll_password">
4804 <?php echo esc_html__('Message', "poll-maker")?>
4805 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4806 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4807 </a>
4808 </label>
4809 </div>
4810
4811 <div class="col-sm-9">
4812 <?php
4813 $content = $poll_password_message;
4814 $editor_id = 'ays-poll-password-message';
4815 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4816 wp_editor($content, $editor_id, $settings);
4817 ?>
4818 </div>
4819 </div>
4820 </div>
4821 </div><!-- Password for passing Poll PRO Feautre-->
4822 <hr>
4823 <div class="form-group row">
4824 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4825 <div class="pro_features" style="justify-content:flex-end;">
4826 </div>
4827 <div class="form-group row ays_toggle_parent">
4828 <div class="col-sm-3">
4829 <label for="ays_enable_tackers_count">
4830 <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4831 <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")?>">
4832 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4833 </a>
4834 </label>
4835 </div>
4836 <div class="col-sm-1">
4837 <input type="checkbox" class="ays-enable-timer1"
4838 name="ays_enable_tackers_count" value="on">
4839 </div>
4840 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4841 <div class="form-group row">
4842 <div class="col-sm-3">
4843 <label for="ays_tackers_count">
4844 <?php echo esc_html__('Count', "poll-maker")?>
4845 <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")?>">
4846 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4847 </a>
4848 </label>
4849 </div>
4850 <div class="col-sm-9">
4851 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4852 >
4853 </div>
4854 </div>
4855 </div>
4856 </div>
4857 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4858 <div class="ays-poll-new-upgrade-button-box">
4859 <div>
4860 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4861 <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">
4862 </div>
4863 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4864 </div>
4865 </a>
4866 </div>
4867 </div><!-- Limitation count of takers Poll PRO Feautre-->
4868 <hr>
4869 <div class="form-group row">
4870 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4871 <div class="pro_features" style="justify-content:flex-end;">
4872 </div>
4873 <div class="form-group row ays_toggle_parent">
4874 <div class="col-sm-3">
4875 <label for="ays_enable_vote_limitation">
4876 <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4877 <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")?>">
4878 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4879 </a>
4880 </label>
4881 </div>
4882 <div class="col-sm-1">
4883 <input type="checkbox" class="ays-enable-timer1"
4884 name="ays_enable_vote_limitation" value="on" >
4885 </div>
4886 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4887 <div class="form-group row">
4888 <div class="col-sm-3">
4889 <label for="ays_vote_limitation">
4890 <?php echo esc_html__('Session Period', "poll-maker")?>
4891 <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")?>">
4892 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4893 </a>
4894 </label>
4895 </div>
4896 <div class="col-sm-7">
4897 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
4898
4899 </div>
4900 <div class="col-sm-2 ays_vote_limitation_time_period_box">
4901 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
4902 <option>Minute(s)
4903 </option>
4904 </select>
4905 </div>
4906 </div>
4907 <div class="form-group row d-flex w-100">
4908 <div class="col-sm-3">
4909 <label for="">
4910 <?php echo esc_html__('Message', "poll-maker"); ?>
4911 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4912 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"); ?>">
4913 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4914 </a>
4915 </label>
4916 </div>
4917 <div class="col-sm-9">
4918 <?php
4919 $editor_id = 'vote_limit_message';
4920 $settings = array(
4921 'editor_height' => 100,
4922 'textarea_name' => 'vote_limit_message',
4923 'editor_class' => 'ays-textarea',
4924 'media_elements' => false
4925 );
4926 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
4927 ?>
4928 </div>
4929 </div>
4930 </div>
4931 </div>
4932 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4933 <div class="ays-poll-new-upgrade-button-box">
4934 <div>
4935 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4936 <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">
4937 </div>
4938 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4939 </div>
4940 </a>
4941 </div>
4942 </div> <!-- Allow to vote once per session PRO Feautre-->
4943 <hr>
4944 <div class="form-group row">
4945 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4946 <div class="pro_features" style="justify-content:flex-end;">
4947 </div>
4948 <div class="form-group row ays_toggle_parent">
4949 <div class="col-sm-3">
4950 <label for="enable_limit_by_country">
4951 <?php echo esc_html__('Limit by country', "poll-maker")?>
4952 <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")?>">
4953 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4954 </a>
4955 </label>
4956 </div>
4957 <div class="col-sm-1">
4958 <input type="checkbox" class="ays-enable-timer1"/>
4959 </div>
4960 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4961 <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>
4962 <option selected value="AD">Andorra</option>
4963 <option selected value="US">United States</option>
4964 <option selected value="GB">United Kingdom</option>
4965 <option selected value="FR">France</option>
4966 </select>
4967 </div>
4968 </div>
4969 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4970 <div class="ays-poll-new-upgrade-button-box">
4971 <div>
4972 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4973 <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">
4974 </div>
4975 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4976 </div>
4977 </a>
4978 </div>
4979 </div> <!-- Limit by country PRO Feautre -->
4980 <hr>
4981 </div>
4982 </div>
4983 <div class="only_pro" style="position: relative; display: inline-block">
4984 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4985 <div class="pro-features-popup-conteiner">
4986 <div class="pro-features-popup-title">
4987 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4988 </div>
4989 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4990 <p>
4991 <?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"); ?>
4992 </p>
4993 <p>
4994 <?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"); ?>
4995 </p>
4996 </div>
4997 <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 ); ?>">
4998 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4999 </div>
5000 </div>
5001 </div>
5002 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5003 <span class="ays_save_as_default_content_for_mobile">
5004 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5005 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5006 </a>
5007 <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" ); ?>">
5008 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5009 </a>
5010 </span>
5011 </div>
5012 </div>
5013 </div>
5014 <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5015 <div class="ays-poll-accordion-options-main-container">
5016 <div class="ays-poll-accordion-header">
5017 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5018 <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
5019 </div>
5020 <hr class="ays-poll-bolder-hr"/>
5021 <div class="ays-poll-accordion-body">
5022 <div class="form-group row">
5023 <div class="col-sm-3">
5024 <label>
5025 <?php echo esc_html__('Information form title', "poll-maker"); ?>
5026 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5027 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"); ?>">
5028 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5029 </a>
5030 </label>
5031 </div>
5032 <div class="col-sm-9 ays_divider_left">
5033 <?php
5034 $content = stripslashes($options['info_form_title']);
5035 $editor_id = 'ays-poll-info-form-text';
5036 $settings = array(
5037 'editor_height' => $poll_wp_editor_height,
5038 'textarea_name' => 'ays-poll-info-form-text',
5039 'editor_class' => 'ays-textarea',
5040 'media_elements' => false
5041 );
5042 wp_editor($content, $editor_id, $settings);
5043 ?>
5044 </div>
5045 </div>
5046 <hr>
5047 <div class="form-group row ays_toggle_parent">
5048 <div class="col-sm-2">
5049 <label for='ays_poll_info_form'>
5050 <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
5051 <a class="ays_help" data-toggle="tooltip"
5052 data-placement="top"
5053 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"); ?>">
5054 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5055 </a>
5056 </label>
5057 </div>
5058 <div class="col-sm-1">
5059 <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' : ''; ?>>
5060 </div>
5061 <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' : ''; ?>">
5062 <div class="col-sm-7">
5063 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
5064 <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5065 <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")?>">
5066 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5067 </a>
5068 </label>
5069 <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; ?>>
5070 </div> <!-- Allow collecting information of logged in users -->
5071 </div>
5072 <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;"; ?>">
5073 <div>
5074 <label>
5075 <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5076 <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"); ?>">
5077 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5078 </a>
5079 </label>
5080 <hr>
5081 </div>
5082 <div>
5083 <div class="ays-poll-sel-fields d-flex">
5084 <?php foreach ( $all_fields as $field ): ?>
5085 <div class="ays-poll-check-box mr-2">
5086 <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5087 <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5088 <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5089 <?php echo ucfirst($field['name']); ?></label>
5090 </div>
5091 <?php endforeach; ?>
5092 </div>
5093 <hr>
5094 </div>
5095 <div>
5096 <label>
5097 <?php echo esc_html__('Required Fields', "poll-maker"); ?>
5098 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5099 title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
5100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5101 </a>
5102 </label>
5103 <hr>
5104 </div>
5105 <div>
5106 <div class="ays-poll-sel-fields d-flex">
5107 <?php foreach ( $all_fields as $field ): ?>
5108 <div class="ays-poll-check-box mr-2"
5109 id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5110 $fields) === false) ? "style='display:none'" : ""; ?>>
5111 <input type="checkbox" name="ays-poll-form-required-fields[]"
5112 value="<?php echo $field['slug']; ?>"
5113 id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5114 $required_fields) !== false) ? "checked" : ""; ?>>
5115 <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5116 <?php echo ucfirst($field['name']); ?></label>
5117 </div>
5118 <?php endforeach; ?>
5119 </div>
5120 </div>
5121 </div>
5122 <hr>
5123 </div>
5124 <hr>
5125 <div class="form-group row">
5126 <div class="col-sm-3">
5127 <label for="ays_poll_autofill_user_data">
5128 <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
5129 <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"); ?>">
5130 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5131 </a>
5132 </label>
5133 </div>
5134 <div class="col-sm-9">
5135 <div class="information_form_settings">
5136 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
5137 </div>
5138 </div>
5139 </div>
5140 <hr>
5141 <div class="form-group row">
5142 <div class="col-sm-3">
5143 <label for="ays_poll_display_fields_labels">
5144 <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
5145 <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"); ?>">
5146 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5147 </a>
5148 </label>
5149 </div>
5150 <div class="col-sm-9">
5151 <div class="information_form_settings">
5152 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
5153 </div>
5154 </div>
5155 </div>
5156 <hr>
5157 <div class="form-group row">
5158 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5159 <div class="pro_features" style="justify-content:flex-end;">
5160 </div>
5161 <div class="form-group row">
5162 <div class="col-sm-3">
5163 <label>
5164 <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5165 <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"); ?>">
5166 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5167 </a>
5168 </label>
5169 </div>
5170 <div class="col-sm-9">
5171 <blockquote>
5172 <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5173 <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
5174 </blockquote>
5175 </div>
5176 </div>
5177 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5178 <div class="ays-poll-new-upgrade-button-box">
5179 <div>
5180 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5181 <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">
5182 </div>
5183 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5184 </div>
5185 </a>
5186 </div>
5187 </div>
5188 <hr>
5189 </div>
5190 </div>
5191 <div class="only_pro" style="position: relative; display: inline-block">
5192 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5193 <div class="pro-features-popup-conteiner">
5194 <div class="pro-features-popup-title">
5195 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5196 </div>
5197 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5198 <p>
5199 <?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"); ?>
5200 </p>
5201 <p>
5202 <?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"); ?>
5203 </p>
5204 </div>
5205 <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 ); ?>">
5206 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5207 </div>
5208 </div>
5209 </div>
5210 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5211 <span class="ays_save_as_default_content_for_mobile">
5212 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5213 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5214 </a>
5215 <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" ); ?>">
5216 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5217 </a>
5218 </span>
5219 </div>
5220 </div>
5221 </div>
5222 <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5223 <div class="ays-poll-accordion-options-main-container">
5224 <div class="ays-poll-accordion-header">
5225 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5226 <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
5227 </div>
5228 <hr class="ays-poll-bolder-hr"/>
5229 <div class="ays-poll-accordion-body">
5230 <div class="form-group row ays_toggle_parent">
5231 <div class="col-sm-3">
5232 <label for="ays_notify_by_email_on">
5233 <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
5234 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5235 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"); ?>">
5236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5237 </a>
5238 </label>
5239 </div>
5240 <div class="col-sm-1">
5241 <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' : ''; ?> />
5242 </div>
5243 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5244 <div class="row ays_divider_left">
5245 <div class="col-sm-3">
5246 <label for="ays_notify_email">
5247 <?php echo esc_html__('Email address', "poll-maker"); ?>
5248 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5249 title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5250 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5251 </a>
5252 </label>
5253 </div>
5254 <div class="col-sm-9">
5255 <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">
5256 </div>
5257 </div>
5258 </div>
5259 </div>
5260 <hr>
5261 <div class="form-group row">
5262 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5263 <div class="pro_features pro_features_popup">
5264 <div class="pro-features-popup-conteiner">
5265 <div class="pro-features-popup-title">
5266 <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
5267 </div>
5268 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5269 <p>
5270 <?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"); ?>
5271 </p>
5272 <p>
5273 <?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"); ?>
5274 </p>
5275 </div>
5276 <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 ); ?>">
5277 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5278 </div>
5279 </div>
5280 </div>
5281 <div class="pro_features" style="justify-content:flex-end;">
5282 </div>
5283 <div class="form-group row" >
5284 <div class="col-sm-3">
5285 <label for="ays_enable_mail_user">
5286 <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
5287 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5288 title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5289 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5290 </a>
5291 </label>
5292 </div>
5293 <div class="col-sm-1">
5294 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5295 </div>
5296 <div class="col-sm-8 if-enable-email_note">
5297
5298 </div>
5299 </div>
5300 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5301 <div class="ays-poll-new-upgrade-button-box">
5302 <div>
5303 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5304 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5305 </div>
5306 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5307 </div>
5308 </a>
5309 <div class="ays-poll-new-watch-video-button-box">
5310 <div>
5311 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5312 <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">
5313 </div>
5314 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5315 </div>
5316 </div>
5317 </div>
5318 <hr>
5319 <div class="form-group row">
5320 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5321 <div class="pro_features" style="justify-content:flex-end;">
5322 </div>
5323 <div class="form-group row">
5324 <div class="col-sm-4">
5325 <label>
5326 <?php echo esc_html__('Email configuration', "poll-maker")?>
5327 <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"); ?>">
5328 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5329 </a>
5330 </label>
5331 </div>
5332 <div class="col-sm-8 ays_divider_left">
5333 <div class="form-group row">
5334 <div class="col-sm-3">
5335 <label for="ays_poll_email_configuration_from_email">
5336 <?php echo esc_html__('From email', "poll-maker")?>
5337 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5338 /* translators: 1: opening em tag, 2: closing em tag */
5339 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"),
5340 '<em>',
5341 '</em>'
5342 ) );
5343 ?>">
5344 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5345 </a>
5346 </label>
5347 </div>
5348 <div class="col-sm-9">
5349 <input type="text" class="ays-text-input" />
5350 </div>
5351 </div> <!-- From email -->
5352 <hr/>
5353 <div class="form-group row">
5354 <div class="col-sm-3">
5355 <label for="ays_poll_email_configuration_from_name">
5356 <?php echo esc_html__('From name', "poll-maker")?>
5357 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5358 /* translators: 1: opening em tag, 2: closing em tag */
5359 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"),
5360 // translators: 1: opening em tag,
5361 '<em>',
5362 // translators: 2: closing em tag
5363 '</em>'
5364 ), array(
5365 'em' => array()
5366 ) );
5367 ?>">
5368 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5369 </a>
5370 </label>
5371 </div>
5372 <div class="col-sm-9">
5373 <input type="text" class="ays-text-input" >
5374 </div>
5375 </div><!-- From name -->
5376 <hr/>
5377 <div class="form-group row">
5378 <div class="col-sm-3">
5379 <label for="ays_poll_email_configuration_from_subject">
5380 <?php echo esc_html__('Subject', "poll-maker")?>
5381 <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"); ?>">
5382 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5383 </a>
5384 </label>
5385 </div>
5386 <div class="col-sm-9">
5387 <input type="text" class="ays-text-input">
5388 </div>
5389 </div> <!-- Subject -->
5390 <hr/>
5391 <div class="form-group row">
5392 <div class="col-sm-3">
5393 <label for="ays_poll_email_configuration_replyto_email">
5394 <?php echo esc_html__('Reply to email', "poll-maker")?>
5395 <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"); ?>">
5396 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5397 </a>
5398 </label>
5399 </div>
5400 <div class="col-sm-9">
5401 <input type="text" class="ays-text-input">
5402 </div>
5403 </div> <!-- Reply to email -->
5404 <hr/>
5405 <div class="form-group row">
5406 <div class="col-sm-3">
5407 <label for="ays_poll_email_configuration_replyto_name">
5408 <?php echo esc_html__('Reply to name', "poll-maker")?>
5409 <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"); ?>">
5410 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5411 </a>
5412 </label>
5413 </div>
5414 <div class="col-sm-9">
5415 <input type="text" class="ays-text-input">
5416 </div>
5417 </div> <!-- Reply to name -->
5418 </div>
5419 </div> <!-- Email Configuration -->
5420 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5421 <div class="ays-poll-new-upgrade-button-box">
5422 <div>
5423 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5424 <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">
5425 </div>
5426 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5427 </div>
5428 </a>
5429 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5430 <div class="ays-poll-center-big-main-button-box">
5431 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5432 <div class="ays-poll-center-new-big-upgrade-button">
5433 <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">
5434 <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">
5435 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5436 </div>
5437 </a>
5438 </div>
5439 </div>
5440 </div>
5441 </div>
5442 <hr>
5443 </div>
5444 </div>
5445 <div class="only_pro" style="position: relative; display: inline-block">
5446 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5447 <div class="pro-features-popup-conteiner">
5448 <div class="pro-features-popup-title">
5449 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5450 </div>
5451 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5452 <p>
5453 <?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"); ?>
5454 </p>
5455 <p>
5456 <?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"); ?>
5457 </p>
5458 </div>
5459 <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 ); ?>">
5460 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5461 </div>
5462 </div>
5463 </div>
5464 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5465 <span class="ays_save_as_default_content_for_mobile">
5466 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5467 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5468 </a>
5469 <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" ); ?>">
5470 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5471 </a>
5472 </span>
5473 </div>
5474 </div>
5475 </div>
5476 <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5477 <div class="ays-poll-accordion-options-main-container">
5478 <div class="ays-poll-accordion-header">
5479 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5480 <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5481 </div>
5482 <hr class="ays-poll-bolder-hr"/>
5483 <div class="ays-poll-accordion-body">
5484 <fieldset class="ays_poll_settings_integration_container">
5485 <legend>
5486 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5487 <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5488 </legend>
5489 <?php
5490 if(count($mailchimp) > 0):
5491 ?>
5492 <?php
5493 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5494 ?>
5495 <blockquote class="error_message">
5496 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5497 <?php echo (
5498 /* translators: anchor tag */
5499 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5500 "<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>"
5501 )
5502 );
5503 ?>
5504 </blockquote>
5505 <?php
5506 else:
5507 ?>
5508 <div class="form-group row">
5509 <div class="col-sm-4">
5510 <label for="ays_enable_mailchimp">
5511 <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5512 </label>
5513 </div>
5514 <div class="col-sm-1">
5515 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5516 name="ays_enable_mailchimp"
5517 value="on"
5518 <?php
5519 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5520 echo "disabled";
5521 }else{
5522 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5523 }
5524 ?>/>
5525 </div>
5526 </div>
5527 <hr>
5528 <div class="form-group row">
5529 <div class="col-sm-4">
5530 <label for="ays_mailchimp_list">
5531 <?php echo esc_html__('MailChimp list', "poll-maker")?>
5532 </label>
5533 </div>
5534 <div class="col-sm-8">
5535 <?php if(is_array($mailchimp_select)): ?>
5536 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5537 <?php
5538 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5539 echo 'disabled';
5540 }
5541 ?>>
5542 <option value="" disabled selected>Select list</option>
5543 <?php foreach($mailchimp_select as $mlist): ?>
5544 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5545 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5546 <?php endforeach; ?>
5547 </select>
5548 <?php else: ?>
5549 <span><?php echo esc_html($mailchimp_select); ?></span>
5550 <?php endif; ?>
5551 </div>
5552 </div>
5553 <?php
5554 endif;
5555 ?>
5556 <?php
5557 else:
5558 ?>
5559 <blockquote class="error_message">
5560 <?php echo (
5561 /* translators: anchor tag */
5562 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5563 "<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>"
5564 )
5565 );
5566 ?>
5567 </blockquote>
5568 <?php
5569 endif;
5570 ?>
5571 </fieldset><!-- MailChimp Settings -->
5572 <hr/>
5573 <fieldset class="ays_poll_settings_integration_container">
5574 <legend>
5575 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5576 <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5577 </legend>
5578 <div class="form-group row" style="margin: 0px;">
5579 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5580 <div class="pro_features" style="justify-content:flex-end;">
5581 </div>
5582 <div class="form-group row">
5583 <div class="col-sm-4">
5584 <label for="ays_enable_monitor">
5585 <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5586 </label>
5587 </div>
5588 <div class="col-sm-8">
5589 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5590 </div>
5591 </div>
5592 <hr>
5593 <div class="form-group row">
5594 <div class="col-sm-4">
5595 <label for="ays_monitor_list">
5596 <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5597 </label>
5598 </div>
5599 <div class="col-sm-8">
5600 <select name="ays_monitor_list" id="ays_monitor_list">
5601 <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5602 </select>
5603 </div>
5604 </div>
5605 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5606 <div class="ays-poll-new-upgrade-button-box">
5607 <div>
5608 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5609 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5610 </div>
5611 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5612 </div>
5613 </a>
5614 </div>
5615 </div>
5616 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5617 <hr/>
5618 <fieldset class="ays_poll_settings_integration_container">
5619 <legend>
5620 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5621 <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5622 </legend>
5623 <div class="form-group row" style="margin: 0px;">
5624 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5625 <div class="pro_features" style="justify-content:flex-end;">
5626 </div>
5627 <div class="form-group row">
5628 <div class="col-sm-4">
5629 <label for="ays_enable_zapier">
5630 <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5631 </label>
5632 </div>
5633 <div class="col-sm-1">
5634 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5635 </div>
5636 <div class="col-sm-3">
5637 <button type="button"
5638 id="testZapier"
5639 class="btn btn-outline-secondary">
5640 <?php echo esc_html__("Send test data", "poll-maker") ?>
5641 </button>
5642 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5643 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") ?>">
5644 <i class="ays_fa ays_fa_info_circle"></i>
5645 </a>
5646 </div>
5647 </div>
5648 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5649 <div class="ays-poll-new-upgrade-button-box">
5650 <div>
5651 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5652 <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">
5653 </div>
5654 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5655 </div>
5656 </a>
5657 </div>
5658 </div>
5659 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5660 <hr/>
5661 <fieldset class="ays_poll_settings_integration_container">
5662 <legend>
5663 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5664 <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5665 </legend>
5666 <div class="form-group row" style="margin: 0px;">
5667 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5668 <div class="pro_features" style="justify-content:flex-end;">
5669 </div>
5670 <div class="form-group row">
5671 <div class="col-sm-4">
5672 <label for="ays_enable_active_camp">
5673 <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5674 </label>
5675 </div>
5676 <div class="col-sm-1">
5677 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5678 </div>
5679 </div>
5680 <hr>
5681 <div class="form-group row">
5682 <div class="col-sm-4">
5683 <label>
5684 <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5685 </label>
5686 </div>
5687 <div class="col-sm-8">
5688 <select name="ays_active_camp_list" id="ays_active_camp_list">
5689 <option value="" disabled
5690 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5691 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5692 </select>
5693 </div>
5694 </div>
5695 <hr>
5696 <div class="form-group row">
5697 <div class="col-sm-4">
5698 <label>
5699 <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5700 </label>
5701 </div>
5702 <div class="col-sm-8">
5703 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5704 <option value="" disabled
5705 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5706 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5707 </select>
5708 </div>
5709 </div>
5710 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5711 <div class="ays-poll-new-upgrade-button-box">
5712 <div>
5713 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5714 <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">
5715 </div>
5716 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5717 </div>
5718 </a>
5719 </div>
5720 </div>
5721 </fieldset><!-- Active Campaign Settings PRO Feature -->
5722 <hr/>
5723 <fieldset class="ays_poll_settings_integration_container">
5724 <legend>
5725 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5726 <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5727 </legend>
5728 <div class="form-group row" style="margin: 0px;">
5729 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5730 <div class="pro_features" style="justify-content:flex-end;">
5731 </div>
5732 <div class="form-group row">
5733 <div class="col-sm-4">
5734 <label for="ays_enable_slack">
5735 <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5736 </label>
5737 </div>
5738 <div class="col-sm-1">
5739 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5740 </div>
5741 </div>
5742 <hr>
5743 <div class="form-group row">
5744 <div class="col-sm-4">
5745 <label>
5746 <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5747 </label>
5748 </div>
5749 <div class="col-sm-8">
5750 <select id="ays_slack_conversation">
5751 <option value="" disabled
5752 selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5753 </select>
5754 </div>
5755 </div>
5756 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5757 <div class="ays-poll-new-upgrade-button-box">
5758 <div>
5759 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5760 <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">
5761 </div>
5762 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5763 </div>
5764 </a>
5765 </div>
5766 </div>
5767 </fieldset> <!-- Slack Settings PRO Feature -->
5768 <hr>
5769 <fieldset class="ays_poll_settings_integration_container">
5770 <legend>
5771 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5772 <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5773 </legend>
5774 <div class="form-group row" style="margin: 0px;">
5775 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5776 <div class="pro_features" style="justify-content:flex-end;">
5777 </div>
5778 <div class="form-group row">
5779 <div class="col-sm-4">
5780 <label for="ays_poll_enable_google">
5781 <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5782 </label>
5783 </div>
5784 <div class="col-sm-1">
5785 <input type="checkbox" class="ays-enable-timer1"
5786 value="on">
5787 </div>
5788 </div>
5789 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5790 <div class="ays-poll-new-upgrade-button-box">
5791 <div>
5792 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5793 <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">
5794 </div>
5795 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5796 </div>
5797 </a>
5798 </div>
5799 </div>
5800 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5801 <hr>
5802 <fieldset class="ays_poll_settings_integration_container">
5803 <legend>
5804 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5805 <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5806 </legend>
5807 <div class="form-group row" style="margin: 0px;">
5808 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5809 <div class="pro_features" style="justify-content:flex-end;">
5810 </div>
5811 <hr/>
5812 <div class="form-group row">
5813 <div class="col-sm-4">
5814 <label for="ays_poll_enable_mad_mimi">
5815 <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5816 </label>
5817 </div>
5818 <div class="col-sm-1">
5819 <input type="checkbox" class="ays-enable-timer1">
5820 </div>
5821 </div>
5822 <hr>
5823 <div class="form-group row">
5824 <div class="col-sm-4">
5825 <label>
5826 <?php echo esc_html__('Select List', "poll-maker") ?>
5827 </label>
5828 </div>
5829 <div class="col-sm-8">
5830 <?php
5831 $allowed_tags = array(
5832 'select' => array(
5833 'id' => array(),
5834 'class' => array()
5835 ),
5836 'option' => array(
5837 'value' => array(),
5838 'selected' => array()
5839 )
5840 );
5841
5842 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5843 $mad_mimi_select .= "<option value=''>Select list</option>";
5844 $mad_mimi_select .= "</select>";
5845 echo wp_kses($mad_mimi_select, $allowed_tags);
5846
5847 ?>
5848 </div>
5849 </div>
5850 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5851 <div class="ays-poll-new-upgrade-button-box">
5852 <div>
5853 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5854 <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">
5855 </div>
5856 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5857 </div>
5858 </a>
5859 </div>
5860 </div>
5861 </fieldset> <!-- Mad Mimi -->
5862 <hr>
5863 <fieldset class="ays_poll_settings_integration_container">
5864 <legend>
5865 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5866 <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5867 </legend>
5868 <div class="form-group row" style="margin: 0px;">
5869 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5870 <div class="pro_features" style="justify-content:flex-end;">
5871 </div>
5872 <div class="form-group row">
5873 <div class="col-sm-4">
5874 <label for="ays_poll_enable_getResponse">
5875 <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5876 </label>
5877 </div>
5878 <div class="col-sm-8">
5879 <input type="checkbox"
5880 class="ays-enable-timer1">
5881 </div>
5882 </div>
5883 <hr>
5884 <div class="form-group row">
5885 <div class="col-sm-4">
5886 <label>
5887 <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5888 </label>
5889 </div>
5890 <div class="col-sm-8">
5891 <?php
5892 $allowed_tags = array(
5893 'select' => array(
5894 'id' => array(),
5895 'class' => array(),
5896 'name' => array()
5897 ),
5898 'option' => array(
5899 'value' => array(),
5900 'selected' => array(),
5901 'disabled' => array()
5902 )
5903 );
5904 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5905 $mad_mimi_select .= "<option value=''>Select list</option>";
5906 $mad_mimi_select .= "</select>";
5907 echo wp_kses($mad_mimi_select, $allowed_tags);
5908
5909 ?>
5910 </div>
5911 </div>
5912 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5913 <div class="ays-poll-new-upgrade-button-box">
5914 <div>
5915 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5916 <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">
5917 </div>
5918 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5919 </div>
5920 </a>
5921 </div>
5922 </div>
5923 </fieldset> <!-- GetResponse Settings -->
5924 <hr>
5925 <fieldset class="ays_poll_settings_integration_container">
5926 <legend>
5927 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
5928 <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
5929 </legend>
5930 <div class="form-group row" style="margin: 0px;">
5931 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5932 <div class="pro_features" style="justify-content:flex-end;">
5933 </div>
5934 <div class="form-group row">
5935 <div class="col-sm-4">
5936 <label for="ays_poll_enable_convertkit">
5937 <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
5938 </label>
5939 </div>
5940 <div class="col-sm-1">
5941 <input type="checkbox" class="ays-enable-timer1"/>
5942 </div>
5943 </div>
5944 <hr>
5945 <div class="form-group row">
5946 <div class="col-sm-4">
5947 <label>
5948 <?php echo esc_html__('ConvertKit list', "poll-maker")?>
5949 </label>
5950 </div>
5951 <div class="col-sm-8">
5952 <select id="ays_poll_convertKit_list">
5953 <option value="" disabled selected>Select list</option>
5954 </select>
5955 </div>
5956 </div>
5957 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5958 <div class="ays-poll-new-upgrade-button-box">
5959 <div>
5960 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5961 <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">
5962 </div>
5963 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5964 </div>
5965 </a>
5966 </div>
5967 </div>
5968 </fieldset> <!-- ConvertKit Settings -->
5969 <hr/>
5970 <fieldset class="ays_poll_settings_integration_container">
5971 <legend>
5972 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
5973 <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
5974 </legend>
5975 <div class="form-group row" style="margin: 0px;">
5976 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5977 <div class="pro_features" style="justify-content:flex-end;">
5978 </div>
5979 <div class="form-group row">
5980 <div class="col-sm-4">
5981 <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
5982 </div>
5983 <div class="col-sm-1">
5984 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5985 </div>
5986 </div>
5987 <hr>
5988 <div class="form-group row">
5989 <div class="col-sm-4">
5990 <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
5991 </div>
5992 <div class="col-sm-8">
5993 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5994 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
5995 </select>
5996 </div>
5997 </div>
5998 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5999 <div class="ays-poll-new-upgrade-button-box">
6000 <div>
6001 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6002 <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">
6003 </div>
6004 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6005 </div>
6006 </a>
6007 </div>
6008 </div>
6009 </fieldset> <!-- Klaviyo -->
6010 <hr>
6011 <fieldset class="ays_poll_settings_integration_container">
6012 <legend>
6013 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6014 <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
6015 </legend>
6016 <div class="form-group row" style="margin: 0px;">
6017 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6018 <div class="pro_features" style="justify-content:flex-end;">
6019 </div>
6020 <div class="form-group row">
6021 <div class="col-sm-4">
6022 <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
6023 </div>
6024 <div class="col-sm-1">
6025 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
6026 </div>
6027 </div>
6028 <hr>
6029 <div class="form-group row">
6030 <div class="col-sm-4">
6031 <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
6032 </div>
6033 <div class="col-sm-8">
6034 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
6035 <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
6036 </select>
6037 </div>
6038 </div>
6039 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6040 <div class="ays-poll-new-upgrade-button-box">
6041 <div>
6042 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6043 <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">
6044 </div>
6045 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6046 </div>
6047 </a>
6048 </div>
6049 </div>
6050 </fieldset> <!-- Aweber -->
6051 <hr>
6052 <fieldset class="ays_poll_settings_integration_container">
6053 <legend>
6054 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6055 <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
6056 </legend>
6057 <div class="form-group row" style="margin:0;">
6058 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6059 <div class="pro_features" style="justify-content:flex-end;">
6060 </div>
6061 <div class="form-group row">
6062 <div class="col-sm-4">
6063 <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
6064 </div>
6065 <div class="col-sm-1">
6066 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
6067 </div>
6068 </div>
6069 <hr>
6070 <div class="form-group row">
6071 <div class="col-sm-4">
6072 <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
6073 </div>
6074 <div class="col-sm-8">
6075 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
6076 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6077 </select>
6078 </div>
6079 </div>
6080 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6081 <div class="ays-poll-new-upgrade-button-box">
6082 <div>
6083 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6084 <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">
6085 </div>
6086 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6087 </div>
6088 </a>
6089 </div>
6090 </div>
6091 </fieldset> <!-- Mailpoet -->
6092 <hr>
6093 <fieldset class="ays_poll_settings_integration_container">
6094 <legend>
6095 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6096 <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6097 </legend>
6098 <div class="form-group row" style="margin:0;">
6099 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6100 <div class="pro_features" style="justify-content:flex-end;">
6101 </div>
6102 <div class="form-group row">
6103 <div class="col-sm-4">
6104 <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6105 </div>
6106 <div class="col-sm-1">
6107 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6108 </div>
6109 </div>
6110 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6111 <div class="ays-poll-new-upgrade-button-box">
6112 <div>
6113 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6114 <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">
6115 </div>
6116 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6117 </div>
6118 </a>
6119 </div>
6120 </div>
6121 </fieldset> <!-- reCaptcha Settings -->
6122 <hr>
6123 </div>
6124 </div>
6125 </div>
6126 <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6127 <div class="ays-poll-accordion-options-main-container">
6128 <div class="ays-poll-accordion-header">
6129 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6130 <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
6131 </div>
6132 <hr class="ays-poll-bolder-hr"/>
6133 <div class="ays-poll-accordion-body">
6134 <div class="form-group row">
6135 <div class="col-sm-3">
6136 <label for='show-res-percent'>
6137 <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
6138 <a class="ays_help" data-toggle="tooltip"
6139 data-placement="top"
6140 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"); ?>">
6141 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6142 </a>
6143 </label>
6144 </div>
6145 <div class="col-sm-9">
6146 <input type="checkbox" name="show_res_percent" id="show-res-percent"
6147 value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
6148 </div>
6149 </div>
6150 <hr>
6151 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
6152 <div class="col-sm-3">
6153 <label for='ays-poll-hide-results'>
6154 <?php echo esc_html__('Hide results', "poll-maker"); ?>
6155 <a class="ays_help"
6156 data-toggle="tooltip"
6157 data-placement="top"
6158 title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6159 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6160 </a>
6161 </label>
6162 <p class="ays_poll_small_hint_text_for_message_variables">
6163 <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6164 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
6165 </p>
6166 </div>
6167 <div class="col-sm-9 ays_toggle_parent">
6168 <div class="form-group row">
6169
6170 <!-- <div class="col-sm-1"> -->
6171 <div class="col-sm-12">
6172 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
6173 value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6174 </div>
6175 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
6176 <div class="form-group row">
6177 <div class="col-sm-12">
6178 <div>
6179 <label for='ays-poll-hide-results-text'>
6180 <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
6181 <a class="ays_help"
6182 data-toggle="tooltip"
6183 data-placement="top"
6184 title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6185 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6186 </a>
6187 </label>
6188 </div>
6189 <?php
6190 $allowed_tags = array(
6191 'div' => array(
6192 'class' => true
6193 ),
6194 'i' => array(
6195 'class' => true
6196 ),
6197 'span' => array(),
6198 'a' => array(
6199 'class' => true,
6200 'data-toggle' => true,
6201 'data-html' => true,
6202 'title' => true
6203 ),
6204 'label' => array(
6205 'class' => true
6206 ),
6207 'input' => array(
6208 'type' => true,
6209 'class' => true,
6210 'hidden' => true,
6211 'id' => true,
6212 'name' => true,
6213 'value' => true
6214 )
6215 );
6216 echo wp_kses($poll_message_vars_html, $allowed_tags);
6217 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6218 $editor_id = 'ays-poll-hide-results-text';
6219 $settings = array(
6220 'editor_height' => $poll_wp_editor_height,
6221 'textarea_name' => 'ays-poll-hide-results-text',
6222 'editor_class' => 'ays-textarea',
6223 'media_elements' => false
6224 );
6225 wp_editor($content, $editor_id, $settings);
6226 ?>
6227 </div>
6228 </div>
6229 </div>
6230 </div>
6231 </div>
6232 </div>
6233 <hr>
6234 <div class="form-group row ays-poll-desc-message-vars-parent">
6235 <div class="col-sm-3">
6236 <label for="ays_poll_result_message">
6237 <?php echo esc_html__('Result Message', "poll-maker")?>
6238 <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")?>">
6239 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6240 </a>
6241 </label>
6242 <p class="ays_poll_small_hint_text_for_message_variables">
6243 <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6244 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
6245 </p>
6246 </div>
6247 <div class="col-sm-9 ays_toggle_parent">
6248 <div class="form-group row">
6249 <div class="col-sm-12">
6250 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
6251 value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6252 </div>
6253 <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;'; ?>">
6254 <?php
6255 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6256 $allowed_tags = array(
6257 'div' => array(
6258 'class' => true
6259 ),
6260 'i' => array(
6261 'class' => true
6262 ),
6263 'span' => array(),
6264 'a' => array(
6265 'class' => true,
6266 'data-toggle' => true,
6267 'data-html' => true,
6268 'title' => true
6269 ),
6270 'label' => array(
6271 'class' => true
6272 ),
6273 'input' => array(
6274 'type' => true,
6275 'class' => true,
6276 'hidden' => true,
6277 'id' => true,
6278 'name' => true,
6279 'value' => true
6280 )
6281 );
6282 echo wp_kses($poll_message_vars_html, $allowed_tags);
6283 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6284 $editor_id = 'ays_result_message';
6285 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6286 wp_editor($content, $editor_id, $settings);
6287 ?>
6288 </div>
6289 </div>
6290 </div>
6291 </div>
6292 <hr>
6293 <div class="form-group row">
6294 <div class="col-sm-3">
6295 <label for='ays-poll-result-sort-type'>
6296 <?php echo esc_html__('Results sorting', "poll-maker"); ?>
6297 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
6298 echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6299 "<ul style='list-style-type: circle;padding-left: 20px;'>".
6300 "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6301 "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6302 "<li>".esc_html__('None', "poll-maker") ."</li>".
6303 "</ul>";
6304 ?>">
6305 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6306 </a></label>
6307 </div>
6308 <div class="col-sm-9">
6309 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
6310 <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6311 <?php echo esc_html__("None", "poll-maker"); ?>
6312 </option>
6313 <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6314 <?php echo esc_html__("Ascending", "poll-maker"); ?>
6315 </option>
6316 <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6317 <?php echo esc_html__("Descending", "poll-maker"); ?>
6318 </option>
6319 </select>
6320 </div>
6321 </div>
6322 <hr>
6323 <div class="form-group row">
6324 <div class="col-sm-3">
6325 <label for='show-votes-count'>
6326 <?php echo esc_html__('Show votes count', "poll-maker"); ?>
6327 <a class="ays_help" data-toggle="tooltip"
6328 data-placement="top"
6329 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"); ?>">
6330 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6331 </a>
6332 </label>
6333 </div>
6334 <div class="col-sm-9">
6335 <input type="checkbox" name="show_votes_count" id="show-votes-count"
6336 value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
6337 </div>
6338 </div>
6339 <hr>
6340
6341 <!-- Loading effect start -->
6342
6343 <div class="form-group row">
6344 <div class="col-sm-3">
6345 <label for='ays-poll-load-effect'>
6346 <?php echo esc_html__('Loading effect', "poll-maker"); ?>
6347 <a class="ays_help" data-toggle="tooltip"
6348 data-placement="top"
6349 title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6350 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6351 </a>
6352 </label>
6353 </div>
6354 <div class="col-sm-3">
6355 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
6356 <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6357 <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
6358 </option>
6359 <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6360 <?php echo esc_html__("Opacity", "poll-maker"); ?>
6361 </option>
6362 <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6363 <?php echo esc_html__("Blur", "poll-maker"); ?>
6364 </option>
6365 <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6366 <?php echo esc_html__("Message", "poll-maker"); ?>
6367 </option>
6368 <option class="apm-pro-feature" disabled
6369 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6370 <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
6371 </option>
6372 </select>
6373 </div>
6374 <div class="if-loading-gif col-sm-6 row">
6375 <div class="apm-loader d-flex justify-content-between align-items-center">
6376 <input type="radio"
6377 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' : ''; ?>
6378 id="plg_default" value="plg_default">
6379 <label for="plg_default" class="apm-loading-gif">
6380 <div class="loader loader--style3">
6381 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6382 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6383 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6384 xml:space="preserve">
6385 <path fill="#000"
6386 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">
6387 <animateTransform attributeType="xml" attributeName="transform"
6388 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6389 repeatCount="indefinite"/>
6390 </path>
6391 </svg>
6392 </div>
6393 </label>
6394 </div>
6395 <div class="apm-loader d-flex justify-content-between align-items-center">
6396 <input type="radio"
6397 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' : ''; ?>
6398 id="plg_1" value="plg_1">
6399 <label for="plg_1" class="apm-loading-gif">
6400 <div class="loader loader--style5">
6401 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6402 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6403 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6404 xml:space="preserve">
6405 <rect x="0" y="0" width="4" height="10" fill="#333">
6406 <animateTransform attributeType="xml" attributeName="transform"
6407 type="translate" values="0 0; 0 20; 0 0" begin="0"
6408 dur="0.8s" repeatCount="indefinite"/>
6409 </rect>
6410 <rect x="10" 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.2s"
6413 dur="0.8s" repeatCount="indefinite"/>
6414 </rect>
6415 <rect x="20" 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.4s"
6418 dur="0.8s" repeatCount="indefinite"/>
6419 </rect>
6420 </svg>
6421 </div>
6422 </label>
6423 </div>
6424 <div class="apm-loader d-flex justify-content-between align-items-center">
6425 <input type="radio"
6426 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' : ''; ?>
6427 id="plg_2" value="plg_2">
6428 <label for="plg_2" class="apm-loading-gif">
6429 <div class="loader loader--style8">
6430 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6431 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6432 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6433 xml:space="preserve">
6434 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6435 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6436 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6437 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6438 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6439 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6440 dur="0.7s" repeatCount="indefinite"/>
6441 </rect>
6442 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6443 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6444 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6445 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6446 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6447 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6448 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6449 </rect>
6450 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6451 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6452 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6453 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6454 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6455 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6456 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6457 </rect>
6458 </svg>
6459 </div>
6460 </label>
6461 </div>
6462 <div class="apm-loader d-flex justify-content-between align-items-center">
6463 <input type="radio"
6464 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' : ''; ?>
6465 id="plg_3" value="plg_3">
6466 <label for="plg_3" class="apm-loading-gif">
6467 <div class="loader loader--style5">
6468 <svg width="100%" height="100%" viewBox="0 0 105 105"
6469 xmlns="http://www.w3.org/2000/svg" fill="#000">
6470 <circle cx="12.5" cy="12.5" r="12.5">
6471 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6472 calcMode="linear" repeatCount="indefinite"/>
6473 </circle>
6474 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6475 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6476 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6477 </circle>
6478 <circle cx="52.5" cy="12.5" r="12.5">
6479 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6480 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6481 </circle>
6482 <circle cx="52.5" cy="52.5" r="12.5">
6483 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6484 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6485 </circle>
6486 <circle cx="92.5" cy="12.5" r="12.5">
6487 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6488 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6489 </circle>
6490 <circle cx="92.5" cy="52.5" r="12.5">
6491 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6492 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6493 </circle>
6494 <circle cx="12.5" cy="92.5" r="12.5">
6495 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6496 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6497 </circle>
6498 <circle cx="52.5" cy="92.5" r="12.5">
6499 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6500 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6501 </circle>
6502 <circle cx="92.5" cy="92.5" r="12.5">
6503 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6504 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6505 </circle>
6506 </svg>
6507 </div>
6508 </label>
6509 </div>
6510 <div class="apm-loader d-flex justify-content-between align-items-center">
6511 <input type="radio"
6512 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' : ''; ?>
6513 id="plg_4" value="plg_4">
6514 <label for="plg_4" class="apm-loading-gif">
6515 <div class="loader loader--style4">
6516 <svg width="100%" height="100%" viewBox="0 0 57 57"
6517 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6518 <g fill="none" fill-rule="evenodd">
6519 <g transform="translate(1 1)" stroke-width="2">
6520 <circle cx="5" cy="50" r="5">
6521 <animate attributeName="cy" begin="0s" dur="2.2s"
6522 values="50;5;50;50" calcMode="linear"
6523 repeatCount="indefinite"/>
6524 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6525 calcMode="linear" repeatCount="indefinite"/>
6526 </circle>
6527 <circle cx="27" cy="5" r="5">
6528 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6529 values="5;50;50;5" calcMode="linear"
6530 repeatCount="indefinite"/>
6531 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6532 values="27;49;5;27" calcMode="linear"
6533 repeatCount="indefinite"/>
6534 </circle>
6535 <circle cx="49" cy="50" r="5">
6536 <animate attributeName="cy" begin="0s" dur="2.2s"
6537 values="50;50;5;50" calcMode="linear"
6538 repeatCount="indefinite"/>
6539 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6540 values="49;5;27;49" calcMode="linear"
6541 repeatCount="indefinite"/>
6542 </circle>
6543 </g>
6544 </g>
6545 </svg>
6546 </div>
6547 </label>
6548 </div>
6549 <div class="apm-loader d-flex justify-content-between align-items-center">
6550 <input type="radio"
6551 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' : ''; ?>
6552 id="plg_5" value="plg_5">
6553 <label for="plg_5" class="apm-loading-gif">
6554 <div class="loader loader--style4">
6555 <svg width="100%" height="100%" viewBox="0 0 135 140"
6556 xmlns="http://www.w3.org/2000/svg" fill="#000">
6557 <rect y="10" width="15" height="120" rx="6">
6558 <animate attributeName="height" begin="0.5s" dur="1s"
6559 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6560 repeatCount="indefinite"/>
6561 <animate attributeName="y" begin="0.5s" dur="1s"
6562 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6563 repeatCount="indefinite"/>
6564 </rect>
6565 <rect x="30" y="10" width="15" height="120" rx="6">
6566 <animate attributeName="height" begin="0.25s" dur="1s"
6567 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6568 repeatCount="indefinite"/>
6569 <animate attributeName="y" begin="0.25s" dur="1s"
6570 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6571 repeatCount="indefinite"/>
6572 </rect>
6573 <rect x="60" width="15" height="140" rx="6">
6574 <animate attributeName="height" begin="0s" dur="1s"
6575 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6576 repeatCount="indefinite"/>
6577 <animate attributeName="y" begin="0s" dur="1s"
6578 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6579 repeatCount="indefinite"/>
6580 </rect>
6581 <rect x="90" y="10" width="15" height="120" rx="6">
6582 <animate attributeName="height" begin="0.25s" dur="1s"
6583 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6584 repeatCount="indefinite"/>
6585 <animate attributeName="y" begin="0.25s" dur="1s"
6586 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6587 repeatCount="indefinite"/>
6588 </rect>
6589 <rect x="120" y="10" width="15" height="120" rx="6">
6590 <animate attributeName="height" begin="0.5s" dur="1s"
6591 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6592 repeatCount="indefinite"/>
6593 <animate attributeName="y" begin="0.5s" dur="1s"
6594 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6595 repeatCount="indefinite"/>
6596 </rect>
6597 </svg>
6598 </div>
6599 </label>
6600 </div>
6601 </div>
6602 <div class="if-loading-message col-sm-6 row">
6603 <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); ?>">
6604 </div>
6605 </div>
6606 <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6607 <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6608 <div class="col-sm-3">
6609 <label for="ays_loader_font_size">
6610 <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6611 <a class="ays_help" data-toggle="tooltip"
6612 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") ?>">
6613 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6614 </a>
6615 </label>
6616 </div>
6617 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6618 <div>
6619 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6620 name="ays_loader_font_size"
6621 value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6622 </div>
6623 <div class="ays_option_default_measurement_unit">
6624 <input type="text" value="px" disabled>
6625 </div>
6626 </div>
6627 </div>
6628 <hr>
6629 <!-- Loading effect end -->
6630 <div class="form-group row">
6631 <div class="col-sm-3">
6632 <label for="ays_enable_restart_button">
6633 <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6634 <a class="ays_help" data-toggle="tooltip"
6635 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") ?>">
6636 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6637 </a>
6638 </label>
6639 </div>
6640 <div class="col-sm-1">
6641 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6642 name="ays_enable_restart_button"
6643 value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6644 </div>
6645 </div>
6646 <hr>
6647 <div class="form-group row ays_toggle_parent">
6648 <div class="col-sm-3">
6649 <label for='ays-poll-show-social'>
6650 <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6651 <a class="ays_help"
6652 data-toggle="tooltip"
6653 data-placement="top"
6654 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"); ?>'>
6655 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6656 </a></label>
6657 </div>
6658 <div class="col-sm-1">
6659 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6660 value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6661 </div>
6662 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6663 <div class="form-group row">
6664 <div class="col-sm-4">
6665 <label>
6666 <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6667 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6668 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6669 </a>
6670 </label>
6671 </div>
6672 <div class="col-sm-8">
6673 <?php
6674 $content = $poll_social_buttons_heading;
6675 $editor_id = 'ays_poll_social_buttons_heading';
6676 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6677 wp_editor($content, $editor_id, $settings);
6678 ?>
6679 </div>
6680 </div>
6681 <hr>
6682 <div class="form-group row">
6683 <div class="col-sm-4">
6684 <label for="ays_poll_enable_linkedin_share_button">
6685 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6686 <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6687 <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"); ?>">
6688 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6689 </a>
6690 </label>
6691 </div>
6692 <div class="col-sm-8">
6693 <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" : ""; ?>/>
6694 </div>
6695 </div>
6696 <hr/>
6697 <div class="form-group row">
6698 <div class="col-sm-4">
6699 <label for="ays_poll_enable_facebook_share_button">
6700 <i class="ays_poll_fas ays_poll_facebook"></i>
6701 <?php echo esc_html__('Facebook button', "poll-maker")?>
6702 <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"); ?>">
6703 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6704 </a>
6705 </label>
6706 </div>
6707 <div class="col-sm-8">
6708 <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" : ""; ?>/>
6709 </div>
6710 </div>
6711 <hr/>
6712 <div class="form-group row">
6713 <div class="col-sm-4">
6714 <label for="ays_poll_enable_twitter_share_button">
6715 <i class="ays_fa ays_fa_twitter_square"></i>
6716 <?php echo esc_html__('Twitter button', "poll-maker")?>
6717 <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"); ?>">
6718 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6719 </a>
6720 </label>
6721 </div>
6722 <div class="col-sm-8">
6723 <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" : ""; ?>/>
6724 </div>
6725 </div>
6726 <hr/>
6727 <div class="form-group row">
6728 <div class="col-sm-4">
6729 <label for="ays_poll_enable_vkontakte_share_button">
6730 <i class="ays_fa ays_fa_vk"></i>
6731 <?php echo esc_html__('VKontakte button', "poll-maker")?>
6732 <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"); ?>">
6733 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6734 </a>
6735 </label>
6736 </div>
6737 <div class="col-sm-8">
6738 <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" : ""; ?>/>
6739 </div>
6740 </div>
6741 </div>
6742 </div>
6743 <hr>
6744 <div class="form-group row ays_toggle_parent">
6745 <div class="col-sm-3">
6746 <label for="ays_enable_social_links">
6747 <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6748 <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")?>">
6749 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6750 </a>
6751 </label>
6752 </div>
6753 <div class="col-sm-1">
6754 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6755 name="ays_poll_enable_social_links"
6756 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6757 </div>
6758 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6759 <div class="form-group row">
6760 <div class="col-sm-4">
6761 <label>
6762 <?php echo esc_html__('Heading for social links', "poll-maker")?>
6763 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6764 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6765 </a>
6766 </label>
6767 </div>
6768 <div class="col-sm-8">
6769 <?php
6770 $content = $poll_social_links_heading;
6771 $editor_id = 'ays_poll_social_links_heading';
6772 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6773 wp_editor($content, $editor_id, $settings);
6774 ?>
6775 </div>
6776 </div>
6777 <hr>
6778 <div class="form-group row">
6779 <div class="col-sm-4">
6780 <label for="ays_linkedin_link">
6781 <i class="ays_fa ays_fa_linkedin_square"></i>
6782 <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6783 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6784 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6785 </a>
6786 </label>
6787 </div>
6788 <div class="col-sm-8">
6789 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6790 value="<?php echo $linkedin_link; ?>" />
6791 </div>
6792 </div>
6793 <hr/>
6794 <div class="form-group row">
6795 <div class="col-sm-4">
6796 <label for="ays_facebook_link">
6797 <i class="ays_fa ays_fa_facebook_square"></i>
6798 <?php echo esc_html__('Facebook link', "poll-maker")?>
6799 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6800 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6801 </a>
6802 </label>
6803 </div>
6804 <div class="col-sm-8">
6805 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6806 value="<?php echo $facebook_link; ?>" />
6807 </div>
6808 </div>
6809 <hr/>
6810 <div class="form-group row">
6811 <div class="col-sm-4">
6812 <label for="ays_twitter_link">
6813 <i class="ays_fa ays_fa_twitter_square"></i>
6814 <?php echo esc_html__('X link', "poll-maker")?>
6815 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6816 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6817 </a>
6818 </label>
6819 </div>
6820 <div class="col-sm-8">
6821 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6822 value="<?php echo $twitter_link; ?>" />
6823 </div>
6824 </div>
6825 <hr/>
6826 <div class="form-group row">
6827 <div class="col-sm-4">
6828 <label for="ays_vkontakte_link">
6829 <i class="ays_fa ays_fa_vk"></i>
6830 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6831 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6832 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6833 </a>
6834 </label>
6835 </div>
6836 <div class="col-sm-8">
6837 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6838 value="<?php echo $vkontakte_link; ?>" />
6839 </div>
6840 </div>
6841 <hr>
6842 <div class="form-group row">
6843 <div class="col-sm-4">
6844 <label for="ays_youtube_link">
6845 <i class="ays_fa ays_fa_vk"></i>
6846 <?php echo esc_html__('YouTube link', "poll-maker")?>
6847 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6848 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6849 </a>
6850 </label>
6851 </div>
6852 <div class="col-sm-8">
6853 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6854 value="<?php echo $youtube_link; ?>" />
6855 </div>
6856 </div>
6857 <div class="form-group row">
6858 <div class="col-sm-4">
6859 <label for="ays_youtube_link">
6860 <i class="ays_fa ays_fa_vk"></i>
6861 <?php echo esc_html__('TikTok link', "poll-maker")?>
6862 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6863 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6864 </a>
6865 </label>
6866 </div>
6867 <div class="col-sm-8">
6868 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_tiktok_link]"
6869 value="<?php echo $tiktok_link; ?>" />
6870 </div>
6871 </div>
6872 </div>
6873 </div>
6874 <hr>
6875 <div class="form-group row">
6876 <div class="col-sm-3">
6877 <label for='ays-poll-res-rgba'>
6878 <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6879 <a class="ays_help" data-toggle="tooltip"
6880 data-placement="top"
6881 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"); ?>">
6882 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6883 </a>
6884 </label>
6885 </div>
6886 <div class="col-sm-9">
6887 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6888 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6889 </div>
6890 </div>
6891 <hr>
6892 <div class="form-group row ays_toggle_parent">
6893 <div class="col-sm-3">
6894 <label for='ays_poll_show_users'>
6895 <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6896 <a class="ays_help" data-toggle="tooltip"
6897 data-placement="top"
6898 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"); ?>">
6899 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6900 </a>
6901 </label>
6902 </div>
6903 <div class="col-sm-1">
6904 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6905 value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6906 </div>
6907 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6908 <div class="row">
6909 <div class="col-sm-3 ays_divider_left">
6910 <label for='ays_poll_show_users_count'>
6911 <?php echo esc_html__('Users count', "poll-maker"); ?>
6912 <a class="ays_help" data-toggle="tooltip"
6913 data-placement="top"
6914 title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6915 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6916 </a>
6917 </label>
6918 </div>
6919 <div class="col-sm-9">
6920 <input type="number"
6921 name="ays_poll_show_users_count"
6922 id="ays_poll_show_users_count"
6923 class="ays-text-input ays-poll-answer-results-short-input"
6924 value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
6925 </div>
6926 </div>
6927 </div>
6928 </div>
6929 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6930 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6931 <div class="col-sm-3">
6932 <label for="ays_poll_enable_answer_redirect_delay">
6933 <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
6934 <a class="ays_help" data-toggle="tooltip"
6935 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") ?>">
6936 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6937 </a>
6938 </label>
6939 </div>
6940 <div class="col-sm-1">
6941 <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" : ""; ?>>
6942 </div>
6943 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
6944 <input type="number"
6945 class="ays-text-input ays-poll-answer-results-short-input"
6946 id="ays_poll_answer_redirect_delay"
6947 name="ays_poll_answer_redirect_delay"
6948 value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
6949 <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
6950 </div>
6951 </div>
6952 <hr>
6953 <div class="form-group row">
6954 <div class="col-sm-3">
6955 <label for="ays_poll_enable_answer_image_after_voting">
6956 <?php echo esc_html__('Show answers image', "poll-maker") ?>
6957 <a class="ays_help" data-toggle="tooltip"
6958 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") ?>">
6959 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6960 </a>
6961 </label>
6962 </div>
6963 <div class="col-sm-1">
6964 <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" : ""; ?>>
6965 </div>
6966 </div>
6967 <hr>
6968 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6969 <div class="form-group row">
6970 <div class="col-sm-3">
6971 <label for="apm_allow_add_answers">
6972 <?php echo esc_html__('Show results by', "poll-maker"); ?>
6973 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6974 title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6975 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6976 </a>
6977 </label>
6978 </div>
6979 <div class="col-sm-9">
6980 <div class="form-group row" style="align-items:center">
6981 <div class="col-sm-4">
6982 <div style="display: flex;">
6983 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6984 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6985 <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' : '' ?>/>
6986 <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
6987 </label>
6988 </div>
6989 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6990 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6991 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6992 <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
6993 </label>
6994 </div>
6995 </div>
6996 </div>
6997 <div class="col-sm-8" style="padding-left: 0">
6998 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6999 <div class="pro_features pro_features_popup">
7000 <div class="pro-features-popup-conteiner">
7001 <div class="pro-features-popup-title">
7002 <?php echo esc_html__("Show Results by", "poll-maker"); ?>
7003 </div>
7004 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
7005 <p>
7006 <?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"); ?>
7007 </p>
7008 </div>
7009 <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 ); ?>">
7010 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7011 </div>
7012 </div>
7013 </div>
7014 <div class="pro_features" style="justify-content:flex-end;">
7015 </div>
7016 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7017 <input type="radio"/>
7018 <label class="form-check-label ays_poll_check_label">
7019 <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
7020 </label>
7021 </div>
7022 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7023 <input type="radio"/>
7024 <label class="form-check-label ays_poll_check_label">
7025 <?php echo esc_html__('Column Chart', "poll-maker"); ?>
7026 </label>
7027 </div>
7028 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
7029 <input type="radio"/>
7030 <label class="form-check-label ays_poll_check_label">
7031 <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
7032 </label>
7033 </div>
7034 <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'?>">
7035 <input type="radio"/>
7036 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
7037 <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
7038 </label>
7039 </div>
7040 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7041 <div class="ays-poll-new-upgrade-button-box">
7042 <div>
7043 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7044 <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">
7045 </div>
7046 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7047 </div>
7048 </a>
7049 <div class="ays-poll-new-watch-video-button-box">
7050 <div>
7051 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7052 <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">
7053 </div>
7054 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7055 </div>
7056 </div>
7057 </div>
7058 </div>
7059 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7060 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7061 <div class="form-group row" style="align-items: center; margin-left: 0;">
7062 <div class="col-sm-2">
7063 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
7064 <?php echo esc_html__('Chart height', "poll-maker") ?>
7065 <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"); ?>">
7066 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7067 </a>
7068 </label>
7069 </div>
7070 <div class="col-sm-9 ays_option_with_default_measurement_unit">
7071 <div>
7072 <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; ?>"/>
7073 </div>
7074 <div class="ays_option_default_measurement_unit">
7075 <input type="text" value="px" disabled>
7076 </div>
7077 </div>
7078 </div>
7079 </div>
7080 </div>
7081 </div>
7082 </div>
7083 <hr/>
7084 <div class="form-group row">
7085 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
7086 <div class="pro_features pro_features_popup">
7087 <div class="pro-features-popup-conteiner">
7088 <div class="pro-features-popup-title">
7089 <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
7090 </div>
7091 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
7092 <p>
7093 <?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"); ?>
7094 </p>
7095 </div>
7096 <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 ); ?>">
7097 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7098 </div>
7099 </div>
7100 </div>
7101 <div class="pro_features" style="justify-content:flex-end;">
7102 </div>
7103 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
7104 <hr>
7105 <div class="form-group row">
7106 <div class="col-sm-3">
7107 <label for="ays_show_answer_message">
7108 <?php echo esc_html__('Show Answer message', "poll-maker")?>
7109 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
7110 data-placement="top"
7111 title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
7112 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7113 </a>
7114 </label>
7115 </div>
7116 <div class="col-sm-9">
7117 <input type="checkbox" class="ays-enable-timer1"
7118 name=""
7119 value="on">
7120 </div>
7121 </div>
7122 <hr/>
7123 <!--Result message -->
7124 <div class='form-group row'>
7125 <div class="ays_reset_answers_div">
7126 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
7127 </div>
7128 <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"); ?>">
7129 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7130 </a>
7131 </div>
7132 <hr>
7133 <?php
7134 $allowed_tags = array(
7135 'div' => array(
7136 'class' => true
7137 ),
7138 'table' => array(
7139 'class' => true
7140 ),
7141 'thead' => array(),
7142 'tbody' => array(),
7143 'tr' => array(
7144 'class' => true
7145 ),
7146 'th' => array(),
7147 'td' => array(
7148 'class' => true
7149 ),
7150 'span' => array(),
7151 'input' => array(
7152 'type' => true,
7153 'name' => true,
7154 'class' => true,
7155 'value' => true,
7156 'hidden' => true
7157 ),
7158 'textarea' => array(
7159 'type' => true,
7160 'name' => true,
7161 'class' => true
7162 ),
7163 'label' => array(
7164 'class' => true,
7165 'for' => true
7166 ),
7167 'a' => array(
7168 'href' => true,
7169 'class' => true
7170 ),
7171 'img' => array(
7172 'src' => true,
7173 'class' => true
7174 )
7175 );
7176
7177 $content = '<div class="ays-field-dashboard ays-table-wrap">
7178 <table class="ays-answers-table ">
7179 <thead>
7180 <tr class="ui-state-default">
7181 <th>'. esc_html__('Answers', "poll-maker").'</th>
7182 <th>'. esc_html__('Text', "poll-maker").'</th>
7183 <th>'. esc_html__('Image', "poll-maker").'</th>
7184 </tr>
7185 </thead>
7186 <tbody>';
7187 $content .= '<tr class="ays-interval-row">
7188 <td>
7189 <span>'. esc_html__("Answer 1", "poll-maker").'</span>
7190 <input type="hidden" name="ays_answer_id[]">
7191 </td>
7192 <td>
7193 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7194 </td>
7195 <td class="ays-answer-image-td">
7196 <label class="ays-label" for="ays-answer">
7197 <a href="javascript:void(0)" class="add-answer-image" >
7198 '. esc_html__("Add", "poll-maker").'
7199 </a>
7200 </label>
7201 <div class="ays-answer-image-container ays-interval-image-container">
7202 <span class="ays-remove-answer-img"></span>
7203 <img src="" class="ays-answer-img">
7204 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7205 >
7206 </div>
7207 </td>
7208 </tr>
7209 <tr class="ays-interval-row">
7210 <td>
7211 <span>'. esc_html__("Answer 2", "poll-maker").'</span>
7212 <input type="hidden" name="ays_answer_id[]">
7213 </td>
7214 <td>
7215 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7216 </td>
7217 <td class="ays-answer-image-td">
7218 <label class="ays-label" for="ays-answer">
7219 <a href="javascript:void(0)" class="add-answer-image" >
7220 '. esc_html__("Add", "poll-maker").'
7221 </a>
7222 </label>
7223 <div class="ays-answer-image-container ays-interval-image-container">
7224 <span class="ays-remove-answer-img"></span>
7225 <img src="" class="ays-answer-img">
7226 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7227 >
7228 </div>
7229 </td>
7230 </tr>';
7231 $content .= '</tbody></table></div>';
7232 echo wp_kses($content, $allowed_tags);
7233 ?>
7234 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7235 <div class="ays-poll-new-upgrade-button-box">
7236 <div>
7237 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7238 <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">
7239 </div>
7240 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7241 </div>
7242 </a>
7243 <div class="ays-poll-new-watch-video-button-box">
7244 <div>
7245 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7246 <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">
7247 </div>
7248 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7249 </div>
7250 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
7251 <div class="ays-poll-center-big-watch-video-button-box">
7252 <div class="ays-poll-center-new-watch-video-demo-button">
7253 <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">
7254 <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">
7255 <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
7256 </div>
7257 </div>
7258 <div class="ays-poll-center-big-upgrade-button-box">
7259 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7260 <div class="ays-poll-center-new-big-upgrade-button">
7261 <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">
7262 <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">
7263 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
7264 </div>
7265 </a>
7266 </div>
7267 </div>
7268 </div>
7269 <hr/>
7270 </div>
7271 </div>
7272 </div>
7273 <div class="only_pro" style="position: relative; display: inline-block">
7274 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7275 <div class="pro-features-popup-conteiner">
7276 <div class="pro-features-popup-title">
7277 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
7278 </div>
7279 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7280 <p>
7281 <?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"); ?>
7282 </p>
7283 <p>
7284 <?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"); ?>
7285 </p>
7286 </div>
7287 <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 ); ?>">
7288 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7289 </div>
7290 </div>
7291 </div>
7292 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7293 <span class="ays_save_as_default_content_for_mobile">
7294 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7295 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7296 </a>
7297 <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" ); ?>">
7298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7299 </a>
7300 </span>
7301 </div>
7302 </div>
7303 </div>
7304 <div class="bottom-buttons-container">
7305 <div class='bottom-save-buttons-container'>
7306 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7307 <?php
7308 echo wp_kses($loader_iamge, $loader_iamge_allow);
7309 wp_nonce_field('poll_action', 'poll_action');
7310 $save_bottom_attributes = array(
7311 'id' => 'ays-button-apply',
7312 'title' => 'Ctrl + s',
7313 'data-toggle' => 'tooltip',
7314 'data-delay'=> '{"show":"1000"}'
7315 );
7316 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7317 $save_close_bottom_attributes = array('id' => 'ays-button');
7318 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);
7319 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7320 ?>
7321 </div>
7322 </div>
7323 </div>
7324 </div>
7325 <div>
7326 <hr>
7327 <!-- <div class="form-group row ays-poll-general-bundle-container">
7328 <div class="col-sm-12 ays-poll-general-bundle-box">
7329 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
7330 <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>
7331 </div>
7332 <div class="ays-poll-general-bundle-row">
7333 <div class="ays-poll-general-bundle-text">
7334 <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7335 <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7336 <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
7337 <span class="ays-poll-general-bundle-color">
7338 <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>
7339 </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
7340 </div>
7341 <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7342 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
7343 <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>
7344 </div>
7345 </div>
7346 <div class="ays-poll-general-bundle-row">
7347 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
7348 </div>
7349 </div>
7350 </div> -->
7351 <?php if($id === null): ?>
7352 <div class="ays_poll_layer_container">
7353 <div class="ays_poll_layer_content">
7354 <div class="ays_poll_layer_box">
7355 <div class="ays-poll-close-layer">
7356 <div class="ays-poll-choose-type">
7357 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7358 </div>
7359 <div class="ays-poll-close-type">
7360 <a href="?page=poll-maker-ays">
7361 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7362 </a>
7363 </div>
7364 </div>
7365 <div class="ays_poll_layer_box_blocks">
7366 <label class='ays-poll-dblclick-layer'>
7367 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7368 <div class="ays_poll_layer_item" >
7369 <div class="ays_poll_layer_item_logo" >
7370 <div class="ays_poll_layer_item_logo_overlay
7371 ays_poll_layer_item_logo_overlay_choosing" >
7372 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7373 alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
7374 </div>
7375 </div>
7376 <div class="ays_poll_layer_item_title">
7377 <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7378 <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>
7379 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7380 </div>
7381 <div class="ays_poll_layer_item_description"></div>
7382 </div>
7383 </label>
7384 <label class='ays-poll-dblclick-layer'>
7385 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7386 <div class="ays_poll_layer_item">
7387 <div class="ays_poll_layer_item_logo">
7388 <div class="ays_poll_layer_item_logo_overlay
7389 ays_poll_layer_item_logo_overlay_rating">
7390 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7391 alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
7392 </div>
7393 </div>
7394 <div class="ays_poll_layer_item_title">
7395 <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7396 <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>
7397 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7398 </div>
7399 <div class="ays_poll_layer_item_description"></div>
7400 </div>
7401 </label>
7402 <label class='ays-poll-dblclick-layer'>
7403 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
7404 <div class="ays_poll_layer_item">
7405 <div class="ays_poll_layer_item_logo">
7406 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7407
7408 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7409 alt="<?php echo esc_html__('Text', "poll-maker") ?>">
7410 </div>
7411 </div>
7412 <div class="ays_poll_layer_item_title">
7413 <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7414 <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>
7415 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7416 </div>
7417 <div class="ays_poll_layer_item_description"></div>
7418 </div>
7419 </label>
7420 <label class='ays-poll-dblclick-layer'>
7421 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7422 <div class="ays_poll_layer_item">
7423 <div class="ays_poll_layer_item_logo">
7424 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7425 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
7426 </div>
7427 </div>
7428 <div class="ays_poll_layer_item_title">
7429 <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7430 <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>
7431 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7432 </div>
7433 <div class="ays_poll_layer_item_description"></div>
7434 </div>
7435 </label>
7436 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7437 <!-- <input type="radio" value="select" > -->
7438 <div class="ays_poll_layer_item">
7439 <span class="ays_poll_layer_item_pro_version">
7440 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7441 PRO
7442 </a>
7443 </span>
7444 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7445 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7446
7447 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7448 alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
7449 </div>
7450 </div>
7451 <div class="ays_poll_layer_item_title">
7452 <p style="margin:0px;">
7453 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7454 <?php echo esc_html__('Dropdown', "poll-maker") ?>
7455 </a>
7456 <p>
7457 <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>
7458 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7459 </div>
7460 <div class="ays_poll_layer_item_description"></div>
7461 </div>
7462 </label>
7463 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7464 <!-- <input value="range" type="radio"> -->
7465 <div class="ays_poll_layer_item">
7466 <span class="ays_poll_layer_item_pro_version">
7467 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7468 PRO
7469 </a>
7470 </span>
7471 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7472 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7473
7474 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7475 alt="<?php echo esc_html__('Range', "poll-maker") ?>">
7476 </div>
7477 </div>
7478 <div class="ays_poll_layer_item_title">
7479 <p style="margin:0px;">
7480 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7481 <?php echo esc_html__('Range', "poll-maker") ?>
7482 </a>
7483 <p>
7484 <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>
7485 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7486 </div>
7487 <div class="ays_poll_layer_item_description"></div>
7488 </div>
7489 </label>
7490 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7491 <!-- <input value="versus" type="radio"> -->
7492 <div class="ays_poll_layer_item">
7493 <span class="ays_poll_layer_item_pro_version">
7494 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7495 PRO
7496 </a>
7497 </span>
7498 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7499 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7500
7501 <span>VS</span>
7502 </div>
7503 </div>
7504 <div class="ays_poll_layer_item_title">
7505 <p style="margin:0px;">
7506 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7507 <?php echo esc_html__('Versus', "poll-maker") ?>
7508 </a>
7509 <p>
7510 <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>
7511 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7512 </div>
7513 <div class="ays_poll_layer_item_description"></div>
7514 </div>
7515 </label>
7516 </div>
7517 <div class="ays_poll_select_button_layer">
7518 <div class="ays_poll_select_button_item">
7519 <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7520 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7521 </div>
7522 </div>
7523 </div>
7524 </div>
7525 </div>
7526 <?php else: ?>
7527 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7528 <?php endif; ?>
7529 </form>
7530 <div class="ays-modal" id="pro-features-popup-modal">
7531 <div class="ays-modal-content">
7532 <!-- Modal Header -->
7533 <div class="ays-modal-header">
7534 <span class="ays-close-pro-popup">&times;</span>
7535 <!-- <h2></h2> -->
7536 </div>
7537
7538 <!-- Modal body -->
7539 <div class="ays-modal-body">
7540 <div class="row">
7541 <div class="col-sm-6 pro-features-popup-modal-left-section">
7542 </div>
7543 <div class="col-sm-6 pro-features-popup-modal-right-section">
7544 <div class="pro-features-popup-modal-right-box">
7545 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7546
7547 <div class="pro-features-popup-modal-right-box-title"></div>
7548
7549 <div class="pro-features-popup-modal-right-box-content"></div>
7550
7551 <div class="pro-features-popup-modal-right-box-button">
7552 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7553 </div>
7554 </div>
7555 <div class="pro-features-popup-modal-right-box-footer-text">
7556 <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7557 </div>
7558 </div>
7559 </div>
7560 </div>
7561
7562 <!-- Modal footer -->
7563 <div class="ays-modal-footer" style="display:none">
7564 </div>
7565 </div>
7566 </div>
7567 </div>
7568 </div>