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

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